]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/richtext_wrap.cpp
Forgot to remove wxBackingFile from the changes.txt. It was kept internal
[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_wxTGAHandler swig_types[150]
2617 #define SWIGTYPE_p_wxTIFFHandler swig_types[151]
2618 #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[152]
2619 #define SWIGTYPE_p_wxTextCoord swig_types[153]
2620 #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[154]
2621 #define SWIGTYPE_p_wxTextEntryDialog swig_types[155]
2622 #define SWIGTYPE_p_wxTipWindow swig_types[156]
2623 #define SWIGTYPE_p_wxTopLevelWindow swig_types[157]
2624 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[158]
2625 #define SWIGTYPE_p_wxValidator swig_types[159]
2626 #define SWIGTYPE_p_wxWindow swig_types[160]
2627 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[161]
2628 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[162]
2629 #define SWIGTYPE_p_wxXPMHandler swig_types[163]
2630 static swig_type_info *swig_types[165];
2631 static swig_module_info swig_module = {swig_types, 164, 0, 0, 0, 0};
2632 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2633 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2634
2635 /* -------- TYPES TABLE (END) -------- */
2636
2637 #if (PY_VERSION_HEX <= 0x02000000)
2638 # if !defined(SWIG_PYTHON_CLASSIC)
2639 # error "This python version requires to use swig with the '-classic' option"
2640 # endif
2641 #endif
2642 #if (PY_VERSION_HEX <= 0x02020000)
2643 # error "This python version requires to use swig with the '-nomodern' option"
2644 #endif
2645 #if (PY_VERSION_HEX <= 0x02020000)
2646 # error "This python version requires to use swig with the '-nomodernargs' option"
2647 #endif
2648 #ifndef METH_O
2649 # error "This python version requires to use swig with the '-nofastunpack' option"
2650 #endif
2651
2652 /*-----------------------------------------------
2653 @(target):= _richtext.so
2654 ------------------------------------------------*/
2655 #define SWIG_init init_richtext
2656
2657 #define SWIG_name "_richtext"
2658
2659 #define SWIGVERSION 0x010329
2660
2661
2662 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2663 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2664
2665
2666 #include <stdexcept>
2667
2668
2669 namespace swig {
2670 class PyObject_ptr {
2671 protected:
2672 PyObject *_obj;
2673
2674 public:
2675 PyObject_ptr() :_obj(0)
2676 {
2677 }
2678
2679 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2680 {
2681 Py_XINCREF(_obj);
2682 }
2683
2684 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2685 {
2686 if (initial_ref) Py_XINCREF(_obj);
2687 }
2688
2689 PyObject_ptr & operator=(const PyObject_ptr& item)
2690 {
2691 Py_XINCREF(item._obj);
2692 Py_XDECREF(_obj);
2693 _obj = item._obj;
2694 return *this;
2695 }
2696
2697 ~PyObject_ptr()
2698 {
2699 Py_XDECREF(_obj);
2700 }
2701
2702 operator PyObject *() const
2703 {
2704 return _obj;
2705 }
2706
2707 PyObject *operator->() const
2708 {
2709 return _obj;
2710 }
2711 };
2712 }
2713
2714
2715 namespace swig {
2716 struct PyObject_var : PyObject_ptr {
2717 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2718
2719 PyObject_var & operator = (PyObject* obj)
2720 {
2721 Py_XDECREF(_obj);
2722 _obj = obj;
2723 return *this;
2724 }
2725 };
2726 }
2727
2728
2729 #include "wx/wxPython/wxPython.h"
2730 #include "wx/wxPython/pyclasses.h"
2731 #include "wx/wxPython/printfw.h"
2732 #include "wx/wxPython/twoitem.h"
2733
2734 #include <wx/richtext/richtextctrl.h>
2735
2736
2737 class wxEffects;
2738 class wxBufferedDC;
2739 class wxBufferedPaintDC;
2740 class wxMetaFile;
2741 class wxMetaFileDC;
2742 class wxPrinterDC;
2743
2744
2745
2746 #define SWIG_From_long PyInt_FromLong
2747
2748
2749 SWIGINTERNINLINE PyObject *
2750 SWIG_From_int (int value)
2751 {
2752 return SWIG_From_long (value);
2753 }
2754
2755 static const wxString wxPyEmptyString(wxEmptyString);
2756
2757
2758 bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj)
2759 {
2760 if (source == Py_None) {
2761 **obj = wxRICHTEXT_NONE;
2762 return true;
2763 }
2764 return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange"));
2765 }
2766
2767
2768 SWIGINTERN int
2769 SWIG_AsVal_long (PyObject* obj, long* val)
2770 {
2771 if (PyNumber_Check(obj)) {
2772 if (val) *val = PyInt_AsLong(obj);
2773 return SWIG_OK;
2774 }
2775 return SWIG_TypeError;
2776 }
2777
2778 SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){
2779 wxRichTextRange temp, *obj = &temp;
2780 if ( other == Py_None ) return false;
2781 if ( ! wxRichTextRange_helper(other, &obj) ) {
2782 PyErr_Clear();
2783 return false;
2784 }
2785 return self->operator==(*obj);
2786 }
2787 SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){
2788 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2789 PyObject* tup = PyTuple_New(2);
2790 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart()));
2791 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd()));
2792 wxPyEndBlockThreads(blocked);
2793 return tup;
2794 }
2795
2796 wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL);
2797 wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE);
2798
2799
2800 #include <limits.h>
2801 #ifndef LLONG_MIN
2802 # define LLONG_MIN LONG_LONG_MIN
2803 #endif
2804 #ifndef LLONG_MAX
2805 # define LLONG_MAX LONG_LONG_MAX
2806 #endif
2807 #ifndef ULLONG_MAX
2808 # define ULLONG_MAX ULONG_LONG_MAX
2809 #endif
2810
2811
2812 SWIGINTERN int
2813 SWIG_AsVal_int (PyObject * obj, int *val)
2814 {
2815 long v;
2816 int res = SWIG_AsVal_long (obj, &v);
2817 if (SWIG_IsOK(res)) {
2818 if ((v < INT_MIN || v > INT_MAX)) {
2819 return SWIG_OverflowError;
2820 } else {
2821 if (val) *val = static_cast< int >(v);
2822 }
2823 }
2824 return res;
2825 }
2826
2827
2828 SWIGINTERN int
2829 SWIG_AsVal_bool (PyObject *obj, bool *val)
2830 {
2831 if (obj == Py_True) {
2832 if (val) *val = true;
2833 return SWIG_OK;
2834 } else if (obj == Py_False) {
2835 if (val) *val = false;
2836 return SWIG_OK;
2837 } else {
2838 long v = 0;
2839 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2840 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2841 return res;
2842 }
2843 }
2844
2845
2846 SWIGINTERN int
2847 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2848 {
2849 long v = 0;
2850 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2851 return SWIG_TypeError;
2852 }
2853 else if (val)
2854 *val = (unsigned long)v;
2855 return SWIG_OK;
2856 }
2857
2858 #ifdef __cplusplus
2859 extern "C" {
2860 #endif
2861 SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2862 PyObject *resultobj = 0;
2863 long arg1 = (long) 0 ;
2864 long arg2 = (long) 0 ;
2865 wxRichTextRange *result = 0 ;
2866 long val1 ;
2867 int ecode1 = 0 ;
2868 long val2 ;
2869 int ecode2 = 0 ;
2870 PyObject * obj0 = 0 ;
2871 PyObject * obj1 = 0 ;
2872 char * kwnames[] = {
2873 (char *) "start",(char *) "end", NULL
2874 };
2875
2876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail;
2877 if (obj0) {
2878 ecode1 = SWIG_AsVal_long(obj0, &val1);
2879 if (!SWIG_IsOK(ecode1)) {
2880 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'");
2881 }
2882 arg1 = static_cast< long >(val1);
2883 }
2884 if (obj1) {
2885 ecode2 = SWIG_AsVal_long(obj1, &val2);
2886 if (!SWIG_IsOK(ecode2)) {
2887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'");
2888 }
2889 arg2 = static_cast< long >(val2);
2890 }
2891 {
2892 PyThreadState* __tstate = wxPyBeginAllowThreads();
2893 result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2);
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 );
2898 return resultobj;
2899 fail:
2900 return NULL;
2901 }
2902
2903
2904 SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
2905 PyObject *resultobj = 0;
2906 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
2907 void *argp1 = 0 ;
2908 int res1 = 0 ;
2909 PyObject *swig_obj[1] ;
2910
2911 if (!args) SWIG_fail;
2912 swig_obj[0] = args;
2913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 );
2914 if (!SWIG_IsOK(res1)) {
2915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
2916 }
2917 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
2918 {
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 delete arg1;
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 }
2925 resultobj = SWIG_Py_Void();
2926 return resultobj;
2927 fail:
2928 return NULL;
2929 }
2930
2931
2932 SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2933 PyObject *resultobj = 0;
2934 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
2935 PyObject *arg2 = (PyObject *) 0 ;
2936 bool result;
2937 void *argp1 = 0 ;
2938 int res1 = 0 ;
2939 PyObject * obj0 = 0 ;
2940 PyObject * obj1 = 0 ;
2941 char * kwnames[] = {
2942 (char *) "self",(char *) "other", NULL
2943 };
2944
2945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
2946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
2947 if (!SWIG_IsOK(res1)) {
2948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
2949 }
2950 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
2951 arg2 = obj1;
2952 {
2953 result = (bool)wxRichTextRange___eq__(arg1,arg2);
2954 if (PyErr_Occurred()) SWIG_fail;
2955 }
2956 {
2957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2958 }
2959 return resultobj;
2960 fail:
2961 return NULL;
2962 }
2963
2964
2965 SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2966 PyObject *resultobj = 0;
2967 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
2968 wxRichTextRange *arg2 = 0 ;
2969 wxRichTextRange result;
2970 void *argp1 = 0 ;
2971 int res1 = 0 ;
2972 wxRichTextRange temp2 ;
2973 PyObject * obj0 = 0 ;
2974 PyObject * obj1 = 0 ;
2975 char * kwnames[] = {
2976 (char *) "self",(char *) "range", NULL
2977 };
2978
2979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
2980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
2981 if (!SWIG_IsOK(res1)) {
2982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
2983 }
2984 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
2985 {
2986 arg2 = &temp2;
2987 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
2988 }
2989 {
2990 PyThreadState* __tstate = wxPyBeginAllowThreads();
2991 result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2);
2992 wxPyEndAllowThreads(__tstate);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 }
2995 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
2996 return resultobj;
2997 fail:
2998 return NULL;
2999 }
3000
3001
3002 SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3003 PyObject *resultobj = 0;
3004 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3005 wxRichTextRange *arg2 = 0 ;
3006 wxRichTextRange result;
3007 void *argp1 = 0 ;
3008 int res1 = 0 ;
3009 wxRichTextRange temp2 ;
3010 PyObject * obj0 = 0 ;
3011 PyObject * obj1 = 0 ;
3012 char * kwnames[] = {
3013 (char *) "self",(char *) "range", NULL
3014 };
3015
3016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail;
3017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3018 if (!SWIG_IsOK(res1)) {
3019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3020 }
3021 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3022 {
3023 arg2 = &temp2;
3024 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3025 }
3026 {
3027 PyThreadState* __tstate = wxPyBeginAllowThreads();
3028 result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2);
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
3032 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj = 0;
3041 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3042 long arg2 ;
3043 long arg3 ;
3044 void *argp1 = 0 ;
3045 int res1 = 0 ;
3046 long val2 ;
3047 int ecode2 = 0 ;
3048 long val3 ;
3049 int ecode3 = 0 ;
3050 PyObject * obj0 = 0 ;
3051 PyObject * obj1 = 0 ;
3052 PyObject * obj2 = 0 ;
3053 char * kwnames[] = {
3054 (char *) "self",(char *) "start",(char *) "end", NULL
3055 };
3056
3057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3059 if (!SWIG_IsOK(res1)) {
3060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3061 }
3062 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3063 ecode2 = SWIG_AsVal_long(obj1, &val2);
3064 if (!SWIG_IsOK(ecode2)) {
3065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'");
3066 }
3067 arg2 = static_cast< long >(val2);
3068 ecode3 = SWIG_AsVal_long(obj2, &val3);
3069 if (!SWIG_IsOK(ecode3)) {
3070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'");
3071 }
3072 arg3 = static_cast< long >(val3);
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 (arg1)->SetRange(arg2,arg3);
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) SWIG_fail;
3078 }
3079 resultobj = SWIG_Py_Void();
3080 return resultobj;
3081 fail:
3082 return NULL;
3083 }
3084
3085
3086 SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3087 PyObject *resultobj = 0;
3088 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3089 long arg2 ;
3090 void *argp1 = 0 ;
3091 int res1 = 0 ;
3092 long val2 ;
3093 int ecode2 = 0 ;
3094 PyObject * obj0 = 0 ;
3095 PyObject * obj1 = 0 ;
3096 char * kwnames[] = {
3097 (char *) "self",(char *) "start", NULL
3098 };
3099
3100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail;
3101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3102 if (!SWIG_IsOK(res1)) {
3103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3104 }
3105 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3106 ecode2 = SWIG_AsVal_long(obj1, &val2);
3107 if (!SWIG_IsOK(ecode2)) {
3108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'");
3109 }
3110 arg2 = static_cast< long >(val2);
3111 {
3112 PyThreadState* __tstate = wxPyBeginAllowThreads();
3113 (arg1)->SetStart(arg2);
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 resultobj = SWIG_Py_Void();
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3125 PyObject *resultobj = 0;
3126 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3127 long result;
3128 void *argp1 = 0 ;
3129 int res1 = 0 ;
3130 PyObject *swig_obj[1] ;
3131
3132 if (!args) SWIG_fail;
3133 swig_obj[0] = args;
3134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3135 if (!SWIG_IsOK(res1)) {
3136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3137 }
3138 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3139 {
3140 PyThreadState* __tstate = wxPyBeginAllowThreads();
3141 result = (long)((wxRichTextRange const *)arg1)->GetStart();
3142 wxPyEndAllowThreads(__tstate);
3143 if (PyErr_Occurred()) SWIG_fail;
3144 }
3145 resultobj = SWIG_From_long(static_cast< long >(result));
3146 return resultobj;
3147 fail:
3148 return NULL;
3149 }
3150
3151
3152 SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3153 PyObject *resultobj = 0;
3154 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3155 long arg2 ;
3156 void *argp1 = 0 ;
3157 int res1 = 0 ;
3158 long val2 ;
3159 int ecode2 = 0 ;
3160 PyObject * obj0 = 0 ;
3161 PyObject * obj1 = 0 ;
3162 char * kwnames[] = {
3163 (char *) "self",(char *) "end", NULL
3164 };
3165
3166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail;
3167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3168 if (!SWIG_IsOK(res1)) {
3169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3170 }
3171 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3172 ecode2 = SWIG_AsVal_long(obj1, &val2);
3173 if (!SWIG_IsOK(ecode2)) {
3174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'");
3175 }
3176 arg2 = static_cast< long >(val2);
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 (arg1)->SetEnd(arg2);
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 resultobj = SWIG_Py_Void();
3184 return resultobj;
3185 fail:
3186 return NULL;
3187 }
3188
3189
3190 SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3191 PyObject *resultobj = 0;
3192 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3193 long result;
3194 void *argp1 = 0 ;
3195 int res1 = 0 ;
3196 PyObject *swig_obj[1] ;
3197
3198 if (!args) SWIG_fail;
3199 swig_obj[0] = args;
3200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3201 if (!SWIG_IsOK(res1)) {
3202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3203 }
3204 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 result = (long)((wxRichTextRange const *)arg1)->GetEnd();
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 resultobj = SWIG_From_long(static_cast< long >(result));
3212 return resultobj;
3213 fail:
3214 return NULL;
3215 }
3216
3217
3218 SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3219 PyObject *resultobj = 0;
3220 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3221 wxRichTextRange *arg2 = 0 ;
3222 bool result;
3223 void *argp1 = 0 ;
3224 int res1 = 0 ;
3225 wxRichTextRange temp2 ;
3226 PyObject * obj0 = 0 ;
3227 PyObject * obj1 = 0 ;
3228 char * kwnames[] = {
3229 (char *) "self",(char *) "range", NULL
3230 };
3231
3232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail;
3233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3234 if (!SWIG_IsOK(res1)) {
3235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3236 }
3237 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3238 {
3239 arg2 = &temp2;
3240 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3241 }
3242 {
3243 PyThreadState* __tstate = wxPyBeginAllowThreads();
3244 result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2);
3245 wxPyEndAllowThreads(__tstate);
3246 if (PyErr_Occurred()) SWIG_fail;
3247 }
3248 {
3249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3250 }
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3258 PyObject *resultobj = 0;
3259 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3260 wxRichTextRange *arg2 = 0 ;
3261 bool result;
3262 void *argp1 = 0 ;
3263 int res1 = 0 ;
3264 wxRichTextRange temp2 ;
3265 PyObject * obj0 = 0 ;
3266 PyObject * obj1 = 0 ;
3267 char * kwnames[] = {
3268 (char *) "self",(char *) "range", NULL
3269 };
3270
3271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail;
3272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3273 if (!SWIG_IsOK(res1)) {
3274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3275 }
3276 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3277 {
3278 arg2 = &temp2;
3279 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3280 }
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2);
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 {
3288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3289 }
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj = 0;
3298 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3299 long arg2 ;
3300 bool result;
3301 void *argp1 = 0 ;
3302 int res1 = 0 ;
3303 long val2 ;
3304 int ecode2 = 0 ;
3305 PyObject * obj0 = 0 ;
3306 PyObject * obj1 = 0 ;
3307 char * kwnames[] = {
3308 (char *) "self",(char *) "pos", NULL
3309 };
3310
3311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
3312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3313 if (!SWIG_IsOK(res1)) {
3314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3315 }
3316 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3317 ecode2 = SWIG_AsVal_long(obj1, &val2);
3318 if (!SWIG_IsOK(ecode2)) {
3319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'");
3320 }
3321 arg2 = static_cast< long >(val2);
3322 {
3323 PyThreadState* __tstate = wxPyBeginAllowThreads();
3324 result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2);
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) SWIG_fail;
3327 }
3328 {
3329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3330 }
3331 return resultobj;
3332 fail:
3333 return NULL;
3334 }
3335
3336
3337 SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3338 PyObject *resultobj = 0;
3339 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3340 wxRichTextRange *arg2 = 0 ;
3341 bool result;
3342 void *argp1 = 0 ;
3343 int res1 = 0 ;
3344 wxRichTextRange temp2 ;
3345 PyObject * obj0 = 0 ;
3346 PyObject * obj1 = 0 ;
3347 char * kwnames[] = {
3348 (char *) "self",(char *) "range", NULL
3349 };
3350
3351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail;
3352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3353 if (!SWIG_IsOK(res1)) {
3354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3355 }
3356 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3357 {
3358 arg2 = &temp2;
3359 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3360 }
3361 {
3362 PyThreadState* __tstate = wxPyBeginAllowThreads();
3363 result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2);
3364 wxPyEndAllowThreads(__tstate);
3365 if (PyErr_Occurred()) SWIG_fail;
3366 }
3367 {
3368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3369 }
3370 return resultobj;
3371 fail:
3372 return NULL;
3373 }
3374
3375
3376 SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3377 PyObject *resultobj = 0;
3378 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3379 long result;
3380 void *argp1 = 0 ;
3381 int res1 = 0 ;
3382 PyObject *swig_obj[1] ;
3383
3384 if (!args) SWIG_fail;
3385 swig_obj[0] = args;
3386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3387 if (!SWIG_IsOK(res1)) {
3388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3389 }
3390 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 result = (long)((wxRichTextRange const *)arg1)->GetLength();
3394 wxPyEndAllowThreads(__tstate);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 }
3397 resultobj = SWIG_From_long(static_cast< long >(result));
3398 return resultobj;
3399 fail:
3400 return NULL;
3401 }
3402
3403
3404 SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3405 PyObject *resultobj = 0;
3406 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3407 void *argp1 = 0 ;
3408 int res1 = 0 ;
3409 PyObject *swig_obj[1] ;
3410
3411 if (!args) SWIG_fail;
3412 swig_obj[0] = args;
3413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3414 if (!SWIG_IsOK(res1)) {
3415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3416 }
3417 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3418 {
3419 PyThreadState* __tstate = wxPyBeginAllowThreads();
3420 (arg1)->Swap();
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
3424 resultobj = SWIG_Py_Void();
3425 return resultobj;
3426 fail:
3427 return NULL;
3428 }
3429
3430
3431 SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3432 PyObject *resultobj = 0;
3433 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3434 PyObject *result = 0 ;
3435 void *argp1 = 0 ;
3436 int res1 = 0 ;
3437 PyObject *swig_obj[1] ;
3438
3439 if (!args) SWIG_fail;
3440 swig_obj[0] = args;
3441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3442 if (!SWIG_IsOK(res1)) {
3443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3444 }
3445 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 result = (PyObject *)wxRichTextRange_Get(arg1);
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 resultobj = result;
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3460 PyObject *obj;
3461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3462 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj));
3463 return SWIG_Py_Void();
3464 }
3465
3466 SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3467 return SWIG_Python_InitShadowInstance(args);
3468 }
3469
3470 SWIGINTERN int RICHTEXT_ALL_set(PyObject *) {
3471 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only.");
3472 return 1;
3473 }
3474
3475
3476 SWIGINTERN PyObject *RICHTEXT_ALL_get(void) {
3477 PyObject *pyobj = 0;
3478
3479 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 );
3480 return pyobj;
3481 }
3482
3483
3484 SWIGINTERN int RICHTEXT_NONE_set(PyObject *) {
3485 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only.");
3486 return 1;
3487 }
3488
3489
3490 SWIGINTERN PyObject *RICHTEXT_NONE_get(void) {
3491 PyObject *pyobj = 0;
3492
3493 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 );
3494 return pyobj;
3495 }
3496
3497
3498 SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3499 PyObject *resultobj = 0;
3500 wxColour const &arg1_defvalue = wxNullColour ;
3501 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
3502 wxColour const &arg2_defvalue = wxNullColour ;
3503 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3504 wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
3505 wxRichTextAttr *result = 0 ;
3506 wxColour temp1 ;
3507 wxColour temp2 ;
3508 int val3 ;
3509 int ecode3 = 0 ;
3510 PyObject * obj0 = 0 ;
3511 PyObject * obj1 = 0 ;
3512 PyObject * obj2 = 0 ;
3513 char * kwnames[] = {
3514 (char *) "colText",(char *) "colBack",(char *) "alignment", NULL
3515 };
3516
3517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3518 if (obj0) {
3519 {
3520 arg1 = &temp1;
3521 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3522 }
3523 }
3524 if (obj1) {
3525 {
3526 arg2 = &temp2;
3527 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3528 }
3529 }
3530 if (obj2) {
3531 ecode3 = SWIG_AsVal_int(obj2, &val3);
3532 if (!SWIG_IsOK(ecode3)) {
3533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'");
3534 }
3535 arg3 = static_cast< wxTextAttrAlignment >(val3);
3536 }
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3);
3540 wxPyEndAllowThreads(__tstate);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 );
3544 return resultobj;
3545 fail:
3546 return NULL;
3547 }
3548
3549
3550 SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3551 PyObject *resultobj = 0;
3552 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3553 void *argp1 = 0 ;
3554 int res1 = 0 ;
3555 PyObject *swig_obj[1] ;
3556
3557 if (!args) SWIG_fail;
3558 swig_obj[0] = args;
3559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 );
3560 if (!SWIG_IsOK(res1)) {
3561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3562 }
3563 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 delete arg1;
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 resultobj = SWIG_Py_Void();
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3581 wxFont result;
3582 void *argp1 = 0 ;
3583 int res1 = 0 ;
3584 PyObject *swig_obj[1] ;
3585
3586 if (!args) SWIG_fail;
3587 swig_obj[0] = args;
3588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
3591 }
3592 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = ((wxRichTextAttr const *)arg1)->CreateFont();
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
3600 return resultobj;
3601 fail:
3602 return NULL;
3603 }
3604
3605
3606 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3607 PyObject *resultobj = 0;
3608 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3609 wxFont *arg2 = 0 ;
3610 bool result;
3611 void *argp1 = 0 ;
3612 int res1 = 0 ;
3613 void *argp2 = 0 ;
3614 int res2 = 0 ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 char * kwnames[] = {
3618 (char *) "self",(char *) "font", NULL
3619 };
3620
3621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail;
3622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3623 if (!SWIG_IsOK(res1)) {
3624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3625 }
3626 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
3628 if (!SWIG_IsOK(res2)) {
3629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3630 }
3631 if (!argp2) {
3632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3633 }
3634 arg2 = reinterpret_cast< wxFont * >(argp2);
3635 {
3636 PyThreadState* __tstate = wxPyBeginAllowThreads();
3637 result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2);
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 {
3642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3643 }
3644 return resultobj;
3645 fail:
3646 return NULL;
3647 }
3648
3649
3650 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj = 0;
3652 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3653 wxColour *arg2 = 0 ;
3654 void *argp1 = 0 ;
3655 int res1 = 0 ;
3656 wxColour temp2 ;
3657 PyObject * obj0 = 0 ;
3658 PyObject * obj1 = 0 ;
3659 char * kwnames[] = {
3660 (char *) "self",(char *) "colText", NULL
3661 };
3662
3663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
3664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3665 if (!SWIG_IsOK(res1)) {
3666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3667 }
3668 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3669 {
3670 arg2 = &temp2;
3671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3672 }
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 (arg1)->SetTextColour((wxColour const &)*arg2);
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 resultobj = SWIG_Py_Void();
3680 return resultobj;
3681 fail:
3682 return NULL;
3683 }
3684
3685
3686 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3687 PyObject *resultobj = 0;
3688 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3689 wxColour *arg2 = 0 ;
3690 void *argp1 = 0 ;
3691 int res1 = 0 ;
3692 wxColour temp2 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 char * kwnames[] = {
3696 (char *) "self",(char *) "colBack", NULL
3697 };
3698
3699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
3700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3701 if (!SWIG_IsOK(res1)) {
3702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3703 }
3704 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3705 {
3706 arg2 = &temp2;
3707 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3708 }
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3712 wxPyEndAllowThreads(__tstate);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 resultobj = SWIG_Py_Void();
3716 return resultobj;
3717 fail:
3718 return NULL;
3719 }
3720
3721
3722 SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3723 PyObject *resultobj = 0;
3724 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3725 wxTextAttrAlignment arg2 ;
3726 void *argp1 = 0 ;
3727 int res1 = 0 ;
3728 int val2 ;
3729 int ecode2 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 PyObject * obj1 = 0 ;
3732 char * kwnames[] = {
3733 (char *) "self",(char *) "alignment", NULL
3734 };
3735
3736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
3737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3738 if (!SWIG_IsOK(res1)) {
3739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3740 }
3741 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3742 ecode2 = SWIG_AsVal_int(obj1, &val2);
3743 if (!SWIG_IsOK(ecode2)) {
3744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
3745 }
3746 arg2 = static_cast< wxTextAttrAlignment >(val2);
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 (arg1)->SetAlignment(arg2);
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_Py_Void();
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3761 PyObject *resultobj = 0;
3762 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3763 wxArrayInt *arg2 = 0 ;
3764 void *argp1 = 0 ;
3765 int res1 = 0 ;
3766 bool temp2 = false ;
3767 PyObject * obj0 = 0 ;
3768 PyObject * obj1 = 0 ;
3769 char * kwnames[] = {
3770 (char *) "self",(char *) "tabs", NULL
3771 };
3772
3773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
3774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3775 if (!SWIG_IsOK(res1)) {
3776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3777 }
3778 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3779 {
3780 if (! PySequence_Check(obj1)) {
3781 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3782 SWIG_fail;
3783 }
3784 arg2 = new wxArrayInt;
3785 temp2 = true;
3786 int i, len=PySequence_Length(obj1);
3787 for (i=0; i<len; i++) {
3788 PyObject* item = PySequence_GetItem(obj1, i);
3789 PyObject* number = PyNumber_Int(item);
3790 if (!number) {
3791 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3792 SWIG_fail;
3793 }
3794 arg2->Add(PyInt_AS_LONG(number));
3795 Py_DECREF(item);
3796 Py_DECREF(number);
3797 }
3798 }
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 (arg1)->SetTabs((wxArrayInt const &)*arg2);
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 resultobj = SWIG_Py_Void();
3806 {
3807 if (temp2) delete arg2;
3808 }
3809 return resultobj;
3810 fail:
3811 {
3812 if (temp2) delete arg2;
3813 }
3814 return NULL;
3815 }
3816
3817
3818 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj = 0;
3820 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3821 int arg2 ;
3822 int arg3 = (int) 0 ;
3823 void *argp1 = 0 ;
3824 int res1 = 0 ;
3825 int val2 ;
3826 int ecode2 = 0 ;
3827 int val3 ;
3828 int ecode3 = 0 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 PyObject * obj2 = 0 ;
3832 char * kwnames[] = {
3833 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
3834 };
3835
3836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3838 if (!SWIG_IsOK(res1)) {
3839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3840 }
3841 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3842 ecode2 = SWIG_AsVal_int(obj1, &val2);
3843 if (!SWIG_IsOK(ecode2)) {
3844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
3845 }
3846 arg2 = static_cast< int >(val2);
3847 if (obj2) {
3848 ecode3 = SWIG_AsVal_int(obj2, &val3);
3849 if (!SWIG_IsOK(ecode3)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
3851 }
3852 arg3 = static_cast< int >(val3);
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 (arg1)->SetLeftIndent(arg2,arg3);
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_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj = 0;
3869 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3870 int arg2 ;
3871 void *argp1 = 0 ;
3872 int res1 = 0 ;
3873 int val2 ;
3874 int ecode2 = 0 ;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 char * kwnames[] = {
3878 (char *) "self",(char *) "indent", NULL
3879 };
3880
3881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
3882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3883 if (!SWIG_IsOK(res1)) {
3884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3885 }
3886 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3887 ecode2 = SWIG_AsVal_int(obj1, &val2);
3888 if (!SWIG_IsOK(ecode2)) {
3889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
3890 }
3891 arg2 = static_cast< int >(val2);
3892 {
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 (arg1)->SetRightIndent(arg2);
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 resultobj = SWIG_Py_Void();
3899 return resultobj;
3900 fail:
3901 return NULL;
3902 }
3903
3904
3905 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj = 0;
3907 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3908 int arg2 ;
3909 void *argp1 = 0 ;
3910 int res1 = 0 ;
3911 int val2 ;
3912 int ecode2 = 0 ;
3913 PyObject * obj0 = 0 ;
3914 PyObject * obj1 = 0 ;
3915 char * kwnames[] = {
3916 (char *) "self",(char *) "pointSize", NULL
3917 };
3918
3919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
3920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3921 if (!SWIG_IsOK(res1)) {
3922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3923 }
3924 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3925 ecode2 = SWIG_AsVal_int(obj1, &val2);
3926 if (!SWIG_IsOK(ecode2)) {
3927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'");
3928 }
3929 arg2 = static_cast< int >(val2);
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 (arg1)->SetFontSize(arg2);
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 resultobj = SWIG_Py_Void();
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3944 PyObject *resultobj = 0;
3945 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3946 int arg2 ;
3947 void *argp1 = 0 ;
3948 int res1 = 0 ;
3949 int val2 ;
3950 int ecode2 = 0 ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953 char * kwnames[] = {
3954 (char *) "self",(char *) "fontStyle", NULL
3955 };
3956
3957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail;
3958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3961 }
3962 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3963 ecode2 = SWIG_AsVal_int(obj1, &val2);
3964 if (!SWIG_IsOK(ecode2)) {
3965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'");
3966 }
3967 arg2 = static_cast< int >(val2);
3968 {
3969 PyThreadState* __tstate = wxPyBeginAllowThreads();
3970 (arg1)->SetFontStyle(arg2);
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 resultobj = SWIG_Py_Void();
3975 return resultobj;
3976 fail:
3977 return NULL;
3978 }
3979
3980
3981 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3982 PyObject *resultobj = 0;
3983 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3984 int arg2 ;
3985 void *argp1 = 0 ;
3986 int res1 = 0 ;
3987 int val2 ;
3988 int ecode2 = 0 ;
3989 PyObject * obj0 = 0 ;
3990 PyObject * obj1 = 0 ;
3991 char * kwnames[] = {
3992 (char *) "self",(char *) "fontWeight", NULL
3993 };
3994
3995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail;
3996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3997 if (!SWIG_IsOK(res1)) {
3998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3999 }
4000 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4001 ecode2 = SWIG_AsVal_int(obj1, &val2);
4002 if (!SWIG_IsOK(ecode2)) {
4003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'");
4004 }
4005 arg2 = static_cast< int >(val2);
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 (arg1)->SetFontWeight(arg2);
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 resultobj = SWIG_Py_Void();
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj = 0;
4021 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4022 wxString *arg2 = 0 ;
4023 void *argp1 = 0 ;
4024 int res1 = 0 ;
4025 bool temp2 = false ;
4026 PyObject * obj0 = 0 ;
4027 PyObject * obj1 = 0 ;
4028 char * kwnames[] = {
4029 (char *) "self",(char *) "faceName", NULL
4030 };
4031
4032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
4033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4034 if (!SWIG_IsOK(res1)) {
4035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4036 }
4037 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4038 {
4039 arg2 = wxString_in_helper(obj1);
4040 if (arg2 == NULL) SWIG_fail;
4041 temp2 = true;
4042 }
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 (arg1)->SetFontFaceName((wxString const &)*arg2);
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 resultobj = SWIG_Py_Void();
4050 {
4051 if (temp2)
4052 delete arg2;
4053 }
4054 return resultobj;
4055 fail:
4056 {
4057 if (temp2)
4058 delete arg2;
4059 }
4060 return NULL;
4061 }
4062
4063
4064 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj = 0;
4066 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4067 bool arg2 ;
4068 void *argp1 = 0 ;
4069 int res1 = 0 ;
4070 bool val2 ;
4071 int ecode2 = 0 ;
4072 PyObject * obj0 = 0 ;
4073 PyObject * obj1 = 0 ;
4074 char * kwnames[] = {
4075 (char *) "self",(char *) "underlined", NULL
4076 };
4077
4078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
4079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4082 }
4083 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4084 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4085 if (!SWIG_IsOK(ecode2)) {
4086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'");
4087 }
4088 arg2 = static_cast< bool >(val2);
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 (arg1)->SetFontUnderlined(arg2);
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 resultobj = SWIG_Py_Void();
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4103 PyObject *resultobj = 0;
4104 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4105 long arg2 ;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 long val2 ;
4109 int ecode2 = 0 ;
4110 PyObject * obj0 = 0 ;
4111 PyObject * obj1 = 0 ;
4112 char * kwnames[] = {
4113 (char *) "self",(char *) "flags", NULL
4114 };
4115
4116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4118 if (!SWIG_IsOK(res1)) {
4119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4120 }
4121 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4122 ecode2 = SWIG_AsVal_long(obj1, &val2);
4123 if (!SWIG_IsOK(ecode2)) {
4124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
4125 }
4126 arg2 = static_cast< long >(val2);
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 (arg1)->SetFlags(arg2);
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 resultobj = SWIG_Py_Void();
4134 return resultobj;
4135 fail:
4136 return NULL;
4137 }
4138
4139
4140 SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj = 0;
4142 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4143 wxString *arg2 = 0 ;
4144 void *argp1 = 0 ;
4145 int res1 = 0 ;
4146 bool temp2 = false ;
4147 PyObject * obj0 = 0 ;
4148 PyObject * obj1 = 0 ;
4149 char * kwnames[] = {
4150 (char *) "self",(char *) "name", NULL
4151 };
4152
4153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4155 if (!SWIG_IsOK(res1)) {
4156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4157 }
4158 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4159 {
4160 arg2 = wxString_in_helper(obj1);
4161 if (arg2 == NULL) SWIG_fail;
4162 temp2 = true;
4163 }
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 (arg1)->SetCharacterStyleName((wxString const &)*arg2);
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_Py_Void();
4171 {
4172 if (temp2)
4173 delete arg2;
4174 }
4175 return resultobj;
4176 fail:
4177 {
4178 if (temp2)
4179 delete arg2;
4180 }
4181 return NULL;
4182 }
4183
4184
4185 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4186 PyObject *resultobj = 0;
4187 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4188 wxString *arg2 = 0 ;
4189 void *argp1 = 0 ;
4190 int res1 = 0 ;
4191 bool temp2 = false ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "name", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4202 }
4203 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4204 {
4205 arg2 = wxString_in_helper(obj1);
4206 if (arg2 == NULL) SWIG_fail;
4207 temp2 = true;
4208 }
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetParagraphStyleName((wxString const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 {
4217 if (temp2)
4218 delete arg2;
4219 }
4220 return resultobj;
4221 fail:
4222 {
4223 if (temp2)
4224 delete arg2;
4225 }
4226 return NULL;
4227 }
4228
4229
4230 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4231 PyObject *resultobj = 0;
4232 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4233 int arg2 ;
4234 void *argp1 = 0 ;
4235 int res1 = 0 ;
4236 int val2 ;
4237 int ecode2 = 0 ;
4238 PyObject * obj0 = 0 ;
4239 PyObject * obj1 = 0 ;
4240 char * kwnames[] = {
4241 (char *) "self",(char *) "spacing", NULL
4242 };
4243
4244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail;
4245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4246 if (!SWIG_IsOK(res1)) {
4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4248 }
4249 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4250 ecode2 = SWIG_AsVal_int(obj1, &val2);
4251 if (!SWIG_IsOK(ecode2)) {
4252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'");
4253 }
4254 arg2 = static_cast< int >(val2);
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 (arg1)->SetParagraphSpacingAfter(arg2);
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 resultobj = SWIG_Py_Void();
4262 return resultobj;
4263 fail:
4264 return NULL;
4265 }
4266
4267
4268 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4269 PyObject *resultobj = 0;
4270 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4271 int arg2 ;
4272 void *argp1 = 0 ;
4273 int res1 = 0 ;
4274 int val2 ;
4275 int ecode2 = 0 ;
4276 PyObject * obj0 = 0 ;
4277 PyObject * obj1 = 0 ;
4278 char * kwnames[] = {
4279 (char *) "self",(char *) "spacing", NULL
4280 };
4281
4282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail;
4283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4284 if (!SWIG_IsOK(res1)) {
4285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4286 }
4287 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4288 ecode2 = SWIG_AsVal_int(obj1, &val2);
4289 if (!SWIG_IsOK(ecode2)) {
4290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'");
4291 }
4292 arg2 = static_cast< int >(val2);
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 (arg1)->SetParagraphSpacingBefore(arg2);
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 resultobj = SWIG_Py_Void();
4300 return resultobj;
4301 fail:
4302 return NULL;
4303 }
4304
4305
4306 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj = 0;
4308 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4309 int arg2 ;
4310 void *argp1 = 0 ;
4311 int res1 = 0 ;
4312 int val2 ;
4313 int ecode2 = 0 ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 char * kwnames[] = {
4317 (char *) "self",(char *) "spacing", NULL
4318 };
4319
4320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
4321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4322 if (!SWIG_IsOK(res1)) {
4323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4324 }
4325 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4326 ecode2 = SWIG_AsVal_int(obj1, &val2);
4327 if (!SWIG_IsOK(ecode2)) {
4328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'");
4329 }
4330 arg2 = static_cast< int >(val2);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->SetLineSpacing(arg2);
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_Py_Void();
4338 return resultobj;
4339 fail:
4340 return NULL;
4341 }
4342
4343
4344 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4347 int arg2 ;
4348 void *argp1 = 0 ;
4349 int res1 = 0 ;
4350 int val2 ;
4351 int ecode2 = 0 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char * kwnames[] = {
4355 (char *) "self",(char *) "style", NULL
4356 };
4357
4358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4362 }
4363 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4364 ecode2 = SWIG_AsVal_int(obj1, &val2);
4365 if (!SWIG_IsOK(ecode2)) {
4366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'");
4367 }
4368 arg2 = static_cast< int >(val2);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 (arg1)->SetBulletStyle(arg2);
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_Py_Void();
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4385 int arg2 ;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 int val2 ;
4389 int ecode2 = 0 ;
4390 PyObject * obj0 = 0 ;
4391 PyObject * obj1 = 0 ;
4392 char * kwnames[] = {
4393 (char *) "self",(char *) "n", NULL
4394 };
4395
4396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail;
4397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4398 if (!SWIG_IsOK(res1)) {
4399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4400 }
4401 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4402 ecode2 = SWIG_AsVal_int(obj1, &val2);
4403 if (!SWIG_IsOK(ecode2)) {
4404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'");
4405 }
4406 arg2 = static_cast< int >(val2);
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 (arg1)->SetBulletNumber(arg2);
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 resultobj = SWIG_Py_Void();
4414 return resultobj;
4415 fail:
4416 return NULL;
4417 }
4418
4419
4420 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4421 PyObject *resultobj = 0;
4422 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4423 wxChar arg2 ;
4424 void *argp1 = 0 ;
4425 int res1 = 0 ;
4426 void *argp2 ;
4427 int res2 = 0 ;
4428 PyObject * obj0 = 0 ;
4429 PyObject * obj1 = 0 ;
4430 char * kwnames[] = {
4431 (char *) "self",(char *) "symbol", NULL
4432 };
4433
4434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletText",kwnames,&obj0,&obj1)) SWIG_fail;
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4436 if (!SWIG_IsOK(res1)) {
4437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4438 }
4439 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4440 {
4441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0);
4442 if (!SWIG_IsOK(res2)) {
4443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'");
4444 }
4445 if (!argp2) {
4446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'");
4447 } else {
4448 wxChar * temp = reinterpret_cast< wxChar * >(argp2);
4449 arg2 = *temp;
4450 if (SWIG_IsNewObj(res2)) delete temp;
4451 }
4452 }
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 (arg1)->SetBulletText(arg2);
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_Py_Void();
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj = 0;
4468 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4469 wxString *arg2 = 0 ;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 bool temp2 = false ;
4473 PyObject * obj0 = 0 ;
4474 PyObject * obj1 = 0 ;
4475 char * kwnames[] = {
4476 (char *) "self",(char *) "bulletFont", NULL
4477 };
4478
4479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletFont",kwnames,&obj0,&obj1)) SWIG_fail;
4480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4481 if (!SWIG_IsOK(res1)) {
4482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4483 }
4484 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4485 {
4486 arg2 = wxString_in_helper(obj1);
4487 if (arg2 == NULL) SWIG_fail;
4488 temp2 = true;
4489 }
4490 {
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 (arg1)->SetBulletFont((wxString const &)*arg2);
4493 wxPyEndAllowThreads(__tstate);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 }
4496 resultobj = SWIG_Py_Void();
4497 {
4498 if (temp2)
4499 delete arg2;
4500 }
4501 return resultobj;
4502 fail:
4503 {
4504 if (temp2)
4505 delete arg2;
4506 }
4507 return NULL;
4508 }
4509
4510
4511 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4512 PyObject *resultobj = 0;
4513 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4514 wxColour *result = 0 ;
4515 void *argp1 = 0 ;
4516 int res1 = 0 ;
4517 PyObject *swig_obj[1] ;
4518
4519 if (!args) SWIG_fail;
4520 swig_obj[0] = args;
4521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4522 if (!SWIG_IsOK(res1)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4524 }
4525 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 {
4529 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour();
4530 result = (wxColour *) &_result_ref;
4531 }
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4543 PyObject *resultobj = 0;
4544 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4545 wxColour *result = 0 ;
4546 void *argp1 = 0 ;
4547 int res1 = 0 ;
4548 PyObject *swig_obj[1] ;
4549
4550 if (!args) SWIG_fail;
4551 swig_obj[0] = args;
4552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4553 if (!SWIG_IsOK(res1)) {
4554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4555 }
4556 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 {
4560 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour();
4561 result = (wxColour *) &_result_ref;
4562 }
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) SWIG_fail;
4565 }
4566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4574 PyObject *resultobj = 0;
4575 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4576 wxTextAttrAlignment result;
4577 void *argp1 = 0 ;
4578 int res1 = 0 ;
4579 PyObject *swig_obj[1] ;
4580
4581 if (!args) SWIG_fail;
4582 swig_obj[0] = args;
4583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4584 if (!SWIG_IsOK(res1)) {
4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4586 }
4587 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment();
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 resultobj = SWIG_From_int(static_cast< int >(result));
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 PyObject *resultobj = 0;
4603 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4604 wxArrayInt *result = 0 ;
4605 void *argp1 = 0 ;
4606 int res1 = 0 ;
4607 PyObject *swig_obj[1] ;
4608
4609 if (!args) SWIG_fail;
4610 swig_obj[0] = args;
4611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4614 }
4615 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 {
4619 wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs();
4620 result = (wxArrayInt *) &_result_ref;
4621 }
4622 wxPyEndAllowThreads(__tstate);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 {
4626 resultobj = wxArrayInt2PyList_helper(*result);
4627 }
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4635 PyObject *resultobj = 0;
4636 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4637 long result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
4640 PyObject *swig_obj[1] ;
4641
4642 if (!args) SWIG_fail;
4643 swig_obj[0] = args;
4644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4645 if (!SWIG_IsOK(res1)) {
4646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4647 }
4648 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent();
4652 wxPyEndAllowThreads(__tstate);
4653 if (PyErr_Occurred()) SWIG_fail;
4654 }
4655 resultobj = SWIG_From_long(static_cast< long >(result));
4656 return resultobj;
4657 fail:
4658 return NULL;
4659 }
4660
4661
4662 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4663 PyObject *resultobj = 0;
4664 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4665 long result;
4666 void *argp1 = 0 ;
4667 int res1 = 0 ;
4668 PyObject *swig_obj[1] ;
4669
4670 if (!args) SWIG_fail;
4671 swig_obj[0] = args;
4672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4673 if (!SWIG_IsOK(res1)) {
4674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4675 }
4676 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent();
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 resultobj = SWIG_From_long(static_cast< long >(result));
4684 return resultobj;
4685 fail:
4686 return NULL;
4687 }
4688
4689
4690 SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4691 PyObject *resultobj = 0;
4692 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4693 long result;
4694 void *argp1 = 0 ;
4695 int res1 = 0 ;
4696 PyObject *swig_obj[1] ;
4697
4698 if (!args) SWIG_fail;
4699 swig_obj[0] = args;
4700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4701 if (!SWIG_IsOK(res1)) {
4702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4703 }
4704 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent();
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 resultobj = SWIG_From_long(static_cast< long >(result));
4712 return resultobj;
4713 fail:
4714 return NULL;
4715 }
4716
4717
4718 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4719 PyObject *resultobj = 0;
4720 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4721 long result;
4722 void *argp1 = 0 ;
4723 int res1 = 0 ;
4724 PyObject *swig_obj[1] ;
4725
4726 if (!args) SWIG_fail;
4727 swig_obj[0] = args;
4728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4729 if (!SWIG_IsOK(res1)) {
4730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4731 }
4732 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 result = (long)((wxRichTextAttr const *)arg1)->GetFlags();
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = SWIG_From_long(static_cast< long >(result));
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 PyObject *resultobj = 0;
4748 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4749 int result;
4750 void *argp1 = 0 ;
4751 int res1 = 0 ;
4752 PyObject *swig_obj[1] ;
4753
4754 if (!args) SWIG_fail;
4755 swig_obj[0] = args;
4756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4757 if (!SWIG_IsOK(res1)) {
4758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4759 }
4760 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4761 {
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 result = (int)((wxRichTextAttr const *)arg1)->GetFontSize();
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_From_int(static_cast< int >(result));
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4777 int result;
4778 void *argp1 = 0 ;
4779 int res1 = 0 ;
4780 PyObject *swig_obj[1] ;
4781
4782 if (!args) SWIG_fail;
4783 swig_obj[0] = args;
4784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4787 }
4788 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle();
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = SWIG_From_int(static_cast< int >(result));
4796 return resultobj;
4797 fail:
4798 return NULL;
4799 }
4800
4801
4802 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4803 PyObject *resultobj = 0;
4804 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4805 int result;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 PyObject *swig_obj[1] ;
4809
4810 if (!args) SWIG_fail;
4811 swig_obj[0] = args;
4812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4815 }
4816 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight();
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 resultobj = SWIG_From_int(static_cast< int >(result));
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4831 PyObject *resultobj = 0;
4832 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4833 bool result;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 PyObject *swig_obj[1] ;
4837
4838 if (!args) SWIG_fail;
4839 swig_obj[0] = args;
4840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4841 if (!SWIG_IsOK(res1)) {
4842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4843 }
4844 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined();
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 {
4852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4853 }
4854 return resultobj;
4855 fail:
4856 return NULL;
4857 }
4858
4859
4860 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4861 PyObject *resultobj = 0;
4862 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4863 wxString *result = 0 ;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 PyObject *swig_obj[1] ;
4867
4868 if (!args) SWIG_fail;
4869 swig_obj[0] = args;
4870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4871 if (!SWIG_IsOK(res1)) {
4872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4873 }
4874 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 {
4878 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName();
4879 result = (wxString *) &_result_ref;
4880 }
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 {
4885 #if wxUSE_UNICODE
4886 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4887 #else
4888 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4889 #endif
4890 }
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4898 PyObject *resultobj = 0;
4899 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4900 wxString *result = 0 ;
4901 void *argp1 = 0 ;
4902 int res1 = 0 ;
4903 PyObject *swig_obj[1] ;
4904
4905 if (!args) SWIG_fail;
4906 swig_obj[0] = args;
4907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4908 if (!SWIG_IsOK(res1)) {
4909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4910 }
4911 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 {
4915 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName();
4916 result = (wxString *) &_result_ref;
4917 }
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 {
4922 #if wxUSE_UNICODE
4923 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4924 #else
4925 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4926 #endif
4927 }
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 PyObject *resultobj = 0;
4936 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4937 wxString *result = 0 ;
4938 void *argp1 = 0 ;
4939 int res1 = 0 ;
4940 PyObject *swig_obj[1] ;
4941
4942 if (!args) SWIG_fail;
4943 swig_obj[0] = args;
4944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4947 }
4948 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 {
4952 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName();
4953 result = (wxString *) &_result_ref;
4954 }
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 {
4959 #if wxUSE_UNICODE
4960 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4961 #else
4962 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4963 #endif
4964 }
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4974 int result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4984 }
4985 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter();
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_From_int(static_cast< int >(result));
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5000 PyObject *resultobj = 0;
5001 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5002 int result;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 PyObject *swig_obj[1] ;
5006
5007 if (!args) SWIG_fail;
5008 swig_obj[0] = args;
5009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5012 }
5013 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore();
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_From_int(static_cast< int >(result));
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5028 PyObject *resultobj = 0;
5029 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5030 int result;
5031 void *argp1 = 0 ;
5032 int res1 = 0 ;
5033 PyObject *swig_obj[1] ;
5034
5035 if (!args) SWIG_fail;
5036 swig_obj[0] = args;
5037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5038 if (!SWIG_IsOK(res1)) {
5039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5040 }
5041 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5042 {
5043 PyThreadState* __tstate = wxPyBeginAllowThreads();
5044 result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing();
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 resultobj = SWIG_From_int(static_cast< int >(result));
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5056 PyObject *resultobj = 0;
5057 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5058 int result;
5059 void *argp1 = 0 ;
5060 int res1 = 0 ;
5061 PyObject *swig_obj[1] ;
5062
5063 if (!args) SWIG_fail;
5064 swig_obj[0] = args;
5065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5066 if (!SWIG_IsOK(res1)) {
5067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5068 }
5069 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5070 {
5071 PyThreadState* __tstate = wxPyBeginAllowThreads();
5072 result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle();
5073 wxPyEndAllowThreads(__tstate);
5074 if (PyErr_Occurred()) SWIG_fail;
5075 }
5076 resultobj = SWIG_From_int(static_cast< int >(result));
5077 return resultobj;
5078 fail:
5079 return NULL;
5080 }
5081
5082
5083 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5084 PyObject *resultobj = 0;
5085 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5086 int result;
5087 void *argp1 = 0 ;
5088 int res1 = 0 ;
5089 PyObject *swig_obj[1] ;
5090
5091 if (!args) SWIG_fail;
5092 swig_obj[0] = args;
5093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5094 if (!SWIG_IsOK(res1)) {
5095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5096 }
5097 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5098 {
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber();
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 resultobj = SWIG_From_int(static_cast< int >(result));
5105 return resultobj;
5106 fail:
5107 return NULL;
5108 }
5109
5110
5111 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5112 PyObject *resultobj = 0;
5113 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5114 wxString *result = 0 ;
5115 void *argp1 = 0 ;
5116 int res1 = 0 ;
5117 PyObject *swig_obj[1] ;
5118
5119 if (!args) SWIG_fail;
5120 swig_obj[0] = args;
5121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5122 if (!SWIG_IsOK(res1)) {
5123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5124 }
5125 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 {
5129 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletText();
5130 result = (wxString *) &_result_ref;
5131 }
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 {
5136 #if wxUSE_UNICODE
5137 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5138 #else
5139 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5140 #endif
5141 }
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5149 PyObject *resultobj = 0;
5150 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5151 wxString *result = 0 ;
5152 void *argp1 = 0 ;
5153 int res1 = 0 ;
5154 PyObject *swig_obj[1] ;
5155
5156 if (!args) SWIG_fail;
5157 swig_obj[0] = args;
5158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5159 if (!SWIG_IsOK(res1)) {
5160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5161 }
5162 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 {
5166 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletFont();
5167 result = (wxString *) &_result_ref;
5168 }
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 {
5173 #if wxUSE_UNICODE
5174 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5175 #else
5176 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5177 #endif
5178 }
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5186 PyObject *resultobj = 0;
5187 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5188 bool result;
5189 void *argp1 = 0 ;
5190 int res1 = 0 ;
5191 PyObject *swig_obj[1] ;
5192
5193 if (!args) SWIG_fail;
5194 swig_obj[0] = args;
5195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5196 if (!SWIG_IsOK(res1)) {
5197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5198 }
5199 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour();
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 {
5207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5208 }
5209 return resultobj;
5210 fail:
5211 return NULL;
5212 }
5213
5214
5215 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5216 PyObject *resultobj = 0;
5217 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5218 bool result;
5219 void *argp1 = 0 ;
5220 int res1 = 0 ;
5221 PyObject *swig_obj[1] ;
5222
5223 if (!args) SWIG_fail;
5224 swig_obj[0] = args;
5225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5226 if (!SWIG_IsOK(res1)) {
5227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5228 }
5229 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour();
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 {
5237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5238 }
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5248 bool result;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5258 }
5259 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment();
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 {
5267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5268 }
5269 return resultobj;
5270 fail:
5271 return NULL;
5272 }
5273
5274
5275 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 PyObject *resultobj = 0;
5277 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5278 bool result;
5279 void *argp1 = 0 ;
5280 int res1 = 0 ;
5281 PyObject *swig_obj[1] ;
5282
5283 if (!args) SWIG_fail;
5284 swig_obj[0] = args;
5285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5288 }
5289 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 result = (bool)((wxRichTextAttr const *)arg1)->HasTabs();
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 {
5297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5298 }
5299 return resultobj;
5300 fail:
5301 return NULL;
5302 }
5303
5304
5305 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5306 PyObject *resultobj = 0;
5307 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5308 bool result;
5309 void *argp1 = 0 ;
5310 int res1 = 0 ;
5311 PyObject *swig_obj[1] ;
5312
5313 if (!args) SWIG_fail;
5314 swig_obj[0] = args;
5315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5316 if (!SWIG_IsOK(res1)) {
5317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5318 }
5319 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5320 {
5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
5322 result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent();
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 }
5326 {
5327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5328 }
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5336 PyObject *resultobj = 0;
5337 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5338 bool result;
5339 void *argp1 = 0 ;
5340 int res1 = 0 ;
5341 PyObject *swig_obj[1] ;
5342
5343 if (!args) SWIG_fail;
5344 swig_obj[0] = args;
5345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5346 if (!SWIG_IsOK(res1)) {
5347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5348 }
5349 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent();
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 {
5357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5358 }
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5366 PyObject *resultobj = 0;
5367 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5368 bool result;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 PyObject *swig_obj[1] ;
5372
5373 if (!args) SWIG_fail;
5374 swig_obj[0] = args;
5375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5376 if (!SWIG_IsOK(res1)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5378 }
5379 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5380 {
5381 PyThreadState* __tstate = wxPyBeginAllowThreads();
5382 result = (bool)((wxRichTextAttr const *)arg1)->HasWeight();
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 {
5387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5388 }
5389 return resultobj;
5390 fail:
5391 return NULL;
5392 }
5393
5394
5395 SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5396 PyObject *resultobj = 0;
5397 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5398 bool result;
5399 void *argp1 = 0 ;
5400 int res1 = 0 ;
5401 PyObject *swig_obj[1] ;
5402
5403 if (!args) SWIG_fail;
5404 swig_obj[0] = args;
5405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5406 if (!SWIG_IsOK(res1)) {
5407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5408 }
5409 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 result = (bool)((wxRichTextAttr const *)arg1)->HasSize();
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 {
5417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5418 }
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 PyObject *resultobj = 0;
5427 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5428 bool result;
5429 void *argp1 = 0 ;
5430 int res1 = 0 ;
5431 PyObject *swig_obj[1] ;
5432
5433 if (!args) SWIG_fail;
5434 swig_obj[0] = args;
5435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5436 if (!SWIG_IsOK(res1)) {
5437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5438 }
5439 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (bool)((wxRichTextAttr const *)arg1)->HasItalic();
5443 wxPyEndAllowThreads(__tstate);
5444 if (PyErr_Occurred()) SWIG_fail;
5445 }
5446 {
5447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5448 }
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5456 PyObject *resultobj = 0;
5457 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5458 bool result;
5459 void *argp1 = 0 ;
5460 int res1 = 0 ;
5461 PyObject *swig_obj[1] ;
5462
5463 if (!args) SWIG_fail;
5464 swig_obj[0] = args;
5465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5466 if (!SWIG_IsOK(res1)) {
5467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5468 }
5469 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined();
5473 wxPyEndAllowThreads(__tstate);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 }
5476 {
5477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5478 }
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5486 PyObject *resultobj = 0;
5487 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5488 bool result;
5489 void *argp1 = 0 ;
5490 int res1 = 0 ;
5491 PyObject *swig_obj[1] ;
5492
5493 if (!args) SWIG_fail;
5494 swig_obj[0] = args;
5495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5496 if (!SWIG_IsOK(res1)) {
5497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5498 }
5499 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName();
5503 wxPyEndAllowThreads(__tstate);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 {
5507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5508 }
5509 return resultobj;
5510 fail:
5511 return NULL;
5512 }
5513
5514
5515 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5516 PyObject *resultobj = 0;
5517 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5518 bool result;
5519 void *argp1 = 0 ;
5520 int res1 = 0 ;
5521 PyObject *swig_obj[1] ;
5522
5523 if (!args) SWIG_fail;
5524 swig_obj[0] = args;
5525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5526 if (!SWIG_IsOK(res1)) {
5527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5528 }
5529 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (bool)((wxRichTextAttr const *)arg1)->HasFont();
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 {
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 }
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5546 PyObject *resultobj = 0;
5547 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5548 bool result;
5549 void *argp1 = 0 ;
5550 int res1 = 0 ;
5551 PyObject *swig_obj[1] ;
5552
5553 if (!args) SWIG_fail;
5554 swig_obj[0] = args;
5555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5556 if (!SWIG_IsOK(res1)) {
5557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5558 }
5559 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5560 {
5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
5562 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter();
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 {
5567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5568 }
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5576 PyObject *resultobj = 0;
5577 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5578 bool result;
5579 void *argp1 = 0 ;
5580 int res1 = 0 ;
5581 PyObject *swig_obj[1] ;
5582
5583 if (!args) SWIG_fail;
5584 swig_obj[0] = args;
5585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5586 if (!SWIG_IsOK(res1)) {
5587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5588 }
5589 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore();
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 {
5597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5598 }
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5606 PyObject *resultobj = 0;
5607 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5608 bool result;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 PyObject *swig_obj[1] ;
5612
5613 if (!args) SWIG_fail;
5614 swig_obj[0] = args;
5615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5616 if (!SWIG_IsOK(res1)) {
5617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5618 }
5619 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5620 {
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing();
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 {
5627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5628 }
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5636 PyObject *resultobj = 0;
5637 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5638 bool result;
5639 void *argp1 = 0 ;
5640 int res1 = 0 ;
5641 PyObject *swig_obj[1] ;
5642
5643 if (!args) SWIG_fail;
5644 swig_obj[0] = args;
5645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5648 }
5649 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5650 {
5651 PyThreadState* __tstate = wxPyBeginAllowThreads();
5652 result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName();
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 {
5657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5658 }
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5666 PyObject *resultobj = 0;
5667 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5668 bool result;
5669 void *argp1 = 0 ;
5670 int res1 = 0 ;
5671 PyObject *swig_obj[1] ;
5672
5673 if (!args) SWIG_fail;
5674 swig_obj[0] = args;
5675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5676 if (!SWIG_IsOK(res1)) {
5677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5678 }
5679 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName();
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 {
5687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5688 }
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5696 PyObject *resultobj = 0;
5697 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5698 bool result;
5699 void *argp1 = 0 ;
5700 int res1 = 0 ;
5701 PyObject *swig_obj[1] ;
5702
5703 if (!args) SWIG_fail;
5704 swig_obj[0] = args;
5705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5708 }
5709 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle();
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 PyObject *resultobj = 0;
5727 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5728 bool result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 PyObject *swig_obj[1] ;
5732
5733 if (!args) SWIG_fail;
5734 swig_obj[0] = args;
5735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5738 }
5739 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber();
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 {
5747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5748 }
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5756 PyObject *resultobj = 0;
5757 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5758 bool result;
5759 void *argp1 = 0 ;
5760 int res1 = 0 ;
5761 PyObject *swig_obj[1] ;
5762
5763 if (!args) SWIG_fail;
5764 swig_obj[0] = args;
5765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5766 if (!SWIG_IsOK(res1)) {
5767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5768 }
5769 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5770 {
5771 PyThreadState* __tstate = wxPyBeginAllowThreads();
5772 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletText();
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 {
5777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5778 }
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj = 0;
5787 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5788 long arg2 ;
5789 bool result;
5790 void *argp1 = 0 ;
5791 int res1 = 0 ;
5792 long val2 ;
5793 int ecode2 = 0 ;
5794 PyObject * obj0 = 0 ;
5795 PyObject * obj1 = 0 ;
5796 char * kwnames[] = {
5797 (char *) "self",(char *) "flag", NULL
5798 };
5799
5800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
5801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5802 if (!SWIG_IsOK(res1)) {
5803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5804 }
5805 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5806 ecode2 = SWIG_AsVal_long(obj1, &val2);
5807 if (!SWIG_IsOK(ecode2)) {
5808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
5809 }
5810 arg2 = static_cast< long >(val2);
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2);
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 {
5818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5819 }
5820 return resultobj;
5821 fail:
5822 return NULL;
5823 }
5824
5825
5826 SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5827 PyObject *resultobj = 0;
5828 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5829 bool result;
5830 void *argp1 = 0 ;
5831 int res1 = 0 ;
5832 PyObject *swig_obj[1] ;
5833
5834 if (!args) SWIG_fail;
5835 swig_obj[0] = args;
5836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5837 if (!SWIG_IsOK(res1)) {
5838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5839 }
5840 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle();
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 {
5848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5849 }
5850 return resultobj;
5851 fail:
5852 return NULL;
5853 }
5854
5855
5856 SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5857 PyObject *resultobj = 0;
5858 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5859 bool result;
5860 void *argp1 = 0 ;
5861 int res1 = 0 ;
5862 PyObject *swig_obj[1] ;
5863
5864 if (!args) SWIG_fail;
5865 swig_obj[0] = args;
5866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5867 if (!SWIG_IsOK(res1)) {
5868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5869 }
5870 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle();
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 {
5878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5879 }
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5887 PyObject *resultobj = 0;
5888 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5889 bool result;
5890 void *argp1 = 0 ;
5891 int res1 = 0 ;
5892 PyObject *swig_obj[1] ;
5893
5894 if (!args) SWIG_fail;
5895 swig_obj[0] = args;
5896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5897 if (!SWIG_IsOK(res1)) {
5898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5899 }
5900 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 result = (bool)((wxRichTextAttr const *)arg1)->IsDefault();
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 {
5908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5909 }
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5917 PyObject *obj;
5918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5919 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj));
5920 return SWIG_Py_Void();
5921 }
5922
5923 SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 return SWIG_Python_InitShadowInstance(args);
5925 }
5926
5927 SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 wxWindow *arg1 = (wxWindow *) 0 ;
5930 int arg2 = (int) -1 ;
5931 wxString const &arg3_defvalue = wxPyEmptyString ;
5932 wxString *arg3 = (wxString *) &arg3_defvalue ;
5933 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5934 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5935 wxSize const &arg5_defvalue = wxDefaultSize ;
5936 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5937 long arg6 = (long) wxRE_MULTILINE ;
5938 wxRichTextCtrl *result = 0 ;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 int val2 ;
5942 int ecode2 = 0 ;
5943 bool temp3 = false ;
5944 wxPoint temp4 ;
5945 wxSize temp5 ;
5946 long val6 ;
5947 int ecode6 = 0 ;
5948 PyObject * obj0 = 0 ;
5949 PyObject * obj1 = 0 ;
5950 PyObject * obj2 = 0 ;
5951 PyObject * obj3 = 0 ;
5952 PyObject * obj4 = 0 ;
5953 PyObject * obj5 = 0 ;
5954 char * kwnames[] = {
5955 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
5956 };
5957
5958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
5959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
5962 }
5963 arg1 = reinterpret_cast< wxWindow * >(argp1);
5964 if (obj1) {
5965 ecode2 = SWIG_AsVal_int(obj1, &val2);
5966 if (!SWIG_IsOK(ecode2)) {
5967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'");
5968 }
5969 arg2 = static_cast< int >(val2);
5970 }
5971 if (obj2) {
5972 {
5973 arg3 = wxString_in_helper(obj2);
5974 if (arg3 == NULL) SWIG_fail;
5975 temp3 = true;
5976 }
5977 }
5978 if (obj3) {
5979 {
5980 arg4 = &temp4;
5981 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5982 }
5983 }
5984 if (obj4) {
5985 {
5986 arg5 = &temp5;
5987 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5988 }
5989 }
5990 if (obj5) {
5991 ecode6 = SWIG_AsVal_long(obj5, &val6);
5992 if (!SWIG_IsOK(ecode6)) {
5993 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'");
5994 }
5995 arg6 = static_cast< long >(val6);
5996 }
5997 {
5998 if (!wxPyCheckForApp()) SWIG_fail;
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
6001 wxPyEndAllowThreads(__tstate);
6002 if (PyErr_Occurred()) SWIG_fail;
6003 }
6004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 );
6005 {
6006 if (temp3)
6007 delete arg3;
6008 }
6009 return resultobj;
6010 fail:
6011 {
6012 if (temp3)
6013 delete arg3;
6014 }
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxRichTextCtrl *result = 0 ;
6022
6023 if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail;
6024 {
6025 if (!wxPyCheckForApp()) SWIG_fail;
6026 PyThreadState* __tstate = wxPyBeginAllowThreads();
6027 result = (wxRichTextCtrl *)new wxRichTextCtrl();
6028 wxPyEndAllowThreads(__tstate);
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 );
6032 return resultobj;
6033 fail:
6034 return NULL;
6035 }
6036
6037
6038 SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6039 PyObject *resultobj = 0;
6040 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6041 wxWindow *arg2 = (wxWindow *) 0 ;
6042 int arg3 = (int) -1 ;
6043 wxString const &arg4_defvalue = wxPyEmptyString ;
6044 wxString *arg4 = (wxString *) &arg4_defvalue ;
6045 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6046 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6047 wxSize const &arg6_defvalue = wxDefaultSize ;
6048 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6049 long arg7 = (long) wxRE_MULTILINE ;
6050 bool result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 void *argp2 = 0 ;
6054 int res2 = 0 ;
6055 int val3 ;
6056 int ecode3 = 0 ;
6057 bool temp4 = false ;
6058 wxPoint temp5 ;
6059 wxSize temp6 ;
6060 long val7 ;
6061 int ecode7 = 0 ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 PyObject * obj2 = 0 ;
6065 PyObject * obj3 = 0 ;
6066 PyObject * obj4 = 0 ;
6067 PyObject * obj5 = 0 ;
6068 PyObject * obj6 = 0 ;
6069 char * kwnames[] = {
6070 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
6071 };
6072
6073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
6074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6075 if (!SWIG_IsOK(res1)) {
6076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6077 }
6078 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6079 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6080 if (!SWIG_IsOK(res2)) {
6081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6082 }
6083 arg2 = reinterpret_cast< wxWindow * >(argp2);
6084 if (obj2) {
6085 ecode3 = SWIG_AsVal_int(obj2, &val3);
6086 if (!SWIG_IsOK(ecode3)) {
6087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
6088 }
6089 arg3 = static_cast< int >(val3);
6090 }
6091 if (obj3) {
6092 {
6093 arg4 = wxString_in_helper(obj3);
6094 if (arg4 == NULL) SWIG_fail;
6095 temp4 = true;
6096 }
6097 }
6098 if (obj4) {
6099 {
6100 arg5 = &temp5;
6101 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6102 }
6103 }
6104 if (obj5) {
6105 {
6106 arg6 = &temp6;
6107 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6108 }
6109 }
6110 if (obj6) {
6111 ecode7 = SWIG_AsVal_long(obj6, &val7);
6112 if (!SWIG_IsOK(ecode7)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
6114 }
6115 arg7 = static_cast< long >(val7);
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 {
6124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6125 }
6126 {
6127 if (temp4)
6128 delete arg4;
6129 }
6130 return resultobj;
6131 fail:
6132 {
6133 if (temp4)
6134 delete arg4;
6135 }
6136 return NULL;
6137 }
6138
6139
6140 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6141 PyObject *resultobj = 0;
6142 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6143 wxString result;
6144 void *argp1 = 0 ;
6145 int res1 = 0 ;
6146 PyObject *swig_obj[1] ;
6147
6148 if (!args) SWIG_fail;
6149 swig_obj[0] = args;
6150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6151 if (!SWIG_IsOK(res1)) {
6152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6153 }
6154 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 result = ((wxRichTextCtrl const *)arg1)->GetValue();
6158 wxPyEndAllowThreads(__tstate);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 {
6162 #if wxUSE_UNICODE
6163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6164 #else
6165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6166 #endif
6167 }
6168 return resultobj;
6169 fail:
6170 return NULL;
6171 }
6172
6173
6174 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6175 PyObject *resultobj = 0;
6176 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6177 wxString *arg2 = 0 ;
6178 void *argp1 = 0 ;
6179 int res1 = 0 ;
6180 bool temp2 = false ;
6181 PyObject * obj0 = 0 ;
6182 PyObject * obj1 = 0 ;
6183 char * kwnames[] = {
6184 (char *) "self",(char *) "value", NULL
6185 };
6186
6187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
6188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6189 if (!SWIG_IsOK(res1)) {
6190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6191 }
6192 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6193 {
6194 arg2 = wxString_in_helper(obj1);
6195 if (arg2 == NULL) SWIG_fail;
6196 temp2 = true;
6197 }
6198 {
6199 PyThreadState* __tstate = wxPyBeginAllowThreads();
6200 (arg1)->SetValue((wxString const &)*arg2);
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_Py_Void();
6205 {
6206 if (temp2)
6207 delete arg2;
6208 }
6209 return resultobj;
6210 fail:
6211 {
6212 if (temp2)
6213 delete arg2;
6214 }
6215 return NULL;
6216 }
6217
6218
6219 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj = 0;
6221 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6222 long arg2 ;
6223 long arg3 ;
6224 wxString result;
6225 void *argp1 = 0 ;
6226 int res1 = 0 ;
6227 long val2 ;
6228 int ecode2 = 0 ;
6229 long val3 ;
6230 int ecode3 = 0 ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 PyObject * obj2 = 0 ;
6234 char * kwnames[] = {
6235 (char *) "self",(char *) "from",(char *) "to", NULL
6236 };
6237
6238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6240 if (!SWIG_IsOK(res1)) {
6241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6242 }
6243 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6244 ecode2 = SWIG_AsVal_long(obj1, &val2);
6245 if (!SWIG_IsOK(ecode2)) {
6246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
6247 }
6248 arg2 = static_cast< long >(val2);
6249 ecode3 = SWIG_AsVal_long(obj2, &val3);
6250 if (!SWIG_IsOK(ecode3)) {
6251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
6252 }
6253 arg3 = static_cast< long >(val3);
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 {
6261 #if wxUSE_UNICODE
6262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6263 #else
6264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6265 #endif
6266 }
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6276 long arg2 ;
6277 int result;
6278 void *argp1 = 0 ;
6279 int res1 = 0 ;
6280 long val2 ;
6281 int ecode2 = 0 ;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char * kwnames[] = {
6285 (char *) "self",(char *) "lineNo", NULL
6286 };
6287
6288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
6289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6290 if (!SWIG_IsOK(res1)) {
6291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6292 }
6293 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6294 ecode2 = SWIG_AsVal_long(obj1, &val2);
6295 if (!SWIG_IsOK(ecode2)) {
6296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
6297 }
6298 arg2 = static_cast< long >(val2);
6299 {
6300 PyThreadState* __tstate = wxPyBeginAllowThreads();
6301 result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2);
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 resultobj = SWIG_From_int(static_cast< int >(result));
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj = 0;
6314 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6315 long arg2 ;
6316 wxString result;
6317 void *argp1 = 0 ;
6318 int res1 = 0 ;
6319 long val2 ;
6320 int ecode2 = 0 ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "self",(char *) "lineNo", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6331 }
6332 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6333 ecode2 = SWIG_AsVal_long(obj1, &val2);
6334 if (!SWIG_IsOK(ecode2)) {
6335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
6336 }
6337 arg2 = static_cast< long >(val2);
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2);
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 #if wxUSE_UNICODE
6346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6347 #else
6348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6349 #endif
6350 }
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6358 PyObject *resultobj = 0;
6359 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6360 int result;
6361 void *argp1 = 0 ;
6362 int res1 = 0 ;
6363 PyObject *swig_obj[1] ;
6364
6365 if (!args) SWIG_fail;
6366 swig_obj[0] = args;
6367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6368 if (!SWIG_IsOK(res1)) {
6369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6370 }
6371 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines();
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 resultobj = SWIG_From_int(static_cast< int >(result));
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6386 PyObject *resultobj = 0;
6387 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6388 bool result;
6389 void *argp1 = 0 ;
6390 int res1 = 0 ;
6391 PyObject *swig_obj[1] ;
6392
6393 if (!args) SWIG_fail;
6394 swig_obj[0] = args;
6395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6398 }
6399 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 result = (bool)((wxRichTextCtrl const *)arg1)->IsModified();
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 {
6407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6408 }
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6416 PyObject *resultobj = 0;
6417 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6418 bool result;
6419 void *argp1 = 0 ;
6420 int res1 = 0 ;
6421 PyObject *swig_obj[1] ;
6422
6423 if (!args) SWIG_fail;
6424 swig_obj[0] = args;
6425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6426 if (!SWIG_IsOK(res1)) {
6427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6428 }
6429 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable();
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 {
6437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6438 }
6439 return resultobj;
6440 fail:
6441 return NULL;
6442 }
6443
6444
6445 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6446 PyObject *resultobj = 0;
6447 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6448 bool result;
6449 void *argp1 = 0 ;
6450 int res1 = 0 ;
6451 PyObject *swig_obj[1] ;
6452
6453 if (!args) SWIG_fail;
6454 swig_obj[0] = args;
6455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6456 if (!SWIG_IsOK(res1)) {
6457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6458 }
6459 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine();
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 {
6467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6468 }
6469 return resultobj;
6470 fail:
6471 return NULL;
6472 }
6473
6474
6475 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6476 PyObject *resultobj = 0;
6477 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6478 bool result;
6479 void *argp1 = 0 ;
6480 int res1 = 0 ;
6481 PyObject *swig_obj[1] ;
6482
6483 if (!args) SWIG_fail;
6484 swig_obj[0] = args;
6485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6486 if (!SWIG_IsOK(res1)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6488 }
6489 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine();
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 {
6497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6498 }
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6506 PyObject *resultobj = 0;
6507 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6508 long *arg2 = (long *) 0 ;
6509 long *arg3 = (long *) 0 ;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 long temp2 ;
6513 int res2 = SWIG_TMPOBJ ;
6514 long temp3 ;
6515 int res3 = SWIG_TMPOBJ ;
6516 PyObject *swig_obj[1] ;
6517
6518 arg2 = &temp2;
6519 arg3 = &temp3;
6520 if (!args) SWIG_fail;
6521 swig_obj[0] = args;
6522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6523 if (!SWIG_IsOK(res1)) {
6524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6525 }
6526 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6527 {
6528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6529 ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3);
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 resultobj = SWIG_Py_Void();
6534 if (SWIG_IsTmpObj(res2)) {
6535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6536 } else {
6537 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6539 }
6540 if (SWIG_IsTmpObj(res3)) {
6541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6542 } else {
6543 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6545 }
6546 return resultobj;
6547 fail:
6548 return NULL;
6549 }
6550
6551
6552 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6553 PyObject *resultobj = 0;
6554 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6555 wxString result;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 PyObject *swig_obj[1] ;
6559
6560 if (!args) SWIG_fail;
6561 swig_obj[0] = args;
6562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6563 if (!SWIG_IsOK(res1)) {
6564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6565 }
6566 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6567 {
6568 PyThreadState* __tstate = wxPyBeginAllowThreads();
6569 result = ((wxRichTextCtrl const *)arg1)->GetStringSelection();
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 {
6574 #if wxUSE_UNICODE
6575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6576 #else
6577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6578 #endif
6579 }
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6587 PyObject *resultobj = 0;
6588 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6589 wxString result;
6590 void *argp1 = 0 ;
6591 int res1 = 0 ;
6592 PyObject *swig_obj[1] ;
6593
6594 if (!args) SWIG_fail;
6595 swig_obj[0] = args;
6596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6597 if (!SWIG_IsOK(res1)) {
6598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6599 }
6600 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 result = ((wxRichTextCtrl const *)arg1)->GetFilename();
6604 wxPyEndAllowThreads(__tstate);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 {
6608 #if wxUSE_UNICODE
6609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6610 #else
6611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6612 #endif
6613 }
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj = 0;
6622 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6623 wxString *arg2 = 0 ;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 bool temp2 = false ;
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char * kwnames[] = {
6630 (char *) "self",(char *) "filename", NULL
6631 };
6632
6633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail;
6634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6635 if (!SWIG_IsOK(res1)) {
6636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6637 }
6638 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6639 {
6640 arg2 = wxString_in_helper(obj1);
6641 if (arg2 == NULL) SWIG_fail;
6642 temp2 = true;
6643 }
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 (arg1)->SetFilename((wxString const &)*arg2);
6647 wxPyEndAllowThreads(__tstate);
6648 if (PyErr_Occurred()) SWIG_fail;
6649 }
6650 resultobj = SWIG_Py_Void();
6651 {
6652 if (temp2)
6653 delete arg2;
6654 }
6655 return resultobj;
6656 fail:
6657 {
6658 if (temp2)
6659 delete arg2;
6660 }
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6668 long arg2 ;
6669 void *argp1 = 0 ;
6670 int res1 = 0 ;
6671 long val2 ;
6672 int ecode2 = 0 ;
6673 PyObject * obj0 = 0 ;
6674 PyObject * obj1 = 0 ;
6675 char * kwnames[] = {
6676 (char *) "self",(char *) "threshold", NULL
6677 };
6678
6679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
6680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6681 if (!SWIG_IsOK(res1)) {
6682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6683 }
6684 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6685 ecode2 = SWIG_AsVal_long(obj1, &val2);
6686 if (!SWIG_IsOK(ecode2)) {
6687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'");
6688 }
6689 arg2 = static_cast< long >(val2);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 (arg1)->SetDelayedLayoutThreshold(arg2);
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = SWIG_Py_Void();
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6704 PyObject *resultobj = 0;
6705 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6706 long result;
6707 void *argp1 = 0 ;
6708 int res1 = 0 ;
6709 PyObject *swig_obj[1] ;
6710
6711 if (!args) SWIG_fail;
6712 swig_obj[0] = args;
6713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6714 if (!SWIG_IsOK(res1)) {
6715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6716 }
6717 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6718 {
6719 PyThreadState* __tstate = wxPyBeginAllowThreads();
6720 result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold();
6721 wxPyEndAllowThreads(__tstate);
6722 if (PyErr_Occurred()) SWIG_fail;
6723 }
6724 resultobj = SWIG_From_long(static_cast< long >(result));
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6732 PyObject *resultobj = 0;
6733 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6734 void *argp1 = 0 ;
6735 int res1 = 0 ;
6736 PyObject *swig_obj[1] ;
6737
6738 if (!args) SWIG_fail;
6739 swig_obj[0] = args;
6740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6741 if (!SWIG_IsOK(res1)) {
6742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6743 }
6744 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6745 {
6746 PyThreadState* __tstate = wxPyBeginAllowThreads();
6747 (arg1)->Clear();
6748 wxPyEndAllowThreads(__tstate);
6749 if (PyErr_Occurred()) SWIG_fail;
6750 }
6751 resultobj = SWIG_Py_Void();
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj = 0;
6760 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6761 long arg2 ;
6762 long arg3 ;
6763 wxString *arg4 = 0 ;
6764 void *argp1 = 0 ;
6765 int res1 = 0 ;
6766 long val2 ;
6767 int ecode2 = 0 ;
6768 long val3 ;
6769 int ecode3 = 0 ;
6770 bool temp4 = false ;
6771 PyObject * obj0 = 0 ;
6772 PyObject * obj1 = 0 ;
6773 PyObject * obj2 = 0 ;
6774 PyObject * obj3 = 0 ;
6775 char * kwnames[] = {
6776 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6777 };
6778
6779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6781 if (!SWIG_IsOK(res1)) {
6782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6783 }
6784 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6785 ecode2 = SWIG_AsVal_long(obj1, &val2);
6786 if (!SWIG_IsOK(ecode2)) {
6787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
6788 }
6789 arg2 = static_cast< long >(val2);
6790 ecode3 = SWIG_AsVal_long(obj2, &val3);
6791 if (!SWIG_IsOK(ecode3)) {
6792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
6793 }
6794 arg3 = static_cast< long >(val3);
6795 {
6796 arg4 = wxString_in_helper(obj3);
6797 if (arg4 == NULL) SWIG_fail;
6798 temp4 = true;
6799 }
6800 {
6801 PyThreadState* __tstate = wxPyBeginAllowThreads();
6802 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6803 wxPyEndAllowThreads(__tstate);
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 resultobj = SWIG_Py_Void();
6807 {
6808 if (temp4)
6809 delete arg4;
6810 }
6811 return resultobj;
6812 fail:
6813 {
6814 if (temp4)
6815 delete arg4;
6816 }
6817 return NULL;
6818 }
6819
6820
6821 SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj = 0;
6823 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6824 long arg2 ;
6825 long arg3 ;
6826 void *argp1 = 0 ;
6827 int res1 = 0 ;
6828 long val2 ;
6829 int ecode2 = 0 ;
6830 long val3 ;
6831 int ecode3 = 0 ;
6832 PyObject * obj0 = 0 ;
6833 PyObject * obj1 = 0 ;
6834 PyObject * obj2 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "self",(char *) "from",(char *) "to", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6843 }
6844 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6845 ecode2 = SWIG_AsVal_long(obj1, &val2);
6846 if (!SWIG_IsOK(ecode2)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
6848 }
6849 arg2 = static_cast< long >(val2);
6850 ecode3 = SWIG_AsVal_long(obj2, &val3);
6851 if (!SWIG_IsOK(ecode3)) {
6852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
6853 }
6854 arg3 = static_cast< long >(val3);
6855 {
6856 PyThreadState* __tstate = wxPyBeginAllowThreads();
6857 (arg1)->Remove(arg2,arg3);
6858 wxPyEndAllowThreads(__tstate);
6859 if (PyErr_Occurred()) SWIG_fail;
6860 }
6861 resultobj = SWIG_Py_Void();
6862 return resultobj;
6863 fail:
6864 return NULL;
6865 }
6866
6867
6868 SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6869 PyObject *resultobj = 0;
6870 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6871 wxString *arg2 = 0 ;
6872 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6873 bool result;
6874 void *argp1 = 0 ;
6875 int res1 = 0 ;
6876 bool temp2 = false ;
6877 int val3 ;
6878 int ecode3 = 0 ;
6879 PyObject * obj0 = 0 ;
6880 PyObject * obj1 = 0 ;
6881 PyObject * obj2 = 0 ;
6882 char * kwnames[] = {
6883 (char *) "self",(char *) "file",(char *) "type", NULL
6884 };
6885
6886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6888 if (!SWIG_IsOK(res1)) {
6889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6890 }
6891 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6892 {
6893 arg2 = wxString_in_helper(obj1);
6894 if (arg2 == NULL) SWIG_fail;
6895 temp2 = true;
6896 }
6897 if (obj2) {
6898 ecode3 = SWIG_AsVal_int(obj2, &val3);
6899 if (!SWIG_IsOK(ecode3)) {
6900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
6901 }
6902 arg3 = static_cast< int >(val3);
6903 }
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6907 wxPyEndAllowThreads(__tstate);
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 {
6911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6912 }
6913 {
6914 if (temp2)
6915 delete arg2;
6916 }
6917 return resultobj;
6918 fail:
6919 {
6920 if (temp2)
6921 delete arg2;
6922 }
6923 return NULL;
6924 }
6925
6926
6927 SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6928 PyObject *resultobj = 0;
6929 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6930 wxString const &arg2_defvalue = wxPyEmptyString ;
6931 wxString *arg2 = (wxString *) &arg2_defvalue ;
6932 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6933 bool result;
6934 void *argp1 = 0 ;
6935 int res1 = 0 ;
6936 bool temp2 = false ;
6937 int val3 ;
6938 int ecode3 = 0 ;
6939 PyObject * obj0 = 0 ;
6940 PyObject * obj1 = 0 ;
6941 PyObject * obj2 = 0 ;
6942 char * kwnames[] = {
6943 (char *) "self",(char *) "file",(char *) "type", NULL
6944 };
6945
6946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6950 }
6951 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6952 if (obj1) {
6953 {
6954 arg2 = wxString_in_helper(obj1);
6955 if (arg2 == NULL) SWIG_fail;
6956 temp2 = true;
6957 }
6958 }
6959 if (obj2) {
6960 ecode3 = SWIG_AsVal_int(obj2, &val3);
6961 if (!SWIG_IsOK(ecode3)) {
6962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
6963 }
6964 arg3 = static_cast< int >(val3);
6965 }
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
6969 wxPyEndAllowThreads(__tstate);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 {
6973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6974 }
6975 {
6976 if (temp2)
6977 delete arg2;
6978 }
6979 return resultobj;
6980 fail:
6981 {
6982 if (temp2)
6983 delete arg2;
6984 }
6985 return NULL;
6986 }
6987
6988
6989 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj = 0;
6991 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6992 int arg2 ;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 int val2 ;
6996 int ecode2 = 0 ;
6997 PyObject * obj0 = 0 ;
6998 PyObject * obj1 = 0 ;
6999 char * kwnames[] = {
7000 (char *) "self",(char *) "flags", NULL
7001 };
7002
7003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetHandlerFlags",kwnames,&obj0,&obj1)) SWIG_fail;
7004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7005 if (!SWIG_IsOK(res1)) {
7006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7007 }
7008 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7009 ecode2 = SWIG_AsVal_int(obj1, &val2);
7010 if (!SWIG_IsOK(ecode2)) {
7011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "2"" of type '" "int""'");
7012 }
7013 arg2 = static_cast< int >(val2);
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 (arg1)->SetHandlerFlags(arg2);
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = SWIG_Py_Void();
7021 return resultobj;
7022 fail:
7023 return NULL;
7024 }
7025
7026
7027 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7028 PyObject *resultobj = 0;
7029 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7030 int result;
7031 void *argp1 = 0 ;
7032 int res1 = 0 ;
7033 PyObject *swig_obj[1] ;
7034
7035 if (!args) SWIG_fail;
7036 swig_obj[0] = args;
7037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7038 if (!SWIG_IsOK(res1)) {
7039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7040 }
7041 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 result = (int)((wxRichTextCtrl const *)arg1)->GetHandlerFlags();
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_From_int(static_cast< int >(result));
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7058 void *argp1 = 0 ;
7059 int res1 = 0 ;
7060 PyObject *swig_obj[1] ;
7061
7062 if (!args) SWIG_fail;
7063 swig_obj[0] = args;
7064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7065 if (!SWIG_IsOK(res1)) {
7066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7067 }
7068 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 (arg1)->MarkDirty();
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_Py_Void();
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7083 PyObject *resultobj = 0;
7084 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7085 void *argp1 = 0 ;
7086 int res1 = 0 ;
7087 PyObject *swig_obj[1] ;
7088
7089 if (!args) SWIG_fail;
7090 swig_obj[0] = args;
7091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7092 if (!SWIG_IsOK(res1)) {
7093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7094 }
7095 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7096 {
7097 PyThreadState* __tstate = wxPyBeginAllowThreads();
7098 (arg1)->DiscardEdits();
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 resultobj = SWIG_Py_Void();
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj = 0;
7111 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7112 unsigned long arg2 ;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 unsigned long val2 ;
7116 int ecode2 = 0 ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char * kwnames[] = {
7120 (char *) "self",(char *) "len", NULL
7121 };
7122
7123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7127 }
7128 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7129 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
7130 if (!SWIG_IsOK(ecode2)) {
7131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
7132 }
7133 arg2 = static_cast< unsigned long >(val2);
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 (arg1)->SetMaxLength(arg2);
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_Py_Void();
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj = 0;
7149 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7150 wxString *arg2 = 0 ;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 bool temp2 = false ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 char * kwnames[] = {
7157 (char *) "self",(char *) "text", NULL
7158 };
7159
7160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
7161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7164 }
7165 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7166 {
7167 arg2 = wxString_in_helper(obj1);
7168 if (arg2 == NULL) SWIG_fail;
7169 temp2 = true;
7170 }
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 (arg1)->WriteText((wxString const &)*arg2);
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_Py_Void();
7178 {
7179 if (temp2)
7180 delete arg2;
7181 }
7182 return resultobj;
7183 fail:
7184 {
7185 if (temp2)
7186 delete arg2;
7187 }
7188 return NULL;
7189 }
7190
7191
7192 SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj = 0;
7194 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7195 wxString *arg2 = 0 ;
7196 void *argp1 = 0 ;
7197 int res1 = 0 ;
7198 bool temp2 = false ;
7199 PyObject * obj0 = 0 ;
7200 PyObject * obj1 = 0 ;
7201 char * kwnames[] = {
7202 (char *) "self",(char *) "text", NULL
7203 };
7204
7205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
7206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7209 }
7210 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7211 {
7212 arg2 = wxString_in_helper(obj1);
7213 if (arg2 == NULL) SWIG_fail;
7214 temp2 = true;
7215 }
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 (arg1)->AppendText((wxString const &)*arg2);
7219 wxPyEndAllowThreads(__tstate);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 resultobj = SWIG_Py_Void();
7223 {
7224 if (temp2)
7225 delete arg2;
7226 }
7227 return resultobj;
7228 fail:
7229 {
7230 if (temp2)
7231 delete arg2;
7232 }
7233 return NULL;
7234 }
7235
7236
7237 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7238 PyObject *resultobj = 0;
7239 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7240 wxRichTextRange *arg2 = 0 ;
7241 wxRichTextAttr *arg3 = 0 ;
7242 bool result;
7243 void *argp1 = 0 ;
7244 int res1 = 0 ;
7245 wxRichTextRange temp2 ;
7246 void *argp3 = 0 ;
7247 int res3 = 0 ;
7248 PyObject * obj0 = 0 ;
7249 PyObject * obj1 = 0 ;
7250 PyObject * obj2 = 0 ;
7251 char * kwnames[] = {
7252 (char *) "self",(char *) "range",(char *) "style", NULL
7253 };
7254
7255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7259 }
7260 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7261 {
7262 arg2 = &temp2;
7263 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7264 }
7265 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7266 if (!SWIG_IsOK(res3)) {
7267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7268 }
7269 if (!argp3) {
7270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7271 }
7272 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7273 {
7274 PyThreadState* __tstate = wxPyBeginAllowThreads();
7275 result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 {
7280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7281 }
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj = 0;
7290 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7291 wxRichTextRange *arg2 = 0 ;
7292 wxRichTextAttr *arg3 = 0 ;
7293 int arg4 = (int) wxRICHTEXT_SETSTYLE_WITH_UNDO ;
7294 bool result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 wxRichTextRange temp2 ;
7298 void *argp3 = 0 ;
7299 int res3 = 0 ;
7300 int val4 ;
7301 int ecode4 = 0 ;
7302 PyObject * obj0 = 0 ;
7303 PyObject * obj1 = 0 ;
7304 PyObject * obj2 = 0 ;
7305 PyObject * obj3 = 0 ;
7306 char * kwnames[] = {
7307 (char *) "self",(char *) "range",(char *) "style",(char *) "flags", NULL
7308 };
7309
7310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:RichTextCtrl_SetStyleEx",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7312 if (!SWIG_IsOK(res1)) {
7313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7314 }
7315 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7316 {
7317 arg2 = &temp2;
7318 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7319 }
7320 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7321 if (!SWIG_IsOK(res3)) {
7322 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7323 }
7324 if (!argp3) {
7325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7326 }
7327 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7328 if (obj3) {
7329 ecode4 = SWIG_AsVal_int(obj3, &val4);
7330 if (!SWIG_IsOK(ecode4)) {
7331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "4"" of type '" "int""'");
7332 }
7333 arg4 = static_cast< int >(val4);
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 result = (bool)(arg1)->SetStyleEx((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3,arg4);
7338 wxPyEndAllowThreads(__tstate);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 {
7342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7343 }
7344 return resultobj;
7345 fail:
7346 return NULL;
7347 }
7348
7349
7350 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7351 PyObject *resultobj = 0;
7352 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7353 long arg2 ;
7354 wxRichTextAttr *arg3 = 0 ;
7355 bool result;
7356 void *argp1 = 0 ;
7357 int res1 = 0 ;
7358 long val2 ;
7359 int ecode2 = 0 ;
7360 void *argp3 = 0 ;
7361 int res3 = 0 ;
7362 PyObject * obj0 = 0 ;
7363 PyObject * obj1 = 0 ;
7364 PyObject * obj2 = 0 ;
7365 char * kwnames[] = {
7366 (char *) "self",(char *) "position",(char *) "style", NULL
7367 };
7368
7369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7371 if (!SWIG_IsOK(res1)) {
7372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7373 }
7374 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7375 ecode2 = SWIG_AsVal_long(obj1, &val2);
7376 if (!SWIG_IsOK(ecode2)) {
7377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
7378 }
7379 arg2 = static_cast< long >(val2);
7380 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7381 if (!SWIG_IsOK(res3)) {
7382 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7383 }
7384 if (!argp3) {
7385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7386 }
7387 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7388 {
7389 PyThreadState* __tstate = wxPyBeginAllowThreads();
7390 result = (bool)(arg1)->GetStyle(arg2,*arg3);
7391 wxPyEndAllowThreads(__tstate);
7392 if (PyErr_Occurred()) SWIG_fail;
7393 }
7394 {
7395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7396 }
7397 return resultobj;
7398 fail:
7399 return NULL;
7400 }
7401
7402
7403 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetUncombinedStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7404 PyObject *resultobj = 0;
7405 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7406 long arg2 ;
7407 wxRichTextAttr *arg3 = 0 ;
7408 bool result;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 long val2 ;
7412 int ecode2 = 0 ;
7413 void *argp3 = 0 ;
7414 int res3 = 0 ;
7415 PyObject * obj0 = 0 ;
7416 PyObject * obj1 = 0 ;
7417 PyObject * obj2 = 0 ;
7418 char * kwnames[] = {
7419 (char *) "self",(char *) "position",(char *) "style", NULL
7420 };
7421
7422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetUncombinedStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7424 if (!SWIG_IsOK(res1)) {
7425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7426 }
7427 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7428 ecode2 = SWIG_AsVal_long(obj1, &val2);
7429 if (!SWIG_IsOK(ecode2)) {
7430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "2"" of type '" "long""'");
7431 }
7432 arg2 = static_cast< long >(val2);
7433 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7434 if (!SWIG_IsOK(res3)) {
7435 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7436 }
7437 if (!argp3) {
7438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7439 }
7440 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7441 {
7442 PyThreadState* __tstate = wxPyBeginAllowThreads();
7443 result = (bool)(arg1)->GetUncombinedStyle(arg2,*arg3);
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 {
7448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7449 }
7450 return resultobj;
7451 fail:
7452 return NULL;
7453 }
7454
7455
7456 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7457 PyObject *resultobj = 0;
7458 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7459 wxRichTextAttr *arg2 = 0 ;
7460 bool result;
7461 void *argp1 = 0 ;
7462 int res1 = 0 ;
7463 void *argp2 = 0 ;
7464 int res2 = 0 ;
7465 PyObject * obj0 = 0 ;
7466 PyObject * obj1 = 0 ;
7467 char * kwnames[] = {
7468 (char *) "self",(char *) "style", NULL
7469 };
7470
7471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
7472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7475 }
7476 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7478 if (!SWIG_IsOK(res2)) {
7479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7480 }
7481 if (!argp2) {
7482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7483 }
7484 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
7485 {
7486 PyThreadState* __tstate = wxPyBeginAllowThreads();
7487 result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2);
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 {
7492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7493 }
7494 return resultobj;
7495 fail:
7496 return NULL;
7497 }
7498
7499
7500 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7501 PyObject *resultobj = 0;
7502 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7503 wxRichTextAttr result;
7504 void *argp1 = 0 ;
7505 int res1 = 0 ;
7506 PyObject *swig_obj[1] ;
7507
7508 if (!args) SWIG_fail;
7509 swig_obj[0] = args;
7510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7511 if (!SWIG_IsOK(res1)) {
7512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7513 }
7514 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx();
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 );
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj = 0;
7530 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7531 long arg2 ;
7532 long arg3 ;
7533 long result;
7534 void *argp1 = 0 ;
7535 int res1 = 0 ;
7536 long val2 ;
7537 int ecode2 = 0 ;
7538 long val3 ;
7539 int ecode3 = 0 ;
7540 PyObject * obj0 = 0 ;
7541 PyObject * obj1 = 0 ;
7542 PyObject * obj2 = 0 ;
7543 char * kwnames[] = {
7544 (char *) "self",(char *) "x",(char *) "y", NULL
7545 };
7546
7547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7551 }
7552 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7553 ecode2 = SWIG_AsVal_long(obj1, &val2);
7554 if (!SWIG_IsOK(ecode2)) {
7555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
7556 }
7557 arg2 = static_cast< long >(val2);
7558 ecode3 = SWIG_AsVal_long(obj2, &val3);
7559 if (!SWIG_IsOK(ecode3)) {
7560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
7561 }
7562 arg3 = static_cast< long >(val3);
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 resultobj = SWIG_From_long(static_cast< long >(result));
7570 return resultobj;
7571 fail:
7572 return NULL;
7573 }
7574
7575
7576 SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj = 0;
7578 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7579 long arg2 ;
7580 long *arg3 = (long *) 0 ;
7581 long *arg4 = (long *) 0 ;
7582 void *argp1 = 0 ;
7583 int res1 = 0 ;
7584 long val2 ;
7585 int ecode2 = 0 ;
7586 long temp3 ;
7587 int res3 = SWIG_TMPOBJ ;
7588 long temp4 ;
7589 int res4 = SWIG_TMPOBJ ;
7590 PyObject * obj0 = 0 ;
7591 PyObject * obj1 = 0 ;
7592 char * kwnames[] = {
7593 (char *) "self",(char *) "pos", NULL
7594 };
7595
7596 arg3 = &temp3;
7597 arg4 = &temp4;
7598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
7599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7600 if (!SWIG_IsOK(res1)) {
7601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7602 }
7603 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7604 ecode2 = SWIG_AsVal_long(obj1, &val2);
7605 if (!SWIG_IsOK(ecode2)) {
7606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
7607 }
7608 arg2 = static_cast< long >(val2);
7609 {
7610 PyThreadState* __tstate = wxPyBeginAllowThreads();
7611 ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_Py_Void();
7616 if (SWIG_IsTmpObj(res3)) {
7617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7618 } else {
7619 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7621 }
7622 if (SWIG_IsTmpObj(res4)) {
7623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
7624 } else {
7625 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
7627 }
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj = 0;
7636 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7637 long arg2 ;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 long val2 ;
7641 int ecode2 = 0 ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 char * kwnames[] = {
7645 (char *) "self",(char *) "position", NULL
7646 };
7647
7648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
7649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7650 if (!SWIG_IsOK(res1)) {
7651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7652 }
7653 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7654 ecode2 = SWIG_AsVal_long(obj1, &val2);
7655 if (!SWIG_IsOK(ecode2)) {
7656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
7657 }
7658 arg2 = static_cast< long >(val2);
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 (arg1)->ShowPosition(arg2);
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 resultobj = SWIG_Py_Void();
7666 return resultobj;
7667 fail:
7668 return NULL;
7669 }
7670
7671
7672 SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7673 PyObject *resultobj = 0;
7674 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7675 wxPoint *arg2 = 0 ;
7676 long *arg3 = (long *) 0 ;
7677 wxTextCtrlHitTestResult result;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680 wxPoint temp2 ;
7681 long temp3 ;
7682 int res3 = SWIG_TMPOBJ ;
7683 PyObject * obj0 = 0 ;
7684 PyObject * obj1 = 0 ;
7685 char * kwnames[] = {
7686 (char *) "self",(char *) "pt", NULL
7687 };
7688
7689 arg3 = &temp3;
7690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
7691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7692 if (!SWIG_IsOK(res1)) {
7693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7694 }
7695 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7696 {
7697 arg2 = &temp2;
7698 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7699 }
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7707 if (SWIG_IsTmpObj(res3)) {
7708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7709 } else {
7710 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7712 }
7713 return resultobj;
7714 fail:
7715 return NULL;
7716 }
7717
7718
7719 SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj = 0;
7721 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7722 wxPoint *arg2 = 0 ;
7723 wxTextCoord *arg3 = (wxTextCoord *) 0 ;
7724 wxTextCoord *arg4 = (wxTextCoord *) 0 ;
7725 wxTextCtrlHitTestResult result;
7726 void *argp1 = 0 ;
7727 int res1 = 0 ;
7728 wxPoint temp2 ;
7729 void *argp3 = 0 ;
7730 int res3 = 0 ;
7731 void *argp4 = 0 ;
7732 int res4 = 0 ;
7733 PyObject * obj0 = 0 ;
7734 PyObject * obj1 = 0 ;
7735 PyObject * obj2 = 0 ;
7736 PyObject * obj3 = 0 ;
7737 char * kwnames[] = {
7738 (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL
7739 };
7740
7741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7745 }
7746 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7747 {
7748 arg2 = &temp2;
7749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7750 }
7751 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7752 if (!SWIG_IsOK(res3)) {
7753 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'");
7754 }
7755 arg3 = reinterpret_cast< wxTextCoord * >(argp3);
7756 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7757 if (!SWIG_IsOK(res4)) {
7758 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'");
7759 }
7760 arg4 = reinterpret_cast< wxTextCoord * >(argp4);
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7775 PyObject *resultobj = 0;
7776 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7777 void *argp1 = 0 ;
7778 int res1 = 0 ;
7779 PyObject *swig_obj[1] ;
7780
7781 if (!args) SWIG_fail;
7782 swig_obj[0] = args;
7783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7784 if (!SWIG_IsOK(res1)) {
7785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7786 }
7787 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7788 {
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 (arg1)->Copy();
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7804 void *argp1 = 0 ;
7805 int res1 = 0 ;
7806 PyObject *swig_obj[1] ;
7807
7808 if (!args) SWIG_fail;
7809 swig_obj[0] = args;
7810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7811 if (!SWIG_IsOK(res1)) {
7812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7813 }
7814 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 (arg1)->Cut();
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_Py_Void();
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7829 PyObject *resultobj = 0;
7830 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7831 void *argp1 = 0 ;
7832 int res1 = 0 ;
7833 PyObject *swig_obj[1] ;
7834
7835 if (!args) SWIG_fail;
7836 swig_obj[0] = args;
7837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7838 if (!SWIG_IsOK(res1)) {
7839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7840 }
7841 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7842 {
7843 PyThreadState* __tstate = wxPyBeginAllowThreads();
7844 (arg1)->Paste();
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 resultobj = SWIG_Py_Void();
7849 return resultobj;
7850 fail:
7851 return NULL;
7852 }
7853
7854
7855 SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *resultobj = 0;
7857 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 PyObject *swig_obj[1] ;
7861
7862 if (!args) SWIG_fail;
7863 swig_obj[0] = args;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7867 }
7868 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7869 {
7870 PyThreadState* __tstate = wxPyBeginAllowThreads();
7871 (arg1)->DeleteSelection();
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 resultobj = SWIG_Py_Void();
7876 return resultobj;
7877 fail:
7878 return NULL;
7879 }
7880
7881
7882 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 PyObject *resultobj = 0;
7884 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7885 bool result;
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_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7895 }
7896 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy();
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7913 PyObject *resultobj = 0;
7914 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7915 bool result;
7916 void *argp1 = 0 ;
7917 int res1 = 0 ;
7918 PyObject *swig_obj[1] ;
7919
7920 if (!args) SWIG_fail;
7921 swig_obj[0] = args;
7922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7923 if (!SWIG_IsOK(res1)) {
7924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7925 }
7926 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)((wxRichTextCtrl const *)arg1)->CanCut();
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 return resultobj;
7937 fail:
7938 return NULL;
7939 }
7940
7941
7942 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7943 PyObject *resultobj = 0;
7944 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7945 bool result;
7946 void *argp1 = 0 ;
7947 int res1 = 0 ;
7948 PyObject *swig_obj[1] ;
7949
7950 if (!args) SWIG_fail;
7951 swig_obj[0] = args;
7952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7953 if (!SWIG_IsOK(res1)) {
7954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7955 }
7956 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste();
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 {
7964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7965 }
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7973 PyObject *resultobj = 0;
7974 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7975 bool result;
7976 void *argp1 = 0 ;
7977 int res1 = 0 ;
7978 PyObject *swig_obj[1] ;
7979
7980 if (!args) SWIG_fail;
7981 swig_obj[0] = args;
7982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7983 if (!SWIG_IsOK(res1)) {
7984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7985 }
7986 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection();
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 {
7994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8003 PyObject *resultobj = 0;
8004 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 PyObject *swig_obj[1] ;
8008
8009 if (!args) SWIG_fail;
8010 swig_obj[0] = args;
8011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8012 if (!SWIG_IsOK(res1)) {
8013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8014 }
8015 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 (arg1)->Undo();
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 resultobj = SWIG_Py_Void();
8023 return resultobj;
8024 fail:
8025 return NULL;
8026 }
8027
8028
8029 SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8030 PyObject *resultobj = 0;
8031 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034 PyObject *swig_obj[1] ;
8035
8036 if (!args) SWIG_fail;
8037 swig_obj[0] = args;
8038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8039 if (!SWIG_IsOK(res1)) {
8040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8041 }
8042 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8043 {
8044 PyThreadState* __tstate = wxPyBeginAllowThreads();
8045 (arg1)->Redo();
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 resultobj = SWIG_Py_Void();
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8057 PyObject *resultobj = 0;
8058 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8059 bool result;
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_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8069 }
8070 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo();
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 {
8078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8079 }
8080 return resultobj;
8081 fail:
8082 return NULL;
8083 }
8084
8085
8086 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8087 PyObject *resultobj = 0;
8088 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8089 bool result;
8090 void *argp1 = 0 ;
8091 int res1 = 0 ;
8092 PyObject *swig_obj[1] ;
8093
8094 if (!args) SWIG_fail;
8095 swig_obj[0] = args;
8096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8099 }
8100 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo();
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 {
8108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8109 }
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj = 0;
8118 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8119 long arg2 ;
8120 void *argp1 = 0 ;
8121 int res1 = 0 ;
8122 long val2 ;
8123 int ecode2 = 0 ;
8124 PyObject * obj0 = 0 ;
8125 PyObject * obj1 = 0 ;
8126 char * kwnames[] = {
8127 (char *) "self",(char *) "pos", NULL
8128 };
8129
8130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8132 if (!SWIG_IsOK(res1)) {
8133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8134 }
8135 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8136 ecode2 = SWIG_AsVal_long(obj1, &val2);
8137 if (!SWIG_IsOK(ecode2)) {
8138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
8139 }
8140 arg2 = static_cast< long >(val2);
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 (arg1)->SetInsertionPoint(arg2);
8144 wxPyEndAllowThreads(__tstate);
8145 if (PyErr_Occurred()) SWIG_fail;
8146 }
8147 resultobj = SWIG_Py_Void();
8148 return resultobj;
8149 fail:
8150 return NULL;
8151 }
8152
8153
8154 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8155 PyObject *resultobj = 0;
8156 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8157 void *argp1 = 0 ;
8158 int res1 = 0 ;
8159 PyObject *swig_obj[1] ;
8160
8161 if (!args) SWIG_fail;
8162 swig_obj[0] = args;
8163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8164 if (!SWIG_IsOK(res1)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8166 }
8167 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 (arg1)->SetInsertionPointEnd();
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = SWIG_Py_Void();
8175 return resultobj;
8176 fail:
8177 return NULL;
8178 }
8179
8180
8181 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8182 PyObject *resultobj = 0;
8183 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8184 long result;
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_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8194 }
8195 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint();
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 resultobj = SWIG_From_long(static_cast< long >(result));
8203 return resultobj;
8204 fail:
8205 return NULL;
8206 }
8207
8208
8209 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(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_GetLastPosition" "', 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)->GetLastPosition();
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_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj = 0;
8239 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8240 long arg2 ;
8241 long arg3 ;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244 long val2 ;
8245 int ecode2 = 0 ;
8246 long val3 ;
8247 int ecode3 = 0 ;
8248 PyObject * obj0 = 0 ;
8249 PyObject * obj1 = 0 ;
8250 PyObject * obj2 = 0 ;
8251 char * kwnames[] = {
8252 (char *) "self",(char *) "from",(char *) "to", NULL
8253 };
8254
8255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8259 }
8260 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8261 ecode2 = SWIG_AsVal_long(obj1, &val2);
8262 if (!SWIG_IsOK(ecode2)) {
8263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
8264 }
8265 arg2 = static_cast< long >(val2);
8266 ecode3 = SWIG_AsVal_long(obj2, &val3);
8267 if (!SWIG_IsOK(ecode3)) {
8268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
8269 }
8270 arg3 = static_cast< long >(val3);
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 (arg1)->SetSelection(arg2,arg3);
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 resultobj = SWIG_Py_Void();
8278 return resultobj;
8279 fail:
8280 return NULL;
8281 }
8282
8283
8284 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8285 PyObject *resultobj = 0;
8286 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8287 void *argp1 = 0 ;
8288 int res1 = 0 ;
8289 PyObject *swig_obj[1] ;
8290
8291 if (!args) SWIG_fail;
8292 swig_obj[0] = args;
8293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8294 if (!SWIG_IsOK(res1)) {
8295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8296 }
8297 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 (arg1)->SelectAll();
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_Py_Void();
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj = 0;
8313 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8314 bool arg2 ;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 bool val2 ;
8318 int ecode2 = 0 ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "editable", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8329 }
8330 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8331 ecode2 = SWIG_AsVal_bool(obj1, &val2);
8332 if (!SWIG_IsOK(ecode2)) {
8333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
8334 }
8335 arg2 = static_cast< bool >(val2);
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 (arg1)->SetEditable(arg2);
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_Py_Void();
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8350 PyObject *resultobj = 0;
8351 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8352 bool result;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355 PyObject *swig_obj[1] ;
8356
8357 if (!args) SWIG_fail;
8358 swig_obj[0] = args;
8359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8360 if (!SWIG_IsOK(res1)) {
8361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8362 }
8363 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8364 {
8365 PyThreadState* __tstate = wxPyBeginAllowThreads();
8366 result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection();
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 {
8371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8372 }
8373 return resultobj;
8374 fail:
8375 return NULL;
8376 }
8377
8378
8379 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8380 PyObject *resultobj = 0;
8381 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8382 wxImage *arg2 = 0 ;
8383 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8384 bool result;
8385 void *argp1 = 0 ;
8386 int res1 = 0 ;
8387 void *argp2 = 0 ;
8388 int res2 = 0 ;
8389 int val3 ;
8390 int ecode3 = 0 ;
8391 PyObject * obj0 = 0 ;
8392 PyObject * obj1 = 0 ;
8393 PyObject * obj2 = 0 ;
8394 char * kwnames[] = {
8395 (char *) "self",(char *) "image",(char *) "bitmapType", NULL
8396 };
8397
8398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8400 if (!SWIG_IsOK(res1)) {
8401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8402 }
8403 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
8405 if (!SWIG_IsOK(res2)) {
8406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8407 }
8408 if (!argp2) {
8409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8410 }
8411 arg2 = reinterpret_cast< wxImage * >(argp2);
8412 if (obj2) {
8413 ecode3 = SWIG_AsVal_int(obj2, &val3);
8414 if (!SWIG_IsOK(ecode3)) {
8415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'");
8416 }
8417 arg3 = static_cast< int >(val3);
8418 }
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3);
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 {
8426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8427 }
8428 return resultobj;
8429 fail:
8430 return NULL;
8431 }
8432
8433
8434 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8435 PyObject *resultobj = 0;
8436 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8437 wxBitmap *arg2 = 0 ;
8438 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8439 bool result;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 void *argp2 = 0 ;
8443 int res2 = 0 ;
8444 int val3 ;
8445 int ecode3 = 0 ;
8446 PyObject * obj0 = 0 ;
8447 PyObject * obj1 = 0 ;
8448 PyObject * obj2 = 0 ;
8449 char * kwnames[] = {
8450 (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL
8451 };
8452
8453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8455 if (!SWIG_IsOK(res1)) {
8456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8457 }
8458 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8460 if (!SWIG_IsOK(res2)) {
8461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8462 }
8463 if (!argp2) {
8464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8465 }
8466 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8467 if (obj2) {
8468 ecode3 = SWIG_AsVal_int(obj2, &val3);
8469 if (!SWIG_IsOK(ecode3)) {
8470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'");
8471 }
8472 arg3 = static_cast< int >(val3);
8473 }
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3);
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 {
8481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8482 }
8483 return resultobj;
8484 fail:
8485 return NULL;
8486 }
8487
8488
8489 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj = 0;
8491 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8492 wxString *arg2 = 0 ;
8493 int arg3 ;
8494 bool result;
8495 void *argp1 = 0 ;
8496 int res1 = 0 ;
8497 bool temp2 = false ;
8498 int val3 ;
8499 int ecode3 = 0 ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 PyObject * obj2 = 0 ;
8503 char * kwnames[] = {
8504 (char *) "self",(char *) "filename",(char *) "bitmapType", NULL
8505 };
8506
8507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8509 if (!SWIG_IsOK(res1)) {
8510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8511 }
8512 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8513 {
8514 arg2 = wxString_in_helper(obj1);
8515 if (arg2 == NULL) SWIG_fail;
8516 temp2 = true;
8517 }
8518 ecode3 = SWIG_AsVal_int(obj2, &val3);
8519 if (!SWIG_IsOK(ecode3)) {
8520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'");
8521 }
8522 arg3 = static_cast< int >(val3);
8523 {
8524 PyThreadState* __tstate = wxPyBeginAllowThreads();
8525 result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3);
8526 wxPyEndAllowThreads(__tstate);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 {
8530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8531 }
8532 {
8533 if (temp2)
8534 delete arg2;
8535 }
8536 return resultobj;
8537 fail:
8538 {
8539 if (temp2)
8540 delete arg2;
8541 }
8542 return NULL;
8543 }
8544
8545
8546 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj = 0;
8548 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8549 wxRichTextImageBlock *arg2 = 0 ;
8550 bool result;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 void *argp2 = 0 ;
8554 int res2 = 0 ;
8555 PyObject * obj0 = 0 ;
8556 PyObject * obj1 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "imageBlock", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8565 }
8566 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0);
8568 if (!SWIG_IsOK(res2)) {
8569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8570 }
8571 if (!argp2) {
8572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8573 }
8574 arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2);
8575 {
8576 PyThreadState* __tstate = wxPyBeginAllowThreads();
8577 result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2);
8578 wxPyEndAllowThreads(__tstate);
8579 if (PyErr_Occurred()) SWIG_fail;
8580 }
8581 {
8582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8583 }
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8591 PyObject *resultobj = 0;
8592 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8593 bool result;
8594 void *argp1 = 0 ;
8595 int res1 = 0 ;
8596 PyObject *swig_obj[1] ;
8597
8598 if (!args) SWIG_fail;
8599 swig_obj[0] = args;
8600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8601 if (!SWIG_IsOK(res1)) {
8602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8603 }
8604 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = (bool)(arg1)->Newline();
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 {
8612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8613 }
8614 return resultobj;
8615 fail:
8616 return NULL;
8617 }
8618
8619
8620 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8621 PyObject *resultobj = 0;
8622 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8623 wxRichTextAttr *arg2 = 0 ;
8624 void *argp1 = 0 ;
8625 int res1 = 0 ;
8626 void *argp2 = 0 ;
8627 int res2 = 0 ;
8628 PyObject * obj0 = 0 ;
8629 PyObject * obj1 = 0 ;
8630 char * kwnames[] = {
8631 (char *) "self",(char *) "style", NULL
8632 };
8633
8634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail;
8635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8636 if (!SWIG_IsOK(res1)) {
8637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8638 }
8639 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
8641 if (!SWIG_IsOK(res2)) {
8642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8643 }
8644 if (!argp2) {
8645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8646 }
8647 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
8648 {
8649 PyThreadState* __tstate = wxPyBeginAllowThreads();
8650 (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2);
8651 wxPyEndAllowThreads(__tstate);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 }
8654 resultobj = SWIG_Py_Void();
8655 return resultobj;
8656 fail:
8657 return NULL;
8658 }
8659
8660
8661 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8662 PyObject *resultobj = 0;
8663 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8664 bool result;
8665 void *argp1 = 0 ;
8666 int res1 = 0 ;
8667 PyObject *swig_obj[1] ;
8668
8669 if (!args) SWIG_fail;
8670 swig_obj[0] = args;
8671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8672 if (!SWIG_IsOK(res1)) {
8673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8674 }
8675 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 result = (bool)(arg1)->EndStyle();
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 {
8683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8684 }
8685 return resultobj;
8686 fail:
8687 return NULL;
8688 }
8689
8690
8691 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8692 PyObject *resultobj = 0;
8693 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8694 bool result;
8695 void *argp1 = 0 ;
8696 int res1 = 0 ;
8697 PyObject *swig_obj[1] ;
8698
8699 if (!args) SWIG_fail;
8700 swig_obj[0] = args;
8701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8702 if (!SWIG_IsOK(res1)) {
8703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8704 }
8705 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 result = (bool)(arg1)->EndAllStyles();
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 {
8713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8714 }
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8722 PyObject *resultobj = 0;
8723 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8724 bool result;
8725 void *argp1 = 0 ;
8726 int res1 = 0 ;
8727 PyObject *swig_obj[1] ;
8728
8729 if (!args) SWIG_fail;
8730 swig_obj[0] = args;
8731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8732 if (!SWIG_IsOK(res1)) {
8733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8734 }
8735 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8736 {
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 result = (bool)(arg1)->BeginBold();
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 {
8743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8744 }
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8752 PyObject *resultobj = 0;
8753 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8754 bool result;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 PyObject *swig_obj[1] ;
8758
8759 if (!args) SWIG_fail;
8760 swig_obj[0] = args;
8761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8762 if (!SWIG_IsOK(res1)) {
8763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8764 }
8765 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = (bool)(arg1)->EndBold();
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 {
8773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8774 }
8775 return resultobj;
8776 fail:
8777 return NULL;
8778 }
8779
8780
8781 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *resultobj = 0;
8783 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8784 bool result;
8785 void *argp1 = 0 ;
8786 int res1 = 0 ;
8787 PyObject *swig_obj[1] ;
8788
8789 if (!args) SWIG_fail;
8790 swig_obj[0] = args;
8791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8792 if (!SWIG_IsOK(res1)) {
8793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8794 }
8795 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8796 {
8797 PyThreadState* __tstate = wxPyBeginAllowThreads();
8798 result = (bool)(arg1)->BeginItalic();
8799 wxPyEndAllowThreads(__tstate);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 {
8803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8804 }
8805 return resultobj;
8806 fail:
8807 return NULL;
8808 }
8809
8810
8811 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8812 PyObject *resultobj = 0;
8813 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8814 bool result;
8815 void *argp1 = 0 ;
8816 int res1 = 0 ;
8817 PyObject *swig_obj[1] ;
8818
8819 if (!args) SWIG_fail;
8820 swig_obj[0] = args;
8821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8822 if (!SWIG_IsOK(res1)) {
8823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8824 }
8825 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 result = (bool)(arg1)->EndItalic();
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 {
8833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8834 }
8835 return resultobj;
8836 fail:
8837 return NULL;
8838 }
8839
8840
8841 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8842 PyObject *resultobj = 0;
8843 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8844 bool result;
8845 void *argp1 = 0 ;
8846 int res1 = 0 ;
8847 PyObject *swig_obj[1] ;
8848
8849 if (!args) SWIG_fail;
8850 swig_obj[0] = args;
8851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8852 if (!SWIG_IsOK(res1)) {
8853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8854 }
8855 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8856 {
8857 PyThreadState* __tstate = wxPyBeginAllowThreads();
8858 result = (bool)(arg1)->BeginUnderline();
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 {
8863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8864 }
8865 return resultobj;
8866 fail:
8867 return NULL;
8868 }
8869
8870
8871 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8872 PyObject *resultobj = 0;
8873 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8874 bool result;
8875 void *argp1 = 0 ;
8876 int res1 = 0 ;
8877 PyObject *swig_obj[1] ;
8878
8879 if (!args) SWIG_fail;
8880 swig_obj[0] = args;
8881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8882 if (!SWIG_IsOK(res1)) {
8883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8884 }
8885 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8886 {
8887 PyThreadState* __tstate = wxPyBeginAllowThreads();
8888 result = (bool)(arg1)->EndUnderline();
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 {
8893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8894 }
8895 return resultobj;
8896 fail:
8897 return NULL;
8898 }
8899
8900
8901 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8902 PyObject *resultobj = 0;
8903 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8904 int arg2 ;
8905 bool result;
8906 void *argp1 = 0 ;
8907 int res1 = 0 ;
8908 int val2 ;
8909 int ecode2 = 0 ;
8910 PyObject * obj0 = 0 ;
8911 PyObject * obj1 = 0 ;
8912 char * kwnames[] = {
8913 (char *) "self",(char *) "pointSize", NULL
8914 };
8915
8916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
8917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8918 if (!SWIG_IsOK(res1)) {
8919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8920 }
8921 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8922 ecode2 = SWIG_AsVal_int(obj1, &val2);
8923 if (!SWIG_IsOK(ecode2)) {
8924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'");
8925 }
8926 arg2 = static_cast< int >(val2);
8927 {
8928 PyThreadState* __tstate = wxPyBeginAllowThreads();
8929 result = (bool)(arg1)->BeginFontSize(arg2);
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 {
8934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8935 }
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8943 PyObject *resultobj = 0;
8944 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8945 bool result;
8946 void *argp1 = 0 ;
8947 int res1 = 0 ;
8948 PyObject *swig_obj[1] ;
8949
8950 if (!args) SWIG_fail;
8951 swig_obj[0] = args;
8952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8953 if (!SWIG_IsOK(res1)) {
8954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8955 }
8956 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (bool)(arg1)->EndFontSize();
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 {
8964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8965 }
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj = 0;
8974 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8975 wxFont *arg2 = 0 ;
8976 bool result;
8977 void *argp1 = 0 ;
8978 int res1 = 0 ;
8979 void *argp2 = 0 ;
8980 int res2 = 0 ;
8981 PyObject * obj0 = 0 ;
8982 PyObject * obj1 = 0 ;
8983 char * kwnames[] = {
8984 (char *) "self",(char *) "font", NULL
8985 };
8986
8987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail;
8988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8991 }
8992 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
8994 if (!SWIG_IsOK(res2)) {
8995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8996 }
8997 if (!argp2) {
8998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8999 }
9000 arg2 = reinterpret_cast< wxFont * >(argp2);
9001 {
9002 PyThreadState* __tstate = wxPyBeginAllowThreads();
9003 result = (bool)(arg1)->BeginFont((wxFont const &)*arg2);
9004 wxPyEndAllowThreads(__tstate);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 }
9007 {
9008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9009 }
9010 return resultobj;
9011 fail:
9012 return NULL;
9013 }
9014
9015
9016 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9017 PyObject *resultobj = 0;
9018 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9019 bool result;
9020 void *argp1 = 0 ;
9021 int res1 = 0 ;
9022 PyObject *swig_obj[1] ;
9023
9024 if (!args) SWIG_fail;
9025 swig_obj[0] = args;
9026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9027 if (!SWIG_IsOK(res1)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9029 }
9030 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 result = (bool)(arg1)->EndFont();
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 {
9038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9039 }
9040 return resultobj;
9041 fail:
9042 return NULL;
9043 }
9044
9045
9046 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj = 0;
9048 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9049 wxColour *arg2 = 0 ;
9050 bool result;
9051 void *argp1 = 0 ;
9052 int res1 = 0 ;
9053 wxColour temp2 ;
9054 PyObject * obj0 = 0 ;
9055 PyObject * obj1 = 0 ;
9056 char * kwnames[] = {
9057 (char *) "self",(char *) "colour", NULL
9058 };
9059
9060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
9061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9062 if (!SWIG_IsOK(res1)) {
9063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9064 }
9065 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9066 {
9067 arg2 = &temp2;
9068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9069 }
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2);
9073 wxPyEndAllowThreads(__tstate);
9074 if (PyErr_Occurred()) SWIG_fail;
9075 }
9076 {
9077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9078 }
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9086 PyObject *resultobj = 0;
9087 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9088 bool result;
9089 void *argp1 = 0 ;
9090 int res1 = 0 ;
9091 PyObject *swig_obj[1] ;
9092
9093 if (!args) SWIG_fail;
9094 swig_obj[0] = args;
9095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9096 if (!SWIG_IsOK(res1)) {
9097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9098 }
9099 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = (bool)(arg1)->EndTextColour();
9103 wxPyEndAllowThreads(__tstate);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
9106 {
9107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9108 }
9109 return resultobj;
9110 fail:
9111 return NULL;
9112 }
9113
9114
9115 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9116 PyObject *resultobj = 0;
9117 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9118 wxTextAttrAlignment arg2 ;
9119 bool result;
9120 void *argp1 = 0 ;
9121 int res1 = 0 ;
9122 int val2 ;
9123 int ecode2 = 0 ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 char * kwnames[] = {
9127 (char *) "self",(char *) "alignment", NULL
9128 };
9129
9130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
9131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9134 }
9135 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9136 ecode2 = SWIG_AsVal_int(obj1, &val2);
9137 if (!SWIG_IsOK(ecode2)) {
9138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
9139 }
9140 arg2 = static_cast< wxTextAttrAlignment >(val2);
9141 {
9142 PyThreadState* __tstate = wxPyBeginAllowThreads();
9143 result = (bool)(arg1)->BeginAlignment(arg2);
9144 wxPyEndAllowThreads(__tstate);
9145 if (PyErr_Occurred()) SWIG_fail;
9146 }
9147 {
9148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9149 }
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9159 bool result;
9160 void *argp1 = 0 ;
9161 int res1 = 0 ;
9162 PyObject *swig_obj[1] ;
9163
9164 if (!args) SWIG_fail;
9165 swig_obj[0] = args;
9166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9169 }
9170 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (bool)(arg1)->EndAlignment();
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 {
9178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9179 }
9180 return resultobj;
9181 fail:
9182 return NULL;
9183 }
9184
9185
9186 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj = 0;
9188 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9189 int arg2 ;
9190 int arg3 = (int) 0 ;
9191 bool result;
9192 void *argp1 = 0 ;
9193 int res1 = 0 ;
9194 int val2 ;
9195 int ecode2 = 0 ;
9196 int val3 ;
9197 int ecode3 = 0 ;
9198 PyObject * obj0 = 0 ;
9199 PyObject * obj1 = 0 ;
9200 PyObject * obj2 = 0 ;
9201 char * kwnames[] = {
9202 (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL
9203 };
9204
9205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9207 if (!SWIG_IsOK(res1)) {
9208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9209 }
9210 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9211 ecode2 = SWIG_AsVal_int(obj1, &val2);
9212 if (!SWIG_IsOK(ecode2)) {
9213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'");
9214 }
9215 arg2 = static_cast< int >(val2);
9216 if (obj2) {
9217 ecode3 = SWIG_AsVal_int(obj2, &val3);
9218 if (!SWIG_IsOK(ecode3)) {
9219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'");
9220 }
9221 arg3 = static_cast< int >(val3);
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 result = (bool)(arg1)->BeginLeftIndent(arg2,arg3);
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 {
9230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9231 }
9232 return resultobj;
9233 fail:
9234 return NULL;
9235 }
9236
9237
9238 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9239 PyObject *resultobj = 0;
9240 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9241 bool result;
9242 void *argp1 = 0 ;
9243 int res1 = 0 ;
9244 PyObject *swig_obj[1] ;
9245
9246 if (!args) SWIG_fail;
9247 swig_obj[0] = args;
9248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9251 }
9252 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 result = (bool)(arg1)->EndLeftIndent();
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 {
9260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9261 }
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj = 0;
9270 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9271 int arg2 ;
9272 bool result;
9273 void *argp1 = 0 ;
9274 int res1 = 0 ;
9275 int val2 ;
9276 int ecode2 = 0 ;
9277 PyObject * obj0 = 0 ;
9278 PyObject * obj1 = 0 ;
9279 char * kwnames[] = {
9280 (char *) "self",(char *) "rightIndent", NULL
9281 };
9282
9283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
9284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9287 }
9288 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9289 ecode2 = SWIG_AsVal_int(obj1, &val2);
9290 if (!SWIG_IsOK(ecode2)) {
9291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'");
9292 }
9293 arg2 = static_cast< int >(val2);
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (bool)(arg1)->BeginRightIndent(arg2);
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 {
9301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9302 }
9303 return resultobj;
9304 fail:
9305 return NULL;
9306 }
9307
9308
9309 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9310 PyObject *resultobj = 0;
9311 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9312 bool result;
9313 void *argp1 = 0 ;
9314 int res1 = 0 ;
9315 PyObject *swig_obj[1] ;
9316
9317 if (!args) SWIG_fail;
9318 swig_obj[0] = args;
9319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9320 if (!SWIG_IsOK(res1)) {
9321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9322 }
9323 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 result = (bool)(arg1)->EndRightIndent();
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
9330 {
9331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9332 }
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj = 0;
9341 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9342 int arg2 ;
9343 int arg3 ;
9344 bool result;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 int val2 ;
9348 int ecode2 = 0 ;
9349 int val3 ;
9350 int ecode3 = 0 ;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 PyObject * obj2 = 0 ;
9354 char * kwnames[] = {
9355 (char *) "self",(char *) "before",(char *) "after", NULL
9356 };
9357
9358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9360 if (!SWIG_IsOK(res1)) {
9361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9362 }
9363 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9364 ecode2 = SWIG_AsVal_int(obj1, &val2);
9365 if (!SWIG_IsOK(ecode2)) {
9366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'");
9367 }
9368 arg2 = static_cast< int >(val2);
9369 ecode3 = SWIG_AsVal_int(obj2, &val3);
9370 if (!SWIG_IsOK(ecode3)) {
9371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'");
9372 }
9373 arg3 = static_cast< int >(val3);
9374 {
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3);
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 {
9381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9382 }
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9390 PyObject *resultobj = 0;
9391 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9392 bool result;
9393 void *argp1 = 0 ;
9394 int res1 = 0 ;
9395 PyObject *swig_obj[1] ;
9396
9397 if (!args) SWIG_fail;
9398 swig_obj[0] = args;
9399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9402 }
9403 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 result = (bool)(arg1)->EndParagraphSpacing();
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 {
9411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9412 }
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9422 int arg2 ;
9423 bool result;
9424 void *argp1 = 0 ;
9425 int res1 = 0 ;
9426 int val2 ;
9427 int ecode2 = 0 ;
9428 PyObject * obj0 = 0 ;
9429 PyObject * obj1 = 0 ;
9430 char * kwnames[] = {
9431 (char *) "self",(char *) "lineSpacing", NULL
9432 };
9433
9434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
9435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9436 if (!SWIG_IsOK(res1)) {
9437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9438 }
9439 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9440 ecode2 = SWIG_AsVal_int(obj1, &val2);
9441 if (!SWIG_IsOK(ecode2)) {
9442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'");
9443 }
9444 arg2 = static_cast< int >(val2);
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (bool)(arg1)->BeginLineSpacing(arg2);
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 {
9452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9453 }
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9461 PyObject *resultobj = 0;
9462 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9463 bool result;
9464 void *argp1 = 0 ;
9465 int res1 = 0 ;
9466 PyObject *swig_obj[1] ;
9467
9468 if (!args) SWIG_fail;
9469 swig_obj[0] = args;
9470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9473 }
9474 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (bool)(arg1)->EndLineSpacing();
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 {
9482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9483 }
9484 return resultobj;
9485 fail:
9486 return NULL;
9487 }
9488
9489
9490 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9491 PyObject *resultobj = 0;
9492 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9493 int arg2 ;
9494 int arg3 ;
9495 int arg4 ;
9496 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ;
9497 bool result;
9498 void *argp1 = 0 ;
9499 int res1 = 0 ;
9500 int val2 ;
9501 int ecode2 = 0 ;
9502 int val3 ;
9503 int ecode3 = 0 ;
9504 int val4 ;
9505 int ecode4 = 0 ;
9506 int val5 ;
9507 int ecode5 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 PyObject * obj2 = 0 ;
9511 PyObject * obj3 = 0 ;
9512 PyObject * obj4 = 0 ;
9513 char * kwnames[] = {
9514 (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9515 };
9516
9517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9519 if (!SWIG_IsOK(res1)) {
9520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9521 }
9522 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9523 ecode2 = SWIG_AsVal_int(obj1, &val2);
9524 if (!SWIG_IsOK(ecode2)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'");
9526 }
9527 arg2 = static_cast< int >(val2);
9528 ecode3 = SWIG_AsVal_int(obj2, &val3);
9529 if (!SWIG_IsOK(ecode3)) {
9530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'");
9531 }
9532 arg3 = static_cast< int >(val3);
9533 ecode4 = SWIG_AsVal_int(obj3, &val4);
9534 if (!SWIG_IsOK(ecode4)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'");
9536 }
9537 arg4 = static_cast< int >(val4);
9538 if (obj4) {
9539 ecode5 = SWIG_AsVal_int(obj4, &val5);
9540 if (!SWIG_IsOK(ecode5)) {
9541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'");
9542 }
9543 arg5 = static_cast< int >(val5);
9544 }
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5);
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9553 }
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9561 PyObject *resultobj = 0;
9562 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9563 bool result;
9564 void *argp1 = 0 ;
9565 int res1 = 0 ;
9566 PyObject *swig_obj[1] ;
9567
9568 if (!args) SWIG_fail;
9569 swig_obj[0] = args;
9570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9571 if (!SWIG_IsOK(res1)) {
9572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9573 }
9574 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (bool)(arg1)->EndNumberedBullet();
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9583 }
9584 return resultobj;
9585 fail:
9586 return NULL;
9587 }
9588
9589
9590 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj = 0;
9592 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9593 wxString *arg2 = 0 ;
9594 int arg3 ;
9595 int arg4 ;
9596 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ;
9597 bool result;
9598 void *argp1 = 0 ;
9599 int res1 = 0 ;
9600 bool temp2 = false ;
9601 int val3 ;
9602 int ecode3 = 0 ;
9603 int val4 ;
9604 int ecode4 = 0 ;
9605 int val5 ;
9606 int ecode5 = 0 ;
9607 PyObject * obj0 = 0 ;
9608 PyObject * obj1 = 0 ;
9609 PyObject * obj2 = 0 ;
9610 PyObject * obj3 = 0 ;
9611 PyObject * obj4 = 0 ;
9612 char * kwnames[] = {
9613 (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9614 };
9615
9616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9618 if (!SWIG_IsOK(res1)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9620 }
9621 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9622 {
9623 arg2 = wxString_in_helper(obj1);
9624 if (arg2 == NULL) SWIG_fail;
9625 temp2 = true;
9626 }
9627 ecode3 = SWIG_AsVal_int(obj2, &val3);
9628 if (!SWIG_IsOK(ecode3)) {
9629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'");
9630 }
9631 arg3 = static_cast< int >(val3);
9632 ecode4 = SWIG_AsVal_int(obj3, &val4);
9633 if (!SWIG_IsOK(ecode4)) {
9634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'");
9635 }
9636 arg4 = static_cast< int >(val4);
9637 if (obj4) {
9638 ecode5 = SWIG_AsVal_int(obj4, &val5);
9639 if (!SWIG_IsOK(ecode5)) {
9640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'");
9641 }
9642 arg5 = static_cast< int >(val5);
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 result = (bool)(arg1)->BeginSymbolBullet((wxString const &)*arg2,arg3,arg4,arg5);
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 {
9651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9652 }
9653 {
9654 if (temp2)
9655 delete arg2;
9656 }
9657 return resultobj;
9658 fail:
9659 {
9660 if (temp2)
9661 delete arg2;
9662 }
9663 return NULL;
9664 }
9665
9666
9667 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9668 PyObject *resultobj = 0;
9669 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9670 bool result;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 PyObject *swig_obj[1] ;
9674
9675 if (!args) SWIG_fail;
9676 swig_obj[0] = args;
9677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9678 if (!SWIG_IsOK(res1)) {
9679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9680 }
9681 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 result = (bool)(arg1)->EndSymbolBullet();
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 {
9689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj = 0;
9699 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9700 wxString *arg2 = 0 ;
9701 bool result;
9702 void *argp1 = 0 ;
9703 int res1 = 0 ;
9704 bool temp2 = false ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char * kwnames[] = {
9708 (char *) "self",(char *) "characterStyle", NULL
9709 };
9710
9711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9715 }
9716 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9717 {
9718 arg2 = wxString_in_helper(obj1);
9719 if (arg2 == NULL) SWIG_fail;
9720 temp2 = true;
9721 }
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2);
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 {
9729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9730 }
9731 {
9732 if (temp2)
9733 delete arg2;
9734 }
9735 return resultobj;
9736 fail:
9737 {
9738 if (temp2)
9739 delete arg2;
9740 }
9741 return NULL;
9742 }
9743
9744
9745 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9746 PyObject *resultobj = 0;
9747 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9748 bool result;
9749 void *argp1 = 0 ;
9750 int res1 = 0 ;
9751 PyObject *swig_obj[1] ;
9752
9753 if (!args) SWIG_fail;
9754 swig_obj[0] = args;
9755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9756 if (!SWIG_IsOK(res1)) {
9757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9758 }
9759 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 result = (bool)(arg1)->EndCharacterStyle();
9763 wxPyEndAllowThreads(__tstate);
9764 if (PyErr_Occurred()) SWIG_fail;
9765 }
9766 {
9767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9768 }
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj = 0;
9777 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9778 wxString *arg2 = 0 ;
9779 bool result;
9780 void *argp1 = 0 ;
9781 int res1 = 0 ;
9782 bool temp2 = false ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 char * kwnames[] = {
9786 (char *) "self",(char *) "paragraphStyle", NULL
9787 };
9788
9789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9793 }
9794 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9795 {
9796 arg2 = wxString_in_helper(obj1);
9797 if (arg2 == NULL) SWIG_fail;
9798 temp2 = true;
9799 }
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2);
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 {
9807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9808 }
9809 {
9810 if (temp2)
9811 delete arg2;
9812 }
9813 return resultobj;
9814 fail:
9815 {
9816 if (temp2)
9817 delete arg2;
9818 }
9819 return NULL;
9820 }
9821
9822
9823 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9824 PyObject *resultobj = 0;
9825 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9826 bool result;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 PyObject *swig_obj[1] ;
9830
9831 if (!args) SWIG_fail;
9832 swig_obj[0] = args;
9833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9836 }
9837 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 result = (bool)(arg1)->EndParagraphStyle();
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 {
9845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9846 }
9847 return resultobj;
9848 fail:
9849 return NULL;
9850 }
9851
9852
9853 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9854 PyObject *resultobj = 0;
9855 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9856 wxString *arg2 = 0 ;
9857 int arg3 = (int) 1 ;
9858 int arg4 = (int) 1 ;
9859 bool result;
9860 void *argp1 = 0 ;
9861 int res1 = 0 ;
9862 bool temp2 = false ;
9863 int val3 ;
9864 int ecode3 = 0 ;
9865 int val4 ;
9866 int ecode4 = 0 ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 PyObject * obj2 = 0 ;
9870 PyObject * obj3 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "self",(char *) "listStyle",(char *) "level",(char *) "number", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:RichTextCtrl_BeginListStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9877 if (!SWIG_IsOK(res1)) {
9878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9879 }
9880 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9881 {
9882 arg2 = wxString_in_helper(obj1);
9883 if (arg2 == NULL) SWIG_fail;
9884 temp2 = true;
9885 }
9886 if (obj2) {
9887 ecode3 = SWIG_AsVal_int(obj2, &val3);
9888 if (!SWIG_IsOK(ecode3)) {
9889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "3"" of type '" "int""'");
9890 }
9891 arg3 = static_cast< int >(val3);
9892 }
9893 if (obj3) {
9894 ecode4 = SWIG_AsVal_int(obj3, &val4);
9895 if (!SWIG_IsOK(ecode4)) {
9896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "4"" of type '" "int""'");
9897 }
9898 arg4 = static_cast< int >(val4);
9899 }
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 result = (bool)(arg1)->BeginListStyle((wxString const &)*arg2,arg3,arg4);
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 {
9907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9908 }
9909 {
9910 if (temp2)
9911 delete arg2;
9912 }
9913 return resultobj;
9914 fail:
9915 {
9916 if (temp2)
9917 delete arg2;
9918 }
9919 return NULL;
9920 }
9921
9922
9923 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 PyObject *resultobj = 0;
9925 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9926 bool result;
9927 void *argp1 = 0 ;
9928 int res1 = 0 ;
9929 PyObject *swig_obj[1] ;
9930
9931 if (!args) SWIG_fail;
9932 swig_obj[0] = args;
9933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9934 if (!SWIG_IsOK(res1)) {
9935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9936 }
9937 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (bool)(arg1)->EndListStyle();
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 {
9945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9946 }
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9956 wxString *arg2 = 0 ;
9957 wxString const &arg3_defvalue = wxEmptyString ;
9958 wxString *arg3 = (wxString *) &arg3_defvalue ;
9959 bool result;
9960 void *argp1 = 0 ;
9961 int res1 = 0 ;
9962 bool temp2 = false ;
9963 bool temp3 = false ;
9964 PyObject * obj0 = 0 ;
9965 PyObject * obj1 = 0 ;
9966 PyObject * obj2 = 0 ;
9967 char * kwnames[] = {
9968 (char *) "self",(char *) "url",(char *) "characterStyle", NULL
9969 };
9970
9971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginURL",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9973 if (!SWIG_IsOK(res1)) {
9974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9975 }
9976 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9977 {
9978 arg2 = wxString_in_helper(obj1);
9979 if (arg2 == NULL) SWIG_fail;
9980 temp2 = true;
9981 }
9982 if (obj2) {
9983 {
9984 arg3 = wxString_in_helper(obj2);
9985 if (arg3 == NULL) SWIG_fail;
9986 temp3 = true;
9987 }
9988 }
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = (bool)(arg1)->BeginURL((wxString const &)*arg2,(wxString const &)*arg3);
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
9995 {
9996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9997 }
9998 {
9999 if (temp2)
10000 delete arg2;
10001 }
10002 {
10003 if (temp3)
10004 delete arg3;
10005 }
10006 return resultobj;
10007 fail:
10008 {
10009 if (temp2)
10010 delete arg2;
10011 }
10012 {
10013 if (temp3)
10014 delete arg3;
10015 }
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *resultobj = 0;
10022 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10023 bool result;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 PyObject *swig_obj[1] ;
10027
10028 if (!args) SWIG_fail;
10029 swig_obj[0] = args;
10030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10031 if (!SWIG_IsOK(res1)) {
10032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10033 }
10034 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 result = (bool)(arg1)->EndURL();
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 {
10042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10043 }
10044 return resultobj;
10045 fail:
10046 return NULL;
10047 }
10048
10049
10050 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10051 PyObject *resultobj = 0;
10052 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10053 bool result;
10054 void *argp1 = 0 ;
10055 int res1 = 0 ;
10056 PyObject *swig_obj[1] ;
10057
10058 if (!args) SWIG_fail;
10059 swig_obj[0] = args;
10060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10061 if (!SWIG_IsOK(res1)) {
10062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10063 }
10064 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (bool)(arg1)->SetDefaultStyleToCursorStyle();
10068 wxPyEndAllowThreads(__tstate);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 {
10072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10073 }
10074 return resultobj;
10075 fail:
10076 return NULL;
10077 }
10078
10079
10080 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *resultobj = 0;
10082 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10083 void *argp1 = 0 ;
10084 int res1 = 0 ;
10085 PyObject *swig_obj[1] ;
10086
10087 if (!args) SWIG_fail;
10088 swig_obj[0] = args;
10089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10092 }
10093 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 (arg1)->SelectNone();
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_Py_Void();
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj = 0;
10109 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10110 long arg2 ;
10111 bool result;
10112 void *argp1 = 0 ;
10113 int res1 = 0 ;
10114 long val2 ;
10115 int ecode2 = 0 ;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 char * kwnames[] = {
10119 (char *) "self",(char *) "position", NULL
10120 };
10121
10122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SelectWord",kwnames,&obj0,&obj1)) SWIG_fail;
10123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10124 if (!SWIG_IsOK(res1)) {
10125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10126 }
10127 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10128 ecode2 = SWIG_AsVal_long(obj1, &val2);
10129 if (!SWIG_IsOK(ecode2)) {
10130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "2"" of type '" "long""'");
10131 }
10132 arg2 = static_cast< long >(val2);
10133 {
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = (bool)(arg1)->SelectWord(arg2);
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 {
10140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10141 }
10142 return resultobj;
10143 fail:
10144 return NULL;
10145 }
10146
10147
10148 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10149 PyObject *resultobj = 0;
10150 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10151 wxRichTextRange result;
10152 void *argp1 = 0 ;
10153 int res1 = 0 ;
10154 PyObject *swig_obj[1] ;
10155
10156 if (!args) SWIG_fail;
10157 swig_obj[0] = args;
10158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10159 if (!SWIG_IsOK(res1)) {
10160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10161 }
10162 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10163 {
10164 PyThreadState* __tstate = wxPyBeginAllowThreads();
10165 result = ((wxRichTextCtrl const *)arg1)->GetSelectionRange();
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
10170 return resultobj;
10171 fail:
10172 return NULL;
10173 }
10174
10175
10176 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10177 PyObject *resultobj = 0;
10178 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10179 wxRichTextRange *arg2 = 0 ;
10180 void *argp1 = 0 ;
10181 int res1 = 0 ;
10182 wxRichTextRange temp2 ;
10183 PyObject * obj0 = 0 ;
10184 PyObject * obj1 = 0 ;
10185 char * kwnames[] = {
10186 (char *) "self",(char *) "range", NULL
10187 };
10188
10189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
10190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10191 if (!SWIG_IsOK(res1)) {
10192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10193 }
10194 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10195 {
10196 arg2 = &temp2;
10197 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10198 }
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2);
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 resultobj = SWIG_Py_Void();
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10213 PyObject *resultobj = 0;
10214 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10215 wxRichTextRange *result = 0 ;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 PyObject *swig_obj[1] ;
10219
10220 if (!args) SWIG_fail;
10221 swig_obj[0] = args;
10222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10225 }
10226 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 {
10230 wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetInternalSelectionRange();
10231 result = (wxRichTextRange *) &_result_ref;
10232 }
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 );
10237 return resultobj;
10238 fail:
10239 return NULL;
10240 }
10241
10242
10243 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10244 PyObject *resultobj = 0;
10245 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10246 wxRichTextRange *arg2 = 0 ;
10247 void *argp1 = 0 ;
10248 int res1 = 0 ;
10249 wxRichTextRange temp2 ;
10250 PyObject * obj0 = 0 ;
10251 PyObject * obj1 = 0 ;
10252 char * kwnames[] = {
10253 (char *) "self",(char *) "range", NULL
10254 };
10255
10256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInternalSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
10257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10260 }
10261 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10262 {
10263 arg2 = &temp2;
10264 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10265 }
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 (arg1)->SetInternalSelectionRange((wxRichTextRange const &)*arg2);
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_Py_Void();
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10282 wxString *arg2 = 0 ;
10283 wxRichTextRange result;
10284 void *argp1 = 0 ;
10285 int res1 = 0 ;
10286 bool temp2 = false ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 char * kwnames[] = {
10290 (char *) "self",(char *) "text", NULL
10291 };
10292
10293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail;
10294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10295 if (!SWIG_IsOK(res1)) {
10296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10297 }
10298 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10299 {
10300 arg2 = wxString_in_helper(obj1);
10301 if (arg2 == NULL) SWIG_fail;
10302 temp2 = true;
10303 }
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 result = (arg1)->AddParagraph((wxString const &)*arg2);
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
10311 {
10312 if (temp2)
10313 delete arg2;
10314 }
10315 return resultobj;
10316 fail:
10317 {
10318 if (temp2)
10319 delete arg2;
10320 }
10321 return NULL;
10322 }
10323
10324
10325 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10326 PyObject *resultobj = 0;
10327 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10328 wxImage *arg2 = 0 ;
10329 wxRichTextRange result;
10330 void *argp1 = 0 ;
10331 int res1 = 0 ;
10332 void *argp2 = 0 ;
10333 int res2 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 char * kwnames[] = {
10337 (char *) "self",(char *) "image", NULL
10338 };
10339
10340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail;
10341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10342 if (!SWIG_IsOK(res1)) {
10343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10344 }
10345 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
10347 if (!SWIG_IsOK(res2)) {
10348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
10349 }
10350 if (!argp2) {
10351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
10352 }
10353 arg2 = reinterpret_cast< wxImage * >(argp2);
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 result = (arg1)->AddImage((wxImage const &)*arg2);
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 }
10360 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
10361 return resultobj;
10362 fail:
10363 return NULL;
10364 }
10365
10366
10367 SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10368 PyObject *resultobj = 0;
10369 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10370 bool arg2 = (bool) false ;
10371 bool result;
10372 void *argp1 = 0 ;
10373 int res1 = 0 ;
10374 bool val2 ;
10375 int ecode2 = 0 ;
10376 PyObject * obj0 = 0 ;
10377 PyObject * obj1 = 0 ;
10378 char * kwnames[] = {
10379 (char *) "self",(char *) "onlyVisibleRect", NULL
10380 };
10381
10382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail;
10383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10384 if (!SWIG_IsOK(res1)) {
10385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10386 }
10387 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10388 if (obj1) {
10389 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10390 if (!SWIG_IsOK(ecode2)) {
10391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'");
10392 }
10393 arg2 = static_cast< bool >(val2);
10394 }
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (bool)(arg1)->LayoutContent(arg2);
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10403 }
10404 return resultobj;
10405 fail:
10406 return NULL;
10407 }
10408
10409
10410 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj = 0;
10412 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10413 long arg2 ;
10414 bool arg3 = (bool) false ;
10415 bool result;
10416 void *argp1 = 0 ;
10417 int res1 = 0 ;
10418 long val2 ;
10419 int ecode2 = 0 ;
10420 bool val3 ;
10421 int ecode3 = 0 ;
10422 PyObject * obj0 = 0 ;
10423 PyObject * obj1 = 0 ;
10424 PyObject * obj2 = 0 ;
10425 char * kwnames[] = {
10426 (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL
10427 };
10428
10429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10431 if (!SWIG_IsOK(res1)) {
10432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10433 }
10434 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10435 ecode2 = SWIG_AsVal_long(obj1, &val2);
10436 if (!SWIG_IsOK(ecode2)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'");
10438 }
10439 arg2 = static_cast< long >(val2);
10440 if (obj2) {
10441 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10442 if (!SWIG_IsOK(ecode3)) {
10443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'");
10444 }
10445 arg3 = static_cast< bool >(val3);
10446 }
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (bool)(arg1)->MoveCaret(arg2,arg3);
10450 wxPyEndAllowThreads(__tstate);
10451 if (PyErr_Occurred()) SWIG_fail;
10452 }
10453 {
10454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10455 }
10456 return resultobj;
10457 fail:
10458 return NULL;
10459 }
10460
10461
10462 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj = 0;
10464 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10465 int arg2 = (int) 1 ;
10466 int arg3 = (int) 0 ;
10467 bool result;
10468 void *argp1 = 0 ;
10469 int res1 = 0 ;
10470 int val2 ;
10471 int ecode2 = 0 ;
10472 int val3 ;
10473 int ecode3 = 0 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 PyObject * obj2 = 0 ;
10477 char * kwnames[] = {
10478 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10479 };
10480
10481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10483 if (!SWIG_IsOK(res1)) {
10484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10485 }
10486 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10487 if (obj1) {
10488 ecode2 = SWIG_AsVal_int(obj1, &val2);
10489 if (!SWIG_IsOK(ecode2)) {
10490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'");
10491 }
10492 arg2 = static_cast< int >(val2);
10493 }
10494 if (obj2) {
10495 ecode3 = SWIG_AsVal_int(obj2, &val3);
10496 if (!SWIG_IsOK(ecode3)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'");
10498 }
10499 arg3 = static_cast< int >(val3);
10500 }
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (bool)(arg1)->MoveRight(arg2,arg3);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 {
10508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10509 }
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj = 0;
10518 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10519 int arg2 = (int) 1 ;
10520 int arg3 = (int) 0 ;
10521 bool result;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 int val2 ;
10525 int ecode2 = 0 ;
10526 int val3 ;
10527 int ecode3 = 0 ;
10528 PyObject * obj0 = 0 ;
10529 PyObject * obj1 = 0 ;
10530 PyObject * obj2 = 0 ;
10531 char * kwnames[] = {
10532 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10533 };
10534
10535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10537 if (!SWIG_IsOK(res1)) {
10538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10539 }
10540 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10541 if (obj1) {
10542 ecode2 = SWIG_AsVal_int(obj1, &val2);
10543 if (!SWIG_IsOK(ecode2)) {
10544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'");
10545 }
10546 arg2 = static_cast< int >(val2);
10547 }
10548 if (obj2) {
10549 ecode3 = SWIG_AsVal_int(obj2, &val3);
10550 if (!SWIG_IsOK(ecode3)) {
10551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'");
10552 }
10553 arg3 = static_cast< int >(val3);
10554 }
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 result = (bool)(arg1)->MoveLeft(arg2,arg3);
10558 wxPyEndAllowThreads(__tstate);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 {
10562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10563 }
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10573 int arg2 = (int) 1 ;
10574 int arg3 = (int) 0 ;
10575 bool result;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 int val2 ;
10579 int ecode2 = 0 ;
10580 int val3 ;
10581 int ecode3 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 PyObject * obj2 = 0 ;
10585 char * kwnames[] = {
10586 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10587 };
10588
10589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10591 if (!SWIG_IsOK(res1)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10593 }
10594 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10595 if (obj1) {
10596 ecode2 = SWIG_AsVal_int(obj1, &val2);
10597 if (!SWIG_IsOK(ecode2)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'");
10599 }
10600 arg2 = static_cast< int >(val2);
10601 }
10602 if (obj2) {
10603 ecode3 = SWIG_AsVal_int(obj2, &val3);
10604 if (!SWIG_IsOK(ecode3)) {
10605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'");
10606 }
10607 arg3 = static_cast< int >(val3);
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 result = (bool)(arg1)->MoveUp(arg2,arg3);
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 {
10616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10617 }
10618 return resultobj;
10619 fail:
10620 return NULL;
10621 }
10622
10623
10624 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj = 0;
10626 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10627 int arg2 = (int) 1 ;
10628 int arg3 = (int) 0 ;
10629 bool result;
10630 void *argp1 = 0 ;
10631 int res1 = 0 ;
10632 int val2 ;
10633 int ecode2 = 0 ;
10634 int val3 ;
10635 int ecode3 = 0 ;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 PyObject * obj2 = 0 ;
10639 char * kwnames[] = {
10640 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10641 };
10642
10643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10645 if (!SWIG_IsOK(res1)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10647 }
10648 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10649 if (obj1) {
10650 ecode2 = SWIG_AsVal_int(obj1, &val2);
10651 if (!SWIG_IsOK(ecode2)) {
10652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'");
10653 }
10654 arg2 = static_cast< int >(val2);
10655 }
10656 if (obj2) {
10657 ecode3 = SWIG_AsVal_int(obj2, &val3);
10658 if (!SWIG_IsOK(ecode3)) {
10659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'");
10660 }
10661 arg3 = static_cast< int >(val3);
10662 }
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (bool)(arg1)->MoveDown(arg2,arg3);
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10671 }
10672 return resultobj;
10673 fail:
10674 return NULL;
10675 }
10676
10677
10678 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10679 PyObject *resultobj = 0;
10680 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10681 int arg2 = (int) 0 ;
10682 bool result;
10683 void *argp1 = 0 ;
10684 int res1 = 0 ;
10685 int val2 ;
10686 int ecode2 = 0 ;
10687 PyObject * obj0 = 0 ;
10688 PyObject * obj1 = 0 ;
10689 char * kwnames[] = {
10690 (char *) "self",(char *) "flags", NULL
10691 };
10692
10693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10695 if (!SWIG_IsOK(res1)) {
10696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10697 }
10698 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10699 if (obj1) {
10700 ecode2 = SWIG_AsVal_int(obj1, &val2);
10701 if (!SWIG_IsOK(ecode2)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'");
10703 }
10704 arg2 = static_cast< int >(val2);
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (bool)(arg1)->MoveToLineEnd(arg2);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 {
10713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10714 }
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj = 0;
10723 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10724 int arg2 = (int) 0 ;
10725 bool result;
10726 void *argp1 = 0 ;
10727 int res1 = 0 ;
10728 int val2 ;
10729 int ecode2 = 0 ;
10730 PyObject * obj0 = 0 ;
10731 PyObject * obj1 = 0 ;
10732 char * kwnames[] = {
10733 (char *) "self",(char *) "flags", NULL
10734 };
10735
10736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail;
10737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10738 if (!SWIG_IsOK(res1)) {
10739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10740 }
10741 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10742 if (obj1) {
10743 ecode2 = SWIG_AsVal_int(obj1, &val2);
10744 if (!SWIG_IsOK(ecode2)) {
10745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'");
10746 }
10747 arg2 = static_cast< int >(val2);
10748 }
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 result = (bool)(arg1)->MoveToLineStart(arg2);
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 {
10756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10757 }
10758 return resultobj;
10759 fail:
10760 return NULL;
10761 }
10762
10763
10764 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj = 0;
10766 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10767 int arg2 = (int) 0 ;
10768 bool result;
10769 void *argp1 = 0 ;
10770 int res1 = 0 ;
10771 int val2 ;
10772 int ecode2 = 0 ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775 char * kwnames[] = {
10776 (char *) "self",(char *) "flags", NULL
10777 };
10778
10779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) 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_MoveToParagraphEnd" "', 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_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'");
10789 }
10790 arg2 = static_cast< int >(val2);
10791 }
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 result = (bool)(arg1)->MoveToParagraphEnd(arg2);
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 {
10799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10800 }
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10810 int arg2 = (int) 0 ;
10811 bool result;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "flags", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10826 }
10827 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10828 if (obj1) {
10829 ecode2 = SWIG_AsVal_int(obj1, &val2);
10830 if (!SWIG_IsOK(ecode2)) {
10831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'");
10832 }
10833 arg2 = static_cast< int >(val2);
10834 }
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 result = (bool)(arg1)->MoveToParagraphStart(arg2);
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10843 }
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = 0;
10852 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10853 int arg2 = (int) 0 ;
10854 bool result;
10855 void *argp1 = 0 ;
10856 int res1 = 0 ;
10857 int val2 ;
10858 int ecode2 = 0 ;
10859 PyObject * obj0 = 0 ;
10860 PyObject * obj1 = 0 ;
10861 char * kwnames[] = {
10862 (char *) "self",(char *) "flags", NULL
10863 };
10864
10865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail;
10866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10867 if (!SWIG_IsOK(res1)) {
10868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10869 }
10870 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10871 if (obj1) {
10872 ecode2 = SWIG_AsVal_int(obj1, &val2);
10873 if (!SWIG_IsOK(ecode2)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'");
10875 }
10876 arg2 = static_cast< int >(val2);
10877 }
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 result = (bool)(arg1)->MoveHome(arg2);
10881 wxPyEndAllowThreads(__tstate);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 }
10884 {
10885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10886 }
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj = 0;
10895 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10896 int arg2 = (int) 0 ;
10897 bool result;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 int val2 ;
10901 int ecode2 = 0 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 char * kwnames[] = {
10905 (char *) "self",(char *) "flags", NULL
10906 };
10907
10908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10910 if (!SWIG_IsOK(res1)) {
10911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10912 }
10913 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10914 if (obj1) {
10915 ecode2 = SWIG_AsVal_int(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'");
10918 }
10919 arg2 = static_cast< int >(val2);
10920 }
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 result = (bool)(arg1)->MoveEnd(arg2);
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 {
10928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10929 }
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj = 0;
10938 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10939 int arg2 = (int) 1 ;
10940 int arg3 = (int) 0 ;
10941 bool result;
10942 void *argp1 = 0 ;
10943 int res1 = 0 ;
10944 int val2 ;
10945 int ecode2 = 0 ;
10946 int val3 ;
10947 int ecode3 = 0 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 PyObject * obj2 = 0 ;
10951 char * kwnames[] = {
10952 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10953 };
10954
10955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10957 if (!SWIG_IsOK(res1)) {
10958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10959 }
10960 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10961 if (obj1) {
10962 ecode2 = SWIG_AsVal_int(obj1, &val2);
10963 if (!SWIG_IsOK(ecode2)) {
10964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'");
10965 }
10966 arg2 = static_cast< int >(val2);
10967 }
10968 if (obj2) {
10969 ecode3 = SWIG_AsVal_int(obj2, &val3);
10970 if (!SWIG_IsOK(ecode3)) {
10971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'");
10972 }
10973 arg3 = static_cast< int >(val3);
10974 }
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 result = (bool)(arg1)->PageUp(arg2,arg3);
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 {
10982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10983 }
10984 return resultobj;
10985 fail:
10986 return NULL;
10987 }
10988
10989
10990 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj = 0;
10992 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10993 int arg2 = (int) 1 ;
10994 int arg3 = (int) 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 int val2 ;
10999 int ecode2 = 0 ;
11000 int val3 ;
11001 int ecode3 = 0 ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 PyObject * obj2 = 0 ;
11005 char * kwnames[] = {
11006 (char *) "self",(char *) "noPages",(char *) "flags", NULL
11007 };
11008
11009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11013 }
11014 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11015 if (obj1) {
11016 ecode2 = SWIG_AsVal_int(obj1, &val2);
11017 if (!SWIG_IsOK(ecode2)) {
11018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'");
11019 }
11020 arg2 = static_cast< int >(val2);
11021 }
11022 if (obj2) {
11023 ecode3 = SWIG_AsVal_int(obj2, &val3);
11024 if (!SWIG_IsOK(ecode3)) {
11025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'");
11026 }
11027 arg3 = static_cast< int >(val3);
11028 }
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (bool)(arg1)->PageDown(arg2,arg3);
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11037 }
11038 return resultobj;
11039 fail:
11040 return NULL;
11041 }
11042
11043
11044 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11045 PyObject *resultobj = 0;
11046 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11047 int arg2 = (int) 1 ;
11048 int arg3 = (int) 0 ;
11049 bool result;
11050 void *argp1 = 0 ;
11051 int res1 = 0 ;
11052 int val2 ;
11053 int ecode2 = 0 ;
11054 int val3 ;
11055 int ecode3 = 0 ;
11056 PyObject * obj0 = 0 ;
11057 PyObject * obj1 = 0 ;
11058 PyObject * obj2 = 0 ;
11059 char * kwnames[] = {
11060 (char *) "self",(char *) "noPages",(char *) "flags", NULL
11061 };
11062
11063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11065 if (!SWIG_IsOK(res1)) {
11066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11067 }
11068 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11069 if (obj1) {
11070 ecode2 = SWIG_AsVal_int(obj1, &val2);
11071 if (!SWIG_IsOK(ecode2)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'");
11073 }
11074 arg2 = static_cast< int >(val2);
11075 }
11076 if (obj2) {
11077 ecode3 = SWIG_AsVal_int(obj2, &val3);
11078 if (!SWIG_IsOK(ecode3)) {
11079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'");
11080 }
11081 arg3 = static_cast< int >(val3);
11082 }
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 result = (bool)(arg1)->WordLeft(arg2,arg3);
11086 wxPyEndAllowThreads(__tstate);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 {
11090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11091 }
11092 return resultobj;
11093 fail:
11094 return NULL;
11095 }
11096
11097
11098 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11099 PyObject *resultobj = 0;
11100 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11101 int arg2 = (int) 1 ;
11102 int arg3 = (int) 0 ;
11103 bool result;
11104 void *argp1 = 0 ;
11105 int res1 = 0 ;
11106 int val2 ;
11107 int ecode2 = 0 ;
11108 int val3 ;
11109 int ecode3 = 0 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 PyObject * obj2 = 0 ;
11113 char * kwnames[] = {
11114 (char *) "self",(char *) "noPages",(char *) "flags", NULL
11115 };
11116
11117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11119 if (!SWIG_IsOK(res1)) {
11120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11121 }
11122 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11123 if (obj1) {
11124 ecode2 = SWIG_AsVal_int(obj1, &val2);
11125 if (!SWIG_IsOK(ecode2)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'");
11127 }
11128 arg2 = static_cast< int >(val2);
11129 }
11130 if (obj2) {
11131 ecode3 = SWIG_AsVal_int(obj2, &val3);
11132 if (!SWIG_IsOK(ecode3)) {
11133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'");
11134 }
11135 arg3 = static_cast< int >(val3);
11136 }
11137 {
11138 PyThreadState* __tstate = wxPyBeginAllowThreads();
11139 result = (bool)(arg1)->WordRight(arg2,arg3);
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 {
11144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11145 }
11146 return resultobj;
11147 fail:
11148 return NULL;
11149 }
11150
11151
11152 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11153 PyObject *resultobj = 0;
11154 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11155 wxRichTextBuffer *result = 0 ;
11156 void *argp1 = 0 ;
11157 int res1 = 0 ;
11158 PyObject *swig_obj[1] ;
11159
11160 if (!args) SWIG_fail;
11161 swig_obj[0] = args;
11162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11167 {
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 {
11170 wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer();
11171 result = (wxRichTextBuffer *) &_result_ref;
11172 }
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 );
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj = 0;
11185 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11186 wxString *arg2 = 0 ;
11187 bool result;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 bool temp2 = false ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 char * kwnames[] = {
11194 (char *) "self",(char *) "cmdName", NULL
11195 };
11196
11197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail;
11198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11199 if (!SWIG_IsOK(res1)) {
11200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11201 }
11202 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11203 {
11204 arg2 = wxString_in_helper(obj1);
11205 if (arg2 == NULL) SWIG_fail;
11206 temp2 = true;
11207 }
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
11210 result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2);
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 {
11215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11216 }
11217 {
11218 if (temp2)
11219 delete arg2;
11220 }
11221 return resultobj;
11222 fail:
11223 {
11224 if (temp2)
11225 delete arg2;
11226 }
11227 return NULL;
11228 }
11229
11230
11231 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11232 PyObject *resultobj = 0;
11233 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11234 bool result;
11235 void *argp1 = 0 ;
11236 int res1 = 0 ;
11237 PyObject *swig_obj[1] ;
11238
11239 if (!args) SWIG_fail;
11240 swig_obj[0] = args;
11241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11244 }
11245 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (bool)(arg1)->EndBatchUndo();
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 {
11253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11254 }
11255 return resultobj;
11256 fail:
11257 return NULL;
11258 }
11259
11260
11261 SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11262 PyObject *resultobj = 0;
11263 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11264 bool result;
11265 void *argp1 = 0 ;
11266 int res1 = 0 ;
11267 PyObject *swig_obj[1] ;
11268
11269 if (!args) SWIG_fail;
11270 swig_obj[0] = args;
11271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11272 if (!SWIG_IsOK(res1)) {
11273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11274 }
11275 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11276 {
11277 PyThreadState* __tstate = wxPyBeginAllowThreads();
11278 result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo();
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 {
11283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11284 }
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11292 PyObject *resultobj = 0;
11293 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11294 bool result;
11295 void *argp1 = 0 ;
11296 int res1 = 0 ;
11297 PyObject *swig_obj[1] ;
11298
11299 if (!args) SWIG_fail;
11300 swig_obj[0] = args;
11301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11302 if (!SWIG_IsOK(res1)) {
11303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11304 }
11305 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (bool)(arg1)->BeginSuppressUndo();
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 {
11313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11314 }
11315 return resultobj;
11316 fail:
11317 return NULL;
11318 }
11319
11320
11321 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11322 PyObject *resultobj = 0;
11323 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11324 bool result;
11325 void *argp1 = 0 ;
11326 int res1 = 0 ;
11327 PyObject *swig_obj[1] ;
11328
11329 if (!args) SWIG_fail;
11330 swig_obj[0] = args;
11331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11332 if (!SWIG_IsOK(res1)) {
11333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11334 }
11335 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11336 {
11337 PyThreadState* __tstate = wxPyBeginAllowThreads();
11338 result = (bool)(arg1)->EndSuppressUndo();
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 {
11343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11344 }
11345 return resultobj;
11346 fail:
11347 return NULL;
11348 }
11349
11350
11351 SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11352 PyObject *resultobj = 0;
11353 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11354 bool result;
11355 void *argp1 = 0 ;
11356 int res1 = 0 ;
11357 PyObject *swig_obj[1] ;
11358
11359 if (!args) SWIG_fail;
11360 swig_obj[0] = args;
11361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11362 if (!SWIG_IsOK(res1)) {
11363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11364 }
11365 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11366 {
11367 PyThreadState* __tstate = wxPyBeginAllowThreads();
11368 result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo();
11369 wxPyEndAllowThreads(__tstate);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 }
11372 {
11373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11374 }
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj = 0;
11383 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11384 wxRichTextRange *arg2 = 0 ;
11385 wxRichTextAttr *arg3 = 0 ;
11386 bool result;
11387 void *argp1 = 0 ;
11388 int res1 = 0 ;
11389 wxRichTextRange temp2 ;
11390 void *argp3 = 0 ;
11391 int res3 = 0 ;
11392 PyObject * obj0 = 0 ;
11393 PyObject * obj1 = 0 ;
11394 PyObject * obj2 = 0 ;
11395 char * kwnames[] = {
11396 (char *) "self",(char *) "range",(char *) "style", NULL
11397 };
11398
11399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11403 }
11404 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
11410 if (!SWIG_IsOK(res3)) {
11411 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11412 }
11413 if (!argp3) {
11414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11415 }
11416 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11425 }
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = 0;
11434 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11435 wxRichTextRange *arg2 = 0 ;
11436 wxRichTextAttr *arg3 = 0 ;
11437 bool result;
11438 void *argp1 = 0 ;
11439 int res1 = 0 ;
11440 wxRichTextRange temp2 ;
11441 void *argp3 = 0 ;
11442 int res3 = 0 ;
11443 PyObject * obj0 = 0 ;
11444 PyObject * obj1 = 0 ;
11445 PyObject * obj2 = 0 ;
11446 char * kwnames[] = {
11447 (char *) "self",(char *) "range",(char *) "style", NULL
11448 };
11449
11450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11452 if (!SWIG_IsOK(res1)) {
11453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11454 }
11455 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11456 {
11457 arg2 = &temp2;
11458 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
11459 }
11460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
11461 if (!SWIG_IsOK(res3)) {
11462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11463 }
11464 if (!argp3) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11466 }
11467 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11484 PyObject *resultobj = 0;
11485 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11486 bool result;
11487 void *argp1 = 0 ;
11488 int res1 = 0 ;
11489 PyObject *swig_obj[1] ;
11490
11491 if (!args) SWIG_fail;
11492 swig_obj[0] = args;
11493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11494 if (!SWIG_IsOK(res1)) {
11495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11496 }
11497 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 result = (bool)(arg1)->IsSelectionBold();
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11506 }
11507 return resultobj;
11508 fail:
11509 return NULL;
11510 }
11511
11512
11513 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 PyObject *resultobj = 0;
11515 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11516 bool result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 PyObject *swig_obj[1] ;
11520
11521 if (!args) SWIG_fail;
11522 swig_obj[0] = args;
11523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11526 }
11527 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (bool)(arg1)->IsSelectionItalics();
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11536 }
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *resultobj = 0;
11545 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11546 bool result;
11547 void *argp1 = 0 ;
11548 int res1 = 0 ;
11549 PyObject *swig_obj[1] ;
11550
11551 if (!args) SWIG_fail;
11552 swig_obj[0] = args;
11553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11554 if (!SWIG_IsOK(res1)) {
11555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11556 }
11557 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 result = (bool)(arg1)->IsSelectionUnderlined();
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 }
11564 {
11565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11566 }
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj = 0;
11575 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11576 wxTextAttrAlignment arg2 ;
11577 bool result;
11578 void *argp1 = 0 ;
11579 int res1 = 0 ;
11580 int val2 ;
11581 int ecode2 = 0 ;
11582 PyObject * obj0 = 0 ;
11583 PyObject * obj1 = 0 ;
11584 char * kwnames[] = {
11585 (char *) "self",(char *) "alignment", NULL
11586 };
11587
11588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail;
11589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11590 if (!SWIG_IsOK(res1)) {
11591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11592 }
11593 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11594 ecode2 = SWIG_AsVal_int(obj1, &val2);
11595 if (!SWIG_IsOK(ecode2)) {
11596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11597 }
11598 arg2 = static_cast< wxTextAttrAlignment >(val2);
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 result = (bool)(arg1)->IsSelectionAligned(arg2);
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 {
11606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11607 }
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 PyObject *resultobj = 0;
11616 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11617 bool result;
11618 void *argp1 = 0 ;
11619 int res1 = 0 ;
11620 PyObject *swig_obj[1] ;
11621
11622 if (!args) SWIG_fail;
11623 swig_obj[0] = args;
11624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11625 if (!SWIG_IsOK(res1)) {
11626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11627 }
11628 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11629 {
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 result = (bool)(arg1)->ApplyBoldToSelection();
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 {
11636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11637 }
11638 return resultobj;
11639 fail:
11640 return NULL;
11641 }
11642
11643
11644 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11645 PyObject *resultobj = 0;
11646 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11647 bool result;
11648 void *argp1 = 0 ;
11649 int res1 = 0 ;
11650 PyObject *swig_obj[1] ;
11651
11652 if (!args) SWIG_fail;
11653 swig_obj[0] = args;
11654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11655 if (!SWIG_IsOK(res1)) {
11656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11657 }
11658 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11659 {
11660 PyThreadState* __tstate = wxPyBeginAllowThreads();
11661 result = (bool)(arg1)->ApplyItalicToSelection();
11662 wxPyEndAllowThreads(__tstate);
11663 if (PyErr_Occurred()) SWIG_fail;
11664 }
11665 {
11666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11667 }
11668 return resultobj;
11669 fail:
11670 return NULL;
11671 }
11672
11673
11674 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11675 PyObject *resultobj = 0;
11676 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11677 bool result;
11678 void *argp1 = 0 ;
11679 int res1 = 0 ;
11680 PyObject *swig_obj[1] ;
11681
11682 if (!args) SWIG_fail;
11683 swig_obj[0] = args;
11684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11685 if (!SWIG_IsOK(res1)) {
11686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11687 }
11688 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11689 {
11690 PyThreadState* __tstate = wxPyBeginAllowThreads();
11691 result = (bool)(arg1)->ApplyUnderlineToSelection();
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 {
11696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11697 }
11698 return resultobj;
11699 fail:
11700 return NULL;
11701 }
11702
11703
11704 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11705 PyObject *resultobj = 0;
11706 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11707 wxTextAttrAlignment arg2 ;
11708 bool result;
11709 void *argp1 = 0 ;
11710 int res1 = 0 ;
11711 int val2 ;
11712 int ecode2 = 0 ;
11713 PyObject * obj0 = 0 ;
11714 PyObject * obj1 = 0 ;
11715 char * kwnames[] = {
11716 (char *) "self",(char *) "alignment", NULL
11717 };
11718
11719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail;
11720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11721 if (!SWIG_IsOK(res1)) {
11722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11723 }
11724 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11725 ecode2 = SWIG_AsVal_int(obj1, &val2);
11726 if (!SWIG_IsOK(ecode2)) {
11727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11728 }
11729 arg2 = static_cast< wxTextAttrAlignment >(val2);
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 result = (bool)(arg1)->ApplyAlignmentToSelection(arg2);
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 {
11737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11738 }
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj = 0;
11747 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11748 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ;
11749 void *argp1 = 0 ;
11750 int res1 = 0 ;
11751 void *argp2 = 0 ;
11752 int res2 = 0 ;
11753 PyObject * obj0 = 0 ;
11754 PyObject * obj1 = 0 ;
11755 char * kwnames[] = {
11756 (char *) "self",(char *) "styleSheet", NULL
11757 };
11758
11759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11761 if (!SWIG_IsOK(res1)) {
11762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11763 }
11764 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11765 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11766 if (!SWIG_IsOK(res2)) {
11767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11768 }
11769 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 (arg1)->SetStyleSheet(arg2);
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 resultobj = SWIG_Py_Void();
11777 return resultobj;
11778 fail:
11779 return NULL;
11780 }
11781
11782
11783 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11784 PyObject *resultobj = 0;
11785 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11786 wxRichTextStyleSheet *result = 0 ;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 PyObject *swig_obj[1] ;
11790
11791 if (!args) SWIG_fail;
11792 swig_obj[0] = args;
11793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11794 if (!SWIG_IsOK(res1)) {
11795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11796 }
11797 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet();
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11805 return resultobj;
11806 fail:
11807 return NULL;
11808 }
11809
11810
11811 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11812 PyObject *resultobj = 0;
11813 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11814 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) NULL ;
11815 bool result;
11816 void *argp1 = 0 ;
11817 int res1 = 0 ;
11818 void *argp2 = 0 ;
11819 int res2 = 0 ;
11820 PyObject * obj0 = 0 ;
11821 PyObject * obj1 = 0 ;
11822 char * kwnames[] = {
11823 (char *) "self",(char *) "styleSheet", NULL
11824 };
11825
11826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_ApplyStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11828 if (!SWIG_IsOK(res1)) {
11829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11830 }
11831 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11832 if (obj1) {
11833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11834 if (!SWIG_IsOK(res2)) {
11835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11836 }
11837 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11838 }
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 result = (bool)(arg1)->ApplyStyleSheet(arg2);
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 {
11846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11847 }
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11855 PyObject *obj;
11856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11857 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj));
11858 return SWIG_Py_Void();
11859 }
11860
11861 SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 return SWIG_Python_InitShadowInstance(args);
11863 }
11864
11865 SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj = 0;
11867 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11868 int arg2 = (int) 0 ;
11869 wxRichTextEvent *result = 0 ;
11870 int val1 ;
11871 int ecode1 = 0 ;
11872 int val2 ;
11873 int ecode2 = 0 ;
11874 PyObject * obj0 = 0 ;
11875 PyObject * obj1 = 0 ;
11876 char * kwnames[] = {
11877 (char *) "commandType",(char *) "winid", NULL
11878 };
11879
11880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11881 if (obj0) {
11882 ecode1 = SWIG_AsVal_int(obj0, &val1);
11883 if (!SWIG_IsOK(ecode1)) {
11884 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
11885 }
11886 arg1 = static_cast< wxEventType >(val1);
11887 }
11888 if (obj1) {
11889 ecode2 = SWIG_AsVal_int(obj1, &val2);
11890 if (!SWIG_IsOK(ecode2)) {
11891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'");
11892 }
11893 arg2 = static_cast< int >(val2);
11894 }
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2);
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 );
11902 return resultobj;
11903 fail:
11904 return NULL;
11905 }
11906
11907
11908 SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11909 PyObject *resultobj = 0;
11910 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11911 int result;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 PyObject *swig_obj[1] ;
11915
11916 if (!args) SWIG_fail;
11917 swig_obj[0] = args;
11918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11919 if (!SWIG_IsOK(res1)) {
11920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11921 }
11922 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 result = (int)((wxRichTextEvent const *)arg1)->GetIndex();
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 resultobj = SWIG_From_int(static_cast< int >(result));
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11939 int arg2 ;
11940 void *argp1 = 0 ;
11941 int res1 = 0 ;
11942 int val2 ;
11943 int ecode2 = 0 ;
11944 PyObject * obj0 = 0 ;
11945 PyObject * obj1 = 0 ;
11946 char * kwnames[] = {
11947 (char *) "self",(char *) "n", NULL
11948 };
11949
11950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
11951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11952 if (!SWIG_IsOK(res1)) {
11953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11954 }
11955 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11956 ecode2 = SWIG_AsVal_int(obj1, &val2);
11957 if (!SWIG_IsOK(ecode2)) {
11958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'");
11959 }
11960 arg2 = static_cast< int >(val2);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 (arg1)->SetIndex(arg2);
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 resultobj = SWIG_Py_Void();
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11975 PyObject *resultobj = 0;
11976 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11977 int result;
11978 void *argp1 = 0 ;
11979 int res1 = 0 ;
11980 PyObject *swig_obj[1] ;
11981
11982 if (!args) SWIG_fail;
11983 swig_obj[0] = args;
11984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11987 }
11988 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (int)((wxRichTextEvent const *)arg1)->GetFlags();
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_From_int(static_cast< int >(result));
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12003 PyObject *resultobj = 0;
12004 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
12005 int arg2 ;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 int val2 ;
12009 int ecode2 = 0 ;
12010 PyObject * obj0 = 0 ;
12011 PyObject * obj1 = 0 ;
12012 char * kwnames[] = {
12013 (char *) "self",(char *) "flags", NULL
12014 };
12015
12016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
12017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
12018 if (!SWIG_IsOK(res1)) {
12019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
12020 }
12021 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
12022 ecode2 = SWIG_AsVal_int(obj1, &val2);
12023 if (!SWIG_IsOK(ecode2)) {
12024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'");
12025 }
12026 arg2 = static_cast< int >(val2);
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 (arg1)->SetFlags(arg2);
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 resultobj = SWIG_Py_Void();
12034 return resultobj;
12035 fail:
12036 return NULL;
12037 }
12038
12039
12040 SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12041 PyObject *obj;
12042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12043 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj));
12044 return SWIG_Py_Void();
12045 }
12046
12047 SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12048 return SWIG_Python_InitShadowInstance(args);
12049 }
12050
12051 static PyMethodDef SwigMethods[] = {
12052 { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL},
12053 { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL},
12054 { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
12055 { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
12056 { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL},
12057 { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
12058 { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL},
12059 { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL},
12060 { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12061 { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL},
12062 { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL},
12063 { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL},
12064 { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
12065 { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL},
12066 { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL},
12067 { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL},
12068 { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL},
12069 { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL},
12070 { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL},
12071 { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
12072 { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL},
12073 { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL},
12074 { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
12075 { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
12076 { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
12077 { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
12078 { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
12079 { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12080 { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12081 { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
12082 { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12083 { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL},
12084 { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
12085 { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
12086 { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
12087 { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
12088 { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
12089 { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL},
12090 { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL},
12091 { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
12092 { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12093 { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
12094 { (char *)"RichTextAttr_SetBulletText", (PyCFunction) _wrap_RichTextAttr_SetBulletText, METH_VARARGS | METH_KEYWORDS, NULL},
12095 { (char *)"RichTextAttr_SetBulletFont", (PyCFunction) _wrap_RichTextAttr_SetBulletFont, METH_VARARGS | METH_KEYWORDS, NULL},
12096 { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
12097 { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
12098 { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
12099 { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL},
12100 { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL},
12101 { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL},
12102 { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL},
12103 { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL},
12104 { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL},
12105 { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL},
12106 { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL},
12107 { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL},
12108 { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL},
12109 { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL},
12110 { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL},
12111 { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL},
12112 { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL},
12113 { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL},
12114 { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
12115 { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
12116 { (char *)"RichTextAttr_GetBulletText", (PyCFunction)_wrap_RichTextAttr_GetBulletText, METH_O, NULL},
12117 { (char *)"RichTextAttr_GetBulletFont", (PyCFunction)_wrap_RichTextAttr_GetBulletFont, METH_O, NULL},
12118 { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
12119 { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
12120 { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
12121 { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL},
12122 { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL},
12123 { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL},
12124 { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL},
12125 { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL},
12126 { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL},
12127 { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL},
12128 { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL},
12129 { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL},
12130 { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL},
12131 { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL},
12132 { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL},
12133 { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL},
12134 { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL},
12135 { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL},
12136 { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL},
12137 { (char *)"RichTextAttr_HasBulletText", (PyCFunction)_wrap_RichTextAttr_HasBulletText, METH_O, NULL},
12138 { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
12139 { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL},
12140 { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL},
12141 { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL},
12142 { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL},
12143 { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL},
12144 { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
12145 { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL},
12146 { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
12147 { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL},
12148 { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
12149 { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
12150 { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
12151 { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
12152 { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL},
12153 { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL},
12154 { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL},
12155 { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL},
12156 { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL},
12157 { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL},
12158 { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL},
12159 { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL},
12160 { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL},
12161 { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
12162 { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL},
12163 { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL},
12164 { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
12165 { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
12166 { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
12167 { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
12168 { (char *)"RichTextCtrl_SetHandlerFlags", (PyCFunction) _wrap_RichTextCtrl_SetHandlerFlags, METH_VARARGS | METH_KEYWORDS, NULL},
12169 { (char *)"RichTextCtrl_GetHandlerFlags", (PyCFunction)_wrap_RichTextCtrl_GetHandlerFlags, METH_O, NULL},
12170 { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL},
12171 { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL},
12172 { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
12173 { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
12174 { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
12175 { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12176 { (char *)"RichTextCtrl_SetStyleEx", (PyCFunction) _wrap_RichTextCtrl_SetStyleEx, METH_VARARGS | METH_KEYWORDS, NULL},
12177 { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12178 { (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12179 { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12180 { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL},
12181 { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
12182 { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
12183 { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
12184 { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
12185 { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
12186 { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL},
12187 { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL},
12188 { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL},
12189 { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL},
12190 { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL},
12191 { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL},
12192 { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL},
12193 { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL},
12194 { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL},
12195 { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL},
12196 { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL},
12197 { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL},
12198 { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
12199 { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL},
12200 { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL},
12201 { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL},
12202 { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
12203 { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL},
12204 { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
12205 { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL},
12206 { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL},
12207 { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
12208 { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL},
12209 { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL},
12210 { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL},
12211 { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12212 { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL},
12213 { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL},
12214 { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL},
12215 { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL},
12216 { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL},
12217 { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL},
12218 { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL},
12219 { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL},
12220 { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
12221 { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL},
12222 { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL},
12223 { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL},
12224 { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
12225 { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL},
12226 { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
12227 { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL},
12228 { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12229 { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL},
12230 { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12231 { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL},
12232 { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
12233 { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL},
12234 { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
12235 { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL},
12236 { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL},
12237 { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL},
12238 { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL},
12239 { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL},
12240 { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12241 { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL},
12242 { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12243 { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL},
12244 { (char *)"RichTextCtrl_BeginListStyle", (PyCFunction) _wrap_RichTextCtrl_BeginListStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12245 { (char *)"RichTextCtrl_EndListStyle", (PyCFunction)_wrap_RichTextCtrl_EndListStyle, METH_O, NULL},
12246 { (char *)"RichTextCtrl_BeginURL", (PyCFunction) _wrap_RichTextCtrl_BeginURL, METH_VARARGS | METH_KEYWORDS, NULL},
12247 { (char *)"RichTextCtrl_EndURL", (PyCFunction)_wrap_RichTextCtrl_EndURL, METH_O, NULL},
12248 { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL},
12249 { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL},
12250 { (char *)"RichTextCtrl_SelectWord", (PyCFunction) _wrap_RichTextCtrl_SelectWord, METH_VARARGS | METH_KEYWORDS, NULL},
12251 { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL},
12252 { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
12253 { (char *)"RichTextCtrl_GetInternalSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetInternalSelectionRange, METH_O, NULL},
12254 { (char *)"RichTextCtrl_SetInternalSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetInternalSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
12255 { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL},
12256 { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL},
12257 { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL},
12258 { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL},
12259 { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL},
12260 { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL},
12261 { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL},
12262 { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL},
12263 { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12264 { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL},
12265 { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12266 { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL},
12267 { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL},
12268 { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12269 { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
12270 { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
12271 { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL},
12272 { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL},
12273 { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL},
12274 { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL},
12275 { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL},
12276 { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL},
12277 { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL},
12278 { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL},
12279 { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL},
12280 { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
12281 { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
12282 { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL},
12283 { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL},
12284 { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL},
12285 { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL},
12286 { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL},
12287 { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL},
12288 { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL},
12289 { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL},
12290 { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
12291 { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL},
12292 { (char *)"RichTextCtrl_ApplyStyleSheet", (PyCFunction) _wrap_RichTextCtrl_ApplyStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
12293 { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL},
12294 { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL},
12295 { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
12296 { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL},
12297 { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
12298 { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL},
12299 { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
12300 { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL},
12301 { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL},
12302 { NULL, NULL, 0, NULL }
12303 };
12304
12305
12306 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
12307
12308 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
12309 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
12310 }
12311 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
12312 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
12313 }
12314 static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
12315 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12316 }
12317 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
12318 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12319 }
12320 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
12321 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12322 }
12323 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
12324 return (void *)((wxPanel *) ((wxPyPanel *) x));
12325 }
12326 static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) {
12327 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x));
12328 }
12329 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
12330 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
12331 }
12332 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
12333 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
12334 }
12335 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
12336 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12337 }
12338 static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) {
12339 return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x));
12340 }
12341 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
12342 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
12343 }
12344 static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
12345 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12346 }
12347 static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) {
12348 return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x));
12349 }
12350 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
12351 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
12352 }
12353 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
12354 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12355 }
12356 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
12357 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12358 }
12359 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
12360 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
12361 }
12362 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
12363 return (void *)((wxWindow *) ((wxMenuBar *) x));
12364 }
12365 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
12366 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12367 }
12368 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
12369 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12370 }
12371 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
12372 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12373 }
12374 static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) {
12375 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
12376 }
12377 static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) {
12378 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12379 }
12380 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
12381 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12382 }
12383 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
12384 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12385 }
12386 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
12387 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12388 }
12389 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
12390 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12391 }
12392 static void *_p_wxPanelTo_p_wxWindow(void *x) {
12393 return (void *)((wxWindow *) ((wxPanel *) x));
12394 }
12395 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
12396 return (void *)((wxWindow *) ((wxStatusBar *) x));
12397 }
12398 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
12399 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
12400 }
12401 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
12402 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
12403 }
12404 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
12405 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12406 }
12407 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
12408 return (void *)((wxWindow *) ((wxPopupWindow *) x));
12409 }
12410 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
12411 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
12412 }
12413 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
12414 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
12415 }
12416 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
12417 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
12418 }
12419 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
12420 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
12421 }
12422 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
12423 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
12424 }
12425 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
12426 return (void *)((wxWindow *) ((wxSashWindow *) x));
12427 }
12428 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
12429 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
12430 }
12431 static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
12432 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12433 }
12434 static void *_p_wxControlTo_p_wxWindow(void *x) {
12435 return (void *)((wxWindow *) ((wxControl *) x));
12436 }
12437 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
12438 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12439 }
12440 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
12441 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12442 }
12443 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
12444 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12445 }
12446 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
12447 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
12448 }
12449 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
12450 return (void *)((wxWindow *) ((wxPyWindow *) x));
12451 }
12452 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
12453 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12454 }
12455 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
12456 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12457 }
12458 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
12459 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12460 }
12461 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
12462 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
12463 }
12464 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
12465 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12466 }
12467 static void *_p_wxFrameTo_p_wxWindow(void *x) {
12468 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
12469 }
12470 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
12471 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12472 }
12473 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
12474 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12475 }
12476 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
12477 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12478 }
12479 static void *_p_wxDialogTo_p_wxWindow(void *x) {
12480 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
12481 }
12482 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
12483 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12484 }
12485 static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) {
12486 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12487 }
12488 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
12489 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
12490 }
12491 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
12492 return (void *)((wxEvent *) ((wxMenuEvent *) x));
12493 }
12494 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
12495 return (void *)((wxEvent *) ((wxCloseEvent *) x));
12496 }
12497 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
12498 return (void *)((wxEvent *) ((wxMouseEvent *) x));
12499 }
12500 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
12501 return (void *)((wxEvent *) ((wxEraseEvent *) x));
12502 }
12503 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
12504 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
12505 }
12506 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
12507 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
12508 }
12509 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
12510 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
12511 }
12512 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
12513 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
12514 }
12515 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
12516 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
12517 }
12518 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
12519 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
12520 }
12521 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
12522 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
12523 }
12524 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
12525 return (void *)((wxEvent *) ((wxPyEvent *) x));
12526 }
12527 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
12528 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
12529 }
12530 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
12531 return (void *)((wxEvent *) ((wxIdleEvent *) x));
12532 }
12533 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
12534 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
12535 }
12536 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
12537 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
12538 }
12539 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
12540 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
12541 }
12542 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
12543 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
12544 }
12545 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
12546 return (void *)((wxEvent *) ((wxActivateEvent *) x));
12547 }
12548 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
12549 return (void *)((wxEvent *) ((wxSizeEvent *) x));
12550 }
12551 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
12552 return (void *)((wxEvent *) ((wxMoveEvent *) x));
12553 }
12554 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
12555 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
12556 }
12557 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
12558 return (void *)((wxEvent *) ((wxPaintEvent *) x));
12559 }
12560 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
12561 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
12562 }
12563 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
12564 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
12565 }
12566 static void *_p_wxRichTextEventTo_p_wxEvent(void *x) {
12567 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12568 }
12569 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
12570 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
12571 }
12572 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
12573 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
12574 }
12575 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
12576 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
12577 }
12578 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
12579 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12580 }
12581 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
12582 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
12583 }
12584 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
12585 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
12586 }
12587 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
12588 return (void *)((wxEvent *) ((wxFocusEvent *) x));
12589 }
12590 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
12591 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
12592 }
12593 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
12594 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
12595 }
12596 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
12597 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12598 }
12599 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
12600 return (void *)((wxEvent *) ((wxShowEvent *) x));
12601 }
12602 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
12603 return (void *)((wxEvent *) ((wxCommandEvent *) x));
12604 }
12605 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
12606 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
12607 }
12608 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
12609 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12610 }
12611 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
12612 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
12613 }
12614 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
12615 return (void *)((wxEvent *) ((wxKeyEvent *) x));
12616 }
12617 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
12618 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
12619 }
12620 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
12621 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
12622 }
12623 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
12624 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
12625 }
12626 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
12627 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12628 }
12629 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
12630 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12631 }
12632 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
12633 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12634 }
12635 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
12636 return (void *)((wxObject *) ((wxSizerItem *) x));
12637 }
12638 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
12639 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
12640 }
12641 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
12642 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
12643 }
12644 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
12645 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
12646 }
12647 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
12648 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
12649 }
12650 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
12651 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
12652 }
12653 static void *_p_wxSizerTo_p_wxObject(void *x) {
12654 return (void *)((wxObject *) ((wxSizer *) x));
12655 }
12656 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
12657 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
12658 }
12659 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
12660 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
12661 }
12662 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
12663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12664 }
12665 static void *_p_wxEventTo_p_wxObject(void *x) {
12666 return (void *)((wxObject *) ((wxEvent *) x));
12667 }
12668 static void *_p_wxFontDataTo_p_wxObject(void *x) {
12669 return (void *)((wxObject *) ((wxFontData *) x));
12670 }
12671 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
12672 return (void *)((wxObject *) ((wxPrintData *) x));
12673 }
12674 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
12675 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
12676 }
12677 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
12678 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
12679 }
12680 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
12681 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
12682 }
12683 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
12684 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
12685 }
12686 static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) {
12687 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12688 }
12689 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
12690 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
12691 }
12692 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
12693 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
12694 }
12695 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
12696 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
12697 }
12698 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
12699 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
12700 }
12701 static void *_p_wxRichTextEventTo_p_wxObject(void *x) {
12702 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12703 }
12704 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
12705 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
12706 }
12707 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
12708 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
12709 }
12710 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
12711 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12712 }
12713 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
12714 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
12715 }
12716 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
12717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12718 }
12719 static void *_p_wxControlTo_p_wxObject(void *x) {
12720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
12721 }
12722 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
12723 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
12724 }
12725 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
12726 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
12727 }
12728 static void *_p_wxFSFileTo_p_wxObject(void *x) {
12729 return (void *)((wxObject *) ((wxFSFile *) x));
12730 }
12731 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
12732 return (void *)((wxObject *) ((wxFindReplaceData *) x));
12733 }
12734 static void *_p_wxPySizerTo_p_wxObject(void *x) {
12735 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
12736 }
12737 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
12738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12739 }
12740 static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) {
12741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12742 }
12743 static void *_p_wxColourDataTo_p_wxObject(void *x) {
12744 return (void *)((wxObject *) ((wxColourData *) x));
12745 }
12746 static void *_p_wxPyEventTo_p_wxObject(void *x) {
12747 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
12748 }
12749 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
12750 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
12751 }
12752 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
12753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
12754 }
12755 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
12756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12757 }
12758 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
12759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12760 }
12761 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
12762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12763 }
12764 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
12765 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12766 }
12767 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
12768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12769 }
12770 static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) {
12771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12772 }
12773 static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) {
12774 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
12775 }
12776 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
12777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12778 }
12779 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
12780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12781 }
12782 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
12783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12784 }
12785 static void *_p_wxShowEventTo_p_wxObject(void *x) {
12786 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
12787 }
12788 static void *_p_wxPrinterTo_p_wxObject(void *x) {
12789 return (void *)((wxObject *) ((wxPrinter *) x));
12790 }
12791 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
12792 return (void *)((wxObject *) ((wxMenuItem *) x));
12793 }
12794 static void *_p_wxDateEventTo_p_wxObject(void *x) {
12795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
12796 }
12797 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
12798 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
12799 }
12800 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
12801 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
12802 }
12803 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
12804 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
12805 }
12806 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
12807 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
12808 }
12809 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
12810 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
12811 }
12812 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
12813 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
12814 }
12815 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
12816 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
12817 }
12818 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
12819 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
12820 }
12821 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
12822 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
12823 }
12824 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
12825 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
12826 }
12827 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
12828 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
12829 }
12830 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
12831 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
12832 }
12833 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
12834 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
12835 }
12836 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
12837 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
12838 }
12839 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
12840 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
12841 }
12842 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
12843 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
12844 }
12845 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
12846 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
12847 }
12848 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
12849 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
12850 }
12851 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
12852 return (void *)((wxObject *) ((wxImageHandler *) x));
12853 }
12854 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
12855 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
12856 }
12857 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
12858 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
12859 }
12860 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
12861 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
12862 }
12863 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
12864 return (void *)((wxObject *) ((wxEvtHandler *) x));
12865 }
12866 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
12867 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
12868 }
12869 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
12870 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
12871 }
12872 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
12873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12874 }
12875 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
12876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12877 }
12878 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
12879 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
12880 }
12881 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
12882 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
12883 }
12884 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
12885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12886 }
12887 static void *_p_wxImageTo_p_wxObject(void *x) {
12888 return (void *)((wxObject *) ((wxImage *) x));
12889 }
12890 static void *_p_wxFrameTo_p_wxObject(void *x) {
12891 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12892 }
12893 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
12894 return (void *)((wxObject *) ((wxPyPrintout *) x));
12895 }
12896 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
12897 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
12898 }
12899 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
12900 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
12901 }
12902 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
12903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
12904 }
12905 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
12906 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12907 }
12908 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
12909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12910 }
12911 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
12912 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
12913 }
12914 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
12915 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
12916 }
12917 static void *_p_wxWindowTo_p_wxObject(void *x) {
12918 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
12919 }
12920 static void *_p_wxMenuTo_p_wxObject(void *x) {
12921 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
12922 }
12923 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
12924 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
12925 }
12926 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
12927 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12928 }
12929 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
12930 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
12931 }
12932 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
12933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
12934 }
12935 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
12936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
12937 }
12938 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
12939 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
12940 }
12941 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
12942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12943 }
12944 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
12945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
12946 }
12947 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
12948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12949 }
12950 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
12951 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
12952 }
12953 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
12954 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12955 }
12956 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
12957 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
12958 }
12959 static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
12960 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12961 }
12962 static void *_p_wxSashEventTo_p_wxObject(void *x) {
12963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
12964 }
12965 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
12966 return (void *)((wxObject *) ((wxPrintPreview *) x));
12967 }
12968 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
12969 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
12970 }
12971 static void *_p_wxPanelTo_p_wxObject(void *x) {
12972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
12973 }
12974 static void *_p_wxDialogTo_p_wxObject(void *x) {
12975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12976 }
12977 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
12978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12979 }
12980 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
12981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12982 }
12983 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
12984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12985 }
12986 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
12987 return (void *)((wxObject *) ((wxPageSetupDialog *) x));
12988 }
12989 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
12990 return (void *)((wxObject *) ((wxPrintDialog *) x));
12991 }
12992 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
12993 return (void *)((wxObject *) ((wxFileSystem *) x));
12994 }
12995 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
12996 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
12997 }
12998 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
12999 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
13000 }
13001 static void *_p_wxPyAppTo_p_wxObject(void *x) {
13002 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
13003 }
13004 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
13005 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
13006 }
13007 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
13008 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
13009 }
13010 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
13011 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
13012 }
13013 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
13014 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
13015 }
13016 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
13017 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
13018 }
13019 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
13020 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
13021 }
13022 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
13023 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
13024 }
13025 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
13026 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
13027 }
13028 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
13029 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
13030 }
13031 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
13032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
13033 }
13034 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
13035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
13036 }
13037 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
13038 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
13039 }
13040 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
13041 return (void *)((wxObject *) ((wxPrintDialogData *) x));
13042 }
13043 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
13044 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
13045 }
13046 static void *_p_wxValidatorTo_p_wxObject(void *x) {
13047 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
13048 }
13049 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
13050 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
13051 }
13052 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
13053 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
13054 }
13055 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
13056 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
13057 }
13058 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
13059 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
13060 }
13061 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
13062 return (void *)((wxEvtHandler *) ((wxValidator *) x));
13063 }
13064 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
13065 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
13066 }
13067 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
13068 return (void *)((wxEvtHandler *) ((wxMenu *) x));
13069 }
13070 static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) {
13071 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
13072 }
13073 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
13074 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
13075 }
13076 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
13077 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
13078 }
13079 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
13080 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
13081 }
13082 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
13083 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
13084 }
13085 static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) {
13086 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
13087 }
13088 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
13089 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
13090 }
13091 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
13092 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
13093 }
13094 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
13095 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
13096 }
13097 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
13098 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
13099 }
13100 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
13101 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
13102 }
13103 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
13104 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
13105 }
13106 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
13107 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
13108 }
13109 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
13110 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
13111 }
13112 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
13113 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
13114 }
13115 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
13116 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
13117 }
13118 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
13119 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
13120 }
13121 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
13122 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
13123 }
13124 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
13125 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
13126 }
13127 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
13128 return (void *)((wxEvtHandler *) ((wxWindow *) x));
13129 }
13130 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
13131 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
13132 }
13133 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
13134 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
13135 }
13136 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
13137 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
13138 }
13139 static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
13140 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
13141 }
13142 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
13143 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
13144 }
13145 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
13146 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
13147 }
13148 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
13149 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
13150 }
13151 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
13152 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
13153 }
13154 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
13155 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
13156 }
13157 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
13158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
13159 }
13160 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
13161 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
13162 }
13163 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
13164 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
13165 }
13166 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
13167 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
13168 }
13169 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
13170 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
13171 }
13172 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
13173 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
13174 }
13175 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
13176 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
13177 }
13178 static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) {
13179 return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x));
13180 }
13181 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
13182 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
13183 }
13184 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
13185 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
13186 }
13187 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
13188 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
13189 }
13190 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
13191 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
13192 }
13193 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
13194 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
13195 }
13196 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
13197 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
13198 }
13199 static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) {
13200 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
13201 }
13202 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
13203 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
13204 }
13205 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
13206 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
13207 }
13208 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
13209 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
13210 }
13211 static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) {
13212 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x));
13213 }
13214 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
13215 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
13216 }
13217 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
13218 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
13219 }
13220 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
13221 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
13222 }
13223 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
13224 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
13225 }
13226 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
13227 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
13228 }
13229 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
13230 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
13231 }
13232 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
13233 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
13234 }
13235 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
13236 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
13237 }
13238 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
13239 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
13240 }
13241 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
13242 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
13243 }
13244 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
13245 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};
13246 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
13247 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
13248 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
13249 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
13250 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
13251 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
13252 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
13253 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
13254 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
13255 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
13256 static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0};
13257 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
13258 static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0};
13259 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
13260 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
13261 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
13262 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
13263 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
13264 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
13265 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
13266 static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0};
13267 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
13268 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
13269 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
13270 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
13271 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
13272 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
13273 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
13274 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
13275 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
13276 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
13277 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
13278 static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0};
13279 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
13280 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
13281 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
13282 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
13283 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
13284 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
13285 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
13286 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
13287 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
13288 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
13289 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
13290 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
13291 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
13292 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
13293 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
13294 static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0};
13295 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
13296 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
13297 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
13298 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
13299 static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0};
13300 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
13301 static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0};
13302 static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0};
13303 static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0};
13304 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
13305 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
13306 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
13307 static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", 0, 0, 0, 0, 0};
13308 static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0};
13309 static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0};
13310 static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0};
13311 static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0};
13312 static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0};
13313 static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0};
13314 static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0};
13315 static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0};
13316 static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0};
13317 static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0};
13318 static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0};
13319 static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0};
13320 static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0};
13321 static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0};
13322 static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0};
13323 static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0};
13324 static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0};
13325 static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0};
13326 static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0};
13327 static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0};
13328 static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0};
13329 static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0};
13330 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
13331 static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0};
13332 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
13333 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
13334 static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0};
13335 static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0};
13336 static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0};
13337 static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0};
13338 static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0};
13339 static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0};
13340 static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0};
13341 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0};
13342 static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0};
13343 static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0};
13344 static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0};
13345 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0};
13346 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
13347 static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0};
13348 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
13349 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
13350 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
13351 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
13352 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
13353 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
13354 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
13355 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
13356 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
13357 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
13358 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
13359 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
13360 static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0};
13361 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0};
13362 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
13363 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
13364 static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0};
13365 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
13366 static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0};
13367 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
13368 static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0};
13369 static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0};
13370 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
13371 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
13372 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
13373 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
13374 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
13375 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
13376 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
13377 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
13378 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
13379 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
13380 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
13381 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
13382 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
13383 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
13384 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
13385 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
13386 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
13387 static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0};
13388 static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0};
13389 static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0};
13390 static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0};
13391 static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0};
13392 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
13393 static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0};
13394 static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0};
13395 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
13396 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
13397 static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0};
13398 static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0};
13399 static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0};
13400 static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0};
13401 static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0};
13402 static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0};
13403 static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0};
13404 static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0};
13405 static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0};
13406 static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0};
13407 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
13408
13409 static swig_type_info *swig_type_initial[] = {
13410 &_swigt__p_char,
13411 &_swigt__p_form_ops_t,
13412 &_swigt__p_int,
13413 &_swigt__p_long,
13414 &_swigt__p_unsigned_char,
13415 &_swigt__p_unsigned_int,
13416 &_swigt__p_unsigned_long,
13417 &_swigt__p_wxANIHandler,
13418 &_swigt__p_wxAcceleratorTable,
13419 &_swigt__p_wxActivateEvent,
13420 &_swigt__p_wxArrayInt,
13421 &_swigt__p_wxBMPHandler,
13422 &_swigt__p_wxBitmap,
13423 &_swigt__p_wxBoxSizer,
13424 &_swigt__p_wxCURHandler,
13425 &_swigt__p_wxCalculateLayoutEvent,
13426 &_swigt__p_wxChar,
13427 &_swigt__p_wxChildFocusEvent,
13428 &_swigt__p_wxClipboardTextEvent,
13429 &_swigt__p_wxCloseEvent,
13430 &_swigt__p_wxColour,
13431 &_swigt__p_wxColourData,
13432 &_swigt__p_wxColourDialog,
13433 &_swigt__p_wxCommandEvent,
13434 &_swigt__p_wxContextMenuEvent,
13435 &_swigt__p_wxControl,
13436 &_swigt__p_wxControlWithItems,
13437 &_swigt__p_wxDateEvent,
13438 &_swigt__p_wxDialog,
13439 &_swigt__p_wxDirDialog,
13440 &_swigt__p_wxDisplayChangedEvent,
13441 &_swigt__p_wxDropFilesEvent,
13442 &_swigt__p_wxDuplexMode,
13443 &_swigt__p_wxEraseEvent,
13444 &_swigt__p_wxEvent,
13445 &_swigt__p_wxEvtHandler,
13446 &_swigt__p_wxFSFile,
13447 &_swigt__p_wxFileDialog,
13448 &_swigt__p_wxFileSystem,
13449 &_swigt__p_wxFindDialogEvent,
13450 &_swigt__p_wxFindReplaceData,
13451 &_swigt__p_wxFindReplaceDialog,
13452 &_swigt__p_wxFlexGridSizer,
13453 &_swigt__p_wxFocusEvent,
13454 &_swigt__p_wxFont,
13455 &_swigt__p_wxFontData,
13456 &_swigt__p_wxFontDialog,
13457 &_swigt__p_wxFrame,
13458 &_swigt__p_wxGBSizerItem,
13459 &_swigt__p_wxGIFHandler,
13460 &_swigt__p_wxGridBagSizer,
13461 &_swigt__p_wxGridSizer,
13462 &_swigt__p_wxICOHandler,
13463 &_swigt__p_wxIconizeEvent,
13464 &_swigt__p_wxIdleEvent,
13465 &_swigt__p_wxImage,
13466 &_swigt__p_wxImageHandler,
13467 &_swigt__p_wxIndividualLayoutConstraint,
13468 &_swigt__p_wxInitDialogEvent,
13469 &_swigt__p_wxJPEGHandler,
13470 &_swigt__p_wxKeyEvent,
13471 &_swigt__p_wxLayoutAlgorithm,
13472 &_swigt__p_wxLayoutConstraints,
13473 &_swigt__p_wxMDIChildFrame,
13474 &_swigt__p_wxMDIClientWindow,
13475 &_swigt__p_wxMDIParentFrame,
13476 &_swigt__p_wxMaximizeEvent,
13477 &_swigt__p_wxMenu,
13478 &_swigt__p_wxMenuBar,
13479 &_swigt__p_wxMenuEvent,
13480 &_swigt__p_wxMenuItem,
13481 &_swigt__p_wxMessageDialog,
13482 &_swigt__p_wxMiniFrame,
13483 &_swigt__p_wxMouseCaptureChangedEvent,
13484 &_swigt__p_wxMouseCaptureLostEvent,
13485 &_swigt__p_wxMouseEvent,
13486 &_swigt__p_wxMoveEvent,
13487 &_swigt__p_wxMultiChoiceDialog,
13488 &_swigt__p_wxNavigationKeyEvent,
13489 &_swigt__p_wxNcPaintEvent,
13490 &_swigt__p_wxNotifyEvent,
13491 &_swigt__p_wxNumberEntryDialog,
13492 &_swigt__p_wxObject,
13493 &_swigt__p_wxPCXHandler,
13494 &_swigt__p_wxPNGHandler,
13495 &_swigt__p_wxPNMHandler,
13496 &_swigt__p_wxPageSetupDialog,
13497 &_swigt__p_wxPageSetupDialogData,
13498 &_swigt__p_wxPaintEvent,
13499 &_swigt__p_wxPaletteChangedEvent,
13500 &_swigt__p_wxPanel,
13501 &_swigt__p_wxPaperSize,
13502 &_swigt__p_wxPasswordEntryDialog,
13503 &_swigt__p_wxPopupWindow,
13504 &_swigt__p_wxPreviewCanvas,
13505 &_swigt__p_wxPreviewControlBar,
13506 &_swigt__p_wxPreviewFrame,
13507 &_swigt__p_wxPrintData,
13508 &_swigt__p_wxPrintDialog,
13509 &_swigt__p_wxPrintDialogData,
13510 &_swigt__p_wxPrintPreview,
13511 &_swigt__p_wxPrinter,
13512 &_swigt__p_wxProgressDialog,
13513 &_swigt__p_wxPyApp,
13514 &_swigt__p_wxPyCommandEvent,
13515 &_swigt__p_wxPyEvent,
13516 &_swigt__p_wxPyHtmlListBox,
13517 &_swigt__p_wxPyImageHandler,
13518 &_swigt__p_wxPyPanel,
13519 &_swigt__p_wxPyPopupTransientWindow,
13520 &_swigt__p_wxPyPreviewControlBar,
13521 &_swigt__p_wxPyPreviewFrame,
13522 &_swigt__p_wxPyPrintPreview,
13523 &_swigt__p_wxPyPrintout,
13524 &_swigt__p_wxPyScrolledWindow,
13525 &_swigt__p_wxPySizer,
13526 &_swigt__p_wxPyTaskBarIcon,
13527 &_swigt__p_wxPyVListBox,
13528 &_swigt__p_wxPyVScrolledWindow,
13529 &_swigt__p_wxPyValidator,
13530 &_swigt__p_wxPyWindow,
13531 &_swigt__p_wxQueryLayoutInfoEvent,
13532 &_swigt__p_wxQueryNewPaletteEvent,
13533 &_swigt__p_wxRichTextAttr,
13534 &_swigt__p_wxRichTextBuffer,
13535 &_swigt__p_wxRichTextCtrl,
13536 &_swigt__p_wxRichTextEvent,
13537 &_swigt__p_wxRichTextImageBlock,
13538 &_swigt__p_wxRichTextRange,
13539 &_swigt__p_wxRichTextStyleSheet,
13540 &_swigt__p_wxSashEvent,
13541 &_swigt__p_wxSashLayoutWindow,
13542 &_swigt__p_wxSashWindow,
13543 &_swigt__p_wxScrollEvent,
13544 &_swigt__p_wxScrollWinEvent,
13545 &_swigt__p_wxScrolledWindow,
13546 &_swigt__p_wxSetCursorEvent,
13547 &_swigt__p_wxShowEvent,
13548 &_swigt__p_wxSingleChoiceDialog,
13549 &_swigt__p_wxSizeEvent,
13550 &_swigt__p_wxSizer,
13551 &_swigt__p_wxSizerItem,
13552 &_swigt__p_wxSplashScreen,
13553 &_swigt__p_wxSplashScreenWindow,
13554 &_swigt__p_wxSplitterEvent,
13555 &_swigt__p_wxSplitterWindow,
13556 &_swigt__p_wxStaticBoxSizer,
13557 &_swigt__p_wxStatusBar,
13558 &_swigt__p_wxStdDialogButtonSizer,
13559 &_swigt__p_wxSysColourChangedEvent,
13560 &_swigt__p_wxTGAHandler,
13561 &_swigt__p_wxTIFFHandler,
13562 &_swigt__p_wxTaskBarIconEvent,
13563 &_swigt__p_wxTextCoord,
13564 &_swigt__p_wxTextCtrlHitTestResult,
13565 &_swigt__p_wxTextEntryDialog,
13566 &_swigt__p_wxTipWindow,
13567 &_swigt__p_wxTopLevelWindow,
13568 &_swigt__p_wxUpdateUIEvent,
13569 &_swigt__p_wxValidator,
13570 &_swigt__p_wxWindow,
13571 &_swigt__p_wxWindowCreateEvent,
13572 &_swigt__p_wxWindowDestroyEvent,
13573 &_swigt__p_wxXPMHandler,
13574 };
13575
13576 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
13577 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
13578 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
13579 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
13580 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
13581 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
13582 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
13583 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
13584 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
13585 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
13586 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
13587 static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}};
13588 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
13589 static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}};
13590 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13591 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
13592 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
13593 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13594 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13595 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
13596 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
13597 static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13598 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
13599 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}};
13600 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
13601 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13602 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
13603 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
13604 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
13605 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
13606 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13607 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
13608 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
13609 static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}};
13610 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
13611 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
13612 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13613 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13614 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
13615 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13616 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
13617 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13618 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13619 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13620 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13621 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13622 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13623 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
13624 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13625 static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}};
13626 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
13627 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13628 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13629 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
13630 static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}};
13631 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}};
13632 static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}};
13633 static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}};
13634 static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}};
13635 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
13636 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
13637 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
13638 static swig_cast_info _swigc__p_wxNumberEntryDialog[] = {{&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13639 static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}};
13640 static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}};
13641 static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}};
13642 static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}};
13643 static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13644 static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13645 static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13646 static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13647 static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}};
13648 static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}};
13649 static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}};
13650 static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}};
13651 static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}};
13652 static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}};
13653 static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}};
13654 static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13655 static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13656 static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}};
13657 static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}};
13658 static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}};
13659 static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13660 static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13661 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
13662 static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}};
13663 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
13664 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
13665 static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}};
13666 static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}};
13667 static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}};
13668 static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}};
13669 static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13670 static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13671 static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}};
13672 static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
13673 static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}};
13674 static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}};
13675 static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}};
13676 static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
13677 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
13678 static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}};
13679 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}};
13680 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
13681 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
13682 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}};
13683 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
13684 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13685 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13686 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
13687 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13688 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13689 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
13690 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
13691 static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}};
13692 static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
13693 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13694 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13695 static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
13696 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
13697 static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}};
13698 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
13699 static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}};
13700 static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}};
13701 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
13702 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
13703 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
13704 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
13705 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
13706 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
13707 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
13708 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
13709 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
13710 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
13711 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13712 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13713 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
13714 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
13715 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
13716 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
13717 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
13718 static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}};
13719 static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13720 static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13721 static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}};
13722 static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}};
13723 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
13724 static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}};
13725 static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}};
13726 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
13727 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}};
13728 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
13729 static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}};
13730 static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}};
13731 static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
13732 static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13733 static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}};
13734 static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}};
13735 static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}};
13736 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}};
13737 static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}};
13738 static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}};
13739 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}};
13740
13741 static swig_cast_info *swig_cast_initial[] = {
13742 _swigc__p_char,
13743 _swigc__p_form_ops_t,
13744 _swigc__p_int,
13745 _swigc__p_long,
13746 _swigc__p_unsigned_char,
13747 _swigc__p_unsigned_int,
13748 _swigc__p_unsigned_long,
13749 _swigc__p_wxANIHandler,
13750 _swigc__p_wxAcceleratorTable,
13751 _swigc__p_wxActivateEvent,
13752 _swigc__p_wxArrayInt,
13753 _swigc__p_wxBMPHandler,
13754 _swigc__p_wxBitmap,
13755 _swigc__p_wxBoxSizer,
13756 _swigc__p_wxCURHandler,
13757 _swigc__p_wxCalculateLayoutEvent,
13758 _swigc__p_wxChar,
13759 _swigc__p_wxChildFocusEvent,
13760 _swigc__p_wxClipboardTextEvent,
13761 _swigc__p_wxCloseEvent,
13762 _swigc__p_wxColour,
13763 _swigc__p_wxColourData,
13764 _swigc__p_wxColourDialog,
13765 _swigc__p_wxCommandEvent,
13766 _swigc__p_wxContextMenuEvent,
13767 _swigc__p_wxControl,
13768 _swigc__p_wxControlWithItems,
13769 _swigc__p_wxDateEvent,
13770 _swigc__p_wxDialog,
13771 _swigc__p_wxDirDialog,
13772 _swigc__p_wxDisplayChangedEvent,
13773 _swigc__p_wxDropFilesEvent,
13774 _swigc__p_wxDuplexMode,
13775 _swigc__p_wxEraseEvent,
13776 _swigc__p_wxEvent,
13777 _swigc__p_wxEvtHandler,
13778 _swigc__p_wxFSFile,
13779 _swigc__p_wxFileDialog,
13780 _swigc__p_wxFileSystem,
13781 _swigc__p_wxFindDialogEvent,
13782 _swigc__p_wxFindReplaceData,
13783 _swigc__p_wxFindReplaceDialog,
13784 _swigc__p_wxFlexGridSizer,
13785 _swigc__p_wxFocusEvent,
13786 _swigc__p_wxFont,
13787 _swigc__p_wxFontData,
13788 _swigc__p_wxFontDialog,
13789 _swigc__p_wxFrame,
13790 _swigc__p_wxGBSizerItem,
13791 _swigc__p_wxGIFHandler,
13792 _swigc__p_wxGridBagSizer,
13793 _swigc__p_wxGridSizer,
13794 _swigc__p_wxICOHandler,
13795 _swigc__p_wxIconizeEvent,
13796 _swigc__p_wxIdleEvent,
13797 _swigc__p_wxImage,
13798 _swigc__p_wxImageHandler,
13799 _swigc__p_wxIndividualLayoutConstraint,
13800 _swigc__p_wxInitDialogEvent,
13801 _swigc__p_wxJPEGHandler,
13802 _swigc__p_wxKeyEvent,
13803 _swigc__p_wxLayoutAlgorithm,
13804 _swigc__p_wxLayoutConstraints,
13805 _swigc__p_wxMDIChildFrame,
13806 _swigc__p_wxMDIClientWindow,
13807 _swigc__p_wxMDIParentFrame,
13808 _swigc__p_wxMaximizeEvent,
13809 _swigc__p_wxMenu,
13810 _swigc__p_wxMenuBar,
13811 _swigc__p_wxMenuEvent,
13812 _swigc__p_wxMenuItem,
13813 _swigc__p_wxMessageDialog,
13814 _swigc__p_wxMiniFrame,
13815 _swigc__p_wxMouseCaptureChangedEvent,
13816 _swigc__p_wxMouseCaptureLostEvent,
13817 _swigc__p_wxMouseEvent,
13818 _swigc__p_wxMoveEvent,
13819 _swigc__p_wxMultiChoiceDialog,
13820 _swigc__p_wxNavigationKeyEvent,
13821 _swigc__p_wxNcPaintEvent,
13822 _swigc__p_wxNotifyEvent,
13823 _swigc__p_wxNumberEntryDialog,
13824 _swigc__p_wxObject,
13825 _swigc__p_wxPCXHandler,
13826 _swigc__p_wxPNGHandler,
13827 _swigc__p_wxPNMHandler,
13828 _swigc__p_wxPageSetupDialog,
13829 _swigc__p_wxPageSetupDialogData,
13830 _swigc__p_wxPaintEvent,
13831 _swigc__p_wxPaletteChangedEvent,
13832 _swigc__p_wxPanel,
13833 _swigc__p_wxPaperSize,
13834 _swigc__p_wxPasswordEntryDialog,
13835 _swigc__p_wxPopupWindow,
13836 _swigc__p_wxPreviewCanvas,
13837 _swigc__p_wxPreviewControlBar,
13838 _swigc__p_wxPreviewFrame,
13839 _swigc__p_wxPrintData,
13840 _swigc__p_wxPrintDialog,
13841 _swigc__p_wxPrintDialogData,
13842 _swigc__p_wxPrintPreview,
13843 _swigc__p_wxPrinter,
13844 _swigc__p_wxProgressDialog,
13845 _swigc__p_wxPyApp,
13846 _swigc__p_wxPyCommandEvent,
13847 _swigc__p_wxPyEvent,
13848 _swigc__p_wxPyHtmlListBox,
13849 _swigc__p_wxPyImageHandler,
13850 _swigc__p_wxPyPanel,
13851 _swigc__p_wxPyPopupTransientWindow,
13852 _swigc__p_wxPyPreviewControlBar,
13853 _swigc__p_wxPyPreviewFrame,
13854 _swigc__p_wxPyPrintPreview,
13855 _swigc__p_wxPyPrintout,
13856 _swigc__p_wxPyScrolledWindow,
13857 _swigc__p_wxPySizer,
13858 _swigc__p_wxPyTaskBarIcon,
13859 _swigc__p_wxPyVListBox,
13860 _swigc__p_wxPyVScrolledWindow,
13861 _swigc__p_wxPyValidator,
13862 _swigc__p_wxPyWindow,
13863 _swigc__p_wxQueryLayoutInfoEvent,
13864 _swigc__p_wxQueryNewPaletteEvent,
13865 _swigc__p_wxRichTextAttr,
13866 _swigc__p_wxRichTextBuffer,
13867 _swigc__p_wxRichTextCtrl,
13868 _swigc__p_wxRichTextEvent,
13869 _swigc__p_wxRichTextImageBlock,
13870 _swigc__p_wxRichTextRange,
13871 _swigc__p_wxRichTextStyleSheet,
13872 _swigc__p_wxSashEvent,
13873 _swigc__p_wxSashLayoutWindow,
13874 _swigc__p_wxSashWindow,
13875 _swigc__p_wxScrollEvent,
13876 _swigc__p_wxScrollWinEvent,
13877 _swigc__p_wxScrolledWindow,
13878 _swigc__p_wxSetCursorEvent,
13879 _swigc__p_wxShowEvent,
13880 _swigc__p_wxSingleChoiceDialog,
13881 _swigc__p_wxSizeEvent,
13882 _swigc__p_wxSizer,
13883 _swigc__p_wxSizerItem,
13884 _swigc__p_wxSplashScreen,
13885 _swigc__p_wxSplashScreenWindow,
13886 _swigc__p_wxSplitterEvent,
13887 _swigc__p_wxSplitterWindow,
13888 _swigc__p_wxStaticBoxSizer,
13889 _swigc__p_wxStatusBar,
13890 _swigc__p_wxStdDialogButtonSizer,
13891 _swigc__p_wxSysColourChangedEvent,
13892 _swigc__p_wxTGAHandler,
13893 _swigc__p_wxTIFFHandler,
13894 _swigc__p_wxTaskBarIconEvent,
13895 _swigc__p_wxTextCoord,
13896 _swigc__p_wxTextCtrlHitTestResult,
13897 _swigc__p_wxTextEntryDialog,
13898 _swigc__p_wxTipWindow,
13899 _swigc__p_wxTopLevelWindow,
13900 _swigc__p_wxUpdateUIEvent,
13901 _swigc__p_wxValidator,
13902 _swigc__p_wxWindow,
13903 _swigc__p_wxWindowCreateEvent,
13904 _swigc__p_wxWindowDestroyEvent,
13905 _swigc__p_wxXPMHandler,
13906 };
13907
13908
13909 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13910
13911 static swig_const_info swig_const_table[] = {
13912 {0, 0, 0, 0.0, 0, 0}};
13913
13914 #ifdef __cplusplus
13915 }
13916 #endif
13917 /* -----------------------------------------------------------------------------
13918 * Type initialization:
13919 * This problem is tough by the requirement that no dynamic
13920 * memory is used. Also, since swig_type_info structures store pointers to
13921 * swig_cast_info structures and swig_cast_info structures store pointers back
13922 * to swig_type_info structures, we need some lookup code at initialization.
13923 * The idea is that swig generates all the structures that are needed.
13924 * The runtime then collects these partially filled structures.
13925 * The SWIG_InitializeModule function takes these initial arrays out of
13926 * swig_module, and does all the lookup, filling in the swig_module.types
13927 * array with the correct data and linking the correct swig_cast_info
13928 * structures together.
13929 *
13930 * The generated swig_type_info structures are assigned staticly to an initial
13931 * array. We just loop though that array, and handle each type individually.
13932 * First we lookup if this type has been already loaded, and if so, use the
13933 * loaded structure instead of the generated one. Then we have to fill in the
13934 * cast linked list. The cast data is initially stored in something like a
13935 * two-dimensional array. Each row corresponds to a type (there are the same
13936 * number of rows as there are in the swig_type_initial array). Each entry in
13937 * a column is one of the swig_cast_info structures for that type.
13938 * The cast_initial array is actually an array of arrays, because each row has
13939 * a variable number of columns. So to actually build the cast linked list,
13940 * we find the array of casts associated with the type, and loop through it
13941 * adding the casts to the list. The one last trick we need to do is making
13942 * sure the type pointer in the swig_cast_info struct is correct.
13943 *
13944 * First off, we lookup the cast->type name to see if it is already loaded.
13945 * There are three cases to handle:
13946 * 1) If the cast->type has already been loaded AND the type we are adding
13947 * casting info to has not been loaded (it is in this module), THEN we
13948 * replace the cast->type pointer with the type pointer that has already
13949 * been loaded.
13950 * 2) If BOTH types (the one we are adding casting info to, and the
13951 * cast->type) are loaded, THEN the cast info has already been loaded by
13952 * the previous module so we just ignore it.
13953 * 3) Finally, if cast->type has not already been loaded, then we add that
13954 * swig_cast_info to the linked list (because the cast->type) pointer will
13955 * be correct.
13956 * ----------------------------------------------------------------------------- */
13957
13958 #ifdef __cplusplus
13959 extern "C" {
13960 #if 0
13961 } /* c-mode */
13962 #endif
13963 #endif
13964
13965 #if 0
13966 #define SWIGRUNTIME_DEBUG
13967 #endif
13968
13969 SWIGRUNTIME void
13970 SWIG_InitializeModule(void *clientdata) {
13971 size_t i;
13972 swig_module_info *module_head;
13973 static int init_run = 0;
13974
13975 clientdata = clientdata;
13976
13977 if (init_run) return;
13978 init_run = 1;
13979
13980 /* Initialize the swig_module */
13981 swig_module.type_initial = swig_type_initial;
13982 swig_module.cast_initial = swig_cast_initial;
13983
13984 /* Try and load any already created modules */
13985 module_head = SWIG_GetModule(clientdata);
13986 if (module_head) {
13987 swig_module.next = module_head->next;
13988 module_head->next = &swig_module;
13989 } else {
13990 /* This is the first module loaded */
13991 swig_module.next = &swig_module;
13992 SWIG_SetModule(clientdata, &swig_module);
13993 }
13994
13995 /* Now work on filling in swig_module.types */
13996 #ifdef SWIGRUNTIME_DEBUG
13997 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
13998 #endif
13999 for (i = 0; i < swig_module.size; ++i) {
14000 swig_type_info *type = 0;
14001 swig_type_info *ret;
14002 swig_cast_info *cast;
14003
14004 #ifdef SWIGRUNTIME_DEBUG
14005 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
14006 #endif
14007
14008 /* if there is another module already loaded */
14009 if (swig_module.next != &swig_module) {
14010 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
14011 }
14012 if (type) {
14013 /* Overwrite clientdata field */
14014 #ifdef SWIGRUNTIME_DEBUG
14015 printf("SWIG_InitializeModule: found type %s\n", type->name);
14016 #endif
14017 if (swig_module.type_initial[i]->clientdata) {
14018 type->clientdata = swig_module.type_initial[i]->clientdata;
14019 #ifdef SWIGRUNTIME_DEBUG
14020 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
14021 #endif
14022 }
14023 } else {
14024 type = swig_module.type_initial[i];
14025 }
14026
14027 /* Insert casting types */
14028 cast = swig_module.cast_initial[i];
14029 while (cast->type) {
14030 /* Don't need to add information already in the list */
14031 ret = 0;
14032 #ifdef SWIGRUNTIME_DEBUG
14033 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
14034 #endif
14035 if (swig_module.next != &swig_module) {
14036 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
14037 #ifdef SWIGRUNTIME_DEBUG
14038 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
14039 #endif
14040 }
14041 if (ret) {
14042 if (type == swig_module.type_initial[i]) {
14043 #ifdef SWIGRUNTIME_DEBUG
14044 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
14045 #endif
14046 cast->type = ret;
14047 ret = 0;
14048 } else {
14049 /* Check for casting already in the list */
14050 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
14051 #ifdef SWIGRUNTIME_DEBUG
14052 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
14053 #endif
14054 if (!ocast) ret = 0;
14055 }
14056 }
14057
14058 if (!ret) {
14059 #ifdef SWIGRUNTIME_DEBUG
14060 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
14061 #endif
14062 if (type->cast) {
14063 type->cast->prev = cast;
14064 cast->next = type->cast;
14065 }
14066 type->cast = cast;
14067 }
14068 cast++;
14069 }
14070 /* Set entry in modules->types array equal to the type */
14071 swig_module.types[i] = type;
14072 }
14073 swig_module.types[i] = 0;
14074
14075 #ifdef SWIGRUNTIME_DEBUG
14076 printf("**** SWIG_InitializeModule: Cast List ******\n");
14077 for (i = 0; i < swig_module.size; ++i) {
14078 int j = 0;
14079 swig_cast_info *cast = swig_module.cast_initial[i];
14080 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
14081 while (cast->type) {
14082 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
14083 cast++;
14084 ++j;
14085 }
14086 printf("---- Total casts: %d\n",j);
14087 }
14088 printf("**** SWIG_InitializeModule: Cast List ******\n");
14089 #endif
14090 }
14091
14092 /* This function will propagate the clientdata field of type to
14093 * any new swig_type_info structures that have been added into the list
14094 * of equivalent types. It is like calling
14095 * SWIG_TypeClientData(type, clientdata) a second time.
14096 */
14097 SWIGRUNTIME void
14098 SWIG_PropagateClientData(void) {
14099 size_t i;
14100 swig_cast_info *equiv;
14101 static int init_run = 0;
14102
14103 if (init_run) return;
14104 init_run = 1;
14105
14106 for (i = 0; i < swig_module.size; i++) {
14107 if (swig_module.types[i]->clientdata) {
14108 equiv = swig_module.types[i]->cast;
14109 while (equiv) {
14110 if (!equiv->converter) {
14111 if (equiv->type && !equiv->type->clientdata)
14112 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
14113 }
14114 equiv = equiv->next;
14115 }
14116 }
14117 }
14118 }
14119
14120 #ifdef __cplusplus
14121 #if 0
14122 {
14123 /* c-mode */
14124 #endif
14125 }
14126 #endif
14127
14128
14129
14130 #ifdef __cplusplus
14131 extern "C" {
14132 #endif
14133
14134 /* Python-specific SWIG API */
14135 #define SWIG_newvarlink() SWIG_Python_newvarlink()
14136 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
14137 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
14138
14139 /* -----------------------------------------------------------------------------
14140 * global variable support code.
14141 * ----------------------------------------------------------------------------- */
14142
14143 typedef struct swig_globalvar {
14144 char *name; /* Name of global variable */
14145 PyObject *(*get_attr)(void); /* Return the current value */
14146 int (*set_attr)(PyObject *); /* Set the value */
14147 struct swig_globalvar *next;
14148 } swig_globalvar;
14149
14150 typedef struct swig_varlinkobject {
14151 PyObject_HEAD
14152 swig_globalvar *vars;
14153 } swig_varlinkobject;
14154
14155 SWIGINTERN PyObject *
14156 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
14157 return PyString_FromString("<Swig global variables>");
14158 }
14159
14160 SWIGINTERN PyObject *
14161 swig_varlink_str(swig_varlinkobject *v) {
14162 PyObject *str = PyString_FromString("(");
14163 swig_globalvar *var;
14164 for (var = v->vars; var; var=var->next) {
14165 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
14166 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
14167 }
14168 PyString_ConcatAndDel(&str,PyString_FromString(")"));
14169 return str;
14170 }
14171
14172 SWIGINTERN int
14173 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
14174 PyObject *str = swig_varlink_str(v);
14175 fprintf(fp,"Swig global variables ");
14176 fprintf(fp,"%s\n", PyString_AsString(str));
14177 Py_DECREF(str);
14178 return 0;
14179 }
14180
14181 SWIGINTERN void
14182 swig_varlink_dealloc(swig_varlinkobject *v) {
14183 swig_globalvar *var = v->vars;
14184 while (var) {
14185 swig_globalvar *n = var->next;
14186 free(var->name);
14187 free(var);
14188 var = n;
14189 }
14190 }
14191
14192 SWIGINTERN PyObject *
14193 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
14194 PyObject *res = NULL;
14195 swig_globalvar *var = v->vars;
14196 while (var) {
14197 if (strcmp(var->name,n) == 0) {
14198 res = (*var->get_attr)();
14199 break;
14200 }
14201 var = var->next;
14202 }
14203 if (res == NULL && !PyErr_Occurred()) {
14204 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
14205 }
14206 return res;
14207 }
14208
14209 SWIGINTERN int
14210 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
14211 int res = 1;
14212 swig_globalvar *var = v->vars;
14213 while (var) {
14214 if (strcmp(var->name,n) == 0) {
14215 res = (*var->set_attr)(p);
14216 break;
14217 }
14218 var = var->next;
14219 }
14220 if (res == 1 && !PyErr_Occurred()) {
14221 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
14222 }
14223 return res;
14224 }
14225
14226 SWIGINTERN PyTypeObject*
14227 swig_varlink_type(void) {
14228 static char varlink__doc__[] = "Swig var link object";
14229 static PyTypeObject varlink_type;
14230 static int type_init = 0;
14231 if (!type_init) {
14232 const PyTypeObject tmp
14233 = {
14234 PyObject_HEAD_INIT(NULL)
14235 0, /* Number of items in variable part (ob_size) */
14236 (char *)"swigvarlink", /* Type name (tp_name) */
14237 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
14238 0, /* Itemsize (tp_itemsize) */
14239 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
14240 (printfunc) swig_varlink_print, /* Print (tp_print) */
14241 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
14242 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
14243 0, /* tp_compare */
14244 (reprfunc) swig_varlink_repr, /* tp_repr */
14245 0, /* tp_as_number */
14246 0, /* tp_as_sequence */
14247 0, /* tp_as_mapping */
14248 0, /* tp_hash */
14249 0, /* tp_call */
14250 (reprfunc)swig_varlink_str, /* tp_str */
14251 0, /* tp_getattro */
14252 0, /* tp_setattro */
14253 0, /* tp_as_buffer */
14254 0, /* tp_flags */
14255 varlink__doc__, /* tp_doc */
14256 0, /* tp_traverse */
14257 0, /* tp_clear */
14258 0, /* tp_richcompare */
14259 0, /* tp_weaklistoffset */
14260 #if PY_VERSION_HEX >= 0x02020000
14261 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
14262 #endif
14263 #if PY_VERSION_HEX >= 0x02030000
14264 0, /* tp_del */
14265 #endif
14266 #ifdef COUNT_ALLOCS
14267 0,0,0,0 /* tp_alloc -> tp_next */
14268 #endif
14269 };
14270 varlink_type = tmp;
14271 varlink_type.ob_type = &PyType_Type;
14272 type_init = 1;
14273 }
14274 return &varlink_type;
14275 }
14276
14277 /* Create a variable linking object for use later */
14278 SWIGINTERN PyObject *
14279 SWIG_Python_newvarlink(void) {
14280 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
14281 if (result) {
14282 result->vars = 0;
14283 }
14284 return ((PyObject*) result);
14285 }
14286
14287 SWIGINTERN void
14288 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
14289 swig_varlinkobject *v = (swig_varlinkobject *) p;
14290 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
14291 if (gv) {
14292 size_t size = strlen(name)+1;
14293 gv->name = (char *)malloc(size);
14294 if (gv->name) {
14295 strncpy(gv->name,name,size);
14296 gv->get_attr = get_attr;
14297 gv->set_attr = set_attr;
14298 gv->next = v->vars;
14299 }
14300 }
14301 v->vars = gv;
14302 }
14303
14304 SWIGINTERN PyObject *
14305 SWIG_globals() {
14306 static PyObject *_SWIG_globals = 0;
14307 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
14308 return _SWIG_globals;
14309 }
14310
14311 /* -----------------------------------------------------------------------------
14312 * constants/methods manipulation
14313 * ----------------------------------------------------------------------------- */
14314
14315 /* Install Constants */
14316 SWIGINTERN void
14317 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
14318 PyObject *obj = 0;
14319 size_t i;
14320 for (i = 0; constants[i].type; ++i) {
14321 switch(constants[i].type) {
14322 case SWIG_PY_POINTER:
14323 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
14324 break;
14325 case SWIG_PY_BINARY:
14326 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
14327 break;
14328 default:
14329 obj = 0;
14330 break;
14331 }
14332 if (obj) {
14333 PyDict_SetItemString(d, constants[i].name, obj);
14334 Py_DECREF(obj);
14335 }
14336 }
14337 }
14338
14339 /* -----------------------------------------------------------------------------*/
14340 /* Fix SwigMethods to carry the callback ptrs when needed */
14341 /* -----------------------------------------------------------------------------*/
14342
14343 SWIGINTERN void
14344 SWIG_Python_FixMethods(PyMethodDef *methods,
14345 swig_const_info *const_table,
14346 swig_type_info **types,
14347 swig_type_info **types_initial) {
14348 size_t i;
14349 for (i = 0; methods[i].ml_name; ++i) {
14350 const char *c = methods[i].ml_doc;
14351 if (c && (c = strstr(c, "swig_ptr: "))) {
14352 int j;
14353 swig_const_info *ci = 0;
14354 const char *name = c + 10;
14355 for (j = 0; const_table[j].type; ++j) {
14356 if (strncmp(const_table[j].name, name,
14357 strlen(const_table[j].name)) == 0) {
14358 ci = &(const_table[j]);
14359 break;
14360 }
14361 }
14362 if (ci) {
14363 size_t shift = (ci->ptype) - types;
14364 swig_type_info *ty = types_initial[shift];
14365 size_t ldoc = (c - methods[i].ml_doc);
14366 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
14367 char *ndoc = (char*)malloc(ldoc + lptr + 10);
14368 if (ndoc) {
14369 char *buff = ndoc;
14370 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
14371 if (ptr) {
14372 strncpy(buff, methods[i].ml_doc, ldoc);
14373 buff += ldoc;
14374 strncpy(buff, "swig_ptr: ", 10);
14375 buff += 10;
14376 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
14377 methods[i].ml_doc = ndoc;
14378 }
14379 }
14380 }
14381 }
14382 }
14383 }
14384
14385 #ifdef __cplusplus
14386 }
14387 #endif
14388
14389 /* -----------------------------------------------------------------------------*
14390 * Partial Init method
14391 * -----------------------------------------------------------------------------*/
14392
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 SWIGEXPORT void SWIG_init(void) {
14397 PyObject *m, *d;
14398
14399 /* Fix SwigMethods to carry the callback ptrs when needed */
14400 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
14401
14402 m = Py_InitModule((char *) SWIG_name, SwigMethods);
14403 d = PyModule_GetDict(m);
14404
14405 SWIG_InitializeModule(0);
14406 SWIG_InstallConstants(d,swig_const_table);
14407
14408
14409 SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0)));
14410 SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY)));
14411 SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE)));
14412 SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN)));
14413 SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN)));
14414 SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN)));
14415 SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED)));
14416 SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED)));
14417 SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED)));
14418 SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS)));
14419 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY)));
14420 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT)));
14421 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML)));
14422 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML)));
14423 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF)));
14424 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF)));
14425 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH)));
14426 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT)));
14427 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH)));
14428 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT)));
14429 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE)));
14430 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE)));
14431 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER)));
14432 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
14433 SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
14434 SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
14435 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_NONE)));
14436 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_WITH_UNDO",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_WITH_UNDO)));
14437 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_OPTIMIZE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_OPTIMIZE)));
14438 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY)));
14439 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_CHARACTERS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY)));
14440 SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE)));
14441 SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE)));
14442 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
14443 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
14444 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
14445 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
14446 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
14447 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
14448 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
14449 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
14450 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
14451 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
14452 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
14453 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
14454 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER)));
14455 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE)));
14456 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING)));
14457 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME)));
14458 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME)));
14459 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE)));
14460 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER)));
14461 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE)));
14462 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC)));
14463 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER)));
14464 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER)));
14465 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER)));
14466 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER)));
14467 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL)));
14468 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP)));
14469 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES)));
14470 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD)));
14471 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL)));
14472 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF)));
14473 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE)));
14474 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
14475 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
14476 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
14477 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
14478 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
14479 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
14480 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
14481 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set);
14482 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set);
14483 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER)));
14484 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH)));
14485 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL)));
14486 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED));
14487 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED));
14488 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK));
14489 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK));
14490 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK));
14491 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK));
14492 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN));
14493 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING));
14494 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED));
14495 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING));
14496 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED));
14497
14498 wxRichTextModuleInit();
14499
14500 }
14501