]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/richtext_wrap.cpp
Avoid crash in SelectAll if there are no nodes besides the root
[wxWidgets.git] / wxPython / src / gtk / richtext_wrap.cpp
CommitLineData
f05326ba
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
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)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE 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
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318/* Structure to store inforomation on one type */
319typedef 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 */
329typedef 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.*/
339typedef 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*/
355SWIGRUNTIME int
356SWIG_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*/
370SWIGRUNTIME int
371SWIG_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*/
389SWIGRUNTIME int
390SWIG_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*/
430SWIGRUNTIME swig_cast_info *
431SWIG_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 */
436SWIGRUNTIME swig_cast_info *
437SWIG_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*/
444SWIGRUNTIMEINLINE void *
445SWIG_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*/
452SWIGRUNTIME swig_type_info *
453SWIG_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*/
466SWIGRUNTIMEINLINE const char *
467SWIG_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*/
475SWIGRUNTIME const char *
476SWIG_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*/
496SWIGRUNTIME void
497SWIG_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}
512SWIGRUNTIME void
513SWIG_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*/
526SWIGRUNTIME swig_type_info *
527SWIG_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*/
571SWIGRUNTIME swig_type_info *
572SWIG_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*/
600SWIGRUNTIME char *
601SWIG_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*/
616SWIGRUNTIME const char *
617SWIG_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*/
644SWIGRUNTIME char *
645SWIG_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
655SWIGRUNTIME const char *
656SWIG_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
668SWIGRUNTIME char *
669SWIG_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
683SWIGRUNTIME const char *
684SWIG_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
736static PyObject *
737PyString_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
790static
791PyObject *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
804SWIGRUNTIME PyObject*
805SWIG_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
848SWIGRUNTIME void
849SWIG_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
942extern "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 */
957typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964} swig_const_info;
965
966#ifdef __cplusplus
967#if 0
968{ /* cc-mode */
969#endif
970}
971#endif
972
973
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986/* Common SWIG API */
987
988/* for raw pointers */
989#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995#define swig_owntype int
996
997/* for raw packed data */
998#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001/* for class or struct pointers */
1002#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005/* for C or C++ function pointers */
1006#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009/* for C++ member pointers, ie, member methods */
1010#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014/* Runtime API */
1015
1016#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024#define SWIG_fail goto fail
1025
1026
1027/* Runtime API implementation */
1028
1029/* Error manipulation */
1030
1031SWIGINTERN void
1032SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037}
1038
1039SWIGINTERN void
1040SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044}
1045
1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048/* Set a constant value */
1049
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054}
1055
1056/* Append a value to the result obj */
1057
1058SWIGINTERN PyObject*
1059SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076#else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098#endif
1099}
1100
1101/* Unpack the argument tuple */
1102
1103SWIGINTERN int
1104SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105{
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139}
1140
1141/* A functor is a function object with one single object argument */
1142#if PY_VERSION_HEX >= 0x02020000
1143#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144#else
1145#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146#endif
1147
1148/*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151*/
1152#ifdef __cplusplus
1153#define SWIG_STATIC_POINTER(var) var
1154#else
1155#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156#endif
1157
1158/* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162/* Flags for new pointer objects */
1163#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168#ifdef __cplusplus
1169extern "C" {
1170#if 0
1171} /* cc-mode */
1172#endif
1173#endif
1174
1175/* How to access Py_None */
1176#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177# ifndef SWIG_PYTHON_NO_BUILD_NONE
1178# ifndef SWIG_PYTHON_BUILD_NONE
1179# define SWIG_PYTHON_BUILD_NONE
1180# endif
1181# endif
1182#endif
1183
1184#ifdef SWIG_PYTHON_BUILD_NONE
1185# ifdef Py_None
1186# undef Py_None
1187# define Py_None SWIG_Py_None()
1188# endif
1189SWIGRUNTIMEINLINE PyObject *
1190_SWIG_Py_None(void)
1191{
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195}
1196SWIGRUNTIME PyObject *
1197SWIG_Py_None(void)
1198{
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201}
1202#endif
1203
1204/* The python void return value */
1205
1206SWIGRUNTIMEINLINE PyObject *
1207SWIG_Py_Void(void)
1208{
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212}
1213
1214/* PySwigClientData */
1215
1216typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223} PySwigClientData;
1224
1225SWIGRUNTIMEINLINE int
1226SWIG_Python_CheckImplicit(swig_type_info *ty)
1227{
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230}
1231
1232SWIGRUNTIMEINLINE PyObject *
1233SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237}
1238
1239
1240SWIGRUNTIME PySwigClientData *
1241PySwigClientData_New(PyObject* obj)
1242{
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256#if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258#else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260#endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280#ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282#else
1283 data->delargs = 0;
1284#endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291}
1292
1293SWIGRUNTIME void
1294PySwigClientData_Del(PySwigClientData* data)
1295{
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299}
1300
1301/* =============== PySwigObject =====================*/
1302
1303typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309} PySwigObject;
1310
1311SWIGRUNTIME PyObject *
1312PySwigObject_long(PySwigObject *v)
1313{
1314 return PyLong_FromVoidPtr(v->ptr);
1315}
1316
1317SWIGRUNTIME PyObject *
1318PySwigObject_format(const char* fmt, PySwigObject *v)
1319{
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333}
1334
1335SWIGRUNTIME PyObject *
1336PySwigObject_oct(PySwigObject *v)
1337{
1338 return PySwigObject_format("%o",v);
1339}
1340
1341SWIGRUNTIME PyObject *
1342PySwigObject_hex(PySwigObject *v)
1343{
1344 return PySwigObject_format("%x",v);
1345}
1346
1347SWIGRUNTIME PyObject *
1348#ifdef METH_NOARGS
1349PySwigObject_repr(PySwigObject *v)
1350#else
1351PySwigObject_repr(PySwigObject *v, PyObject *args)
1352#endif
1353{
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359#ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361#else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363#endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367}
1368
1369SWIGRUNTIME int
1370PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371{
1372#ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374#else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376#endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384}
1385
1386SWIGRUNTIME PyObject *
1387PySwigObject_str(PySwigObject *v)
1388{
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392}
1393
1394SWIGRUNTIME int
1395PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396{
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400}
1401
1402SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404SWIGRUNTIME PyTypeObject*
1405PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408}
1409
1410SWIGRUNTIMEINLINE int
1411PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414}
1415
1416SWIGRUNTIME PyObject *
1417PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419SWIGRUNTIME void
1420PySwigObject_dealloc(PyObject *v)
1421{
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446#endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451}
1452
1453SWIGRUNTIME PyObject*
1454PySwigObject_append(PyObject* v, PyObject* next)
1455{
1456 PySwigObject *sobj = (PySwigObject *) v;
1457#ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461#endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468}
1469
1470SWIGRUNTIME PyObject*
1471#ifdef METH_NOARGS
1472PySwigObject_next(PyObject* v)
1473#else
1474PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475#endif
1476{
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484}
1485
1486SWIGINTERN PyObject*
1487#ifdef METH_NOARGS
1488PySwigObject_disown(PyObject *v)
1489#else
1490PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491#endif
1492{
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496}
1497
1498SWIGINTERN PyObject*
1499#ifdef METH_NOARGS
1500PySwigObject_acquire(PyObject *v)
1501#else
1502PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503#endif
1504{
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508}
1509
1510SWIGINTERN PyObject*
1511PySwigObject_own(PyObject *v, PyObject *args)
1512{
1513 PyObject *val = 0;
1514#if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516#else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518#endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527#ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533#else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539#endif
1540 }
1541 return obj;
1542 }
1543}
1544
1545#ifdef METH_O
1546static PyMethodDef
1547swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555};
1556#else
1557static PyMethodDef
1558swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566};
1567#endif
1568
1569#if PY_VERSION_HEX < 0x02020000
1570SWIGINTERN PyObject *
1571PySwigObject_getattr(PySwigObject *sobj,char *name)
1572{
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574}
1575#endif
1576
1577SWIGRUNTIME PyTypeObject*
1578_PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605#if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607#elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609#endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624#if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626#else
1627 (getattrfunc)0, /* tp_getattr */
1628#endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647#if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668#endif
1669#if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671#endif
1672#ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674#endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681}
1682
1683SWIGRUNTIME PyObject *
1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685{
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694}
1695
1696/* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709{
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719}
1720
1721SWIGRUNTIME PyObject *
1722PySwigPacked_repr(PySwigPacked *v)
1723{
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730}
1731
1732SWIGRUNTIME PyObject *
1733PySwigPacked_str(PySwigPacked *v)
1734{
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750}
1751
1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754SWIGRUNTIME PyTypeObject*
1755PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758}
1759
1760SWIGRUNTIMEINLINE int
1761PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764}
1765
1766SWIGRUNTIME void
1767PySwigPacked_dealloc(PyObject *v)
1768{
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774}
1775
1776SWIGRUNTIME PyTypeObject*
1777_PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810#if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834#endif
1835#ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837#endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844}
1845
1846SWIGRUNTIME PyObject *
1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848{
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863}
1864
1865SWIGRUNTIME swig_type_info *
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876}
1877
1878/* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
1887
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
1894
1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
1899{
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913#ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918#endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928#else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936#endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944}
1945
1946/* Acquire a pointer value */
1947
1948SWIGRUNTIME int
1949SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959}
1960
1961/* Convert a pointer value */
1962
1963SWIGRUNTIME int
1964SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039}
2040
2041/* Convert a function ptr value */
2042
2043SWIGRUNTIME int
2044SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066}
2067
2068/* Convert a packed value value */
2069
2070SWIGRUNTIME int
2071SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082}
2083
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
2092
2093SWIGRUNTIME PyObject*
2094SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095{
2096#if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124#else
2125#if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132#else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146#endif
2147#ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149#endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152#endif
2153#endif
2154}
2155
2156SWIGRUNTIME void
2157SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158{
2159 PyObject *dict;
2160#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171#endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
2176
2177
2178SWIGINTERN PyObject *
2179SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192}
2193
2194/* Create a new pointer object */
2195
2196SWIGRUNTIME PyObject *
2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213}
2214
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220}
2221
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
2229
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235#ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237#else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244#endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247}
2248
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252SWIGINTERN int
2253PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254{
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278}
2279#endif
2280
2281SWIGRUNTIME void
2282SWIG_Python_DestroyModule(void *vptr)
2283{
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295}
2296
2297SWIGRUNTIME void
2298SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309}
2310
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316}
2317
2318SWIGRUNTIME swig_type_info *
2319SWIG_Python_TypeQuery(const char *type)
2320{
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338}
2339
2340/*
2341 For backward compatibility only
2342*/
2343#define SWIG_POINTER_EXCEPTION 0
2344#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347SWIGRUNTIME int
2348SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349{
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370}
2371
2372SWIGRUNTIME int
2373SWIG_Python_ArgFail(int argnum)
2374{
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383}
2384
2385SWIGRUNTIMEINLINE const char *
2386PySwigObject_GetDesc(PyObject *self)
2387{
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391}
2392
2393SWIGRUNTIME void
2394SWIG_Python_TypeError(const char *type, PyObject *obj)
2395{
2396 if (type) {
2397#if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406#endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427}
2428
2429
2430/* Convert a pointer value, signal an exception on a type mismatch */
2431SWIGRUNTIME void *
2432SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442}
2443
2444
2445#ifdef __cplusplus
2446#if 0
2447{ /* cc-mode */
2448#endif
2449}
2450#endif
2451
2452
2453
2454#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460/* -------- TYPES TABLE (BEGIN) -------- */
2461
2462#define SWIGTYPE_p_char swig_types[0]
2463#define SWIGTYPE_p_form_ops_t swig_types[1]
2464#define SWIGTYPE_p_int swig_types[2]
2465#define SWIGTYPE_p_long swig_types[3]
2466#define SWIGTYPE_p_unsigned_char swig_types[4]
2467#define SWIGTYPE_p_unsigned_int swig_types[5]
2468#define SWIGTYPE_p_unsigned_long swig_types[6]
2469#define SWIGTYPE_p_wxANIHandler swig_types[7]
2470#define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471#define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472#define SWIGTYPE_p_wxArrayInt swig_types[10]
2473#define SWIGTYPE_p_wxBMPHandler swig_types[11]
2474#define SWIGTYPE_p_wxBitmap swig_types[12]
2475#define SWIGTYPE_p_wxBoxSizer swig_types[13]
453fb36b
RD
2476#define SWIGTYPE_p_wxCURHandler swig_types[14]
2477#define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15]
2478#define SWIGTYPE_p_wxChar swig_types[16]
2479#define SWIGTYPE_p_wxChildFocusEvent swig_types[17]
2480#define SWIGTYPE_p_wxClipboardTextEvent swig_types[18]
2481#define SWIGTYPE_p_wxCloseEvent swig_types[19]
2482#define SWIGTYPE_p_wxColour swig_types[20]
2483#define SWIGTYPE_p_wxColourData swig_types[21]
2484#define SWIGTYPE_p_wxColourDialog swig_types[22]
2485#define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486#define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487#define SWIGTYPE_p_wxControl swig_types[25]
2488#define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489#define SWIGTYPE_p_wxDateEvent swig_types[27]
2490#define SWIGTYPE_p_wxDialog swig_types[28]
2491#define SWIGTYPE_p_wxDirDialog swig_types[29]
2492#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30]
2493#define SWIGTYPE_p_wxDropFilesEvent swig_types[31]
2494#define SWIGTYPE_p_wxDuplexMode swig_types[32]
2495#define SWIGTYPE_p_wxEraseEvent swig_types[33]
2496#define SWIGTYPE_p_wxEvent swig_types[34]
2497#define SWIGTYPE_p_wxEvtHandler swig_types[35]
2498#define SWIGTYPE_p_wxFSFile swig_types[36]
2499#define SWIGTYPE_p_wxFileDialog swig_types[37]
2500#define SWIGTYPE_p_wxFileSystem swig_types[38]
2501#define SWIGTYPE_p_wxFindDialogEvent swig_types[39]
2502#define SWIGTYPE_p_wxFindReplaceData swig_types[40]
2503#define SWIGTYPE_p_wxFindReplaceDialog swig_types[41]
2504#define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505#define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506#define SWIGTYPE_p_wxFont swig_types[44]
2507#define SWIGTYPE_p_wxFontData swig_types[45]
2508#define SWIGTYPE_p_wxFontDialog swig_types[46]
2509#define SWIGTYPE_p_wxFrame swig_types[47]
2510#define SWIGTYPE_p_wxGBSizerItem swig_types[48]
2511#define SWIGTYPE_p_wxGIFHandler swig_types[49]
2512#define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2513#define SWIGTYPE_p_wxGridSizer swig_types[51]
2514#define SWIGTYPE_p_wxICOHandler swig_types[52]
2515#define SWIGTYPE_p_wxIconizeEvent swig_types[53]
2516#define SWIGTYPE_p_wxIdleEvent swig_types[54]
2517#define SWIGTYPE_p_wxImage swig_types[55]
2518#define SWIGTYPE_p_wxImageHandler swig_types[56]
2519#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57]
2520#define SWIGTYPE_p_wxInitDialogEvent swig_types[58]
2521#define SWIGTYPE_p_wxJPEGHandler swig_types[59]
2522#define SWIGTYPE_p_wxKeyEvent swig_types[60]
2523#define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61]
2524#define SWIGTYPE_p_wxLayoutConstraints swig_types[62]
2525#define SWIGTYPE_p_wxMDIChildFrame swig_types[63]
2526#define SWIGTYPE_p_wxMDIClientWindow swig_types[64]
2527#define SWIGTYPE_p_wxMDIParentFrame swig_types[65]
2528#define SWIGTYPE_p_wxMaximizeEvent swig_types[66]
2529#define SWIGTYPE_p_wxMenu swig_types[67]
2530#define SWIGTYPE_p_wxMenuBar swig_types[68]
2531#define SWIGTYPE_p_wxMenuEvent swig_types[69]
2532#define SWIGTYPE_p_wxMenuItem swig_types[70]
2533#define SWIGTYPE_p_wxMessageDialog swig_types[71]
2534#define SWIGTYPE_p_wxMiniFrame swig_types[72]
2535#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73]
2536#define SWIGTYPE_p_wxMouseEvent swig_types[74]
2537#define SWIGTYPE_p_wxMoveEvent swig_types[75]
2538#define SWIGTYPE_p_wxMultiChoiceDialog swig_types[76]
2539#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[77]
2540#define SWIGTYPE_p_wxNcPaintEvent swig_types[78]
2541#define SWIGTYPE_p_wxNotifyEvent swig_types[79]
2542#define SWIGTYPE_p_wxObject swig_types[80]
2543#define SWIGTYPE_p_wxPCXHandler swig_types[81]
2544#define SWIGTYPE_p_wxPNGHandler swig_types[82]
2545#define SWIGTYPE_p_wxPNMHandler swig_types[83]
2546#define SWIGTYPE_p_wxPageSetupDialog swig_types[84]
2547#define SWIGTYPE_p_wxPageSetupDialogData swig_types[85]
2548#define SWIGTYPE_p_wxPaintEvent swig_types[86]
2549#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[87]
2550#define SWIGTYPE_p_wxPanel swig_types[88]
2551#define SWIGTYPE_p_wxPaperSize swig_types[89]
2552#define SWIGTYPE_p_wxPasswordEntryDialog swig_types[90]
2553#define SWIGTYPE_p_wxPopupWindow swig_types[91]
2554#define SWIGTYPE_p_wxPreviewCanvas swig_types[92]
2555#define SWIGTYPE_p_wxPreviewControlBar swig_types[93]
2556#define SWIGTYPE_p_wxPreviewFrame swig_types[94]
2557#define SWIGTYPE_p_wxPrintData swig_types[95]
2558#define SWIGTYPE_p_wxPrintDialog swig_types[96]
2559#define SWIGTYPE_p_wxPrintDialogData swig_types[97]
2560#define SWIGTYPE_p_wxPrintPreview swig_types[98]
2561#define SWIGTYPE_p_wxPrinter swig_types[99]
2562#define SWIGTYPE_p_wxProgressDialog swig_types[100]
2563#define SWIGTYPE_p_wxPyApp swig_types[101]
2564#define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2565#define SWIGTYPE_p_wxPyEvent swig_types[103]
2566#define SWIGTYPE_p_wxPyHtmlListBox swig_types[104]
2567#define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2568#define SWIGTYPE_p_wxPyPanel swig_types[106]
2569#define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[107]
2570#define SWIGTYPE_p_wxPyPreviewControlBar swig_types[108]
2571#define SWIGTYPE_p_wxPyPreviewFrame swig_types[109]
2572#define SWIGTYPE_p_wxPyPrintPreview swig_types[110]
2573#define SWIGTYPE_p_wxPyPrintout swig_types[111]
2574#define SWIGTYPE_p_wxPyScrolledWindow swig_types[112]
2575#define SWIGTYPE_p_wxPySizer swig_types[113]
2576#define SWIGTYPE_p_wxPyTaskBarIcon swig_types[114]
2577#define SWIGTYPE_p_wxPyVListBox swig_types[115]
2578#define SWIGTYPE_p_wxPyVScrolledWindow swig_types[116]
2579#define SWIGTYPE_p_wxPyValidator swig_types[117]
2580#define SWIGTYPE_p_wxPyWindow swig_types[118]
2581#define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[119]
2582#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120]
2583#define SWIGTYPE_p_wxRichTextAttr swig_types[121]
2584#define SWIGTYPE_p_wxRichTextBuffer swig_types[122]
2585#define SWIGTYPE_p_wxRichTextCtrl swig_types[123]
2586#define SWIGTYPE_p_wxRichTextEvent swig_types[124]
2587#define SWIGTYPE_p_wxRichTextImageBlock swig_types[125]
2588#define SWIGTYPE_p_wxRichTextRange swig_types[126]
2589#define SWIGTYPE_p_wxRichTextStyleSheet swig_types[127]
2590#define SWIGTYPE_p_wxSashEvent swig_types[128]
2591#define SWIGTYPE_p_wxSashLayoutWindow swig_types[129]
2592#define SWIGTYPE_p_wxSashWindow swig_types[130]
2593#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2594#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2595#define SWIGTYPE_p_wxScrolledWindow swig_types[133]
2596#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2597#define SWIGTYPE_p_wxShowEvent swig_types[135]
2598#define SWIGTYPE_p_wxSingleChoiceDialog swig_types[136]
2599#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2600#define SWIGTYPE_p_wxSizer swig_types[138]
2601#define SWIGTYPE_p_wxSizerItem swig_types[139]
2602#define SWIGTYPE_p_wxSplashScreen swig_types[140]
2603#define SWIGTYPE_p_wxSplashScreenWindow swig_types[141]
2604#define SWIGTYPE_p_wxSplitterEvent swig_types[142]
2605#define SWIGTYPE_p_wxSplitterWindow swig_types[143]
2606#define SWIGTYPE_p_wxStaticBoxSizer swig_types[144]
2607#define SWIGTYPE_p_wxStatusBar swig_types[145]
2608#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2609#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2610#define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2611#define SWIGTYPE_p_wxTaskBarIconEvent swig_types[149]
2612#define SWIGTYPE_p_wxTextCoord swig_types[150]
2613#define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[151]
2614#define SWIGTYPE_p_wxTextEntryDialog swig_types[152]
2615#define SWIGTYPE_p_wxTipWindow swig_types[153]
2616#define SWIGTYPE_p_wxTopLevelWindow swig_types[154]
2617#define SWIGTYPE_p_wxUpdateUIEvent swig_types[155]
2618#define SWIGTYPE_p_wxValidator swig_types[156]
2619#define SWIGTYPE_p_wxWindow swig_types[157]
2620#define SWIGTYPE_p_wxWindowCreateEvent swig_types[158]
2621#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[159]
2622#define SWIGTYPE_p_wxXPMHandler swig_types[160]
2623static swig_type_info *swig_types[162];
2624static swig_module_info swig_module = {swig_types, 161, 0, 0, 0, 0};
f05326ba
RD
2625#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2626#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2627
2628/* -------- TYPES TABLE (END) -------- */
2629
2630#if (PY_VERSION_HEX <= 0x02000000)
2631# if !defined(SWIG_PYTHON_CLASSIC)
2632# error "This python version requires to use swig with the '-classic' option"
2633# endif
2634#endif
2635#if (PY_VERSION_HEX <= 0x02020000)
2636# error "This python version requires to use swig with the '-nomodern' option"
2637#endif
2638#if (PY_VERSION_HEX <= 0x02020000)
2639# error "This python version requires to use swig with the '-nomodernargs' option"
2640#endif
2641#ifndef METH_O
2642# error "This python version requires to use swig with the '-nofastunpack' option"
2643#endif
2644
2645/*-----------------------------------------------
2646 @(target):= _richtext.so
2647 ------------------------------------------------*/
2648#define SWIG_init init_richtext
2649
2650#define SWIG_name "_richtext"
2651
2652#define SWIGVERSION 0x010329
2653
2654
2655#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2656#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2657
2658
2659#include <stdexcept>
2660
2661
2662namespace swig {
2663 class PyObject_ptr {
2664 protected:
2665 PyObject *_obj;
2666
2667 public:
2668 PyObject_ptr() :_obj(0)
2669 {
2670 }
2671
2672 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2673 {
2674 Py_XINCREF(_obj);
2675 }
2676
2677 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2678 {
2679 if (initial_ref) Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr & operator=(const PyObject_ptr& item)
2683 {
2684 Py_XINCREF(item._obj);
2685 Py_XDECREF(_obj);
2686 _obj = item._obj;
2687 return *this;
2688 }
2689
2690 ~PyObject_ptr()
2691 {
2692 Py_XDECREF(_obj);
2693 }
2694
2695 operator PyObject *() const
2696 {
2697 return _obj;
2698 }
2699
2700 PyObject *operator->() const
2701 {
2702 return _obj;
2703 }
2704 };
2705}
2706
2707
2708namespace swig {
2709 struct PyObject_var : PyObject_ptr {
2710 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2711
2712 PyObject_var & operator = (PyObject* obj)
2713 {
2714 Py_XDECREF(_obj);
2715 _obj = obj;
2716 return *this;
2717 }
2718 };
2719}
2720
2721
2722#include "wx/wxPython/wxPython.h"
2723#include "wx/wxPython/pyclasses.h"
2724#include "wx/wxPython/printfw.h"
2725#include "wx/wxPython/twoitem.h"
2726
2727#include <wx/richtext/richtextctrl.h>
2728
2729
2730class wxEffects;
2731class wxBufferedDC;
2732class wxBufferedPaintDC;
2733class wxMetaFile;
2734class wxMetaFileDC;
2735class wxPrinterDC;
2736
2737
2738
2739 #define SWIG_From_long PyInt_FromLong
2740
2741
2742SWIGINTERNINLINE PyObject *
2743SWIG_From_int (int value)
2744{
2745 return SWIG_From_long (value);
2746}
2747
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749
2750
2751bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj)
2752{
2753 if (source == Py_None) {
2754 **obj = wxRICHTEXT_NONE;
2755 return true;
2756 }
2757 return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange"));
2758}
2759
2760
2761SWIGINTERN int
2762SWIG_AsVal_long (PyObject* obj, long* val)
2763{
2764 if (PyNumber_Check(obj)) {
2765 if (val) *val = PyInt_AsLong(obj);
2766 return SWIG_OK;
2767 }
2768 return SWIG_TypeError;
2769}
2770
2771SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){
2772 wxRichTextRange temp, *obj = &temp;
2773 if ( other == Py_None ) return false;
2774 if ( ! wxRichTextRange_helper(other, &obj) ) {
2775 PyErr_Clear();
2776 return false;
2777 }
2778 return self->operator==(*obj);
2779 }
2780SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){
2781 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2782 PyObject* tup = PyTuple_New(2);
2783 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart()));
2784 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd()));
2785 wxPyEndBlockThreads(blocked);
2786 return tup;
2787 }
2788
2789 wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL);
2790 wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE);
2791
2792
2793#include <limits.h>
2794#ifndef LLONG_MIN
2795# define LLONG_MIN LONG_LONG_MIN
2796#endif
2797#ifndef LLONG_MAX
2798# define LLONG_MAX LONG_LONG_MAX
2799#endif
2800#ifndef ULLONG_MAX
2801# define ULLONG_MAX ULONG_LONG_MAX
2802#endif
2803
2804
2805SWIGINTERN int
2806SWIG_AsVal_int (PyObject * obj, int *val)
2807{
2808 long v;
2809 int res = SWIG_AsVal_long (obj, &v);
2810 if (SWIG_IsOK(res)) {
2811 if ((v < INT_MIN || v > INT_MAX)) {
2812 return SWIG_OverflowError;
2813 } else {
2814 if (val) *val = static_cast< int >(v);
2815 }
2816 }
2817 return res;
2818}
2819
2820
2821SWIGINTERN int
2822SWIG_AsVal_bool (PyObject *obj, bool *val)
2823{
2824 if (obj == Py_True) {
2825 if (val) *val = true;
2826 return SWIG_OK;
2827 } else if (obj == Py_False) {
2828 if (val) *val = false;
2829 return SWIG_OK;
2830 } else {
2831 long v = 0;
2832 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2833 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2834 return res;
2835 }
2836}
2837
2838
2839SWIGINTERN int
2840SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2841{
2842 long v = 0;
2843 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2844 return SWIG_TypeError;
2845 }
2846 else if (val)
2847 *val = (unsigned long)v;
2848 return SWIG_OK;
2849}
2850
2851
2852SWIGINTERN swig_type_info*
2853SWIG_pchar_descriptor()
2854{
2855 static int init = 0;
2856 static swig_type_info* info = 0;
2857 if (!init) {
2858 info = SWIG_TypeQuery("_p_char");
2859 init = 1;
2860 }
2861 return info;
2862}
2863
2864
2865SWIGINTERN int
2866SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2867{
2868 if (PyString_Check(obj)) {
2869 char *cstr; int len;
2870 PyString_AsStringAndSize(obj, &cstr, &len);
2871 if (cptr) {
2872 if (alloc) {
2873 /*
2874 In python the user should not be able to modify the inner
2875 string representation. To warranty that, if you define
2876 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
2877 buffer is always returned.
2878
2879 The default behavior is just to return the pointer value,
2880 so, be careful.
2881 */
2882#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
2883 if (*alloc != SWIG_OLDOBJ)
2884#else
2885 if (*alloc == SWIG_NEWOBJ)
2886#endif
2887 {
2888 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
2889 *alloc = SWIG_NEWOBJ;
2890 }
2891 else {
2892 *cptr = cstr;
2893 *alloc = SWIG_OLDOBJ;
2894 }
2895 } else {
2896 *cptr = PyString_AsString(obj);
2897 }
2898 }
2899 if (psize) *psize = len + 1;
2900 return SWIG_OK;
2901 } else {
2902 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2903 if (pchar_descriptor) {
2904 void* vptr = 0;
2905 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
2906 if (cptr) *cptr = (char *) vptr;
2907 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
2908 if (alloc) *alloc = SWIG_OLDOBJ;
2909 return SWIG_OK;
2910 }
2911 }
2912 }
2913 return SWIG_TypeError;
2914}
2915
2916
2917SWIGINTERN int
2918SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
2919{
2920 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
2921 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
2922 if (SWIG_IsOK(res)) {
2923 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
2924 if (csize <= size) {
2925 if (val) {
2926 if (csize) memcpy(val, cptr, csize*sizeof(char));
2927 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
2928 }
2929 if (alloc == SWIG_NEWOBJ) {
2930 delete[] cptr;
2931 res = SWIG_DelNewMask(res);
2932 }
2933 return res;
2934 }
2935 if (alloc == SWIG_NEWOBJ) delete[] cptr;
2936 }
2937 return SWIG_TypeError;
2938}
2939
2940
2941SWIGINTERN int
2942SWIG_AsVal_char (PyObject * obj, char *val)
2943{
2944 int res = SWIG_AsCharArray(obj, val, 1);
2945 if (!SWIG_IsOK(res)) {
2946 long v;
2947 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
2948 if (SWIG_IsOK(res)) {
2949 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
2950 if (val) *val = static_cast< char >(v);
2951 } else {
2952 res = SWIG_OverflowError;
2953 }
2954 }
2955 }
2956 return res;
2957}
2958
2959#ifdef __cplusplus
2960extern "C" {
2961#endif
2962SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2963 PyObject *resultobj = 0;
2964 long arg1 = (long) 0 ;
2965 long arg2 = (long) 0 ;
2966 wxRichTextRange *result = 0 ;
2967 long val1 ;
2968 int ecode1 = 0 ;
2969 long val2 ;
2970 int ecode2 = 0 ;
2971 PyObject * obj0 = 0 ;
2972 PyObject * obj1 = 0 ;
2973 char * kwnames[] = {
2974 (char *) "start",(char *) "end", NULL
2975 };
2976
2977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail;
2978 if (obj0) {
2979 ecode1 = SWIG_AsVal_long(obj0, &val1);
2980 if (!SWIG_IsOK(ecode1)) {
2981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'");
2982 }
2983 arg1 = static_cast< long >(val1);
2984 }
2985 if (obj1) {
2986 ecode2 = SWIG_AsVal_long(obj1, &val2);
2987 if (!SWIG_IsOK(ecode2)) {
2988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'");
2989 }
2990 arg2 = static_cast< long >(val2);
2991 }
2992 {
2993 PyThreadState* __tstate = wxPyBeginAllowThreads();
2994 result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2);
2995 wxPyEndAllowThreads(__tstate);
2996 if (PyErr_Occurred()) SWIG_fail;
2997 }
2998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 );
2999 return resultobj;
3000fail:
3001 return NULL;
3002}
3003
3004
3005SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3006 PyObject *resultobj = 0;
3007 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3008 void *argp1 = 0 ;
3009 int res1 = 0 ;
3010 PyObject *swig_obj[1] ;
3011
3012 if (!args) SWIG_fail;
3013 swig_obj[0] = args;
3014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 );
3015 if (!SWIG_IsOK(res1)) {
3016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3017 }
3018 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 delete arg1;
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 resultobj = SWIG_Py_Void();
3027 return resultobj;
3028fail:
3029 return NULL;
3030}
3031
3032
3033SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj = 0;
3035 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3036 PyObject *arg2 = (PyObject *) 0 ;
3037 bool result;
3038 void *argp1 = 0 ;
3039 int res1 = 0 ;
3040 PyObject * obj0 = 0 ;
3041 PyObject * obj1 = 0 ;
3042 char * kwnames[] = {
3043 (char *) "self",(char *) "other", NULL
3044 };
3045
3046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3048 if (!SWIG_IsOK(res1)) {
3049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3050 }
3051 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3052 arg2 = obj1;
3053 {
3054 result = (bool)wxRichTextRange___eq__(arg1,arg2);
3055 if (PyErr_Occurred()) SWIG_fail;
3056 }
3057 {
3058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3059 }
3060 return resultobj;
3061fail:
3062 return NULL;
3063}
3064
3065
3066SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj = 0;
3068 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3069 wxRichTextRange *arg2 = 0 ;
3070 wxRichTextRange result;
3071 void *argp1 = 0 ;
3072 int res1 = 0 ;
3073 wxRichTextRange temp2 ;
3074 PyObject * obj0 = 0 ;
3075 PyObject * obj1 = 0 ;
3076 char * kwnames[] = {
3077 (char *) "self",(char *) "range", NULL
3078 };
3079
3080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
3081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3082 if (!SWIG_IsOK(res1)) {
3083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3084 }
3085 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3086 {
3087 arg2 = &temp2;
3088 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3089 }
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2);
3093 wxPyEndAllowThreads(__tstate);
3094 if (PyErr_Occurred()) SWIG_fail;
3095 }
3096 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3097 return resultobj;
3098fail:
3099 return NULL;
3100}
3101
3102
3103SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3104 PyObject *resultobj = 0;
3105 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3106 wxRichTextRange *arg2 = 0 ;
3107 wxRichTextRange result;
3108 void *argp1 = 0 ;
3109 int res1 = 0 ;
3110 wxRichTextRange temp2 ;
3111 PyObject * obj0 = 0 ;
3112 PyObject * obj1 = 0 ;
3113 char * kwnames[] = {
3114 (char *) "self",(char *) "range", NULL
3115 };
3116
3117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail;
3118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3119 if (!SWIG_IsOK(res1)) {
3120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3121 }
3122 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3123 {
3124 arg2 = &temp2;
3125 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3126 }
3127 {
3128 PyThreadState* __tstate = wxPyBeginAllowThreads();
3129 result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2);
3130 wxPyEndAllowThreads(__tstate);
3131 if (PyErr_Occurred()) SWIG_fail;
3132 }
3133 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3134 return resultobj;
3135fail:
3136 return NULL;
3137}
3138
3139
3140SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3141 PyObject *resultobj = 0;
3142 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3143 long arg2 ;
3144 long arg3 ;
3145 void *argp1 = 0 ;
3146 int res1 = 0 ;
3147 long val2 ;
3148 int ecode2 = 0 ;
3149 long val3 ;
3150 int ecode3 = 0 ;
3151 PyObject * obj0 = 0 ;
3152 PyObject * obj1 = 0 ;
3153 PyObject * obj2 = 0 ;
3154 char * kwnames[] = {
3155 (char *) "self",(char *) "start",(char *) "end", NULL
3156 };
3157
3158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3160 if (!SWIG_IsOK(res1)) {
3161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3162 }
3163 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3164 ecode2 = SWIG_AsVal_long(obj1, &val2);
3165 if (!SWIG_IsOK(ecode2)) {
3166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'");
3167 }
3168 arg2 = static_cast< long >(val2);
3169 ecode3 = SWIG_AsVal_long(obj2, &val3);
3170 if (!SWIG_IsOK(ecode3)) {
3171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'");
3172 }
3173 arg3 = static_cast< long >(val3);
3174 {
3175 PyThreadState* __tstate = wxPyBeginAllowThreads();
3176 (arg1)->SetRange(arg2,arg3);
3177 wxPyEndAllowThreads(__tstate);
3178 if (PyErr_Occurred()) SWIG_fail;
3179 }
3180 resultobj = SWIG_Py_Void();
3181 return resultobj;
3182fail:
3183 return NULL;
3184}
3185
3186
3187SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3188 PyObject *resultobj = 0;
3189 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3190 long arg2 ;
3191 void *argp1 = 0 ;
3192 int res1 = 0 ;
3193 long val2 ;
3194 int ecode2 = 0 ;
3195 PyObject * obj0 = 0 ;
3196 PyObject * obj1 = 0 ;
3197 char * kwnames[] = {
3198 (char *) "self",(char *) "start", NULL
3199 };
3200
3201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail;
3202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3203 if (!SWIG_IsOK(res1)) {
3204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3205 }
3206 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3207 ecode2 = SWIG_AsVal_long(obj1, &val2);
3208 if (!SWIG_IsOK(ecode2)) {
3209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'");
3210 }
3211 arg2 = static_cast< long >(val2);
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 (arg1)->SetStart(arg2);
3215 wxPyEndAllowThreads(__tstate);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 }
3218 resultobj = SWIG_Py_Void();
3219 return resultobj;
3220fail:
3221 return NULL;
3222}
3223
3224
3225SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3226 PyObject *resultobj = 0;
3227 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3228 long result;
3229 void *argp1 = 0 ;
3230 int res1 = 0 ;
3231 PyObject *swig_obj[1] ;
3232
3233 if (!args) SWIG_fail;
3234 swig_obj[0] = args;
3235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3236 if (!SWIG_IsOK(res1)) {
3237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3238 }
3239 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 result = (long)((wxRichTextRange const *)arg1)->GetStart();
3243 wxPyEndAllowThreads(__tstate);
3244 if (PyErr_Occurred()) SWIG_fail;
3245 }
3246 resultobj = SWIG_From_long(static_cast< long >(result));
3247 return resultobj;
3248fail:
3249 return NULL;
3250}
3251
3252
3253SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3254 PyObject *resultobj = 0;
3255 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3256 long arg2 ;
3257 void *argp1 = 0 ;
3258 int res1 = 0 ;
3259 long val2 ;
3260 int ecode2 = 0 ;
3261 PyObject * obj0 = 0 ;
3262 PyObject * obj1 = 0 ;
3263 char * kwnames[] = {
3264 (char *) "self",(char *) "end", NULL
3265 };
3266
3267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail;
3268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3269 if (!SWIG_IsOK(res1)) {
3270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3271 }
3272 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3273 ecode2 = SWIG_AsVal_long(obj1, &val2);
3274 if (!SWIG_IsOK(ecode2)) {
3275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'");
3276 }
3277 arg2 = static_cast< long >(val2);
3278 {
3279 PyThreadState* __tstate = wxPyBeginAllowThreads();
3280 (arg1)->SetEnd(arg2);
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 resultobj = SWIG_Py_Void();
3285 return resultobj;
3286fail:
3287 return NULL;
3288}
3289
3290
3291SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3292 PyObject *resultobj = 0;
3293 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3294 long result;
3295 void *argp1 = 0 ;
3296 int res1 = 0 ;
3297 PyObject *swig_obj[1] ;
3298
3299 if (!args) SWIG_fail;
3300 swig_obj[0] = args;
3301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3302 if (!SWIG_IsOK(res1)) {
3303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3304 }
3305 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3306 {
3307 PyThreadState* __tstate = wxPyBeginAllowThreads();
3308 result = (long)((wxRichTextRange const *)arg1)->GetEnd();
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 resultobj = SWIG_From_long(static_cast< long >(result));
3313 return resultobj;
3314fail:
3315 return NULL;
3316}
3317
3318
3319SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj = 0;
3321 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3322 wxRichTextRange *arg2 = 0 ;
3323 bool result;
3324 void *argp1 = 0 ;
3325 int res1 = 0 ;
3326 wxRichTextRange temp2 ;
3327 PyObject * obj0 = 0 ;
3328 PyObject * obj1 = 0 ;
3329 char * kwnames[] = {
3330 (char *) "self",(char *) "range", NULL
3331 };
3332
3333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail;
3334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3335 if (!SWIG_IsOK(res1)) {
3336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3337 }
3338 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3339 {
3340 arg2 = &temp2;
3341 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2);
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 {
3350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3351 }
3352 return resultobj;
3353fail:
3354 return NULL;
3355}
3356
3357
3358SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj = 0;
3360 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3361 wxRichTextRange *arg2 = 0 ;
3362 bool result;
3363 void *argp1 = 0 ;
3364 int res1 = 0 ;
3365 wxRichTextRange temp2 ;
3366 PyObject * obj0 = 0 ;
3367 PyObject * obj1 = 0 ;
3368 char * kwnames[] = {
3369 (char *) "self",(char *) "range", NULL
3370 };
3371
3372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail;
3373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3374 if (!SWIG_IsOK(res1)) {
3375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3376 }
3377 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3378 {
3379 arg2 = &temp2;
3380 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3381 }
3382 {
3383 PyThreadState* __tstate = wxPyBeginAllowThreads();
3384 result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2);
3385 wxPyEndAllowThreads(__tstate);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 }
3388 {
3389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3390 }
3391 return resultobj;
3392fail:
3393 return NULL;
3394}
3395
3396
3397SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj = 0;
3399 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3400 long arg2 ;
3401 bool result;
3402 void *argp1 = 0 ;
3403 int res1 = 0 ;
3404 long val2 ;
3405 int ecode2 = 0 ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 char * kwnames[] = {
3409 (char *) "self",(char *) "pos", NULL
3410 };
3411
3412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
3413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3414 if (!SWIG_IsOK(res1)) {
3415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3416 }
3417 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3418 ecode2 = SWIG_AsVal_long(obj1, &val2);
3419 if (!SWIG_IsOK(ecode2)) {
3420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'");
3421 }
3422 arg2 = static_cast< long >(val2);
3423 {
3424 PyThreadState* __tstate = wxPyBeginAllowThreads();
3425 result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2);
3426 wxPyEndAllowThreads(__tstate);
3427 if (PyErr_Occurred()) SWIG_fail;
3428 }
3429 {
3430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3431 }
3432 return resultobj;
3433fail:
3434 return NULL;
3435}
3436
3437
3438SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3439 PyObject *resultobj = 0;
3440 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3441 wxRichTextRange *arg2 = 0 ;
3442 bool result;
3443 void *argp1 = 0 ;
3444 int res1 = 0 ;
3445 wxRichTextRange temp2 ;
3446 PyObject * obj0 = 0 ;
3447 PyObject * obj1 = 0 ;
3448 char * kwnames[] = {
3449 (char *) "self",(char *) "range", NULL
3450 };
3451
3452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail;
3453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3454 if (!SWIG_IsOK(res1)) {
3455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3456 }
3457 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3458 {
3459 arg2 = &temp2;
3460 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3461 }
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2);
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 {
3469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3470 }
3471 return resultobj;
3472fail:
3473 return NULL;
3474}
3475
3476
3477SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3478 PyObject *resultobj = 0;
3479 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3480 long result;
3481 void *argp1 = 0 ;
3482 int res1 = 0 ;
3483 PyObject *swig_obj[1] ;
3484
3485 if (!args) SWIG_fail;
3486 swig_obj[0] = args;
3487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3488 if (!SWIG_IsOK(res1)) {
3489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3490 }
3491 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3492 {
3493 PyThreadState* __tstate = wxPyBeginAllowThreads();
3494 result = (long)((wxRichTextRange const *)arg1)->GetLength();
3495 wxPyEndAllowThreads(__tstate);
3496 if (PyErr_Occurred()) SWIG_fail;
3497 }
3498 resultobj = SWIG_From_long(static_cast< long >(result));
3499 return resultobj;
3500fail:
3501 return NULL;
3502}
3503
3504
3505SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3506 PyObject *resultobj = 0;
3507 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3508 void *argp1 = 0 ;
3509 int res1 = 0 ;
3510 PyObject *swig_obj[1] ;
3511
3512 if (!args) SWIG_fail;
3513 swig_obj[0] = args;
3514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3515 if (!SWIG_IsOK(res1)) {
3516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3517 }
3518 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 (arg1)->Swap();
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 resultobj = SWIG_Py_Void();
3526 return resultobj;
3527fail:
3528 return NULL;
3529}
3530
3531
3532SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3533 PyObject *resultobj = 0;
3534 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3535 PyObject *result = 0 ;
3536 void *argp1 = 0 ;
3537 int res1 = 0 ;
3538 PyObject *swig_obj[1] ;
3539
3540 if (!args) SWIG_fail;
3541 swig_obj[0] = args;
3542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3543 if (!SWIG_IsOK(res1)) {
3544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3545 }
3546 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (PyObject *)wxRichTextRange_Get(arg1);
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 resultobj = result;
3554 return resultobj;
3555fail:
3556 return NULL;
3557}
3558
3559
3560SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3561 PyObject *obj;
3562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3563 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj));
3564 return SWIG_Py_Void();
3565}
3566
3567SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3568 return SWIG_Python_InitShadowInstance(args);
3569}
3570
3571SWIGINTERN int RICHTEXT_ALL_set(PyObject *) {
3572 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only.");
3573 return 1;
3574}
3575
3576
3577SWIGINTERN PyObject *RICHTEXT_ALL_get(void) {
3578 PyObject *pyobj = 0;
3579
3580 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 );
3581 return pyobj;
3582}
3583
3584
3585SWIGINTERN int RICHTEXT_NONE_set(PyObject *) {
3586 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only.");
3587 return 1;
3588}
3589
3590
3591SWIGINTERN PyObject *RICHTEXT_NONE_get(void) {
3592 PyObject *pyobj = 0;
3593
3594 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 );
3595 return pyobj;
3596}
3597
3598
3599SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3600 PyObject *resultobj = 0;
3601 wxColour const &arg1_defvalue = wxNullColour ;
3602 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
3603 wxColour const &arg2_defvalue = wxNullColour ;
3604 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3605 wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
3606 wxRichTextAttr *result = 0 ;
3607 wxColour temp1 ;
3608 wxColour temp2 ;
3609 int val3 ;
3610 int ecode3 = 0 ;
3611 PyObject * obj0 = 0 ;
3612 PyObject * obj1 = 0 ;
3613 PyObject * obj2 = 0 ;
3614 char * kwnames[] = {
3615 (char *) "colText",(char *) "colBack",(char *) "alignment", NULL
3616 };
3617
3618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3619 if (obj0) {
3620 {
3621 arg1 = &temp1;
3622 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3623 }
3624 }
3625 if (obj1) {
3626 {
3627 arg2 = &temp2;
3628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3629 }
3630 }
3631 if (obj2) {
3632 ecode3 = SWIG_AsVal_int(obj2, &val3);
3633 if (!SWIG_IsOK(ecode3)) {
3634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'");
3635 }
3636 arg3 = static_cast< wxTextAttrAlignment >(val3);
3637 }
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3);
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 );
3645 return resultobj;
3646fail:
3647 return NULL;
3648}
3649
3650
3651SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3652 PyObject *resultobj = 0;
3653 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3654 void *argp1 = 0 ;
3655 int res1 = 0 ;
3656 PyObject *swig_obj[1] ;
3657
3658 if (!args) SWIG_fail;
3659 swig_obj[0] = args;
3660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 );
3661 if (!SWIG_IsOK(res1)) {
3662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3663 }
3664 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 delete arg1;
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_Py_Void();
3673 return resultobj;
3674fail:
3675 return NULL;
3676}
3677
3678
3679SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
453fb36b 3682 wxFont result;
f05326ba
RD
3683 void *argp1 = 0 ;
3684 int res1 = 0 ;
3685 PyObject *swig_obj[1] ;
3686
3687 if (!args) SWIG_fail;
3688 swig_obj[0] = args;
3689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3690 if (!SWIG_IsOK(res1)) {
3691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
3692 }
3693 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
3696 result = ((wxRichTextAttr const *)arg1)->CreateFont();
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
3701 return resultobj;
3702fail:
3703 return NULL;
3704}
3705
3706
3707SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3708 PyObject *resultobj = 0;
3709 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3710 wxFont *arg2 = 0 ;
3711 bool result;
3712 void *argp1 = 0 ;
3713 int res1 = 0 ;
3714 void *argp2 = 0 ;
3715 int res2 = 0 ;
3716 PyObject * obj0 = 0 ;
3717 PyObject * obj1 = 0 ;
3718 char * kwnames[] = {
3719 (char *) "self",(char *) "font", NULL
3720 };
3721
3722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail;
3723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3724 if (!SWIG_IsOK(res1)) {
3725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3726 }
3727 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
3729 if (!SWIG_IsOK(res2)) {
3730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3731 }
3732 if (!argp2) {
3733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3734 }
3735 arg2 = reinterpret_cast< wxFont * >(argp2);
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2);
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 {
3743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3744 }
3745 return resultobj;
3746fail:
3747 return NULL;
3748}
3749
3750
3751SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3752 PyObject *resultobj = 0;
3753 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3754 wxColour *arg2 = 0 ;
3755 void *argp1 = 0 ;
3756 int res1 = 0 ;
3757 wxColour temp2 ;
3758 PyObject * obj0 = 0 ;
3759 PyObject * obj1 = 0 ;
3760 char * kwnames[] = {
3761 (char *) "self",(char *) "colText", NULL
3762 };
3763
3764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
3765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3766 if (!SWIG_IsOK(res1)) {
3767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3768 }
3769 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3770 {
3771 arg2 = &temp2;
3772 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3773 }
3774 {
3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
3776 (arg1)->SetTextColour((wxColour const &)*arg2);
3777 wxPyEndAllowThreads(__tstate);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 resultobj = SWIG_Py_Void();
3781 return resultobj;
3782fail:
3783 return NULL;
3784}
3785
3786
3787SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3788 PyObject *resultobj = 0;
3789 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3790 wxColour *arg2 = 0 ;
3791 void *argp1 = 0 ;
3792 int res1 = 0 ;
3793 wxColour temp2 ;
3794 PyObject * obj0 = 0 ;
3795 PyObject * obj1 = 0 ;
3796 char * kwnames[] = {
3797 (char *) "self",(char *) "colBack", NULL
3798 };
3799
3800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
3801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3802 if (!SWIG_IsOK(res1)) {
3803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3804 }
3805 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3806 {
3807 arg2 = &temp2;
3808 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3809 }
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_Py_Void();
3817 return resultobj;
3818fail:
3819 return NULL;
3820}
3821
3822
3823SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj = 0;
3825 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3826 wxTextAttrAlignment arg2 ;
3827 void *argp1 = 0 ;
3828 int res1 = 0 ;
3829 int val2 ;
3830 int ecode2 = 0 ;
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 char * kwnames[] = {
3834 (char *) "self",(char *) "alignment", NULL
3835 };
3836
3837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
3838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3839 if (!SWIG_IsOK(res1)) {
3840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3841 }
3842 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3843 ecode2 = SWIG_AsVal_int(obj1, &val2);
3844 if (!SWIG_IsOK(ecode2)) {
3845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
3846 }
3847 arg2 = static_cast< wxTextAttrAlignment >(val2);
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 (arg1)->SetAlignment(arg2);
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 resultobj = SWIG_Py_Void();
3855 return resultobj;
3856fail:
3857 return NULL;
3858}
3859
3860
3861SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj = 0;
3863 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3864 wxArrayInt *arg2 = 0 ;
3865 void *argp1 = 0 ;
3866 int res1 = 0 ;
3867 bool temp2 = false ;
3868 PyObject * obj0 = 0 ;
3869 PyObject * obj1 = 0 ;
3870 char * kwnames[] = {
3871 (char *) "self",(char *) "tabs", NULL
3872 };
3873
3874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
3875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3876 if (!SWIG_IsOK(res1)) {
3877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3878 }
3879 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3880 {
3881 if (! PySequence_Check(obj1)) {
3882 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3883 SWIG_fail;
3884 }
3885 arg2 = new wxArrayInt;
3886 temp2 = true;
3887 int i, len=PySequence_Length(obj1);
3888 for (i=0; i<len; i++) {
3889 PyObject* item = PySequence_GetItem(obj1, i);
3890 PyObject* number = PyNumber_Int(item);
3891 arg2->Add(PyInt_AS_LONG(number));
3892 Py_DECREF(item);
3893 Py_DECREF(number);
3894 }
3895 }
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 (arg1)->SetTabs((wxArrayInt const &)*arg2);
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_Py_Void();
3903 {
3904 if (temp2) delete arg2;
3905 }
3906 return resultobj;
3907fail:
3908 {
3909 if (temp2) delete arg2;
3910 }
3911 return NULL;
3912}
3913
3914
3915SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj = 0;
3917 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3918 int arg2 ;
3919 int arg3 = (int) 0 ;
3920 void *argp1 = 0 ;
3921 int res1 = 0 ;
3922 int val2 ;
3923 int ecode2 = 0 ;
3924 int val3 ;
3925 int ecode3 = 0 ;
3926 PyObject * obj0 = 0 ;
3927 PyObject * obj1 = 0 ;
3928 PyObject * obj2 = 0 ;
3929 char * kwnames[] = {
3930 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
3931 };
3932
3933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3935 if (!SWIG_IsOK(res1)) {
3936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3937 }
3938 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3939 ecode2 = SWIG_AsVal_int(obj1, &val2);
3940 if (!SWIG_IsOK(ecode2)) {
3941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
3942 }
3943 arg2 = static_cast< int >(val2);
3944 if (obj2) {
3945 ecode3 = SWIG_AsVal_int(obj2, &val3);
3946 if (!SWIG_IsOK(ecode3)) {
3947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
3948 }
3949 arg3 = static_cast< int >(val3);
3950 }
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 (arg1)->SetLeftIndent(arg2,arg3);
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 resultobj = SWIG_Py_Void();
3958 return resultobj;
3959fail:
3960 return NULL;
3961}
3962
3963
3964SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj = 0;
3966 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3967 int arg2 ;
3968 void *argp1 = 0 ;
3969 int res1 = 0 ;
3970 int val2 ;
3971 int ecode2 = 0 ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 char * kwnames[] = {
3975 (char *) "self",(char *) "indent", NULL
3976 };
3977
3978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
3979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3980 if (!SWIG_IsOK(res1)) {
3981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3982 }
3983 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3984 ecode2 = SWIG_AsVal_int(obj1, &val2);
3985 if (!SWIG_IsOK(ecode2)) {
3986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
3987 }
3988 arg2 = static_cast< int >(val2);
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 (arg1)->SetRightIndent(arg2);
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_Py_Void();
3996 return resultobj;
3997fail:
3998 return NULL;
3999}
4000
4001
4002SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4003 PyObject *resultobj = 0;
4004 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4005 int arg2 ;
4006 void *argp1 = 0 ;
4007 int res1 = 0 ;
4008 int val2 ;
4009 int ecode2 = 0 ;
4010 PyObject * obj0 = 0 ;
4011 PyObject * obj1 = 0 ;
4012 char * kwnames[] = {
4013 (char *) "self",(char *) "pointSize", NULL
4014 };
4015
4016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
4017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4018 if (!SWIG_IsOK(res1)) {
4019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4020 }
4021 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4022 ecode2 = SWIG_AsVal_int(obj1, &val2);
4023 if (!SWIG_IsOK(ecode2)) {
4024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'");
4025 }
4026 arg2 = static_cast< int >(val2);
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 (arg1)->SetFontSize(arg2);
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_Py_Void();
4034 return resultobj;
4035fail:
4036 return NULL;
4037}
4038
4039
4040SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj = 0;
4042 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4043 int arg2 ;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 int val2 ;
4047 int ecode2 = 0 ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 char * kwnames[] = {
4051 (char *) "self",(char *) "fontStyle", NULL
4052 };
4053
4054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4056 if (!SWIG_IsOK(res1)) {
4057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4058 }
4059 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4060 ecode2 = SWIG_AsVal_int(obj1, &val2);
4061 if (!SWIG_IsOK(ecode2)) {
4062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'");
4063 }
4064 arg2 = static_cast< int >(val2);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 (arg1)->SetFontStyle(arg2);
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 resultobj = SWIG_Py_Void();
4072 return resultobj;
4073fail:
4074 return NULL;
4075}
4076
4077
4078SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj = 0;
4080 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4081 int arg2 ;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 int val2 ;
4085 int ecode2 = 0 ;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj1 = 0 ;
4088 char * kwnames[] = {
4089 (char *) "self",(char *) "fontWeight", NULL
4090 };
4091
4092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail;
4093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4094 if (!SWIG_IsOK(res1)) {
4095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4096 }
4097 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4098 ecode2 = SWIG_AsVal_int(obj1, &val2);
4099 if (!SWIG_IsOK(ecode2)) {
4100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'");
4101 }
4102 arg2 = static_cast< int >(val2);
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 (arg1)->SetFontWeight(arg2);
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 resultobj = SWIG_Py_Void();
4110 return resultobj;
4111fail:
4112 return NULL;
4113}
4114
4115
4116SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4117 PyObject *resultobj = 0;
4118 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4119 wxString *arg2 = 0 ;
4120 void *argp1 = 0 ;
4121 int res1 = 0 ;
4122 bool temp2 = false ;
4123 PyObject * obj0 = 0 ;
4124 PyObject * obj1 = 0 ;
4125 char * kwnames[] = {
4126 (char *) "self",(char *) "faceName", NULL
4127 };
4128
4129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
4130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4131 if (!SWIG_IsOK(res1)) {
4132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4133 }
4134 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4135 {
4136 arg2 = wxString_in_helper(obj1);
4137 if (arg2 == NULL) SWIG_fail;
4138 temp2 = true;
4139 }
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 (arg1)->SetFontFaceName((wxString const &)*arg2);
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_Py_Void();
4147 {
4148 if (temp2)
4149 delete arg2;
4150 }
4151 return resultobj;
4152fail:
4153 {
4154 if (temp2)
4155 delete arg2;
4156 }
4157 return NULL;
4158}
4159
4160
4161SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj = 0;
4163 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4164 bool arg2 ;
4165 void *argp1 = 0 ;
4166 int res1 = 0 ;
4167 bool val2 ;
4168 int ecode2 = 0 ;
4169 PyObject * obj0 = 0 ;
4170 PyObject * obj1 = 0 ;
4171 char * kwnames[] = {
4172 (char *) "self",(char *) "underlined", NULL
4173 };
4174
4175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4177 if (!SWIG_IsOK(res1)) {
4178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4179 }
4180 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4181 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4182 if (!SWIG_IsOK(ecode2)) {
4183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'");
4184 }
4185 arg2 = static_cast< bool >(val2);
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 (arg1)->SetFontUnderlined(arg2);
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_Py_Void();
4193 return resultobj;
4194fail:
4195 return NULL;
4196}
4197
4198
4199SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj = 0;
4201 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4202 long arg2 ;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 long val2 ;
4206 int ecode2 = 0 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 char * kwnames[] = {
4210 (char *) "self",(char *) "flags", NULL
4211 };
4212
4213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4217 }
4218 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4219 ecode2 = SWIG_AsVal_long(obj1, &val2);
4220 if (!SWIG_IsOK(ecode2)) {
4221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
4222 }
4223 arg2 = static_cast< long >(val2);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 (arg1)->SetFlags(arg2);
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_Py_Void();
4231 return resultobj;
4232fail:
4233 return NULL;
4234}
4235
4236
4237SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4240 wxString *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 bool temp2 = false ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char * kwnames[] = {
4247 (char *) "self",(char *) "name", NULL
4248 };
4249
4250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4254 }
4255 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4256 {
4257 arg2 = wxString_in_helper(obj1);
4258 if (arg2 == NULL) SWIG_fail;
4259 temp2 = true;
4260 }
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 (arg1)->SetCharacterStyleName((wxString const &)*arg2);
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_Py_Void();
4268 {
4269 if (temp2)
4270 delete arg2;
4271 }
4272 return resultobj;
4273fail:
4274 {
4275 if (temp2)
4276 delete arg2;
4277 }
4278 return NULL;
4279}
4280
4281
4282SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4283 PyObject *resultobj = 0;
4284 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4285 wxString *arg2 = 0 ;
4286 void *argp1 = 0 ;
4287 int res1 = 0 ;
4288 bool temp2 = false ;
4289 PyObject * obj0 = 0 ;
4290 PyObject * obj1 = 0 ;
4291 char * kwnames[] = {
4292 (char *) "self",(char *) "name", NULL
4293 };
4294
4295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4297 if (!SWIG_IsOK(res1)) {
4298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4299 }
4300 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4301 {
4302 arg2 = wxString_in_helper(obj1);
4303 if (arg2 == NULL) SWIG_fail;
4304 temp2 = true;
4305 }
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetParagraphStyleName((wxString const &)*arg2);
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_Py_Void();
4313 {
4314 if (temp2)
4315 delete arg2;
4316 }
4317 return resultobj;
4318fail:
4319 {
4320 if (temp2)
4321 delete arg2;
4322 }
4323 return NULL;
4324}
4325
4326
4327SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj = 0;
4329 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4330 int arg2 ;
4331 void *argp1 = 0 ;
4332 int res1 = 0 ;
4333 int val2 ;
4334 int ecode2 = 0 ;
4335 PyObject * obj0 = 0 ;
4336 PyObject * obj1 = 0 ;
4337 char * kwnames[] = {
4338 (char *) "self",(char *) "spacing", NULL
4339 };
4340
4341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail;
4342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4343 if (!SWIG_IsOK(res1)) {
4344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4345 }
4346 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4347 ecode2 = SWIG_AsVal_int(obj1, &val2);
4348 if (!SWIG_IsOK(ecode2)) {
4349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'");
4350 }
4351 arg2 = static_cast< int >(val2);
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 (arg1)->SetParagraphSpacingAfter(arg2);
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 resultobj = SWIG_Py_Void();
4359 return resultobj;
4360fail:
4361 return NULL;
4362}
4363
4364
4365SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj = 0;
4367 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4368 int arg2 ;
4369 void *argp1 = 0 ;
4370 int res1 = 0 ;
4371 int val2 ;
4372 int ecode2 = 0 ;
4373 PyObject * obj0 = 0 ;
4374 PyObject * obj1 = 0 ;
4375 char * kwnames[] = {
4376 (char *) "self",(char *) "spacing", NULL
4377 };
4378
4379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail;
4380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4381 if (!SWIG_IsOK(res1)) {
4382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4383 }
4384 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4385 ecode2 = SWIG_AsVal_int(obj1, &val2);
4386 if (!SWIG_IsOK(ecode2)) {
4387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'");
4388 }
4389 arg2 = static_cast< int >(val2);
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 (arg1)->SetParagraphSpacingBefore(arg2);
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 resultobj = SWIG_Py_Void();
4397 return resultobj;
4398fail:
4399 return NULL;
4400}
4401
4402
4403SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4404 PyObject *resultobj = 0;
4405 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4406 int arg2 ;
4407 void *argp1 = 0 ;
4408 int res1 = 0 ;
4409 int val2 ;
4410 int ecode2 = 0 ;
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
4413 char * kwnames[] = {
4414 (char *) "self",(char *) "spacing", NULL
4415 };
4416
4417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
4418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4419 if (!SWIG_IsOK(res1)) {
4420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4421 }
4422 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4423 ecode2 = SWIG_AsVal_int(obj1, &val2);
4424 if (!SWIG_IsOK(ecode2)) {
4425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'");
4426 }
4427 arg2 = static_cast< int >(val2);
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 (arg1)->SetLineSpacing(arg2);
4431 wxPyEndAllowThreads(__tstate);
4432 if (PyErr_Occurred()) SWIG_fail;
4433 }
4434 resultobj = SWIG_Py_Void();
4435 return resultobj;
4436fail:
4437 return NULL;
4438}
4439
4440
4441SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4442 PyObject *resultobj = 0;
4443 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4444 int arg2 ;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 int val2 ;
4448 int ecode2 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 PyObject * obj1 = 0 ;
4451 char * kwnames[] = {
4452 (char *) "self",(char *) "style", NULL
4453 };
4454
4455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4457 if (!SWIG_IsOK(res1)) {
4458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4459 }
4460 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4461 ecode2 = SWIG_AsVal_int(obj1, &val2);
4462 if (!SWIG_IsOK(ecode2)) {
4463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'");
4464 }
4465 arg2 = static_cast< int >(val2);
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 (arg1)->SetBulletStyle(arg2);
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = SWIG_Py_Void();
4473 return resultobj;
4474fail:
4475 return NULL;
4476}
4477
4478
4479SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4480 PyObject *resultobj = 0;
4481 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4482 int arg2 ;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 int val2 ;
4486 int ecode2 = 0 ;
4487 PyObject * obj0 = 0 ;
4488 PyObject * obj1 = 0 ;
4489 char * kwnames[] = {
4490 (char *) "self",(char *) "n", NULL
4491 };
4492
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4497 }
4498 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4499 ecode2 = SWIG_AsVal_int(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'");
4502 }
4503 arg2 = static_cast< int >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 (arg1)->SetBulletNumber(arg2);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512fail:
4513 return NULL;
4514}
4515
4516
4517SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4520 wxChar arg2 ;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 void *argp2 ;
4524 int res2 = 0 ;
4525 PyObject * obj0 = 0 ;
4526 PyObject * obj1 = 0 ;
4527 char * kwnames[] = {
4528 (char *) "self",(char *) "symbol", NULL
4529 };
4530
4531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail;
4532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4533 if (!SWIG_IsOK(res1)) {
4534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4535 }
4536 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4537 {
4538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0);
4539 if (!SWIG_IsOK(res2)) {
4540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4541 }
4542 if (!argp2) {
4543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4544 } else {
4545 wxChar * temp = reinterpret_cast< wxChar * >(argp2);
4546 arg2 = *temp;
4547 if (SWIG_IsNewObj(res2)) delete temp;
4548 }
4549 }
4550 {
4551 PyThreadState* __tstate = wxPyBeginAllowThreads();
4552 (arg1)->SetBulletSymbol(arg2);
4553 wxPyEndAllowThreads(__tstate);
4554 if (PyErr_Occurred()) SWIG_fail;
4555 }
4556 resultobj = SWIG_Py_Void();
4557 return resultobj;
4558fail:
4559 return NULL;
4560}
4561
4562
4563SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4564 PyObject *resultobj = 0;
4565 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4566 wxColour *result = 0 ;
4567 void *argp1 = 0 ;
4568 int res1 = 0 ;
4569 PyObject *swig_obj[1] ;
4570
4571 if (!args) SWIG_fail;
4572 swig_obj[0] = args;
4573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4574 if (!SWIG_IsOK(res1)) {
4575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4576 }
4577 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4578 {
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 {
4581 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour();
4582 result = (wxColour *) &_result_ref;
4583 }
4584 wxPyEndAllowThreads(__tstate);
4585 if (PyErr_Occurred()) SWIG_fail;
4586 }
4587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4588 return resultobj;
4589fail:
4590 return NULL;
4591}
4592
4593
4594SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4595 PyObject *resultobj = 0;
4596 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4597 wxColour *result = 0 ;
4598 void *argp1 = 0 ;
4599 int res1 = 0 ;
4600 PyObject *swig_obj[1] ;
4601
4602 if (!args) SWIG_fail;
4603 swig_obj[0] = args;
4604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4605 if (!SWIG_IsOK(res1)) {
4606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4607 }
4608 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 {
4612 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour();
4613 result = (wxColour *) &_result_ref;
4614 }
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4619 return resultobj;
4620fail:
4621 return NULL;
4622}
4623
4624
4625SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4626 PyObject *resultobj = 0;
4627 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4628 wxTextAttrAlignment result;
4629 void *argp1 = 0 ;
4630 int res1 = 0 ;
4631 PyObject *swig_obj[1] ;
4632
4633 if (!args) SWIG_fail;
4634 swig_obj[0] = args;
4635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4636 if (!SWIG_IsOK(res1)) {
4637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4638 }
4639 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment();
4643 wxPyEndAllowThreads(__tstate);
4644 if (PyErr_Occurred()) SWIG_fail;
4645 }
4646 resultobj = SWIG_From_int(static_cast< int >(result));
4647 return resultobj;
4648fail:
4649 return NULL;
4650}
4651
4652
4653SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4654 PyObject *resultobj = 0;
4655 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4656 wxArrayInt *result = 0 ;
4657 void *argp1 = 0 ;
4658 int res1 = 0 ;
4659 PyObject *swig_obj[1] ;
4660
4661 if (!args) SWIG_fail;
4662 swig_obj[0] = args;
4663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4664 if (!SWIG_IsOK(res1)) {
4665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4666 }
4667 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 {
4671 wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs();
4672 result = (wxArrayInt *) &_result_ref;
4673 }
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 {
4678 resultobj = PyList_New(0);
4679 size_t idx;
4680 for (idx = 0; idx < result->GetCount(); idx += 1) {
4681 PyObject* val = PyInt_FromLong( result->Item(idx) );
4682 PyList_Append(resultobj, val);
4683 Py_DECREF(val);
4684 }
4685 }
4686 return resultobj;
4687fail:
4688 return NULL;
4689}
4690
4691
4692SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4693 PyObject *resultobj = 0;
4694 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4695 long result;
4696 void *argp1 = 0 ;
4697 int res1 = 0 ;
4698 PyObject *swig_obj[1] ;
4699
4700 if (!args) SWIG_fail;
4701 swig_obj[0] = args;
4702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4703 if (!SWIG_IsOK(res1)) {
4704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4705 }
4706 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent();
4710 wxPyEndAllowThreads(__tstate);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = SWIG_From_long(static_cast< long >(result));
4714 return resultobj;
4715fail:
4716 return NULL;
4717}
4718
4719
4720SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4721 PyObject *resultobj = 0;
4722 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4723 long result;
4724 void *argp1 = 0 ;
4725 int res1 = 0 ;
4726 PyObject *swig_obj[1] ;
4727
4728 if (!args) SWIG_fail;
4729 swig_obj[0] = args;
4730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4731 if (!SWIG_IsOK(res1)) {
4732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4733 }
4734 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4735 {
4736 PyThreadState* __tstate = wxPyBeginAllowThreads();
4737 result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent();
4738 wxPyEndAllowThreads(__tstate);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 resultobj = SWIG_From_long(static_cast< long >(result));
4742 return resultobj;
4743fail:
4744 return NULL;
4745}
4746
4747
4748SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4749 PyObject *resultobj = 0;
4750 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4751 long result;
4752 void *argp1 = 0 ;
4753 int res1 = 0 ;
4754 PyObject *swig_obj[1] ;
4755
4756 if (!args) SWIG_fail;
4757 swig_obj[0] = args;
4758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4759 if (!SWIG_IsOK(res1)) {
4760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4761 }
4762 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent();
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 resultobj = SWIG_From_long(static_cast< long >(result));
4770 return resultobj;
4771fail:
4772 return NULL;
4773}
4774
4775
4776SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4777 PyObject *resultobj = 0;
4778 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4779 long result;
4780 void *argp1 = 0 ;
4781 int res1 = 0 ;
4782 PyObject *swig_obj[1] ;
4783
4784 if (!args) SWIG_fail;
4785 swig_obj[0] = args;
4786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4787 if (!SWIG_IsOK(res1)) {
4788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4789 }
4790 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 result = (long)((wxRichTextAttr const *)arg1)->GetFlags();
4794 wxPyEndAllowThreads(__tstate);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 resultobj = SWIG_From_long(static_cast< long >(result));
4798 return resultobj;
4799fail:
4800 return NULL;
4801}
4802
4803
4804SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4807 int result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4817 }
4818 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (int)((wxRichTextAttr const *)arg1)->GetFontSize();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 resultobj = SWIG_From_int(static_cast< int >(result));
4826 return resultobj;
4827fail:
4828 return NULL;
4829}
4830
4831
4832SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4833 PyObject *resultobj = 0;
4834 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4835 int result;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4845 }
4846 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle();
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) SWIG_fail;
4852 }
4853 resultobj = SWIG_From_int(static_cast< int >(result));
4854 return resultobj;
4855fail:
4856 return NULL;
4857}
4858
4859
4860SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4861 PyObject *resultobj = 0;
4862 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4863 int result;
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_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4873 }
4874 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight();
4878 wxPyEndAllowThreads(__tstate);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 resultobj = SWIG_From_int(static_cast< int >(result));
4882 return resultobj;
4883fail:
4884 return NULL;
4885}
4886
4887
4888SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4889 PyObject *resultobj = 0;
4890 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4891 bool result;
4892 void *argp1 = 0 ;
4893 int res1 = 0 ;
4894 PyObject *swig_obj[1] ;
4895
4896 if (!args) SWIG_fail;
4897 swig_obj[0] = args;
4898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4899 if (!SWIG_IsOK(res1)) {
4900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4901 }
4902 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4903 {
4904 PyThreadState* __tstate = wxPyBeginAllowThreads();
4905 result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined();
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 {
4910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4911 }
4912 return resultobj;
4913fail:
4914 return NULL;
4915}
4916
4917
4918SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4919 PyObject *resultobj = 0;
4920 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4921 wxString *result = 0 ;
4922 void *argp1 = 0 ;
4923 int res1 = 0 ;
4924 PyObject *swig_obj[1] ;
4925
4926 if (!args) SWIG_fail;
4927 swig_obj[0] = args;
4928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4931 }
4932 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 {
4936 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName();
4937 result = (wxString *) &_result_ref;
4938 }
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 {
4943#if wxUSE_UNICODE
4944 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4945#else
4946 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4947#endif
4948 }
4949 return resultobj;
4950fail:
4951 return NULL;
4952}
4953
4954
4955SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4956 PyObject *resultobj = 0;
4957 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4958 wxString *result = 0 ;
4959 void *argp1 = 0 ;
4960 int res1 = 0 ;
4961 PyObject *swig_obj[1] ;
4962
4963 if (!args) SWIG_fail;
4964 swig_obj[0] = args;
4965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4968 }
4969 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 {
4973 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName();
4974 result = (wxString *) &_result_ref;
4975 }
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 {
4980#if wxUSE_UNICODE
4981 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4982#else
4983 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4984#endif
4985 }
4986 return resultobj;
4987fail:
4988 return NULL;
4989}
4990
4991
4992SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4993 PyObject *resultobj = 0;
4994 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4995 wxString *result = 0 ;
4996 void *argp1 = 0 ;
4997 int res1 = 0 ;
4998 PyObject *swig_obj[1] ;
4999
5000 if (!args) SWIG_fail;
5001 swig_obj[0] = args;
5002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5003 if (!SWIG_IsOK(res1)) {
5004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5005 }
5006 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 {
5010 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName();
5011 result = (wxString *) &_result_ref;
5012 }
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017#if wxUSE_UNICODE
5018 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5019#else
5020 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5021#endif
5022 }
5023 return resultobj;
5024fail:
5025 return NULL;
5026}
5027
5028
5029SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5030 PyObject *resultobj = 0;
5031 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5032 int result;
5033 void *argp1 = 0 ;
5034 int res1 = 0 ;
5035 PyObject *swig_obj[1] ;
5036
5037 if (!args) SWIG_fail;
5038 swig_obj[0] = args;
5039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5040 if (!SWIG_IsOK(res1)) {
5041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5042 }
5043 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter();
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 resultobj = SWIG_From_int(static_cast< int >(result));
5051 return resultobj;
5052fail:
5053 return NULL;
5054}
5055
5056
5057SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058 PyObject *resultobj = 0;
5059 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5060 int result;
5061 void *argp1 = 0 ;
5062 int res1 = 0 ;
5063 PyObject *swig_obj[1] ;
5064
5065 if (!args) SWIG_fail;
5066 swig_obj[0] = args;
5067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5068 if (!SWIG_IsOK(res1)) {
5069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5070 }
5071 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore();
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 resultobj = SWIG_From_int(static_cast< int >(result));
5079 return resultobj;
5080fail:
5081 return NULL;
5082}
5083
5084
5085SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5086 PyObject *resultobj = 0;
5087 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5088 int result;
5089 void *argp1 = 0 ;
5090 int res1 = 0 ;
5091 PyObject *swig_obj[1] ;
5092
5093 if (!args) SWIG_fail;
5094 swig_obj[0] = args;
5095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5096 if (!SWIG_IsOK(res1)) {
5097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5098 }
5099 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing();
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_From_int(static_cast< int >(result));
5107 return resultobj;
5108fail:
5109 return NULL;
5110}
5111
5112
5113SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5114 PyObject *resultobj = 0;
5115 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5116 int result;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 PyObject *swig_obj[1] ;
5120
5121 if (!args) SWIG_fail;
5122 swig_obj[0] = args;
5123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5124 if (!SWIG_IsOK(res1)) {
5125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5126 }
5127 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5128 {
5129 PyThreadState* __tstate = wxPyBeginAllowThreads();
5130 result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle();
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 resultobj = SWIG_From_int(static_cast< int >(result));
5135 return resultobj;
5136fail:
5137 return NULL;
5138}
5139
5140
5141SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5142 PyObject *resultobj = 0;
5143 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5144 int result;
5145 void *argp1 = 0 ;
5146 int res1 = 0 ;
5147 PyObject *swig_obj[1] ;
5148
5149 if (!args) SWIG_fail;
5150 swig_obj[0] = args;
5151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5154 }
5155 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber();
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_From_int(static_cast< int >(result));
5163 return resultobj;
5164fail:
5165 return NULL;
5166}
5167
5168
5169SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5170 PyObject *resultobj = 0;
5171 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5172 wxChar result;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 PyObject *swig_obj[1] ;
5176
5177 if (!args) SWIG_fail;
5178 swig_obj[0] = args;
5179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5182 }
5183 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol();
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 );
5191 return resultobj;
5192fail:
5193 return NULL;
5194}
5195
5196
5197SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5200 bool result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5210 }
5211 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour();
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 {
5219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5220 }
5221 return resultobj;
5222fail:
5223 return NULL;
5224}
5225
5226
5227SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5230 bool result;
5231 void *argp1 = 0 ;
5232 int res1 = 0 ;
5233 PyObject *swig_obj[1] ;
5234
5235 if (!args) SWIG_fail;
5236 swig_obj[0] = args;
5237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5240 }
5241 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour();
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 {
5249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5250 }
5251 return resultobj;
5252fail:
5253 return NULL;
5254}
5255
5256
5257SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5258 PyObject *resultobj = 0;
5259 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 PyObject *swig_obj[1] ;
5264
5265 if (!args) SWIG_fail;
5266 swig_obj[0] = args;
5267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5268 if (!SWIG_IsOK(res1)) {
5269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5270 }
5271 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment();
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 {
5279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5280 }
5281 return resultobj;
5282fail:
5283 return NULL;
5284}
5285
5286
5287SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5288 PyObject *resultobj = 0;
5289 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5290 bool result;
5291 void *argp1 = 0 ;
5292 int res1 = 0 ;
5293 PyObject *swig_obj[1] ;
5294
5295 if (!args) SWIG_fail;
5296 swig_obj[0] = args;
5297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5298 if (!SWIG_IsOK(res1)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5300 }
5301 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5302 {
5303 PyThreadState* __tstate = wxPyBeginAllowThreads();
5304 result = (bool)((wxRichTextAttr const *)arg1)->HasTabs();
5305 wxPyEndAllowThreads(__tstate);
5306 if (PyErr_Occurred()) SWIG_fail;
5307 }
5308 {
5309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5310 }
5311 return resultobj;
5312fail:
5313 return NULL;
5314}
5315
5316
5317SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5318 PyObject *resultobj = 0;
5319 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5320 bool result;
5321 void *argp1 = 0 ;
5322 int res1 = 0 ;
5323 PyObject *swig_obj[1] ;
5324
5325 if (!args) SWIG_fail;
5326 swig_obj[0] = args;
5327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5328 if (!SWIG_IsOK(res1)) {
5329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5330 }
5331 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent();
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 {
5339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5340 }
5341 return resultobj;
5342fail:
5343 return NULL;
5344}
5345
5346
5347SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5348 PyObject *resultobj = 0;
5349 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5350 bool result;
5351 void *argp1 = 0 ;
5352 int res1 = 0 ;
5353 PyObject *swig_obj[1] ;
5354
5355 if (!args) SWIG_fail;
5356 swig_obj[0] = args;
5357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5358 if (!SWIG_IsOK(res1)) {
5359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5360 }
5361 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent();
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 {
5369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5370 }
5371 return resultobj;
5372fail:
5373 return NULL;
5374}
5375
5376
5377SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5378 PyObject *resultobj = 0;
5379 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5380 bool result;
5381 void *argp1 = 0 ;
5382 int res1 = 0 ;
5383 PyObject *swig_obj[1] ;
5384
5385 if (!args) SWIG_fail;
5386 swig_obj[0] = args;
5387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5388 if (!SWIG_IsOK(res1)) {
5389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5390 }
5391 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 result = (bool)((wxRichTextAttr const *)arg1)->HasWeight();
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 {
5399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5400 }
5401 return resultobj;
5402fail:
5403 return NULL;
5404}
5405
5406
5407SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5408 PyObject *resultobj = 0;
5409 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5410 bool result;
5411 void *argp1 = 0 ;
5412 int res1 = 0 ;
5413 PyObject *swig_obj[1] ;
5414
5415 if (!args) SWIG_fail;
5416 swig_obj[0] = args;
5417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5418 if (!SWIG_IsOK(res1)) {
5419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5420 }
5421 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (bool)((wxRichTextAttr const *)arg1)->HasSize();
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 {
5429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5430 }
5431 return resultobj;
5432fail:
5433 return NULL;
5434}
5435
5436
5437SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5438 PyObject *resultobj = 0;
5439 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5440 bool result;
5441 void *argp1 = 0 ;
5442 int res1 = 0 ;
5443 PyObject *swig_obj[1] ;
5444
5445 if (!args) SWIG_fail;
5446 swig_obj[0] = args;
5447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5448 if (!SWIG_IsOK(res1)) {
5449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5450 }
5451 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5452 {
5453 PyThreadState* __tstate = wxPyBeginAllowThreads();
5454 result = (bool)((wxRichTextAttr const *)arg1)->HasItalic();
5455 wxPyEndAllowThreads(__tstate);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 }
5458 {
5459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5460 }
5461 return resultobj;
5462fail:
5463 return NULL;
5464}
5465
5466
5467SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5468 PyObject *resultobj = 0;
5469 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5470 bool result;
5471 void *argp1 = 0 ;
5472 int res1 = 0 ;
5473 PyObject *swig_obj[1] ;
5474
5475 if (!args) SWIG_fail;
5476 swig_obj[0] = args;
5477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5478 if (!SWIG_IsOK(res1)) {
5479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5480 }
5481 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined();
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 {
5489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5490 }
5491 return resultobj;
5492fail:
5493 return NULL;
5494}
5495
5496
5497SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5498 PyObject *resultobj = 0;
5499 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5500 bool result;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 PyObject *swig_obj[1] ;
5504
5505 if (!args) SWIG_fail;
5506 swig_obj[0] = args;
5507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5508 if (!SWIG_IsOK(res1)) {
5509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5510 }
5511 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName();
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 {
5519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5520 }
5521 return resultobj;
5522fail:
5523 return NULL;
5524}
5525
5526
5527SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5528 PyObject *resultobj = 0;
5529 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5530 bool result;
5531 void *argp1 = 0 ;
5532 int res1 = 0 ;
5533 PyObject *swig_obj[1] ;
5534
5535 if (!args) SWIG_fail;
5536 swig_obj[0] = args;
5537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5538 if (!SWIG_IsOK(res1)) {
5539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5540 }
5541 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (bool)((wxRichTextAttr const *)arg1)->HasFont();
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 {
5549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5550 }
5551 return resultobj;
5552fail:
5553 return NULL;
5554}
5555
5556
5557SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5558 PyObject *resultobj = 0;
5559 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5560 bool result;
5561 void *argp1 = 0 ;
5562 int res1 = 0 ;
5563 PyObject *swig_obj[1] ;
5564
5565 if (!args) SWIG_fail;
5566 swig_obj[0] = args;
5567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5568 if (!SWIG_IsOK(res1)) {
5569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5570 }
5571 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5572 {
5573 PyThreadState* __tstate = wxPyBeginAllowThreads();
5574 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter();
5575 wxPyEndAllowThreads(__tstate);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 }
5578 {
5579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5580 }
5581 return resultobj;
5582fail:
5583 return NULL;
5584}
5585
5586
5587SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5588 PyObject *resultobj = 0;
5589 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5590 bool result;
5591 void *argp1 = 0 ;
5592 int res1 = 0 ;
5593 PyObject *swig_obj[1] ;
5594
5595 if (!args) SWIG_fail;
5596 swig_obj[0] = args;
5597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5598 if (!SWIG_IsOK(res1)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5600 }
5601 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5602 {
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore();
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 {
5609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5610 }
5611 return resultobj;
5612fail:
5613 return NULL;
5614}
5615
5616
5617SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5618 PyObject *resultobj = 0;
5619 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5620 bool result;
5621 void *argp1 = 0 ;
5622 int res1 = 0 ;
5623 PyObject *swig_obj[1] ;
5624
5625 if (!args) SWIG_fail;
5626 swig_obj[0] = args;
5627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5628 if (!SWIG_IsOK(res1)) {
5629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5630 }
5631 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5632 {
5633 PyThreadState* __tstate = wxPyBeginAllowThreads();
5634 result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing();
5635 wxPyEndAllowThreads(__tstate);
5636 if (PyErr_Occurred()) SWIG_fail;
5637 }
5638 {
5639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5640 }
5641 return resultobj;
5642fail:
5643 return NULL;
5644}
5645
5646
5647SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5648 PyObject *resultobj = 0;
5649 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5650 bool result;
5651 void *argp1 = 0 ;
5652 int res1 = 0 ;
5653 PyObject *swig_obj[1] ;
5654
5655 if (!args) SWIG_fail;
5656 swig_obj[0] = args;
5657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5658 if (!SWIG_IsOK(res1)) {
5659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5660 }
5661 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName();
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 {
5669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5670 }
5671 return resultobj;
5672fail:
5673 return NULL;
5674}
5675
5676
5677SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5678 PyObject *resultobj = 0;
5679 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5680 bool result;
5681 void *argp1 = 0 ;
5682 int res1 = 0 ;
5683 PyObject *swig_obj[1] ;
5684
5685 if (!args) SWIG_fail;
5686 swig_obj[0] = args;
5687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5688 if (!SWIG_IsOK(res1)) {
5689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5690 }
5691 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName();
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 }
5698 {
5699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5700 }
5701 return resultobj;
5702fail:
5703 return NULL;
5704}
5705
5706
5707SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5710 bool result;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 {
5729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5730 }
5731 return resultobj;
5732fail:
5733 return NULL;
5734}
5735
5736
5737SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5738 PyObject *resultobj = 0;
5739 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5740 bool result;
5741 void *argp1 = 0 ;
5742 int res1 = 0 ;
5743 PyObject *swig_obj[1] ;
5744
5745 if (!args) SWIG_fail;
5746 swig_obj[0] = args;
5747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5748 if (!SWIG_IsOK(res1)) {
5749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5750 }
5751 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber();
5755 wxPyEndAllowThreads(__tstate);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 }
5758 {
5759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5760 }
5761 return resultobj;
5762fail:
5763 return NULL;
5764}
5765
5766
5767SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5768 PyObject *resultobj = 0;
5769 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5770 bool result;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 PyObject *swig_obj[1] ;
5774
5775 if (!args) SWIG_fail;
5776 swig_obj[0] = args;
5777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5780 }
5781 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol();
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 {
5789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5790 }
5791 return resultobj;
5792fail:
5793 return NULL;
5794}
5795
5796
5797SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj = 0;
5799 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5800 long arg2 ;
5801 bool result;
5802 void *argp1 = 0 ;
5803 int res1 = 0 ;
5804 long val2 ;
5805 int ecode2 = 0 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "self",(char *) "flag", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
5813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5814 if (!SWIG_IsOK(res1)) {
5815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5816 }
5817 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5818 ecode2 = SWIG_AsVal_long(obj1, &val2);
5819 if (!SWIG_IsOK(ecode2)) {
5820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
5821 }
5822 arg2 = static_cast< long >(val2);
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 {
5830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5831 }
5832 return resultobj;
5833fail:
5834 return NULL;
5835}
5836
5837
5838SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5839 PyObject *resultobj = 0;
5840 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5841 bool result;
5842 void *argp1 = 0 ;
5843 int res1 = 0 ;
5844 PyObject *swig_obj[1] ;
5845
5846 if (!args) SWIG_fail;
5847 swig_obj[0] = args;
5848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5851 }
5852 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle();
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 {
5860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5861 }
5862 return resultobj;
5863fail:
5864 return NULL;
5865}
5866
5867
5868SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5869 PyObject *resultobj = 0;
5870 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5871 bool result;
5872 void *argp1 = 0 ;
5873 int res1 = 0 ;
5874 PyObject *swig_obj[1] ;
5875
5876 if (!args) SWIG_fail;
5877 swig_obj[0] = args;
5878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5881 }
5882 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle();
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 {
5890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5891 }
5892 return resultobj;
5893fail:
5894 return NULL;
5895}
5896
5897
5898SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5899 PyObject *resultobj = 0;
5900 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5901 bool result;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5911 }
5912 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = (bool)((wxRichTextAttr const *)arg1)->IsDefault();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 {
5920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5921 }
5922 return resultobj;
5923fail:
5924 return NULL;
5925}
5926
5927
5928SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5929 PyObject *obj;
5930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5931 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj));
5932 return SWIG_Py_Void();
5933}
5934
5935SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5936 return SWIG_Python_InitShadowInstance(args);
5937}
5938
5939SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5940 PyObject *resultobj = 0;
5941 wxWindow *arg1 = (wxWindow *) 0 ;
5942 int arg2 = (int) -1 ;
5943 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5944 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5945 wxSize const &arg4_defvalue = wxDefaultSize ;
5946 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5947 long arg5 = (long) wxRE_MULTILINE ;
5948 wxRichTextCtrl *result = 0 ;
5949 void *argp1 = 0 ;
5950 int res1 = 0 ;
5951 int val2 ;
5952 int ecode2 = 0 ;
5953 wxPoint temp3 ;
5954 wxSize temp4 ;
5955 long val5 ;
5956 int ecode5 = 0 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 PyObject * obj2 = 0 ;
5960 PyObject * obj3 = 0 ;
5961 PyObject * obj4 = 0 ;
5962 char * kwnames[] = {
5963 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
5964 };
5965
5966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
5967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
5970 }
5971 arg1 = reinterpret_cast< wxWindow * >(argp1);
5972 if (obj1) {
5973 ecode2 = SWIG_AsVal_int(obj1, &val2);
5974 if (!SWIG_IsOK(ecode2)) {
5975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'");
5976 }
5977 arg2 = static_cast< int >(val2);
5978 }
5979 if (obj2) {
5980 {
5981 arg3 = &temp3;
5982 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5983 }
5984 }
5985 if (obj3) {
5986 {
5987 arg4 = &temp4;
5988 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5989 }
5990 }
5991 if (obj4) {
5992 ecode5 = SWIG_AsVal_long(obj4, &val5);
5993 if (!SWIG_IsOK(ecode5)) {
5994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_RichTextCtrl" "', expected argument " "5"" of type '" "long""'");
5995 }
5996 arg5 = static_cast< long >(val5);
5997 }
5998 {
5999 if (!wxPyCheckForApp()) SWIG_fail;
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 );
6006 return resultobj;
6007fail:
6008 return NULL;
6009}
6010
6011
6012SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6013 PyObject *resultobj = 0;
6014 wxRichTextCtrl *result = 0 ;
6015
6016 if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail;
6017 {
6018 if (!wxPyCheckForApp()) SWIG_fail;
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (wxRichTextCtrl *)new wxRichTextCtrl();
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 );
6025 return resultobj;
6026fail:
6027 return NULL;
6028}
6029
6030
6031SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6034 wxWindow *arg2 = (wxWindow *) 0 ;
6035 int arg3 = (int) -1 ;
6036 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6037 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6038 wxSize const &arg5_defvalue = wxDefaultSize ;
6039 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6040 long arg6 = (long) wxRE_MULTILINE ;
6041 bool result;
6042 void *argp1 = 0 ;
6043 int res1 = 0 ;
6044 void *argp2 = 0 ;
6045 int res2 = 0 ;
6046 int val3 ;
6047 int ecode3 = 0 ;
6048 wxPoint temp4 ;
6049 wxSize temp5 ;
6050 long val6 ;
6051 int ecode6 = 0 ;
6052 PyObject * obj0 = 0 ;
6053 PyObject * obj1 = 0 ;
6054 PyObject * obj2 = 0 ;
6055 PyObject * obj3 = 0 ;
6056 PyObject * obj4 = 0 ;
6057 PyObject * obj5 = 0 ;
6058 char * kwnames[] = {
6059 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
6060 };
6061
6062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6066 }
6067 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6068 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6069 if (!SWIG_IsOK(res2)) {
6070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6071 }
6072 arg2 = reinterpret_cast< wxWindow * >(argp2);
6073 if (obj2) {
6074 ecode3 = SWIG_AsVal_int(obj2, &val3);
6075 if (!SWIG_IsOK(ecode3)) {
6076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
6077 }
6078 arg3 = static_cast< int >(val3);
6079 }
6080 if (obj3) {
6081 {
6082 arg4 = &temp4;
6083 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6084 }
6085 }
6086 if (obj4) {
6087 {
6088 arg5 = &temp5;
6089 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6090 }
6091 }
6092 if (obj5) {
6093 ecode6 = SWIG_AsVal_long(obj5, &val6);
6094 if (!SWIG_IsOK(ecode6)) {
6095 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RichTextCtrl_Create" "', expected argument " "6"" of type '" "long""'");
6096 }
6097 arg6 = static_cast< long >(val6);
6098 }
6099 {
6100 PyThreadState* __tstate = wxPyBeginAllowThreads();
6101 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 {
6106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6107 }
6108 return resultobj;
6109fail:
6110 return NULL;
6111}
6112
6113
6114SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6115 PyObject *resultobj = 0;
6116 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6117 wxString result;
6118 void *argp1 = 0 ;
6119 int res1 = 0 ;
6120 PyObject *swig_obj[1] ;
6121
6122 if (!args) SWIG_fail;
6123 swig_obj[0] = args;
6124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6125 if (!SWIG_IsOK(res1)) {
6126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6127 }
6128 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = ((wxRichTextCtrl const *)arg1)->GetValue();
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 {
6136#if wxUSE_UNICODE
6137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6138#else
6139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6140#endif
6141 }
6142 return resultobj;
6143fail:
6144 return NULL;
6145}
6146
6147
6148SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj = 0;
6150 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6151 wxString *arg2 = 0 ;
6152 void *argp1 = 0 ;
6153 int res1 = 0 ;
6154 bool temp2 = false ;
6155 PyObject * obj0 = 0 ;
6156 PyObject * obj1 = 0 ;
6157 char * kwnames[] = {
6158 (char *) "self",(char *) "value", NULL
6159 };
6160
6161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
6162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6163 if (!SWIG_IsOK(res1)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6165 }
6166 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6167 {
6168 arg2 = wxString_in_helper(obj1);
6169 if (arg2 == NULL) SWIG_fail;
6170 temp2 = true;
6171 }
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetValue((wxString const &)*arg2);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 {
6180 if (temp2)
6181 delete arg2;
6182 }
6183 return resultobj;
6184fail:
6185 {
6186 if (temp2)
6187 delete arg2;
6188 }
6189 return NULL;
6190}
6191
6192
6193SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj = 0;
6195 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6196 long arg2 ;
6197 long arg3 ;
6198 wxString result;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 long val2 ;
6202 int ecode2 = 0 ;
6203 long val3 ;
6204 int ecode3 = 0 ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 PyObject * obj2 = 0 ;
6208 char * kwnames[] = {
6209 (char *) "self",(char *) "from",(char *) "to", NULL
6210 };
6211
6212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6214 if (!SWIG_IsOK(res1)) {
6215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6216 }
6217 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6218 ecode2 = SWIG_AsVal_long(obj1, &val2);
6219 if (!SWIG_IsOK(ecode2)) {
6220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
6221 }
6222 arg2 = static_cast< long >(val2);
6223 ecode3 = SWIG_AsVal_long(obj2, &val3);
6224 if (!SWIG_IsOK(ecode3)) {
6225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
6226 }
6227 arg3 = static_cast< long >(val3);
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3);
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 {
6235#if wxUSE_UNICODE
6236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6237#else
6238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6239#endif
6240 }
6241 return resultobj;
6242fail:
6243 return NULL;
6244}
6245
6246
6247SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj = 0;
6249 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6250 long arg2 ;
6251 int result;
6252 void *argp1 = 0 ;
6253 int res1 = 0 ;
6254 long val2 ;
6255 int ecode2 = 0 ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char * kwnames[] = {
6259 (char *) "self",(char *) "lineNo", NULL
6260 };
6261
6262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
6263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6264 if (!SWIG_IsOK(res1)) {
6265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6266 }
6267 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6268 ecode2 = SWIG_AsVal_long(obj1, &val2);
6269 if (!SWIG_IsOK(ecode2)) {
6270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
6271 }
6272 arg2 = static_cast< long >(val2);
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2);
6276 wxPyEndAllowThreads(__tstate);
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 resultobj = SWIG_From_int(static_cast< int >(result));
6280 return resultobj;
6281fail:
6282 return NULL;
6283}
6284
6285
6286SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6287 PyObject *resultobj = 0;
6288 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6289 long arg2 ;
6290 wxString result;
6291 void *argp1 = 0 ;
6292 int res1 = 0 ;
6293 long val2 ;
6294 int ecode2 = 0 ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 char * kwnames[] = {
6298 (char *) "self",(char *) "lineNo", NULL
6299 };
6300
6301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
6302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6303 if (!SWIG_IsOK(res1)) {
6304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6305 }
6306 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6307 ecode2 = SWIG_AsVal_long(obj1, &val2);
6308 if (!SWIG_IsOK(ecode2)) {
6309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
6310 }
6311 arg2 = static_cast< long >(val2);
6312 {
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2);
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 {
6319#if wxUSE_UNICODE
6320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6321#else
6322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6323#endif
6324 }
6325 return resultobj;
6326fail:
6327 return NULL;
6328}
6329
6330
6331SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6332 PyObject *resultobj = 0;
6333 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6334 int result;
6335 void *argp1 = 0 ;
6336 int res1 = 0 ;
6337 PyObject *swig_obj[1] ;
6338
6339 if (!args) SWIG_fail;
6340 swig_obj[0] = args;
6341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6342 if (!SWIG_IsOK(res1)) {
6343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6344 }
6345 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6346 {
6347 PyThreadState* __tstate = wxPyBeginAllowThreads();
6348 result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines();
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 resultobj = SWIG_From_int(static_cast< int >(result));
6353 return resultobj;
6354fail:
6355 return NULL;
6356}
6357
6358
6359SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6360 PyObject *resultobj = 0;
6361 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6362 bool result;
6363 void *argp1 = 0 ;
6364 int res1 = 0 ;
6365 PyObject *swig_obj[1] ;
6366
6367 if (!args) SWIG_fail;
6368 swig_obj[0] = args;
6369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6372 }
6373 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 result = (bool)((wxRichTextCtrl const *)arg1)->IsModified();
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 {
6381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6382 }
6383 return resultobj;
6384fail:
6385 return NULL;
6386}
6387
6388
6389SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6390 PyObject *resultobj = 0;
6391 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6392 bool result;
6393 void *argp1 = 0 ;
6394 int res1 = 0 ;
6395 PyObject *swig_obj[1] ;
6396
6397 if (!args) SWIG_fail;
6398 swig_obj[0] = args;
6399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6402 }
6403 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable();
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 {
6411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6412 }
6413 return resultobj;
6414fail:
6415 return NULL;
6416}
6417
6418
6419SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6420 PyObject *resultobj = 0;
6421 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6422 bool result;
6423 void *argp1 = 0 ;
6424 int res1 = 0 ;
6425 PyObject *swig_obj[1] ;
6426
6427 if (!args) SWIG_fail;
6428 swig_obj[0] = args;
6429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6432 }
6433 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine();
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 {
6441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6442 }
6443 return resultobj;
6444fail:
6445 return NULL;
6446}
6447
6448
6449SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6450 PyObject *resultobj = 0;
6451 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6452 bool result;
6453 void *argp1 = 0 ;
6454 int res1 = 0 ;
6455 PyObject *swig_obj[1] ;
6456
6457 if (!args) SWIG_fail;
6458 swig_obj[0] = args;
6459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6460 if (!SWIG_IsOK(res1)) {
6461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6462 }
6463 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine();
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 {
6471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6472 }
6473 return resultobj;
6474fail:
6475 return NULL;
6476}
6477
6478
6479SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6480 PyObject *resultobj = 0;
6481 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6482 long *arg2 = (long *) 0 ;
6483 long *arg3 = (long *) 0 ;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 long temp2 ;
6487 int res2 = SWIG_TMPOBJ ;
6488 long temp3 ;
6489 int res3 = SWIG_TMPOBJ ;
6490 PyObject *swig_obj[1] ;
6491
6492 arg2 = &temp2;
6493 arg3 = &temp3;
6494 if (!args) SWIG_fail;
6495 swig_obj[0] = args;
6496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6497 if (!SWIG_IsOK(res1)) {
6498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6499 }
6500 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3);
6504 wxPyEndAllowThreads(__tstate);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 resultobj = SWIG_Py_Void();
6508 if (SWIG_IsTmpObj(res2)) {
6509 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6510 } else {
6511 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6513 }
6514 if (SWIG_IsTmpObj(res3)) {
6515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6516 } else {
6517 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6519 }
6520 return resultobj;
6521fail:
6522 return NULL;
6523}
6524
6525
6526SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6529 wxString result;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6539 }
6540 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = ((wxRichTextCtrl const *)arg1)->GetStringSelection();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 {
6548#if wxUSE_UNICODE
6549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6550#else
6551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6552#endif
6553 }
6554 return resultobj;
6555fail:
6556 return NULL;
6557}
6558
6559
6560SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6561 PyObject *resultobj = 0;
6562 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6563 wxString result;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 PyObject *swig_obj[1] ;
6567
6568 if (!args) SWIG_fail;
6569 swig_obj[0] = args;
6570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6573 }
6574 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 result = ((wxRichTextCtrl const *)arg1)->GetFilename();
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 {
6582#if wxUSE_UNICODE
6583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6584#else
6585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6586#endif
6587 }
6588 return resultobj;
6589fail:
6590 return NULL;
6591}
6592
6593
6594SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6595 PyObject *resultobj = 0;
6596 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6597 wxString *arg2 = 0 ;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 bool temp2 = false ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 char * kwnames[] = {
6604 (char *) "self",(char *) "filename", NULL
6605 };
6606
6607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail;
6608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6611 }
6612 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6613 {
6614 arg2 = wxString_in_helper(obj1);
6615 if (arg2 == NULL) SWIG_fail;
6616 temp2 = true;
6617 }
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 (arg1)->SetFilename((wxString const &)*arg2);
6621 wxPyEndAllowThreads(__tstate);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 resultobj = SWIG_Py_Void();
6625 {
6626 if (temp2)
6627 delete arg2;
6628 }
6629 return resultobj;
6630fail:
6631 {
6632 if (temp2)
6633 delete arg2;
6634 }
6635 return NULL;
6636}
6637
6638
6639SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj = 0;
6641 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6642 long arg2 ;
6643 void *argp1 = 0 ;
6644 int res1 = 0 ;
6645 long val2 ;
6646 int ecode2 = 0 ;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 char * kwnames[] = {
6650 (char *) "self",(char *) "threshold", NULL
6651 };
6652
6653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
6654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6657 }
6658 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6659 ecode2 = SWIG_AsVal_long(obj1, &val2);
6660 if (!SWIG_IsOK(ecode2)) {
6661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'");
6662 }
6663 arg2 = static_cast< long >(val2);
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 (arg1)->SetDelayedLayoutThreshold(arg2);
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_Py_Void();
6671 return resultobj;
6672fail:
6673 return NULL;
6674}
6675
6676
6677SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6678 PyObject *resultobj = 0;
6679 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6680 long result;
6681 void *argp1 = 0 ;
6682 int res1 = 0 ;
6683 PyObject *swig_obj[1] ;
6684
6685 if (!args) SWIG_fail;
6686 swig_obj[0] = args;
6687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6690 }
6691 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold();
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_From_long(static_cast< long >(result));
6699 return resultobj;
6700fail:
6701 return NULL;
6702}
6703
6704
6705SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6708 void *argp1 = 0 ;
6709 int res1 = 0 ;
6710 PyObject *swig_obj[1] ;
6711
6712 if (!args) SWIG_fail;
6713 swig_obj[0] = args;
6714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6715 if (!SWIG_IsOK(res1)) {
6716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6717 }
6718 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 (arg1)->Clear();
6722 wxPyEndAllowThreads(__tstate);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 resultobj = SWIG_Py_Void();
6726 return resultobj;
6727fail:
6728 return NULL;
6729}
6730
6731
6732SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6733 PyObject *resultobj = 0;
6734 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6735 long arg2 ;
6736 long arg3 ;
6737 wxString *arg4 = 0 ;
6738 void *argp1 = 0 ;
6739 int res1 = 0 ;
6740 long val2 ;
6741 int ecode2 = 0 ;
6742 long val3 ;
6743 int ecode3 = 0 ;
6744 bool temp4 = false ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 PyObject * obj2 = 0 ;
6748 PyObject * obj3 = 0 ;
6749 char * kwnames[] = {
6750 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6751 };
6752
6753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6755 if (!SWIG_IsOK(res1)) {
6756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6757 }
6758 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6759 ecode2 = SWIG_AsVal_long(obj1, &val2);
6760 if (!SWIG_IsOK(ecode2)) {
6761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
6762 }
6763 arg2 = static_cast< long >(val2);
6764 ecode3 = SWIG_AsVal_long(obj2, &val3);
6765 if (!SWIG_IsOK(ecode3)) {
6766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
6767 }
6768 arg3 = static_cast< long >(val3);
6769 {
6770 arg4 = wxString_in_helper(obj3);
6771 if (arg4 == NULL) SWIG_fail;
6772 temp4 = true;
6773 }
6774 {
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = SWIG_Py_Void();
6781 {
6782 if (temp4)
6783 delete arg4;
6784 }
6785 return resultobj;
6786fail:
6787 {
6788 if (temp4)
6789 delete arg4;
6790 }
6791 return NULL;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6798 long arg2 ;
6799 long arg3 ;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 long val2 ;
6803 int ecode2 = 0 ;
6804 long val3 ;
6805 int ecode3 = 0 ;
6806 PyObject * obj0 = 0 ;
6807 PyObject * obj1 = 0 ;
6808 PyObject * obj2 = 0 ;
6809 char * kwnames[] = {
6810 (char *) "self",(char *) "from",(char *) "to", NULL
6811 };
6812
6813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6815 if (!SWIG_IsOK(res1)) {
6816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6817 }
6818 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6819 ecode2 = SWIG_AsVal_long(obj1, &val2);
6820 if (!SWIG_IsOK(ecode2)) {
6821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
6822 }
6823 arg2 = static_cast< long >(val2);
6824 ecode3 = SWIG_AsVal_long(obj2, &val3);
6825 if (!SWIG_IsOK(ecode3)) {
6826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
6827 }
6828 arg3 = static_cast< long >(val3);
6829 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 (arg1)->Remove(arg2,arg3);
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 resultobj = SWIG_Py_Void();
6836 return resultobj;
6837fail:
6838 return NULL;
6839}
6840
6841
6842SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6843 PyObject *resultobj = 0;
6844 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6845 wxString *arg2 = 0 ;
6846 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6847 bool result;
6848 void *argp1 = 0 ;
6849 int res1 = 0 ;
6850 bool temp2 = false ;
6851 int val3 ;
6852 int ecode3 = 0 ;
6853 PyObject * obj0 = 0 ;
6854 PyObject * obj1 = 0 ;
6855 PyObject * obj2 = 0 ;
6856 char * kwnames[] = {
6857 (char *) "self",(char *) "file",(char *) "type", NULL
6858 };
6859
6860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6862 if (!SWIG_IsOK(res1)) {
6863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6864 }
6865 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6866 {
6867 arg2 = wxString_in_helper(obj1);
6868 if (arg2 == NULL) SWIG_fail;
6869 temp2 = true;
6870 }
6871 if (obj2) {
6872 ecode3 = SWIG_AsVal_int(obj2, &val3);
6873 if (!SWIG_IsOK(ecode3)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
6875 }
6876 arg3 = static_cast< int >(val3);
6877 }
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 {
6885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6886 }
6887 {
6888 if (temp2)
6889 delete arg2;
6890 }
6891 return resultobj;
6892fail:
6893 {
6894 if (temp2)
6895 delete arg2;
6896 }
6897 return NULL;
6898}
6899
6900
6901SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6902 PyObject *resultobj = 0;
6903 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6904 wxString const &arg2_defvalue = wxPyEmptyString ;
6905 wxString *arg2 = (wxString *) &arg2_defvalue ;
6906 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6907 bool result;
6908 void *argp1 = 0 ;
6909 int res1 = 0 ;
6910 bool temp2 = false ;
6911 int val3 ;
6912 int ecode3 = 0 ;
6913 PyObject * obj0 = 0 ;
6914 PyObject * obj1 = 0 ;
6915 PyObject * obj2 = 0 ;
6916 char * kwnames[] = {
6917 (char *) "self",(char *) "file",(char *) "type", NULL
6918 };
6919
6920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6922 if (!SWIG_IsOK(res1)) {
6923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6924 }
6925 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6926 if (obj1) {
6927 {
6928 arg2 = wxString_in_helper(obj1);
6929 if (arg2 == NULL) SWIG_fail;
6930 temp2 = true;
6931 }
6932 }
6933 if (obj2) {
6934 ecode3 = SWIG_AsVal_int(obj2, &val3);
6935 if (!SWIG_IsOK(ecode3)) {
6936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
6937 }
6938 arg3 = static_cast< int >(val3);
6939 }
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 {
6947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6948 }
6949 {
6950 if (temp2)
6951 delete arg2;
6952 }
6953 return resultobj;
6954fail:
6955 {
6956 if (temp2)
6957 delete arg2;
6958 }
6959 return NULL;
6960}
6961
6962
6963SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 PyObject *resultobj = 0;
6965 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 PyObject *swig_obj[1] ;
6969
6970 if (!args) SWIG_fail;
6971 swig_obj[0] = args;
6972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6973 if (!SWIG_IsOK(res1)) {
6974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6975 }
6976 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6977 {
6978 PyThreadState* __tstate = wxPyBeginAllowThreads();
6979 (arg1)->MarkDirty();
6980 wxPyEndAllowThreads(__tstate);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_Py_Void();
6984 return resultobj;
6985fail:
6986 return NULL;
6987}
6988
6989
6990SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6991 PyObject *resultobj = 0;
6992 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 PyObject *swig_obj[1] ;
6996
6997 if (!args) SWIG_fail;
6998 swig_obj[0] = args;
6999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7000 if (!SWIG_IsOK(res1)) {
7001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7002 }
7003 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 (arg1)->DiscardEdits();
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 resultobj = SWIG_Py_Void();
7011 return resultobj;
7012fail:
7013 return NULL;
7014}
7015
7016
7017SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7020 unsigned long arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 unsigned long val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "len", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7035 }
7036 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7037 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
7040 }
7041 arg2 = static_cast< unsigned long >(val2);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 (arg1)->SetMaxLength(arg2);
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_Py_Void();
7049 return resultobj;
7050fail:
7051 return NULL;
7052}
7053
7054
7055SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj = 0;
7057 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7058 wxString *arg2 = 0 ;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 bool temp2 = false ;
7062 PyObject * obj0 = 0 ;
7063 PyObject * obj1 = 0 ;
7064 char * kwnames[] = {
7065 (char *) "self",(char *) "text", NULL
7066 };
7067
7068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
7069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7070 if (!SWIG_IsOK(res1)) {
7071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7072 }
7073 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7074 {
7075 arg2 = wxString_in_helper(obj1);
7076 if (arg2 == NULL) SWIG_fail;
7077 temp2 = true;
7078 }
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 (arg1)->WriteText((wxString const &)*arg2);
7082 wxPyEndAllowThreads(__tstate);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 }
7085 resultobj = SWIG_Py_Void();
7086 {
7087 if (temp2)
7088 delete arg2;
7089 }
7090 return resultobj;
7091fail:
7092 {
7093 if (temp2)
7094 delete arg2;
7095 }
7096 return NULL;
7097}
7098
7099
7100SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7101 PyObject *resultobj = 0;
7102 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7103 wxString *arg2 = 0 ;
7104 void *argp1 = 0 ;
7105 int res1 = 0 ;
7106 bool temp2 = false ;
7107 PyObject * obj0 = 0 ;
7108 PyObject * obj1 = 0 ;
7109 char * kwnames[] = {
7110 (char *) "self",(char *) "text", NULL
7111 };
7112
7113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
7114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7115 if (!SWIG_IsOK(res1)) {
7116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7117 }
7118 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7119 {
7120 arg2 = wxString_in_helper(obj1);
7121 if (arg2 == NULL) SWIG_fail;
7122 temp2 = true;
7123 }
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 (arg1)->AppendText((wxString const &)*arg2);
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 resultobj = SWIG_Py_Void();
7131 {
7132 if (temp2)
7133 delete arg2;
7134 }
7135 return resultobj;
7136fail:
7137 {
7138 if (temp2)
7139 delete arg2;
7140 }
7141 return NULL;
7142}
7143
7144
7145SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj = 0;
7147 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7148 wxRichTextRange *arg2 = 0 ;
7149 wxRichTextAttr *arg3 = 0 ;
7150 bool result;
7151 void *argp1 = 0 ;
7152 int res1 = 0 ;
7153 wxRichTextRange temp2 ;
7154 void *argp3 = 0 ;
7155 int res3 = 0 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 PyObject * obj2 = 0 ;
7159 char * kwnames[] = {
7160 (char *) "self",(char *) "range",(char *) "style", NULL
7161 };
7162
7163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7167 }
7168 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7169 {
7170 arg2 = &temp2;
7171 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7172 }
7173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7174 if (!SWIG_IsOK(res3)) {
7175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7176 }
7177 if (!argp3) {
7178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7179 }
7180 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 {
7188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7189 }
7190 return resultobj;
7191fail:
7192 return NULL;
7193}
7194
7195
7196SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj = 0;
7198 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7199 long arg2 ;
7200 wxRichTextAttr *arg3 = 0 ;
7201 bool result;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 long val2 ;
7205 int ecode2 = 0 ;
7206 void *argp3 = 0 ;
7207 int res3 = 0 ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 PyObject * obj2 = 0 ;
7211 char * kwnames[] = {
7212 (char *) "self",(char *) "position",(char *) "style", NULL
7213 };
7214
7215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7217 if (!SWIG_IsOK(res1)) {
7218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7219 }
7220 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7221 ecode2 = SWIG_AsVal_long(obj1, &val2);
7222 if (!SWIG_IsOK(ecode2)) {
7223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
7224 }
7225 arg2 = static_cast< long >(val2);
7226 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7227 if (!SWIG_IsOK(res3)) {
7228 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7229 }
7230 if (!argp3) {
7231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7232 }
7233 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 result = (bool)((wxRichTextCtrl const *)arg1)->GetStyle(arg2,*arg3);
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 {
7241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7242 }
7243 return resultobj;
7244fail:
7245 return NULL;
7246}
7247
7248
7249SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj = 0;
7251 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7252 wxRichTextAttr *arg2 = 0 ;
7253 bool result;
7254 void *argp1 = 0 ;
7255 int res1 = 0 ;
7256 void *argp2 = 0 ;
7257 int res2 = 0 ;
7258 PyObject * obj0 = 0 ;
7259 PyObject * obj1 = 0 ;
7260 char * kwnames[] = {
7261 (char *) "self",(char *) "style", NULL
7262 };
7263
7264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
7265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7266 if (!SWIG_IsOK(res1)) {
7267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7268 }
7269 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7271 if (!SWIG_IsOK(res2)) {
7272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7273 }
7274 if (!argp2) {
7275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7276 }
7277 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 {
7285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7286 }
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7294 PyObject *resultobj = 0;
7295 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7296 wxRichTextAttr result;
7297 void *argp1 = 0 ;
7298 int res1 = 0 ;
7299 PyObject *swig_obj[1] ;
7300
7301 if (!args) SWIG_fail;
7302 swig_obj[0] = args;
7303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7306 }
7307 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx();
7311 wxPyEndAllowThreads(__tstate);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 );
7315 return resultobj;
7316fail:
7317 return NULL;
7318}
7319
7320
7321SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7322 PyObject *resultobj = 0;
7323 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7324 long arg2 ;
7325 long arg3 ;
7326 long result;
7327 void *argp1 = 0 ;
7328 int res1 = 0 ;
7329 long val2 ;
7330 int ecode2 = 0 ;
7331 long val3 ;
7332 int ecode3 = 0 ;
7333 PyObject * obj0 = 0 ;
7334 PyObject * obj1 = 0 ;
7335 PyObject * obj2 = 0 ;
7336 char * kwnames[] = {
7337 (char *) "self",(char *) "x",(char *) "y", NULL
7338 };
7339
7340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7342 if (!SWIG_IsOK(res1)) {
7343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7344 }
7345 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7346 ecode2 = SWIG_AsVal_long(obj1, &val2);
7347 if (!SWIG_IsOK(ecode2)) {
7348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
7349 }
7350 arg2 = static_cast< long >(val2);
7351 ecode3 = SWIG_AsVal_long(obj2, &val3);
7352 if (!SWIG_IsOK(ecode3)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
7354 }
7355 arg3 = static_cast< long >(val3);
7356 {
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_From_long(static_cast< long >(result));
7363 return resultobj;
7364fail:
7365 return NULL;
7366}
7367
7368
7369SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7370 PyObject *resultobj = 0;
7371 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7372 long arg2 ;
7373 long *arg3 = (long *) 0 ;
7374 long *arg4 = (long *) 0 ;
7375 void *argp1 = 0 ;
7376 int res1 = 0 ;
7377 long val2 ;
7378 int ecode2 = 0 ;
7379 long temp3 ;
7380 int res3 = SWIG_TMPOBJ ;
7381 long temp4 ;
7382 int res4 = SWIG_TMPOBJ ;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 char * kwnames[] = {
7386 (char *) "self",(char *) "pos", NULL
7387 };
7388
7389 arg3 = &temp3;
7390 arg4 = &temp4;
7391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
7392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7393 if (!SWIG_IsOK(res1)) {
7394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7395 }
7396 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7397 ecode2 = SWIG_AsVal_long(obj1, &val2);
7398 if (!SWIG_IsOK(ecode2)) {
7399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
7400 }
7401 arg2 = static_cast< long >(val2);
7402 {
7403 PyThreadState* __tstate = wxPyBeginAllowThreads();
7404 ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
7405 wxPyEndAllowThreads(__tstate);
7406 if (PyErr_Occurred()) SWIG_fail;
7407 }
7408 resultobj = SWIG_Py_Void();
7409 if (SWIG_IsTmpObj(res3)) {
7410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7411 } else {
7412 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7414 }
7415 if (SWIG_IsTmpObj(res4)) {
7416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
7417 } else {
7418 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
7420 }
7421 return resultobj;
7422fail:
7423 return NULL;
7424}
7425
7426
7427SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj = 0;
7429 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7430 long arg2 ;
7431 void *argp1 = 0 ;
7432 int res1 = 0 ;
7433 long val2 ;
7434 int ecode2 = 0 ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 char * kwnames[] = {
7438 (char *) "self",(char *) "position", NULL
7439 };
7440
7441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
7442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7443 if (!SWIG_IsOK(res1)) {
7444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7445 }
7446 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7447 ecode2 = SWIG_AsVal_long(obj1, &val2);
7448 if (!SWIG_IsOK(ecode2)) {
7449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
7450 }
7451 arg2 = static_cast< long >(val2);
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 (arg1)->ShowPosition(arg2);
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 resultobj = SWIG_Py_Void();
7459 return resultobj;
7460fail:
7461 return NULL;
7462}
7463
7464
7465SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj = 0;
7467 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7468 wxPoint *arg2 = 0 ;
7469 long *arg3 = (long *) 0 ;
7470 wxTextCtrlHitTestResult result;
7471 void *argp1 = 0 ;
7472 int res1 = 0 ;
7473 wxPoint temp2 ;
7474 long temp3 ;
7475 int res3 = SWIG_TMPOBJ ;
7476 PyObject * obj0 = 0 ;
7477 PyObject * obj1 = 0 ;
7478 char * kwnames[] = {
7479 (char *) "self",(char *) "pt", NULL
7480 };
7481
7482 arg3 = &temp3;
7483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
7484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7485 if (!SWIG_IsOK(res1)) {
7486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7487 }
7488 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7489 {
7490 arg2 = &temp2;
7491 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7492 }
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7500 if (SWIG_IsTmpObj(res3)) {
7501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7502 } else {
7503 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7505 }
7506 return resultobj;
7507fail:
7508 return NULL;
7509}
7510
7511
7512SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj = 0;
7514 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7515 wxPoint *arg2 = 0 ;
7516 wxTextCoord *arg3 = (wxTextCoord *) 0 ;
7517 wxTextCoord *arg4 = (wxTextCoord *) 0 ;
7518 wxTextCtrlHitTestResult result;
7519 void *argp1 = 0 ;
7520 int res1 = 0 ;
7521 wxPoint temp2 ;
7522 void *argp3 = 0 ;
7523 int res3 = 0 ;
7524 void *argp4 = 0 ;
7525 int res4 = 0 ;
7526 PyObject * obj0 = 0 ;
7527 PyObject * obj1 = 0 ;
7528 PyObject * obj2 = 0 ;
7529 PyObject * obj3 = 0 ;
7530 char * kwnames[] = {
7531 (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL
7532 };
7533
7534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7536 if (!SWIG_IsOK(res1)) {
7537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7538 }
7539 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7540 {
7541 arg2 = &temp2;
7542 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7543 }
7544 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7545 if (!SWIG_IsOK(res3)) {
7546 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'");
7547 }
7548 arg3 = reinterpret_cast< wxTextCoord * >(argp3);
7549 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7550 if (!SWIG_IsOK(res4)) {
7551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'");
7552 }
7553 arg4 = reinterpret_cast< wxTextCoord * >(argp4);
7554 {
7555 PyThreadState* __tstate = wxPyBeginAllowThreads();
7556 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7561 return resultobj;
7562fail:
7563 return NULL;
7564}
7565
7566
7567SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7568 PyObject *resultobj = 0;
7569 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7570 void *argp1 = 0 ;
7571 int res1 = 0 ;
7572 PyObject *swig_obj[1] ;
7573
7574 if (!args) SWIG_fail;
7575 swig_obj[0] = args;
7576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7577 if (!SWIG_IsOK(res1)) {
7578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7579 }
7580 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 (arg1)->Copy();
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_Py_Void();
7588 return resultobj;
7589fail:
7590 return NULL;
7591}
7592
7593
7594SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7597 void *argp1 = 0 ;
7598 int res1 = 0 ;
7599 PyObject *swig_obj[1] ;
7600
7601 if (!args) SWIG_fail;
7602 swig_obj[0] = args;
7603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7604 if (!SWIG_IsOK(res1)) {
7605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7606 }
7607 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7608 {
7609 PyThreadState* __tstate = wxPyBeginAllowThreads();
7610 (arg1)->Cut();
7611 wxPyEndAllowThreads(__tstate);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 resultobj = SWIG_Py_Void();
7615 return resultobj;
7616fail:
7617 return NULL;
7618}
7619
7620
7621SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7622 PyObject *resultobj = 0;
7623 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7624 void *argp1 = 0 ;
7625 int res1 = 0 ;
7626 PyObject *swig_obj[1] ;
7627
7628 if (!args) SWIG_fail;
7629 swig_obj[0] = args;
7630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7631 if (!SWIG_IsOK(res1)) {
7632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7633 }
7634 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7635 {
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 (arg1)->Paste();
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_Py_Void();
7642 return resultobj;
7643fail:
7644 return NULL;
7645}
7646
7647
7648SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7651 void *argp1 = 0 ;
7652 int res1 = 0 ;
7653 PyObject *swig_obj[1] ;
7654
7655 if (!args) SWIG_fail;
7656 swig_obj[0] = args;
7657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7660 }
7661 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 (arg1)->DeleteSelection();
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 resultobj = SWIG_Py_Void();
7669 return resultobj;
7670fail:
7671 return NULL;
7672}
7673
7674
7675SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7676 PyObject *resultobj = 0;
7677 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7678 bool result;
7679 void *argp1 = 0 ;
7680 int res1 = 0 ;
7681 PyObject *swig_obj[1] ;
7682
7683 if (!args) SWIG_fail;
7684 swig_obj[0] = args;
7685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7686 if (!SWIG_IsOK(res1)) {
7687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7688 }
7689 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy();
7693 wxPyEndAllowThreads(__tstate);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7698 }
7699 return resultobj;
7700fail:
7701 return NULL;
7702}
7703
7704
7705SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7706 PyObject *resultobj = 0;
7707 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7708 bool result;
7709 void *argp1 = 0 ;
7710 int res1 = 0 ;
7711 PyObject *swig_obj[1] ;
7712
7713 if (!args) SWIG_fail;
7714 swig_obj[0] = args;
7715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7716 if (!SWIG_IsOK(res1)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7718 }
7719 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7720 {
7721 PyThreadState* __tstate = wxPyBeginAllowThreads();
7722 result = (bool)((wxRichTextCtrl const *)arg1)->CanCut();
7723 wxPyEndAllowThreads(__tstate);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 {
7727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7728 }
7729 return resultobj;
7730fail:
7731 return NULL;
7732}
7733
7734
7735SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7736 PyObject *resultobj = 0;
7737 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7738 bool result;
7739 void *argp1 = 0 ;
7740 int res1 = 0 ;
7741 PyObject *swig_obj[1] ;
7742
7743 if (!args) SWIG_fail;
7744 swig_obj[0] = args;
7745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7746 if (!SWIG_IsOK(res1)) {
7747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7748 }
7749 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7750 {
7751 PyThreadState* __tstate = wxPyBeginAllowThreads();
7752 result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste();
7753 wxPyEndAllowThreads(__tstate);
7754 if (PyErr_Occurred()) SWIG_fail;
7755 }
7756 {
7757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7758 }
7759 return resultobj;
7760fail:
7761 return NULL;
7762}
7763
7764
7765SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7766 PyObject *resultobj = 0;
7767 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7768 bool result;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 PyObject *swig_obj[1] ;
7772
7773 if (!args) SWIG_fail;
7774 swig_obj[0] = args;
7775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7776 if (!SWIG_IsOK(res1)) {
7777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7778 }
7779 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection();
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 {
7787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7788 }
7789 return resultobj;
7790fail:
7791 return NULL;
7792}
7793
7794
7795SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7796 PyObject *resultobj = 0;
7797 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7798 void *argp1 = 0 ;
7799 int res1 = 0 ;
7800 PyObject *swig_obj[1] ;
7801
7802 if (!args) SWIG_fail;
7803 swig_obj[0] = args;
7804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7805 if (!SWIG_IsOK(res1)) {
7806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7807 }
7808 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 (arg1)->Undo();
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = SWIG_Py_Void();
7816 return resultobj;
7817fail:
7818 return NULL;
7819}
7820
7821
7822SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *resultobj = 0;
7824 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7825 void *argp1 = 0 ;
7826 int res1 = 0 ;
7827 PyObject *swig_obj[1] ;
7828
7829 if (!args) SWIG_fail;
7830 swig_obj[0] = args;
7831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7832 if (!SWIG_IsOK(res1)) {
7833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7834 }
7835 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7836 {
7837 PyThreadState* __tstate = wxPyBeginAllowThreads();
7838 (arg1)->Redo();
7839 wxPyEndAllowThreads(__tstate);
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 resultobj = SWIG_Py_Void();
7843 return resultobj;
7844fail:
7845 return NULL;
7846}
7847
7848
7849SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7852 bool result;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 PyObject *swig_obj[1] ;
7856
7857 if (!args) SWIG_fail;
7858 swig_obj[0] = args;
7859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7860 if (!SWIG_IsOK(res1)) {
7861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7862 }
7863 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo();
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 {
7871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7872 }
7873 return resultobj;
7874fail:
7875 return NULL;
7876}
7877
7878
7879SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7880 PyObject *resultobj = 0;
7881 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7882 bool result;
7883 void *argp1 = 0 ;
7884 int res1 = 0 ;
7885 PyObject *swig_obj[1] ;
7886
7887 if (!args) SWIG_fail;
7888 swig_obj[0] = args;
7889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7890 if (!SWIG_IsOK(res1)) {
7891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7892 }
7893 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo();
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7902 }
7903 return resultobj;
7904fail:
7905 return NULL;
7906}
7907
7908
7909SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7910 PyObject *resultobj = 0;
7911 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7912 long arg2 ;
7913 void *argp1 = 0 ;
7914 int res1 = 0 ;
7915 long val2 ;
7916 int ecode2 = 0 ;
7917 PyObject * obj0 = 0 ;
7918 PyObject * obj1 = 0 ;
7919 char * kwnames[] = {
7920 (char *) "self",(char *) "pos", NULL
7921 };
7922
7923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
7924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7925 if (!SWIG_IsOK(res1)) {
7926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7927 }
7928 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7929 ecode2 = SWIG_AsVal_long(obj1, &val2);
7930 if (!SWIG_IsOK(ecode2)) {
7931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
7932 }
7933 arg2 = static_cast< long >(val2);
7934 {
7935 PyThreadState* __tstate = wxPyBeginAllowThreads();
7936 (arg1)->SetInsertionPoint(arg2);
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = SWIG_Py_Void();
7941 return resultobj;
7942fail:
7943 return NULL;
7944}
7945
7946
7947SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7948 PyObject *resultobj = 0;
7949 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7950 void *argp1 = 0 ;
7951 int res1 = 0 ;
7952 PyObject *swig_obj[1] ;
7953
7954 if (!args) SWIG_fail;
7955 swig_obj[0] = args;
7956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7959 }
7960 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 (arg1)->SetInsertionPointEnd();
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = SWIG_Py_Void();
7968 return resultobj;
7969fail:
7970 return NULL;
7971}
7972
7973
7974SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7975 PyObject *resultobj = 0;
7976 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7977 long result;
7978 void *argp1 = 0 ;
7979 int res1 = 0 ;
7980 PyObject *swig_obj[1] ;
7981
7982 if (!args) SWIG_fail;
7983 swig_obj[0] = args;
7984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7985 if (!SWIG_IsOK(res1)) {
7986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7987 }
7988 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7989 {
7990 PyThreadState* __tstate = wxPyBeginAllowThreads();
7991 result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint();
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 resultobj = SWIG_From_long(static_cast< long >(result));
7996 return resultobj;
7997fail:
7998 return NULL;
7999}
8000
8001
8002SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8003 PyObject *resultobj = 0;
8004 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8005 long result;
8006 void *argp1 = 0 ;
8007 int res1 = 0 ;
8008 PyObject *swig_obj[1] ;
8009
8010 if (!args) SWIG_fail;
8011 swig_obj[0] = args;
8012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8015 }
8016 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition();
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_From_long(static_cast< long >(result));
8024 return resultobj;
8025fail:
8026 return NULL;
8027}
8028
8029
8030SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj = 0;
8032 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8033 long arg2 ;
8034 long arg3 ;
8035 void *argp1 = 0 ;
8036 int res1 = 0 ;
8037 long val2 ;
8038 int ecode2 = 0 ;
8039 long val3 ;
8040 int ecode3 = 0 ;
8041 PyObject * obj0 = 0 ;
8042 PyObject * obj1 = 0 ;
8043 PyObject * obj2 = 0 ;
8044 char * kwnames[] = {
8045 (char *) "self",(char *) "from",(char *) "to", NULL
8046 };
8047
8048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8050 if (!SWIG_IsOK(res1)) {
8051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8052 }
8053 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8054 ecode2 = SWIG_AsVal_long(obj1, &val2);
8055 if (!SWIG_IsOK(ecode2)) {
8056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
8057 }
8058 arg2 = static_cast< long >(val2);
8059 ecode3 = SWIG_AsVal_long(obj2, &val3);
8060 if (!SWIG_IsOK(ecode3)) {
8061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
8062 }
8063 arg3 = static_cast< long >(val3);
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 (arg1)->SetSelection(arg2,arg3);
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_Py_Void();
8071 return resultobj;
8072fail:
8073 return NULL;
8074}
8075
8076
8077SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8078 PyObject *resultobj = 0;
8079 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8080 void *argp1 = 0 ;
8081 int res1 = 0 ;
8082 PyObject *swig_obj[1] ;
8083
8084 if (!args) SWIG_fail;
8085 swig_obj[0] = args;
8086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8087 if (!SWIG_IsOK(res1)) {
8088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8089 }
8090 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 (arg1)->SelectAll();
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_Py_Void();
8098 return resultobj;
8099fail:
8100 return NULL;
8101}
8102
8103
8104SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj = 0;
8106 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8107 bool arg2 ;
8108 void *argp1 = 0 ;
8109 int res1 = 0 ;
8110 bool val2 ;
8111 int ecode2 = 0 ;
8112 PyObject * obj0 = 0 ;
8113 PyObject * obj1 = 0 ;
8114 char * kwnames[] = {
8115 (char *) "self",(char *) "editable", NULL
8116 };
8117
8118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
8119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8120 if (!SWIG_IsOK(res1)) {
8121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8122 }
8123 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8124 ecode2 = SWIG_AsVal_bool(obj1, &val2);
8125 if (!SWIG_IsOK(ecode2)) {
8126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
8127 }
8128 arg2 = static_cast< bool >(val2);
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 (arg1)->SetEditable(arg2);
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = SWIG_Py_Void();
8136 return resultobj;
8137fail:
8138 return NULL;
8139}
8140
8141
8142SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8143 PyObject *resultobj = 0;
8144 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8145 bool result;
8146 void *argp1 = 0 ;
8147 int res1 = 0 ;
8148 PyObject *swig_obj[1] ;
8149
8150 if (!args) SWIG_fail;
8151 swig_obj[0] = args;
8152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8153 if (!SWIG_IsOK(res1)) {
8154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8155 }
8156 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection();
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 {
8164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8165 }
8166 return resultobj;
8167fail:
8168 return NULL;
8169}
8170
8171
8172SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8175 wxImage *arg2 = 0 ;
8176 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8177 bool result;
8178 void *argp1 = 0 ;
8179 int res1 = 0 ;
8180 void *argp2 = 0 ;
8181 int res2 = 0 ;
8182 int val3 ;
8183 int ecode3 = 0 ;
8184 PyObject * obj0 = 0 ;
8185 PyObject * obj1 = 0 ;
8186 PyObject * obj2 = 0 ;
8187 char * kwnames[] = {
8188 (char *) "self",(char *) "image",(char *) "bitmapType", NULL
8189 };
8190
8191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8193 if (!SWIG_IsOK(res1)) {
8194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8195 }
8196 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
8198 if (!SWIG_IsOK(res2)) {
8199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8200 }
8201 if (!argp2) {
8202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8203 }
8204 arg2 = reinterpret_cast< wxImage * >(argp2);
8205 if (obj2) {
8206 ecode3 = SWIG_AsVal_int(obj2, &val3);
8207 if (!SWIG_IsOK(ecode3)) {
8208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'");
8209 }
8210 arg3 = static_cast< int >(val3);
8211 }
8212 {
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3);
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 {
8219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8220 }
8221 return resultobj;
8222fail:
8223 return NULL;
8224}
8225
8226
8227SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8228 PyObject *resultobj = 0;
8229 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8230 wxBitmap *arg2 = 0 ;
8231 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8232 bool result;
8233 void *argp1 = 0 ;
8234 int res1 = 0 ;
8235 void *argp2 = 0 ;
8236 int res2 = 0 ;
8237 int val3 ;
8238 int ecode3 = 0 ;
8239 PyObject * obj0 = 0 ;
8240 PyObject * obj1 = 0 ;
8241 PyObject * obj2 = 0 ;
8242 char * kwnames[] = {
8243 (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL
8244 };
8245
8246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8248 if (!SWIG_IsOK(res1)) {
8249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8250 }
8251 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8253 if (!SWIG_IsOK(res2)) {
8254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8255 }
8256 if (!argp2) {
8257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8258 }
8259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8260 if (obj2) {
8261 ecode3 = SWIG_AsVal_int(obj2, &val3);
8262 if (!SWIG_IsOK(ecode3)) {
8263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'");
8264 }
8265 arg3 = static_cast< int >(val3);
8266 }
8267 {
8268 PyThreadState* __tstate = wxPyBeginAllowThreads();
8269 result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3);
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 {
8274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8275 }
8276 return resultobj;
8277fail:
8278 return NULL;
8279}
8280
8281
8282SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj = 0;
8284 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8285 wxString *arg2 = 0 ;
8286 int arg3 ;
8287 bool result;
8288 void *argp1 = 0 ;
8289 int res1 = 0 ;
8290 bool temp2 = false ;
8291 int val3 ;
8292 int ecode3 = 0 ;
8293 PyObject * obj0 = 0 ;
8294 PyObject * obj1 = 0 ;
8295 PyObject * obj2 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "filename",(char *) "bitmapType", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8304 }
8305 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8306 {
8307 arg2 = wxString_in_helper(obj1);
8308 if (arg2 == NULL) SWIG_fail;
8309 temp2 = true;
8310 }
8311 ecode3 = SWIG_AsVal_int(obj2, &val3);
8312 if (!SWIG_IsOK(ecode3)) {
8313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'");
8314 }
8315 arg3 = static_cast< int >(val3);
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3);
8319 wxPyEndAllowThreads(__tstate);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 {
8323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8324 }
8325 {
8326 if (temp2)
8327 delete arg2;
8328 }
8329 return resultobj;
8330fail:
8331 {
8332 if (temp2)
8333 delete arg2;
8334 }
8335 return NULL;
8336}
8337
8338
8339SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8340 PyObject *resultobj = 0;
8341 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8342 wxRichTextImageBlock *arg2 = 0 ;
8343 bool result;
8344 void *argp1 = 0 ;
8345 int res1 = 0 ;
8346 void *argp2 = 0 ;
8347 int res2 = 0 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char * kwnames[] = {
8351 (char *) "self",(char *) "imageBlock", NULL
8352 };
8353
8354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail;
8355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8358 }
8359 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0);
8361 if (!SWIG_IsOK(res2)) {
8362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8363 }
8364 if (!argp2) {
8365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8366 }
8367 arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2);
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 {
8375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8376 }
8377 return resultobj;
8378fail:
8379 return NULL;
8380}
8381
8382
8383SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 PyObject *resultobj = 0;
8385 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8386 bool result;
8387 void *argp1 = 0 ;
8388 int res1 = 0 ;
8389 PyObject *swig_obj[1] ;
8390
8391 if (!args) SWIG_fail;
8392 swig_obj[0] = args;
8393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8394 if (!SWIG_IsOK(res1)) {
8395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8396 }
8397 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 result = (bool)(arg1)->Newline();
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 {
8405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8406 }
8407 return resultobj;
8408fail:
8409 return NULL;
8410}
8411
8412
8413SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj = 0;
8415 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8416 wxRichTextAttr *arg2 = 0 ;
8417 void *argp1 = 0 ;
8418 int res1 = 0 ;
8419 void *argp2 = 0 ;
8420 int res2 = 0 ;
8421 PyObject * obj0 = 0 ;
8422 PyObject * obj1 = 0 ;
8423 char * kwnames[] = {
8424 (char *) "self",(char *) "style", NULL
8425 };
8426
8427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail;
8428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8429 if (!SWIG_IsOK(res1)) {
8430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8431 }
8432 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
8434 if (!SWIG_IsOK(res2)) {
8435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8436 }
8437 if (!argp2) {
8438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8439 }
8440 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
8441 {
8442 PyThreadState* __tstate = wxPyBeginAllowThreads();
8443 (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2);
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 resultobj = SWIG_Py_Void();
8448 return resultobj;
8449fail:
8450 return NULL;
8451}
8452
8453
8454SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8455 PyObject *resultobj = 0;
8456 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8457 bool result;
8458 void *argp1 = 0 ;
8459 int res1 = 0 ;
8460 PyObject *swig_obj[1] ;
8461
8462 if (!args) SWIG_fail;
8463 swig_obj[0] = args;
8464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8465 if (!SWIG_IsOK(res1)) {
8466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8467 }
8468 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8469 {
8470 PyThreadState* __tstate = wxPyBeginAllowThreads();
8471 result = (bool)(arg1)->EndStyle();
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 {
8476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8477 }
8478 return resultobj;
8479fail:
8480 return NULL;
8481}
8482
8483
8484SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8485 PyObject *resultobj = 0;
8486 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8487 bool result;
8488 void *argp1 = 0 ;
8489 int res1 = 0 ;
8490 PyObject *swig_obj[1] ;
8491
8492 if (!args) SWIG_fail;
8493 swig_obj[0] = args;
8494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8495 if (!SWIG_IsOK(res1)) {
8496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8497 }
8498 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8499 {
8500 PyThreadState* __tstate = wxPyBeginAllowThreads();
8501 result = (bool)(arg1)->EndAllStyles();
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 {
8506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8507 }
8508 return resultobj;
8509fail:
8510 return NULL;
8511}
8512
8513
8514SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8515 PyObject *resultobj = 0;
8516 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8517 bool result;
8518 void *argp1 = 0 ;
8519 int res1 = 0 ;
8520 PyObject *swig_obj[1] ;
8521
8522 if (!args) SWIG_fail;
8523 swig_obj[0] = args;
8524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8525 if (!SWIG_IsOK(res1)) {
8526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8527 }
8528 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = (bool)(arg1)->BeginBold();
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 {
8536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8537 }
8538 return resultobj;
8539fail:
8540 return NULL;
8541}
8542
8543
8544SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8545 PyObject *resultobj = 0;
8546 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8547 bool result;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 PyObject *swig_obj[1] ;
8551
8552 if (!args) SWIG_fail;
8553 swig_obj[0] = args;
8554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8555 if (!SWIG_IsOK(res1)) {
8556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8557 }
8558 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 result = (bool)(arg1)->EndBold();
8562 wxPyEndAllowThreads(__tstate);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8567 }
8568 return resultobj;
8569fail:
8570 return NULL;
8571}
8572
8573
8574SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8575 PyObject *resultobj = 0;
8576 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8577 bool result;
8578 void *argp1 = 0 ;
8579 int res1 = 0 ;
8580 PyObject *swig_obj[1] ;
8581
8582 if (!args) SWIG_fail;
8583 swig_obj[0] = args;
8584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8585 if (!SWIG_IsOK(res1)) {
8586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8587 }
8588 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (bool)(arg1)->BeginItalic();
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 {
8596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8597 }
8598 return resultobj;
8599fail:
8600 return NULL;
8601}
8602
8603
8604SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8605 PyObject *resultobj = 0;
8606 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8607 bool result;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 PyObject *swig_obj[1] ;
8611
8612 if (!args) SWIG_fail;
8613 swig_obj[0] = args;
8614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8615 if (!SWIG_IsOK(res1)) {
8616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8617 }
8618 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 result = (bool)(arg1)->EndItalic();
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 {
8626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8627 }
8628 return resultobj;
8629fail:
8630 return NULL;
8631}
8632
8633
8634SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *resultobj = 0;
8636 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8637 bool result;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 PyObject *swig_obj[1] ;
8641
8642 if (!args) SWIG_fail;
8643 swig_obj[0] = args;
8644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8645 if (!SWIG_IsOK(res1)) {
8646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8647 }
8648 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (bool)(arg1)->BeginUnderline();
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 {
8656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8657 }
8658 return resultobj;
8659fail:
8660 return NULL;
8661}
8662
8663
8664SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8665 PyObject *resultobj = 0;
8666 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8667 bool result;
8668 void *argp1 = 0 ;
8669 int res1 = 0 ;
8670 PyObject *swig_obj[1] ;
8671
8672 if (!args) SWIG_fail;
8673 swig_obj[0] = args;
8674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8675 if (!SWIG_IsOK(res1)) {
8676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8677 }
8678 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 result = (bool)(arg1)->EndUnderline();
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 {
8686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8687 }
8688 return resultobj;
8689fail:
8690 return NULL;
8691}
8692
8693
8694SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8695 PyObject *resultobj = 0;
8696 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8697 int arg2 ;
8698 bool result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 int val2 ;
8702 int ecode2 = 0 ;
8703 PyObject * obj0 = 0 ;
8704 PyObject * obj1 = 0 ;
8705 char * kwnames[] = {
8706 (char *) "self",(char *) "pointSize", NULL
8707 };
8708
8709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
8710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8711 if (!SWIG_IsOK(res1)) {
8712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8713 }
8714 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8715 ecode2 = SWIG_AsVal_int(obj1, &val2);
8716 if (!SWIG_IsOK(ecode2)) {
8717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'");
8718 }
8719 arg2 = static_cast< int >(val2);
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = (bool)(arg1)->BeginFontSize(arg2);
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 {
8727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8728 }
8729 return resultobj;
8730fail:
8731 return NULL;
8732}
8733
8734
8735SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8736 PyObject *resultobj = 0;
8737 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8738 bool result;
8739 void *argp1 = 0 ;
8740 int res1 = 0 ;
8741 PyObject *swig_obj[1] ;
8742
8743 if (!args) SWIG_fail;
8744 swig_obj[0] = args;
8745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8746 if (!SWIG_IsOK(res1)) {
8747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8748 }
8749 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8750 {
8751 PyThreadState* __tstate = wxPyBeginAllowThreads();
8752 result = (bool)(arg1)->EndFontSize();
8753 wxPyEndAllowThreads(__tstate);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 {
8757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8758 }
8759 return resultobj;
8760fail:
8761 return NULL;
8762}
8763
8764
8765SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj = 0;
8767 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8768 wxFont *arg2 = 0 ;
8769 bool result;
8770 void *argp1 = 0 ;
8771 int res1 = 0 ;
8772 void *argp2 = 0 ;
8773 int res2 = 0 ;
8774 PyObject * obj0 = 0 ;
8775 PyObject * obj1 = 0 ;
8776 char * kwnames[] = {
8777 (char *) "self",(char *) "font", NULL
8778 };
8779
8780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail;
8781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8782 if (!SWIG_IsOK(res1)) {
8783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8784 }
8785 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
8787 if (!SWIG_IsOK(res2)) {
8788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8789 }
8790 if (!argp2) {
8791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8792 }
8793 arg2 = reinterpret_cast< wxFont * >(argp2);
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (bool)(arg1)->BeginFont((wxFont const &)*arg2);
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 {
8801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8802 }
8803 return resultobj;
8804fail:
8805 return NULL;
8806}
8807
8808
8809SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8810 PyObject *resultobj = 0;
8811 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8812 bool result;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 PyObject *swig_obj[1] ;
8816
8817 if (!args) SWIG_fail;
8818 swig_obj[0] = args;
8819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8820 if (!SWIG_IsOK(res1)) {
8821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8822 }
8823 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 result = (bool)(arg1)->EndFont();
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 {
8831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8832 }
8833 return resultobj;
8834fail:
8835 return NULL;
8836}
8837
8838
8839SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj = 0;
8841 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8842 wxColour *arg2 = 0 ;
8843 bool result;
8844 void *argp1 = 0 ;
8845 int res1 = 0 ;
8846 wxColour temp2 ;
8847 PyObject * obj0 = 0 ;
8848 PyObject * obj1 = 0 ;
8849 char * kwnames[] = {
8850 (char *) "self",(char *) "colour", NULL
8851 };
8852
8853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
8854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8855 if (!SWIG_IsOK(res1)) {
8856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8857 }
8858 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8859 {
8860 arg2 = &temp2;
8861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8862 }
8863 {
8864 PyThreadState* __tstate = wxPyBeginAllowThreads();
8865 result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2);
8866 wxPyEndAllowThreads(__tstate);
8867 if (PyErr_Occurred()) SWIG_fail;
8868 }
8869 {
8870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8871 }
8872 return resultobj;
8873fail:
8874 return NULL;
8875}
8876
8877
8878SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8879 PyObject *resultobj = 0;
8880 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8881 bool result;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 PyObject *swig_obj[1] ;
8885
8886 if (!args) SWIG_fail;
8887 swig_obj[0] = args;
8888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8891 }
8892 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = (bool)(arg1)->EndTextColour();
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 {
8900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8901 }
8902 return resultobj;
8903fail:
8904 return NULL;
8905}
8906
8907
8908SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj = 0;
8910 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8911 wxTextAttrAlignment arg2 ;
8912 bool result;
8913 void *argp1 = 0 ;
8914 int res1 = 0 ;
8915 int val2 ;
8916 int ecode2 = 0 ;
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 char * kwnames[] = {
8920 (char *) "self",(char *) "alignment", NULL
8921 };
8922
8923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
8924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8925 if (!SWIG_IsOK(res1)) {
8926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8927 }
8928 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8929 ecode2 = SWIG_AsVal_int(obj1, &val2);
8930 if (!SWIG_IsOK(ecode2)) {
8931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
8932 }
8933 arg2 = static_cast< wxTextAttrAlignment >(val2);
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (bool)(arg1)->BeginAlignment(arg2);
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 {
8941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8942 }
8943 return resultobj;
8944fail:
8945 return NULL;
8946}
8947
8948
8949SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8950 PyObject *resultobj = 0;
8951 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8952 bool result;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 PyObject *swig_obj[1] ;
8956
8957 if (!args) SWIG_fail;
8958 swig_obj[0] = args;
8959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8962 }
8963 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8964 {
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 result = (bool)(arg1)->EndAlignment();
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 {
8971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8972 }
8973 return resultobj;
8974fail:
8975 return NULL;
8976}
8977
8978
8979SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8980 PyObject *resultobj = 0;
8981 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8982 int arg2 ;
8983 int arg3 = (int) 0 ;
8984 bool result;
8985 void *argp1 = 0 ;
8986 int res1 = 0 ;
8987 int val2 ;
8988 int ecode2 = 0 ;
8989 int val3 ;
8990 int ecode3 = 0 ;
8991 PyObject * obj0 = 0 ;
8992 PyObject * obj1 = 0 ;
8993 PyObject * obj2 = 0 ;
8994 char * kwnames[] = {
8995 (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL
8996 };
8997
8998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9000 if (!SWIG_IsOK(res1)) {
9001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9002 }
9003 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9004 ecode2 = SWIG_AsVal_int(obj1, &val2);
9005 if (!SWIG_IsOK(ecode2)) {
9006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'");
9007 }
9008 arg2 = static_cast< int >(val2);
9009 if (obj2) {
9010 ecode3 = SWIG_AsVal_int(obj2, &val3);
9011 if (!SWIG_IsOK(ecode3)) {
9012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'");
9013 }
9014 arg3 = static_cast< int >(val3);
9015 }
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 result = (bool)(arg1)->BeginLeftIndent(arg2,arg3);
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 {
9023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9024 }
9025 return resultobj;
9026fail:
9027 return NULL;
9028}
9029
9030
9031SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9032 PyObject *resultobj = 0;
9033 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9034 bool result;
9035 void *argp1 = 0 ;
9036 int res1 = 0 ;
9037 PyObject *swig_obj[1] ;
9038
9039 if (!args) SWIG_fail;
9040 swig_obj[0] = args;
9041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9042 if (!SWIG_IsOK(res1)) {
9043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9044 }
9045 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9046 {
9047 PyThreadState* __tstate = wxPyBeginAllowThreads();
9048 result = (bool)(arg1)->EndLeftIndent();
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 {
9053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9054 }
9055 return resultobj;
9056fail:
9057 return NULL;
9058}
9059
9060
9061SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj = 0;
9063 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9064 int arg2 ;
9065 bool result;
9066 void *argp1 = 0 ;
9067 int res1 = 0 ;
9068 int val2 ;
9069 int ecode2 = 0 ;
9070 PyObject * obj0 = 0 ;
9071 PyObject * obj1 = 0 ;
9072 char * kwnames[] = {
9073 (char *) "self",(char *) "rightIndent", NULL
9074 };
9075
9076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
9077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9080 }
9081 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9082 ecode2 = SWIG_AsVal_int(obj1, &val2);
9083 if (!SWIG_IsOK(ecode2)) {
9084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'");
9085 }
9086 arg2 = static_cast< int >(val2);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (bool)(arg1)->BeginRightIndent(arg2);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9095 }
9096 return resultobj;
9097fail:
9098 return NULL;
9099}
9100
9101
9102SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9103 PyObject *resultobj = 0;
9104 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9105 bool result;
9106 void *argp1 = 0 ;
9107 int res1 = 0 ;
9108 PyObject *swig_obj[1] ;
9109
9110 if (!args) SWIG_fail;
9111 swig_obj[0] = args;
9112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9113 if (!SWIG_IsOK(res1)) {
9114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9115 }
9116 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9117 {
9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
9119 result = (bool)(arg1)->EndRightIndent();
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 {
9124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9125 }
9126 return resultobj;
9127fail:
9128 return NULL;
9129}
9130
9131
9132SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9133 PyObject *resultobj = 0;
9134 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9135 int arg2 ;
9136 int arg3 ;
9137 bool result;
9138 void *argp1 = 0 ;
9139 int res1 = 0 ;
9140 int val2 ;
9141 int ecode2 = 0 ;
9142 int val3 ;
9143 int ecode3 = 0 ;
9144 PyObject * obj0 = 0 ;
9145 PyObject * obj1 = 0 ;
9146 PyObject * obj2 = 0 ;
9147 char * kwnames[] = {
9148 (char *) "self",(char *) "before",(char *) "after", NULL
9149 };
9150
9151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9153 if (!SWIG_IsOK(res1)) {
9154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9155 }
9156 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9157 ecode2 = SWIG_AsVal_int(obj1, &val2);
9158 if (!SWIG_IsOK(ecode2)) {
9159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'");
9160 }
9161 arg2 = static_cast< int >(val2);
9162 ecode3 = SWIG_AsVal_int(obj2, &val3);
9163 if (!SWIG_IsOK(ecode3)) {
9164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'");
9165 }
9166 arg3 = static_cast< int >(val3);
9167 {
9168 PyThreadState* __tstate = wxPyBeginAllowThreads();
9169 result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3);
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 {
9174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9175 }
9176 return resultobj;
9177fail:
9178 return NULL;
9179}
9180
9181
9182SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9183 PyObject *resultobj = 0;
9184 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9185 bool result;
9186 void *argp1 = 0 ;
9187 int res1 = 0 ;
9188 PyObject *swig_obj[1] ;
9189
9190 if (!args) SWIG_fail;
9191 swig_obj[0] = args;
9192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9193 if (!SWIG_IsOK(res1)) {
9194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9195 }
9196 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (bool)(arg1)->EndParagraphSpacing();
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 {
9204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9205 }
9206 return resultobj;
9207fail:
9208 return NULL;
9209}
9210
9211
9212SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj = 0;
9214 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9215 int arg2 ;
9216 bool result;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 int val2 ;
9220 int ecode2 = 0 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 char * kwnames[] = {
9224 (char *) "self",(char *) "lineSpacing", NULL
9225 };
9226
9227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
9228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9229 if (!SWIG_IsOK(res1)) {
9230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9231 }
9232 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9233 ecode2 = SWIG_AsVal_int(obj1, &val2);
9234 if (!SWIG_IsOK(ecode2)) {
9235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'");
9236 }
9237 arg2 = static_cast< int >(val2);
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (bool)(arg1)->BeginLineSpacing(arg2);
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 {
9245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9246 }
9247 return resultobj;
9248fail:
9249 return NULL;
9250}
9251
9252
9253SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9254 PyObject *resultobj = 0;
9255 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9256 bool result;
9257 void *argp1 = 0 ;
9258 int res1 = 0 ;
9259 PyObject *swig_obj[1] ;
9260
9261 if (!args) SWIG_fail;
9262 swig_obj[0] = args;
9263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9264 if (!SWIG_IsOK(res1)) {
9265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9266 }
9267 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 result = (bool)(arg1)->EndLineSpacing();
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 {
9275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9276 }
9277 return resultobj;
9278fail:
9279 return NULL;
9280}
9281
9282
9283SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9284 PyObject *resultobj = 0;
9285 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9286 int arg2 ;
9287 int arg3 ;
9288 int arg4 ;
9289 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ;
9290 bool result;
9291 void *argp1 = 0 ;
9292 int res1 = 0 ;
9293 int val2 ;
9294 int ecode2 = 0 ;
9295 int val3 ;
9296 int ecode3 = 0 ;
9297 int val4 ;
9298 int ecode4 = 0 ;
9299 int val5 ;
9300 int ecode5 = 0 ;
9301 PyObject * obj0 = 0 ;
9302 PyObject * obj1 = 0 ;
9303 PyObject * obj2 = 0 ;
9304 PyObject * obj3 = 0 ;
9305 PyObject * obj4 = 0 ;
9306 char * kwnames[] = {
9307 (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9308 };
9309
9310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9312 if (!SWIG_IsOK(res1)) {
9313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9314 }
9315 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9316 ecode2 = SWIG_AsVal_int(obj1, &val2);
9317 if (!SWIG_IsOK(ecode2)) {
9318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'");
9319 }
9320 arg2 = static_cast< int >(val2);
9321 ecode3 = SWIG_AsVal_int(obj2, &val3);
9322 if (!SWIG_IsOK(ecode3)) {
9323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'");
9324 }
9325 arg3 = static_cast< int >(val3);
9326 ecode4 = SWIG_AsVal_int(obj3, &val4);
9327 if (!SWIG_IsOK(ecode4)) {
9328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'");
9329 }
9330 arg4 = static_cast< int >(val4);
9331 if (obj4) {
9332 ecode5 = SWIG_AsVal_int(obj4, &val5);
9333 if (!SWIG_IsOK(ecode5)) {
9334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'");
9335 }
9336 arg5 = static_cast< int >(val5);
9337 }
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5);
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 {
9345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9346 }
9347 return resultobj;
9348fail:
9349 return NULL;
9350}
9351
9352
9353SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *resultobj = 0;
9355 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9356 bool result;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 PyObject *swig_obj[1] ;
9360
9361 if (!args) SWIG_fail;
9362 swig_obj[0] = args;
9363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9364 if (!SWIG_IsOK(res1)) {
9365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9366 }
9367 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (bool)(arg1)->EndNumberedBullet();
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 {
9375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9376 }
9377 return resultobj;
9378fail:
9379 return NULL;
9380}
9381
9382
9383SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj = 0;
9385 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9386 char arg2 ;
9387 int arg3 ;
9388 int arg4 ;
9389 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ;
9390 bool result;
9391 void *argp1 = 0 ;
9392 int res1 = 0 ;
9393 char val2 ;
9394 int ecode2 = 0 ;
9395 int val3 ;
9396 int ecode3 = 0 ;
9397 int val4 ;
9398 int ecode4 = 0 ;
9399 int val5 ;
9400 int ecode5 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 PyObject * obj2 = 0 ;
9404 PyObject * obj3 = 0 ;
9405 PyObject * obj4 = 0 ;
9406 char * kwnames[] = {
9407 (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9408 };
9409
9410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9412 if (!SWIG_IsOK(res1)) {
9413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9414 }
9415 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9416 ecode2 = SWIG_AsVal_char(obj1, &val2);
9417 if (!SWIG_IsOK(ecode2)) {
9418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'");
9419 }
9420 arg2 = static_cast< char >(val2);
9421 ecode3 = SWIG_AsVal_int(obj2, &val3);
9422 if (!SWIG_IsOK(ecode3)) {
9423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'");
9424 }
9425 arg3 = static_cast< int >(val3);
9426 ecode4 = SWIG_AsVal_int(obj3, &val4);
9427 if (!SWIG_IsOK(ecode4)) {
9428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'");
9429 }
9430 arg4 = static_cast< int >(val4);
9431 if (obj4) {
9432 ecode5 = SWIG_AsVal_int(obj4, &val5);
9433 if (!SWIG_IsOK(ecode5)) {
9434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'");
9435 }
9436 arg5 = static_cast< int >(val5);
9437 }
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5);
9441 wxPyEndAllowThreads(__tstate);
9442 if (PyErr_Occurred()) SWIG_fail;
9443 }
9444 {
9445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9446 }
9447 return resultobj;
9448fail:
9449 return NULL;
9450}
9451
9452
9453SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9454 PyObject *resultobj = 0;
9455 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9456 bool result;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 PyObject *swig_obj[1] ;
9460
9461 if (!args) SWIG_fail;
9462 swig_obj[0] = args;
9463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9466 }
9467 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9468 {
9469 PyThreadState* __tstate = wxPyBeginAllowThreads();
9470 result = (bool)(arg1)->EndSymbolBullet();
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 }
9474 {
9475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9476 }
9477 return resultobj;
9478fail:
9479 return NULL;
9480}
9481
9482
9483SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = 0;
9485 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9486 wxString *arg2 = 0 ;
9487 bool result;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 bool temp2 = false ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 char * kwnames[] = {
9494 (char *) "self",(char *) "characterStyle", NULL
9495 };
9496
9497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9499 if (!SWIG_IsOK(res1)) {
9500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9501 }
9502 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9503 {
9504 arg2 = wxString_in_helper(obj1);
9505 if (arg2 == NULL) SWIG_fail;
9506 temp2 = true;
9507 }
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2);
9511 wxPyEndAllowThreads(__tstate);
9512 if (PyErr_Occurred()) SWIG_fail;
9513 }
9514 {
9515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9516 }
9517 {
9518 if (temp2)
9519 delete arg2;
9520 }
9521 return resultobj;
9522fail:
9523 {
9524 if (temp2)
9525 delete arg2;
9526 }
9527 return NULL;
9528}
9529
9530
9531SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9532 PyObject *resultobj = 0;
9533 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9534 bool result;
9535 void *argp1 = 0 ;
9536 int res1 = 0 ;
9537 PyObject *swig_obj[1] ;
9538
9539 if (!args) SWIG_fail;
9540 swig_obj[0] = args;
9541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9542 if (!SWIG_IsOK(res1)) {
9543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9544 }
9545 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9546 {
9547 PyThreadState* __tstate = wxPyBeginAllowThreads();
9548 result = (bool)(arg1)->EndCharacterStyle();
9549 wxPyEndAllowThreads(__tstate);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 {
9553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9554 }
9555 return resultobj;
9556fail:
9557 return NULL;
9558}
9559
9560
9561SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj = 0;
9563 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9564 wxString *arg2 = 0 ;
9565 bool result;
9566 void *argp1 = 0 ;
9567 int res1 = 0 ;
9568 bool temp2 = false ;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 char * kwnames[] = {
9572 (char *) "self",(char *) "paragraphStyle", NULL
9573 };
9574
9575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9579 }
9580 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9581 {
9582 arg2 = wxString_in_helper(obj1);
9583 if (arg2 == NULL) SWIG_fail;
9584 temp2 = true;
9585 }
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2);
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 {
9593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9594 }
9595 {
9596 if (temp2)
9597 delete arg2;
9598 }
9599 return resultobj;
9600fail:
9601 {
9602 if (temp2)
9603 delete arg2;
9604 }
9605 return NULL;
9606}
9607
9608
9609SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9610 PyObject *resultobj = 0;
9611 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9612 bool result;
9613 void *argp1 = 0 ;
9614 int res1 = 0 ;
9615 PyObject *swig_obj[1] ;
9616
9617 if (!args) SWIG_fail;
9618 swig_obj[0] = args;
9619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9620 if (!SWIG_IsOK(res1)) {
9621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9622 }
9623 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 result = (bool)(arg1)->EndParagraphStyle();
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 {
9631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9632 }
9633 return resultobj;
9634fail:
9635 return NULL;
9636}
9637
9638
9639SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9640 PyObject *resultobj = 0;
9641 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9642 bool result;
9643 void *argp1 = 0 ;
9644 int res1 = 0 ;
9645 PyObject *swig_obj[1] ;
9646
9647 if (!args) SWIG_fail;
9648 swig_obj[0] = args;
9649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9650 if (!SWIG_IsOK(res1)) {
9651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9652 }
9653 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 result = (bool)(arg1)->SetDefaultStyleToCursorStyle();
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 {
9661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9662 }
9663 return resultobj;
9664fail:
9665 return NULL;
9666}
9667
9668
9669SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9670 PyObject *resultobj = 0;
9671 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9672 void *argp1 = 0 ;
9673 int res1 = 0 ;
9674 PyObject *swig_obj[1] ;
9675
9676 if (!args) SWIG_fail;
9677 swig_obj[0] = args;
9678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9681 }
9682 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 (arg1)->SelectNone();
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 resultobj = SWIG_Py_Void();
9690 return resultobj;
9691fail:
9692 return NULL;
9693}
9694
9695
9696SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9697 PyObject *resultobj = 0;
9698 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9699 wxRichTextRange *result = 0 ;
9700 void *argp1 = 0 ;
9701 int res1 = 0 ;
9702 PyObject *swig_obj[1] ;
9703
9704 if (!args) SWIG_fail;
9705 swig_obj[0] = args;
9706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9707 if (!SWIG_IsOK(res1)) {
9708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
9709 }
9710 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 {
9714 wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetSelectionRange();
9715 result = (wxRichTextRange *) &_result_ref;
9716 }
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 );
9721 return resultobj;
9722fail:
9723 return NULL;
9724}
9725
9726
9727SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9728 PyObject *resultobj = 0;
9729 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9730 wxRichTextRange *arg2 = 0 ;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 wxRichTextRange temp2 ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 char * kwnames[] = {
9737 (char *) "self",(char *) "range", NULL
9738 };
9739
9740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
9741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9742 if (!SWIG_IsOK(res1)) {
9743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9744 }
9745 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9746 {
9747 arg2 = &temp2;
9748 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
9749 }
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2);
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 resultobj = SWIG_Py_Void();
9757 return resultobj;
9758fail:
9759 return NULL;
9760}
9761
9762
9763SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj = 0;
9765 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9766 wxString *arg2 = 0 ;
9767 wxRichTextRange result;
9768 void *argp1 = 0 ;
9769 int res1 = 0 ;
9770 bool temp2 = false ;
9771 PyObject * obj0 = 0 ;
9772 PyObject * obj1 = 0 ;
9773 char * kwnames[] = {
9774 (char *) "self",(char *) "text", NULL
9775 };
9776
9777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail;
9778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9779 if (!SWIG_IsOK(res1)) {
9780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9781 }
9782 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9783 {
9784 arg2 = wxString_in_helper(obj1);
9785 if (arg2 == NULL) SWIG_fail;
9786 temp2 = true;
9787 }
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 result = (arg1)->AddParagraph((wxString const &)*arg2);
9791 wxPyEndAllowThreads(__tstate);
9792 if (PyErr_Occurred()) SWIG_fail;
9793 }
9794 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9795 {
9796 if (temp2)
9797 delete arg2;
9798 }
9799 return resultobj;
9800fail:
9801 {
9802 if (temp2)
9803 delete arg2;
9804 }
9805 return NULL;
9806}
9807
9808
9809SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj = 0;
9811 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9812 wxImage *arg2 = 0 ;
9813 wxRichTextRange result;
9814 void *argp1 = 0 ;
9815 int res1 = 0 ;
9816 void *argp2 = 0 ;
9817 int res2 = 0 ;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "self",(char *) "image", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9828 }
9829 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
9831 if (!SWIG_IsOK(res2)) {
9832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9833 }
9834 if (!argp2) {
9835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9836 }
9837 arg2 = reinterpret_cast< wxImage * >(argp2);
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 result = (arg1)->AddImage((wxImage const &)*arg2);
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9845 return resultobj;
9846fail:
9847 return NULL;
9848}
9849
9850
9851SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj = 0;
9853 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9854 bool arg2 = (bool) false ;
9855 bool result;
9856 void *argp1 = 0 ;
9857 int res1 = 0 ;
9858 bool val2 ;
9859 int ecode2 = 0 ;
9860 PyObject * obj0 = 0 ;
9861 PyObject * obj1 = 0 ;
9862 char * kwnames[] = {
9863 (char *) "self",(char *) "onlyVisibleRect", NULL
9864 };
9865
9866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail;
9867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9868 if (!SWIG_IsOK(res1)) {
9869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9870 }
9871 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9872 if (obj1) {
9873 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9874 if (!SWIG_IsOK(ecode2)) {
9875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'");
9876 }
9877 arg2 = static_cast< bool >(val2);
9878 }
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 result = (bool)(arg1)->LayoutContent(arg2);
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 {
9886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9887 }
9888 return resultobj;
9889fail:
9890 return NULL;
9891}
9892
9893
9894SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9895 PyObject *resultobj = 0;
9896 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9897 long arg2 ;
9898 bool arg3 = (bool) false ;
9899 bool result;
9900 void *argp1 = 0 ;
9901 int res1 = 0 ;
9902 long val2 ;
9903 int ecode2 = 0 ;
9904 bool val3 ;
9905 int ecode3 = 0 ;
9906 PyObject * obj0 = 0 ;
9907 PyObject * obj1 = 0 ;
9908 PyObject * obj2 = 0 ;
9909 char * kwnames[] = {
9910 (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL
9911 };
9912
9913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9915 if (!SWIG_IsOK(res1)) {
9916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9917 }
9918 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9919 ecode2 = SWIG_AsVal_long(obj1, &val2);
9920 if (!SWIG_IsOK(ecode2)) {
9921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'");
9922 }
9923 arg2 = static_cast< long >(val2);
9924 if (obj2) {
9925 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9926 if (!SWIG_IsOK(ecode3)) {
9927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'");
9928 }
9929 arg3 = static_cast< bool >(val3);
9930 }
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 result = (bool)(arg1)->MoveCaret(arg2,arg3);
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941fail:
9942 return NULL;
9943}
9944
9945
9946SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj = 0;
9948 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9949 int arg2 = (int) 1 ;
9950 int arg3 = (int) 0 ;
9951 bool result;
9952 void *argp1 = 0 ;
9953 int res1 = 0 ;
9954 int val2 ;
9955 int ecode2 = 0 ;
9956 int val3 ;
9957 int ecode3 = 0 ;
9958 PyObject * obj0 = 0 ;
9959 PyObject * obj1 = 0 ;
9960 PyObject * obj2 = 0 ;
9961 char * kwnames[] = {
9962 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
9963 };
9964
9965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9967 if (!SWIG_IsOK(res1)) {
9968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9969 }
9970 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9971 if (obj1) {
9972 ecode2 = SWIG_AsVal_int(obj1, &val2);
9973 if (!SWIG_IsOK(ecode2)) {
9974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'");
9975 }
9976 arg2 = static_cast< int >(val2);
9977 }
9978 if (obj2) {
9979 ecode3 = SWIG_AsVal_int(obj2, &val3);
9980 if (!SWIG_IsOK(ecode3)) {
9981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'");
9982 }
9983 arg3 = static_cast< int >(val3);
9984 }
9985 {
9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
9987 result = (bool)(arg1)->MoveRight(arg2,arg3);
9988 wxPyEndAllowThreads(__tstate);
9989 if (PyErr_Occurred()) SWIG_fail;
9990 }
9991 {
9992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9993 }
9994 return resultobj;
9995fail:
9996 return NULL;
9997}
9998
9999
10000SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10003 int arg2 = (int) 1 ;
10004 int arg3 = (int) 0 ;
10005 bool result;
10006 void *argp1 = 0 ;
10007 int res1 = 0 ;
10008 int val2 ;
10009 int ecode2 = 0 ;
10010 int val3 ;
10011 int ecode3 = 0 ;
10012 PyObject * obj0 = 0 ;
10013 PyObject * obj1 = 0 ;
10014 PyObject * obj2 = 0 ;
10015 char * kwnames[] = {
10016 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10017 };
10018
10019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10021 if (!SWIG_IsOK(res1)) {
10022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10023 }
10024 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10025 if (obj1) {
10026 ecode2 = SWIG_AsVal_int(obj1, &val2);
10027 if (!SWIG_IsOK(ecode2)) {
10028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'");
10029 }
10030 arg2 = static_cast< int >(val2);
10031 }
10032 if (obj2) {
10033 ecode3 = SWIG_AsVal_int(obj2, &val3);
10034 if (!SWIG_IsOK(ecode3)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'");
10036 }
10037 arg3 = static_cast< int >(val3);
10038 }
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (bool)(arg1)->MoveLeft(arg2,arg3);
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10047 }
10048 return resultobj;
10049fail:
10050 return NULL;
10051}
10052
10053
10054SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj = 0;
10056 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10057 int arg2 = (int) 1 ;
10058 int arg3 = (int) 0 ;
10059 bool result;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 int val2 ;
10063 int ecode2 = 0 ;
10064 int val3 ;
10065 int ecode3 = 0 ;
10066 PyObject * obj0 = 0 ;
10067 PyObject * obj1 = 0 ;
10068 PyObject * obj2 = 0 ;
10069 char * kwnames[] = {
10070 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10071 };
10072
10073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10075 if (!SWIG_IsOK(res1)) {
10076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10077 }
10078 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10079 if (obj1) {
10080 ecode2 = SWIG_AsVal_int(obj1, &val2);
10081 if (!SWIG_IsOK(ecode2)) {
10082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'");
10083 }
10084 arg2 = static_cast< int >(val2);
10085 }
10086 if (obj2) {
10087 ecode3 = SWIG_AsVal_int(obj2, &val3);
10088 if (!SWIG_IsOK(ecode3)) {
10089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'");
10090 }
10091 arg3 = static_cast< int >(val3);
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = (bool)(arg1)->MoveUp(arg2,arg3);
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 {
10100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10101 }
10102 return resultobj;
10103fail:
10104 return NULL;
10105}
10106
10107
10108SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj = 0;
10110 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10111 int arg2 = (int) 1 ;
10112 int arg3 = (int) 0 ;
10113 bool result;
10114 void *argp1 = 0 ;
10115 int res1 = 0 ;
10116 int val2 ;
10117 int ecode2 = 0 ;
10118 int val3 ;
10119 int ecode3 = 0 ;
10120 PyObject * obj0 = 0 ;
10121 PyObject * obj1 = 0 ;
10122 PyObject * obj2 = 0 ;
10123 char * kwnames[] = {
10124 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10125 };
10126
10127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10129 if (!SWIG_IsOK(res1)) {
10130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10131 }
10132 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10133 if (obj1) {
10134 ecode2 = SWIG_AsVal_int(obj1, &val2);
10135 if (!SWIG_IsOK(ecode2)) {
10136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'");
10137 }
10138 arg2 = static_cast< int >(val2);
10139 }
10140 if (obj2) {
10141 ecode3 = SWIG_AsVal_int(obj2, &val3);
10142 if (!SWIG_IsOK(ecode3)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'");
10144 }
10145 arg3 = static_cast< int >(val3);
10146 }
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 result = (bool)(arg1)->MoveDown(arg2,arg3);
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
10153 {
10154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10155 }
10156 return resultobj;
10157fail:
10158 return NULL;
10159}
10160
10161
10162SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = 0;
10164 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10165 int arg2 = (int) 0 ;
10166 bool result;
10167 void *argp1 = 0 ;
10168 int res1 = 0 ;
10169 int val2 ;
10170 int ecode2 = 0 ;
10171 PyObject * obj0 = 0 ;
10172 PyObject * obj1 = 0 ;
10173 char * kwnames[] = {
10174 (char *) "self",(char *) "flags", NULL
10175 };
10176
10177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10181 }
10182 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10183 if (obj1) {
10184 ecode2 = SWIG_AsVal_int(obj1, &val2);
10185 if (!SWIG_IsOK(ecode2)) {
10186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'");
10187 }
10188 arg2 = static_cast< int >(val2);
10189 }
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (bool)(arg1)->MoveToLineEnd(arg2);
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 {
10197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10198 }
10199 return resultobj;
10200fail:
10201 return NULL;
10202}
10203
10204
10205SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10206 PyObject *resultobj = 0;
10207 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10208 int arg2 = (int) 0 ;
10209 bool result;
10210 void *argp1 = 0 ;
10211 int res1 = 0 ;
10212 int val2 ;
10213 int ecode2 = 0 ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 char * kwnames[] = {
10217 (char *) "self",(char *) "flags", NULL
10218 };
10219
10220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail;
10221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10222 if (!SWIG_IsOK(res1)) {
10223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10224 }
10225 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10226 if (obj1) {
10227 ecode2 = SWIG_AsVal_int(obj1, &val2);
10228 if (!SWIG_IsOK(ecode2)) {
10229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'");
10230 }
10231 arg2 = static_cast< int >(val2);
10232 }
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = (bool)(arg1)->MoveToLineStart(arg2);
10236 wxPyEndAllowThreads(__tstate);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 {
10240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10241 }
10242 return resultobj;
10243fail:
10244 return NULL;
10245}
10246
10247
10248SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10249 PyObject *resultobj = 0;
10250 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10251 int arg2 = (int) 0 ;
10252 bool result;
10253 void *argp1 = 0 ;
10254 int res1 = 0 ;
10255 int val2 ;
10256 int ecode2 = 0 ;
10257 PyObject * obj0 = 0 ;
10258 PyObject * obj1 = 0 ;
10259 char * kwnames[] = {
10260 (char *) "self",(char *) "flags", NULL
10261 };
10262
10263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10265 if (!SWIG_IsOK(res1)) {
10266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10267 }
10268 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10269 if (obj1) {
10270 ecode2 = SWIG_AsVal_int(obj1, &val2);
10271 if (!SWIG_IsOK(ecode2)) {
10272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'");
10273 }
10274 arg2 = static_cast< int >(val2);
10275 }
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (bool)(arg1)->MoveToParagraphEnd(arg2);
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 {
10283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10284 }
10285 return resultobj;
10286fail:
10287 return NULL;
10288}
10289
10290
10291SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10292 PyObject *resultobj = 0;
10293 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10294 int arg2 = (int) 0 ;
10295 bool result;
10296 void *argp1 = 0 ;
10297 int res1 = 0 ;
10298 int val2 ;
10299 int ecode2 = 0 ;
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
10302 char * kwnames[] = {
10303 (char *) "self",(char *) "flags", NULL
10304 };
10305
10306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail;
10307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10308 if (!SWIG_IsOK(res1)) {
10309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10310 }
10311 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10312 if (obj1) {
10313 ecode2 = SWIG_AsVal_int(obj1, &val2);
10314 if (!SWIG_IsOK(ecode2)) {
10315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'");
10316 }
10317 arg2 = static_cast< int >(val2);
10318 }
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (bool)(arg1)->MoveToParagraphStart(arg2);
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 {
10326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10327 }
10328 return resultobj;
10329fail:
10330 return NULL;
10331}
10332
10333
10334SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj = 0;
10336 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10337 int arg2 = (int) 0 ;
10338 bool result;
10339 void *argp1 = 0 ;
10340 int res1 = 0 ;
10341 int val2 ;
10342 int ecode2 = 0 ;
10343 PyObject * obj0 = 0 ;
10344 PyObject * obj1 = 0 ;
10345 char * kwnames[] = {
10346 (char *) "self",(char *) "flags", NULL
10347 };
10348
10349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail;
10350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10351 if (!SWIG_IsOK(res1)) {
10352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10353 }
10354 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10355 if (obj1) {
10356 ecode2 = SWIG_AsVal_int(obj1, &val2);
10357 if (!SWIG_IsOK(ecode2)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'");
10359 }
10360 arg2 = static_cast< int >(val2);
10361 }
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 result = (bool)(arg1)->MoveHome(arg2);
10365 wxPyEndAllowThreads(__tstate);
10366 if (PyErr_Occurred()) SWIG_fail;
10367 }
10368 {
10369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10370 }
10371 return resultobj;
10372fail:
10373 return NULL;
10374}
10375
10376
10377SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10378 PyObject *resultobj = 0;
10379 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10380 int arg2 = (int) 0 ;
10381 bool result;
10382 void *argp1 = 0 ;
10383 int res1 = 0 ;
10384 int val2 ;
10385 int ecode2 = 0 ;
10386 PyObject * obj0 = 0 ;
10387 PyObject * obj1 = 0 ;
10388 char * kwnames[] = {
10389 (char *) "self",(char *) "flags", NULL
10390 };
10391
10392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10394 if (!SWIG_IsOK(res1)) {
10395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10396 }
10397 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10398 if (obj1) {
10399 ecode2 = SWIG_AsVal_int(obj1, &val2);
10400 if (!SWIG_IsOK(ecode2)) {
10401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'");
10402 }
10403 arg2 = static_cast< int >(val2);
10404 }
10405 {
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 result = (bool)(arg1)->MoveEnd(arg2);
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 {
10412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10413 }
10414 return resultobj;
10415fail:
10416 return NULL;
10417}
10418
10419
10420SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10423 int arg2 = (int) 1 ;
10424 int arg3 = (int) 0 ;
10425 bool result;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 int val2 ;
10429 int ecode2 = 0 ;
10430 int val3 ;
10431 int ecode3 = 0 ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 PyObject * obj2 = 0 ;
10435 char * kwnames[] = {
10436 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10437 };
10438
10439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10441 if (!SWIG_IsOK(res1)) {
10442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10443 }
10444 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10445 if (obj1) {
10446 ecode2 = SWIG_AsVal_int(obj1, &val2);
10447 if (!SWIG_IsOK(ecode2)) {
10448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'");
10449 }
10450 arg2 = static_cast< int >(val2);
10451 }
10452 if (obj2) {
10453 ecode3 = SWIG_AsVal_int(obj2, &val3);
10454 if (!SWIG_IsOK(ecode3)) {
10455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'");
10456 }
10457 arg3 = static_cast< int >(val3);
10458 }
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 result = (bool)(arg1)->PageUp(arg2,arg3);
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 {
10466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10467 }
10468 return resultobj;
10469fail:
10470 return NULL;
10471}
10472
10473
10474SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10475 PyObject *resultobj = 0;
10476 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10477 int arg2 = (int) 1 ;
10478 int arg3 = (int) 0 ;
10479 bool result;
10480 void *argp1 = 0 ;
10481 int res1 = 0 ;
10482 int val2 ;
10483 int ecode2 = 0 ;
10484 int val3 ;
10485 int ecode3 = 0 ;
10486 PyObject * obj0 = 0 ;
10487 PyObject * obj1 = 0 ;
10488 PyObject * obj2 = 0 ;
10489 char * kwnames[] = {
10490 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10491 };
10492
10493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10495 if (!SWIG_IsOK(res1)) {
10496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10497 }
10498 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10499 if (obj1) {
10500 ecode2 = SWIG_AsVal_int(obj1, &val2);
10501 if (!SWIG_IsOK(ecode2)) {
10502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'");
10503 }
10504 arg2 = static_cast< int >(val2);
10505 }
10506 if (obj2) {
10507 ecode3 = SWIG_AsVal_int(obj2, &val3);
10508 if (!SWIG_IsOK(ecode3)) {
10509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'");
10510 }
10511 arg3 = static_cast< int >(val3);
10512 }
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 result = (bool)(arg1)->PageDown(arg2,arg3);
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 {
10520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10521 }
10522 return resultobj;
10523fail:
10524 return NULL;
10525}
10526
10527
10528SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10529 PyObject *resultobj = 0;
10530 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10531 int arg2 = (int) 1 ;
10532 int arg3 = (int) 0 ;
10533 bool result;
10534 void *argp1 = 0 ;
10535 int res1 = 0 ;
10536 int val2 ;
10537 int ecode2 = 0 ;
10538 int val3 ;
10539 int ecode3 = 0 ;
10540 PyObject * obj0 = 0 ;
10541 PyObject * obj1 = 0 ;
10542 PyObject * obj2 = 0 ;
10543 char * kwnames[] = {
10544 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10545 };
10546
10547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10549 if (!SWIG_IsOK(res1)) {
10550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10551 }
10552 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10553 if (obj1) {
10554 ecode2 = SWIG_AsVal_int(obj1, &val2);
10555 if (!SWIG_IsOK(ecode2)) {
10556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'");
10557 }
10558 arg2 = static_cast< int >(val2);
10559 }
10560 if (obj2) {
10561 ecode3 = SWIG_AsVal_int(obj2, &val3);
10562 if (!SWIG_IsOK(ecode3)) {
10563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'");
10564 }
10565 arg3 = static_cast< int >(val3);
10566 }
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 result = (bool)(arg1)->WordLeft(arg2,arg3);
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 {
10574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10575 }
10576 return resultobj;
10577fail:
10578 return NULL;
10579}
10580
10581
10582SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10585 int arg2 = (int) 1 ;
10586 int arg3 = (int) 0 ;
10587 bool result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 int val2 ;
10591 int ecode2 = 0 ;
10592 int val3 ;
10593 int ecode3 = 0 ;
10594 PyObject * obj0 = 0 ;
10595 PyObject * obj1 = 0 ;
10596 PyObject * obj2 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10605 }
10606 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10607 if (obj1) {
10608 ecode2 = SWIG_AsVal_int(obj1, &val2);
10609 if (!SWIG_IsOK(ecode2)) {
10610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'");
10611 }
10612 arg2 = static_cast< int >(val2);
10613 }
10614 if (obj2) {
10615 ecode3 = SWIG_AsVal_int(obj2, &val3);
10616 if (!SWIG_IsOK(ecode3)) {
10617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'");
10618 }
10619 arg3 = static_cast< int >(val3);
10620 }
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = (bool)(arg1)->WordRight(arg2,arg3);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 {
10628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10629 }
10630 return resultobj;
10631fail:
10632 return NULL;
10633}
10634
10635
10636SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10637 PyObject *resultobj = 0;
10638 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10639 wxRichTextBuffer *result = 0 ;
10640 void *argp1 = 0 ;
10641 int res1 = 0 ;
10642 PyObject *swig_obj[1] ;
10643
10644 if (!args) SWIG_fail;
10645 swig_obj[0] = args;
10646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10647 if (!SWIG_IsOK(res1)) {
10648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10649 }
10650 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 {
10654 wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer();
10655 result = (wxRichTextBuffer *) &_result_ref;
10656 }
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 );
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10670 wxString *arg2 = 0 ;
10671 bool result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 bool temp2 = false ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "cmdName", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10685 }
10686 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10687 {
10688 arg2 = wxString_in_helper(obj1);
10689 if (arg2 == NULL) SWIG_fail;
10690 temp2 = true;
10691 }
10692 {
10693 PyThreadState* __tstate = wxPyBeginAllowThreads();
10694 result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2);
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 {
10699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10700 }
10701 {
10702 if (temp2)
10703 delete arg2;
10704 }
10705 return resultobj;
10706fail:
10707 {
10708 if (temp2)
10709 delete arg2;
10710 }
10711 return NULL;
10712}
10713
10714
10715SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10716 PyObject *resultobj = 0;
10717 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10718 bool result;
10719 void *argp1 = 0 ;
10720 int res1 = 0 ;
10721 PyObject *swig_obj[1] ;
10722
10723 if (!args) SWIG_fail;
10724 swig_obj[0] = args;
10725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10726 if (!SWIG_IsOK(res1)) {
10727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10728 }
10729 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 result = (bool)(arg1)->EndBatchUndo();
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 {
10737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10738 }
10739 return resultobj;
10740fail:
10741 return NULL;
10742}
10743
10744
10745SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10746 PyObject *resultobj = 0;
10747 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10748 bool result;
10749 void *argp1 = 0 ;
10750 int res1 = 0 ;
10751 PyObject *swig_obj[1] ;
10752
10753 if (!args) SWIG_fail;
10754 swig_obj[0] = args;
10755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10756 if (!SWIG_IsOK(res1)) {
10757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10758 }
10759 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo();
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 }
10766 {
10767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10768 }
10769 return resultobj;
10770fail:
10771 return NULL;
10772}
10773
10774
10775SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10776 PyObject *resultobj = 0;
10777 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10778 bool result;
10779 void *argp1 = 0 ;
10780 int res1 = 0 ;
10781 PyObject *swig_obj[1] ;
10782
10783 if (!args) SWIG_fail;
10784 swig_obj[0] = args;
10785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10786 if (!SWIG_IsOK(res1)) {
10787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10788 }
10789 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = (bool)(arg1)->BeginSuppressUndo();
10793 wxPyEndAllowThreads(__tstate);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 {
10797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10798 }
10799 return resultobj;
10800fail:
10801 return NULL;
10802}
10803
10804
10805SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10806 PyObject *resultobj = 0;
10807 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10808 bool result;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 PyObject *swig_obj[1] ;
10812
10813 if (!args) SWIG_fail;
10814 swig_obj[0] = args;
10815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10816 if (!SWIG_IsOK(res1)) {
10817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10818 }
10819 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10820 {
10821 PyThreadState* __tstate = wxPyBeginAllowThreads();
10822 result = (bool)(arg1)->EndSuppressUndo();
10823 wxPyEndAllowThreads(__tstate);
10824 if (PyErr_Occurred()) SWIG_fail;
10825 }
10826 {
10827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10828 }
10829 return resultobj;
10830fail:
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10836 PyObject *resultobj = 0;
10837 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10838 bool result;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 PyObject *swig_obj[1] ;
10842
10843 if (!args) SWIG_fail;
10844 swig_obj[0] = args;
10845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10846 if (!SWIG_IsOK(res1)) {
10847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10848 }
10849 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10850 {
10851 PyThreadState* __tstate = wxPyBeginAllowThreads();
10852 result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo();
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 {
10857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10858 }
10859 return resultobj;
10860fail:
10861 return NULL;
10862}
10863
10864
10865SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10866 PyObject *resultobj = 0;
10867 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10868 wxRichTextRange *arg2 = 0 ;
10869 wxRichTextAttr *arg3 = 0 ;
10870 bool result;
10871 void *argp1 = 0 ;
10872 int res1 = 0 ;
10873 wxRichTextRange temp2 ;
10874 void *argp3 = 0 ;
10875 int res3 = 0 ;
10876 PyObject * obj0 = 0 ;
10877 PyObject * obj1 = 0 ;
10878 PyObject * obj2 = 0 ;
10879 char * kwnames[] = {
10880 (char *) "self",(char *) "range",(char *) "style", NULL
10881 };
10882
10883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10885 if (!SWIG_IsOK(res1)) {
10886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10887 }
10888 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10889 {
10890 arg2 = &temp2;
10891 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10892 }
10893 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10894 if (!SWIG_IsOK(res3)) {
10895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10896 }
10897 if (!argp3) {
10898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10899 }
10900 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10901 {
10902 PyThreadState* __tstate = wxPyBeginAllowThreads();
10903 result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 {
10908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10909 }
10910 return resultobj;
10911fail:
10912 return NULL;
10913}
10914
10915
10916SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj = 0;
10918 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10919 wxRichTextRange *arg2 = 0 ;
10920 wxRichTextAttr *arg3 = 0 ;
10921 bool result;
10922 void *argp1 = 0 ;
10923 int res1 = 0 ;
10924 wxRichTextRange temp2 ;
10925 void *argp3 = 0 ;
10926 int res3 = 0 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 PyObject * obj2 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "range",(char *) "style", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10938 }
10939 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10940 {
10941 arg2 = &temp2;
10942 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10943 }
10944 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10945 if (!SWIG_IsOK(res3)) {
10946 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10947 }
10948 if (!argp3) {
10949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10950 }
10951 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10952 {
10953 PyThreadState* __tstate = wxPyBeginAllowThreads();
10954 result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10955 wxPyEndAllowThreads(__tstate);
10956 if (PyErr_Occurred()) SWIG_fail;
10957 }
10958 {
10959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10960 }
10961 return resultobj;
10962fail:
10963 return NULL;
10964}
10965
10966
10967SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10968 PyObject *resultobj = 0;
10969 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10970 bool result;
10971 void *argp1 = 0 ;
10972 int res1 = 0 ;
10973 PyObject *swig_obj[1] ;
10974
10975 if (!args) SWIG_fail;
10976 swig_obj[0] = args;
10977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10978 if (!SWIG_IsOK(res1)) {
10979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10980 }
10981 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionBold();
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 {
10989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10990 }
10991 return resultobj;
10992fail:
10993 return NULL;
10994}
10995
10996
10997SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10998 PyObject *resultobj = 0;
10999 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11000 bool result;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 PyObject *swig_obj[1] ;
11004
11005 if (!args) SWIG_fail;
11006 swig_obj[0] = args;
11007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11008 if (!SWIG_IsOK(res1)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11010 }
11011 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionItalics();
11015 wxPyEndAllowThreads(__tstate);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 }
11018 {
11019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11020 }
11021 return resultobj;
11022fail:
11023 return NULL;
11024}
11025
11026
11027SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11028 PyObject *resultobj = 0;
11029 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11030 bool result;
11031 void *argp1 = 0 ;
11032 int res1 = 0 ;
11033 PyObject *swig_obj[1] ;
11034
11035 if (!args) SWIG_fail;
11036 swig_obj[0] = args;
11037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11038 if (!SWIG_IsOK(res1)) {
11039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11040 }
11041 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11042 {
11043 PyThreadState* __tstate = wxPyBeginAllowThreads();
11044 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionUnderlined();
11045 wxPyEndAllowThreads(__tstate);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 {
11049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11050 }
11051 return resultobj;
11052fail:
11053 return NULL;
11054}
11055
11056
11057SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11058 PyObject *resultobj = 0;
11059 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11060 wxTextAttrAlignment arg2 ;
11061 bool result;
11062 void *argp1 = 0 ;
11063 int res1 = 0 ;
11064 int val2 ;
11065 int ecode2 = 0 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11068 char * kwnames[] = {
11069 (char *) "self",(char *) "alignment", NULL
11070 };
11071
11072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail;
11073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11074 if (!SWIG_IsOK(res1)) {
11075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11076 }
11077 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11078 ecode2 = SWIG_AsVal_int(obj1, &val2);
11079 if (!SWIG_IsOK(ecode2)) {
11080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11081 }
11082 arg2 = static_cast< wxTextAttrAlignment >(val2);
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionAligned(arg2);
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;
11093fail:
11094 return NULL;
11095}
11096
11097
11098SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11099 PyObject *resultobj = 0;
11100 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11101 bool result;
11102 void *argp1 = 0 ;
11103 int res1 = 0 ;
11104 PyObject *swig_obj[1] ;
11105
11106 if (!args) SWIG_fail;
11107 swig_obj[0] = args;
11108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11109 if (!SWIG_IsOK(res1)) {
11110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11111 }
11112 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 result = (bool)(arg1)->ApplyBoldToSelection();
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 {
11120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11121 }
11122 return resultobj;
11123fail:
11124 return NULL;
11125}
11126
11127
11128SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11129 PyObject *resultobj = 0;
11130 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11131 bool result;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 PyObject *swig_obj[1] ;
11135
11136 if (!args) SWIG_fail;
11137 swig_obj[0] = args;
11138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11139 if (!SWIG_IsOK(res1)) {
11140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11141 }
11142 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 result = (bool)(arg1)->ApplyItalicToSelection();
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 {
11150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11151 }
11152 return resultobj;
11153fail:
11154 return NULL;
11155}
11156
11157
11158SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11159 PyObject *resultobj = 0;
11160 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11161 bool result;
11162 void *argp1 = 0 ;
11163 int res1 = 0 ;
11164 PyObject *swig_obj[1] ;
11165
11166 if (!args) SWIG_fail;
11167 swig_obj[0] = args;
11168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11169 if (!SWIG_IsOK(res1)) {
11170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11171 }
11172 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 result = (bool)(arg1)->ApplyUnderlineToSelection();
11176 wxPyEndAllowThreads(__tstate);
11177 if (PyErr_Occurred()) SWIG_fail;
11178 }
11179 {
11180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11181 }
11182 return resultobj;
11183fail:
11184 return NULL;
11185}
11186
11187
11188SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj = 0;
11190 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11191 wxTextAttrAlignment arg2 ;
11192 bool result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 int val2 ;
11196 int ecode2 = 0 ;
11197 PyObject * obj0 = 0 ;
11198 PyObject * obj1 = 0 ;
11199 char * kwnames[] = {
11200 (char *) "self",(char *) "alignment", NULL
11201 };
11202
11203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail;
11204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11205 if (!SWIG_IsOK(res1)) {
11206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11207 }
11208 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11209 ecode2 = SWIG_AsVal_int(obj1, &val2);
11210 if (!SWIG_IsOK(ecode2)) {
11211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11212 }
11213 arg2 = static_cast< wxTextAttrAlignment >(val2);
11214 {
11215 PyThreadState* __tstate = wxPyBeginAllowThreads();
11216 result = (bool)(arg1)->ApplyAlignmentToSelection(arg2);
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11222 }
11223 return resultobj;
11224fail:
11225 return NULL;
11226}
11227
11228
11229SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj = 0;
11231 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11232 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ;
11233 void *argp1 = 0 ;
11234 int res1 = 0 ;
11235 void *argp2 = 0 ;
11236 int res2 = 0 ;
11237 PyObject * obj0 = 0 ;
11238 PyObject * obj1 = 0 ;
11239 char * kwnames[] = {
11240 (char *) "self",(char *) "styleSheet", NULL
11241 };
11242
11243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11245 if (!SWIG_IsOK(res1)) {
11246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11247 }
11248 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11250 if (!SWIG_IsOK(res2)) {
11251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11252 }
11253 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 (arg1)->SetStyleSheet(arg2);
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 resultobj = SWIG_Py_Void();
11261 return resultobj;
11262fail:
11263 return NULL;
11264}
11265
11266
11267SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11268 PyObject *resultobj = 0;
11269 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11270 wxRichTextStyleSheet *result = 0 ;
11271 void *argp1 = 0 ;
11272 int res1 = 0 ;
11273 PyObject *swig_obj[1] ;
11274
11275 if (!args) SWIG_fail;
11276 swig_obj[0] = args;
11277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11278 if (!SWIG_IsOK(res1)) {
11279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11280 }
11281 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet();
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11289 return resultobj;
11290fail:
11291 return NULL;
11292}
11293
11294
11295SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11296 PyObject *obj;
11297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11298 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj));
11299 return SWIG_Py_Void();
11300}
11301
11302SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11303 return SWIG_Python_InitShadowInstance(args);
11304}
11305
11306SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11307 PyObject *resultobj = 0;
11308 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11309 int arg2 = (int) 0 ;
11310 wxRichTextEvent *result = 0 ;
11311 int val1 ;
11312 int ecode1 = 0 ;
11313 int val2 ;
11314 int ecode2 = 0 ;
11315 PyObject * obj0 = 0 ;
11316 PyObject * obj1 = 0 ;
11317 char * kwnames[] = {
11318 (char *) "commandType",(char *) "winid", NULL
11319 };
11320
11321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11322 if (obj0) {
11323 ecode1 = SWIG_AsVal_int(obj0, &val1);
11324 if (!SWIG_IsOK(ecode1)) {
11325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
11326 }
11327 arg1 = static_cast< wxEventType >(val1);
11328 }
11329 if (obj1) {
11330 ecode2 = SWIG_AsVal_int(obj1, &val2);
11331 if (!SWIG_IsOK(ecode2)) {
11332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'");
11333 }
11334 arg2 = static_cast< int >(val2);
11335 }
11336 {
11337 PyThreadState* __tstate = wxPyBeginAllowThreads();
11338 result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2);
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 );
11343 return resultobj;
11344fail:
11345 return NULL;
11346}
11347
11348
11349SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11350 PyObject *resultobj = 0;
11351 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11352 int result;
11353 void *argp1 = 0 ;
11354 int res1 = 0 ;
11355 PyObject *swig_obj[1] ;
11356
11357 if (!args) SWIG_fail;
11358 swig_obj[0] = args;
11359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11360 if (!SWIG_IsOK(res1)) {
11361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11362 }
11363 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 result = (int)((wxRichTextEvent const *)arg1)->GetIndex();
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 resultobj = SWIG_From_int(static_cast< int >(result));
11371 return resultobj;
11372fail:
11373 return NULL;
11374}
11375
11376
11377SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj = 0;
11379 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11380 int arg2 ;
11381 void *argp1 = 0 ;
11382 int res1 = 0 ;
11383 int val2 ;
11384 int ecode2 = 0 ;
11385 PyObject * obj0 = 0 ;
11386 PyObject * obj1 = 0 ;
11387 char * kwnames[] = {
11388 (char *) "self",(char *) "n", NULL
11389 };
11390
11391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
11392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11395 }
11396 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11397 ecode2 = SWIG_AsVal_int(obj1, &val2);
11398 if (!SWIG_IsOK(ecode2)) {
11399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'");
11400 }
11401 arg2 = static_cast< int >(val2);
11402 {
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 (arg1)->SetIndex(arg2);
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 resultobj = SWIG_Py_Void();
11409 return resultobj;
11410fail:
11411 return NULL;
11412}
11413
11414
11415SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11416 PyObject *resultobj = 0;
11417 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11418 int result;
11419 void *argp1 = 0 ;
11420 int res1 = 0 ;
11421 PyObject *swig_obj[1] ;
11422
11423 if (!args) SWIG_fail;
11424 swig_obj[0] = args;
11425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11426 if (!SWIG_IsOK(res1)) {
11427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11428 }
11429 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 result = (int)((wxRichTextEvent const *)arg1)->GetFlags();
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 resultobj = SWIG_From_int(static_cast< int >(result));
11437 return resultobj;
11438fail:
11439 return NULL;
11440}
11441
11442
11443SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11444 PyObject *resultobj = 0;
11445 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11446 int arg2 ;
11447 void *argp1 = 0 ;
11448 int res1 = 0 ;
11449 int val2 ;
11450 int ecode2 = 0 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 char * kwnames[] = {
11454 (char *) "self",(char *) "flags", NULL
11455 };
11456
11457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11459 if (!SWIG_IsOK(res1)) {
11460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11461 }
11462 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11463 ecode2 = SWIG_AsVal_int(obj1, &val2);
11464 if (!SWIG_IsOK(ecode2)) {
11465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'");
11466 }
11467 arg2 = static_cast< int >(val2);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 (arg1)->SetFlags(arg2);
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 resultobj = SWIG_Py_Void();
11475 return resultobj;
11476fail:
11477 return NULL;
11478}
11479
11480
11481SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 PyObject *obj;
11483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11484 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj));
11485 return SWIG_Py_Void();
11486}
11487
11488SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 return SWIG_Python_InitShadowInstance(args);
11490}
11491
11492static PyMethodDef SwigMethods[] = {
11493 { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL},
11494 { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL},
11495 { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
11496 { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
11497 { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL},
11498 { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11499 { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL},
11500 { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL},
11501 { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11502 { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL},
11503 { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL},
11504 { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL},
11505 { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
11506 { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL},
11507 { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL},
11508 { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL},
11509 { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL},
11510 { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL},
11511 { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL},
11512 { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
11513 { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL},
11514 { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL},
11515 { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11516 { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11517 { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
11518 { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11519 { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
11520 { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11521 { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11522 { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11523 { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11524 { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL},
11525 { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
11526 { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
11527 { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11528 { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11529 { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11530 { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL},
11531 { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL},
11532 { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11533 { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11534 { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
11535 { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL},
11536 { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
11537 { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
11538 { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
11539 { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL},
11540 { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL},
11541 { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL},
11542 { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL},
11543 { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL},
11544 { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL},
11545 { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL},
11546 { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL},
11547 { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL},
11548 { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL},
11549 { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL},
11550 { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL},
11551 { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL},
11552 { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL},
11553 { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL},
11554 { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
11555 { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
11556 { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL},
11557 { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
11558 { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
11559 { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
11560 { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL},
11561 { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL},
11562 { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL},
11563 { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL},
11564 { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL},
11565 { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL},
11566 { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL},
11567 { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL},
11568 { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL},
11569 { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL},
11570 { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL},
11571 { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL},
11572 { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL},
11573 { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL},
11574 { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL},
11575 { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL},
11576 { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL},
11577 { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
11578 { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL},
11579 { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL},
11580 { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL},
11581 { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL},
11582 { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL},
11583 { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
11584 { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL},
11585 { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
11586 { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL},
11587 { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
11588 { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11589 { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
11590 { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
11591 { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL},
11592 { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL},
11593 { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL},
11594 { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL},
11595 { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL},
11596 { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL},
11597 { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL},
11598 { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL},
11599 { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL},
11600 { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
11601 { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL},
11602 { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL},
11603 { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
11604 { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
11605 { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
11606 { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
11607 { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL},
11608 { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL},
11609 { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
11610 { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
11611 { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
11612 { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11613 { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11614 { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11615 { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL},
11616 { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11617 { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
11618 { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11619 { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
11620 { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
11621 { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL},
11622 { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL},
11623 { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL},
11624 { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL},
11625 { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL},
11626 { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL},
11627 { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL},
11628 { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL},
11629 { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL},
11630 { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL},
11631 { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL},
11632 { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL},
11633 { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
11634 { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL},
11635 { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL},
11636 { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL},
11637 { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11638 { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL},
11639 { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
11640 { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL},
11641 { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL},
11642 { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
11643 { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL},
11644 { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL},
11645 { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL},
11646 { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11647 { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL},
11648 { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL},
11649 { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL},
11650 { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL},
11651 { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL},
11652 { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL},
11653 { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL},
11654 { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL},
11655 { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11656 { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL},
11657 { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL},
11658 { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL},
11659 { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11660 { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL},
11661 { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11662 { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL},
11663 { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11664 { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL},
11665 { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11666 { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL},
11667 { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11668 { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL},
11669 { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11670 { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL},
11671 { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11672 { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL},
11673 { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11674 { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL},
11675 { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11676 { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL},
11677 { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11678 { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL},
11679 { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL},
11680 { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL},
11681 { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL},
11682 { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
11683 { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL},
11684 { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL},
11685 { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL},
11686 { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL},
11687 { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL},
11688 { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11689 { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL},
11690 { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL},
11691 { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11692 { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL},
11693 { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11694 { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL},
11695 { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL},
11696 { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11697 { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
11698 { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
11699 { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11700 { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL},
11701 { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL},
11702 { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL},
11703 { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL},
11704 { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL},
11705 { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL},
11706 { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL},
11707 { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL},
11708 { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11709 { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11710 { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL},
11711 { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL},
11712 { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL},
11713 { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL},
11714 { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL},
11715 { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL},
11716 { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL},
11717 { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11718 { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
11719 { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL},
11720 { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL},
11721 { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL},
11722 { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
11723 { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL},
11724 { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
11725 { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL},
11726 { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11727 { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL},
11728 { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL},
11729 { NULL, NULL, 0, NULL }
11730};
11731
11732
11733/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
11734
11735static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
11736 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
11737}
11738static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
11739 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
11740}
11741static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
11742 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11743}
11744static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
11745 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11746}
11747static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
11748 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11749}
11750static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
11751 return (void *)((wxPanel *) ((wxPyPanel *) x));
11752}
11753static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) {
11754 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x));
11755}
11756static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
11757 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
11758}
11759static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
11760 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
11761}
11762static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
11763 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11764}
11765static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) {
11766 return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x));
11767}
11768static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
11769 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
11770}
11771static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
11772 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11773}
11774static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) {
11775 return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x));
11776}
11777static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
11778 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
11779}
11780static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
11781 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
11782}
11783static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
11784 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
11785}
11786static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
11787 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
11788}
11789static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
11790 return (void *)((wxWindow *) ((wxMenuBar *) x));
11791}
11792static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
11793 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
11794}
11795static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
11796 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
11797}
11798static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
11799 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
11800}
11801static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) {
11802 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
11803}
11804static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
11805 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
11806}
11807static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
11808 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
11809}
11810static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
11811 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
11812}
11813static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
11814 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
11815}
11816static void *_p_wxPanelTo_p_wxWindow(void *x) {
11817 return (void *)((wxWindow *) ((wxPanel *) x));
11818}
11819static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
11820 return (void *)((wxWindow *) ((wxStatusBar *) x));
11821}
11822static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
11823 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
11824}
11825static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
11826 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
11827}
11828static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
11829 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
11830}
11831static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
11832 return (void *)((wxWindow *) ((wxPopupWindow *) x));
11833}
11834static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
11835 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
11836}
11837static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
11838 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
11839}
11840static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
11841 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
11842}
11843static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
11844 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
11845}
11846static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
11847 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
11848}
11849static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
11850 return (void *)((wxWindow *) ((wxSashWindow *) x));
11851}
11852static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
11853 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
11854}
11855static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
11856 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11857}
11858static void *_p_wxControlTo_p_wxWindow(void *x) {
11859 return (void *)((wxWindow *) ((wxControl *) x));
11860}
11861static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
11862 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
11863}
11864static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
11865 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
11866}
11867static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
11868 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
11869}
11870static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
11871 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
11872}
11873static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
11874 return (void *)((wxWindow *) ((wxPyWindow *) x));
11875}
11876static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
11877 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
11878}
11879static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
11880 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11881}
11882static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
11883 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11884}
11885static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
11886 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
11887}
11888static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
11889 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11890}
11891static void *_p_wxFrameTo_p_wxWindow(void *x) {
11892 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
11893}
11894static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
11895 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
11896}
11897static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
11898 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
11899}
11900static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
11901 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
11902}
11903static void *_p_wxDialogTo_p_wxWindow(void *x) {
11904 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
11905}
11906static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
11907 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
11908}
11909static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) {
11910 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
11911}
11912static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
11913 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
11914}
11915static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
11916 return (void *)((wxEvent *) ((wxMenuEvent *) x));
11917}
11918static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
11919 return (void *)((wxEvent *) ((wxCloseEvent *) x));
11920}
11921static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
11922 return (void *)((wxEvent *) ((wxMouseEvent *) x));
11923}
11924static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
11925 return (void *)((wxEvent *) ((wxEraseEvent *) x));
11926}
11927static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
11928 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
11929}
11930static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
11931 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
11932}
11933static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
11934 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
11935}
11936static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
11937 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
11938}
11939static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
11940 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
11941}
11942static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
11943 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
11944}
11945static void *_p_wxPyEventTo_p_wxEvent(void *x) {
11946 return (void *)((wxEvent *) ((wxPyEvent *) x));
11947}
11948static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
11949 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
11950}
11951static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
11952 return (void *)((wxEvent *) ((wxIdleEvent *) x));
11953}
11954static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
11955 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
11956}
11957static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
11958 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
11959}
11960static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
11961 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
11962}
11963static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
11964 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
11965}
11966static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
11967 return (void *)((wxEvent *) ((wxActivateEvent *) x));
11968}
11969static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
11970 return (void *)((wxEvent *) ((wxSizeEvent *) x));
11971}
11972static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
11973 return (void *)((wxEvent *) ((wxMoveEvent *) x));
11974}
11975static void *_p_wxDateEventTo_p_wxEvent(void *x) {
11976 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
11977}
11978static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
11979 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
11980}
11981static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
11982 return (void *)((wxEvent *) ((wxPaintEvent *) x));
11983}
11984static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
11985 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
11986}
11987static void *_p_wxRichTextEventTo_p_wxEvent(void *x) {
11988 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
11989}
11990static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
11991 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
11992}
11993static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
11994 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
11995}
11996static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
11997 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
11998}
11999static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
12000 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12001}
12002static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
12003 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
12004}
12005static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
12006 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
12007}
12008static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
12009 return (void *)((wxEvent *) ((wxFocusEvent *) x));
12010}
12011static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
12012 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
12013}
12014static void *_p_wxSashEventTo_p_wxEvent(void *x) {
12015 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
12016}
12017static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
12018 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12019}
12020static void *_p_wxShowEventTo_p_wxEvent(void *x) {
12021 return (void *)((wxEvent *) ((wxShowEvent *) x));
12022}
12023static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
12024 return (void *)((wxEvent *) ((wxCommandEvent *) x));
12025}
12026static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
12027 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
12028}
12029static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
12030 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12031}
12032static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
12033 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
12034}
12035static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
12036 return (void *)((wxEvent *) ((wxKeyEvent *) x));
12037}
12038static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
12039 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
12040}
12041static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
12042 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
12043}
453fb36b
RD
12044static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
12045 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
f05326ba 12046}
453fb36b
RD
12047static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
12048 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
f05326ba
RD
12049}
12050static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
12051 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12052}
453fb36b
RD
12053static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
12054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
f05326ba 12055}
453fb36b
RD
12056static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
12057 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
f05326ba 12058}
453fb36b
RD
12059static void *_p_wxSizerItemTo_p_wxObject(void *x) {
12060 return (void *)((wxObject *) ((wxSizerItem *) x));
f05326ba 12061}
453fb36b
RD
12062static void *_p_wxScrollEventTo_p_wxObject(void *x) {
12063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
f05326ba 12064}
453fb36b
RD
12065static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
12066 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
f05326ba 12067}
453fb36b
RD
12068static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
12069 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
f05326ba 12070}
453fb36b
RD
12071static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
12072 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
f05326ba 12073}
453fb36b
RD
12074static void *_p_wxSizerTo_p_wxObject(void *x) {
12075 return (void *)((wxObject *) ((wxSizer *) x));
f05326ba 12076}
453fb36b
RD
12077static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
12078 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
f05326ba 12079}
453fb36b
RD
12080static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
12081 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
f05326ba 12082}
453fb36b
RD
12083static void *_p_wxPyPanelTo_p_wxObject(void *x) {
12084 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
f05326ba 12085}
453fb36b
RD
12086static void *_p_wxEventTo_p_wxObject(void *x) {
12087 return (void *)((wxObject *) ((wxEvent *) x));
f05326ba 12088}
453fb36b
RD
12089static void *_p_wxFontDataTo_p_wxObject(void *x) {
12090 return (void *)((wxObject *) ((wxFontData *) x));
f05326ba 12091}
453fb36b
RD
12092static void *_p_wxPrintDataTo_p_wxObject(void *x) {
12093 return (void *)((wxObject *) ((wxPrintData *) x));
f05326ba 12094}
453fb36b
RD
12095static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
12096 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
f05326ba 12097}
453fb36b
RD
12098static void *_p_wxGridSizerTo_p_wxObject(void *x) {
12099 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
f05326ba 12100}
453fb36b
RD
12101static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
12102 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
f05326ba 12103}
453fb36b
RD
12104static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
12105 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
f05326ba 12106}
453fb36b
RD
12107static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) {
12108 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x));
f05326ba 12109}
453fb36b
RD
12110static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
12111 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
f05326ba 12112}
453fb36b
RD
12113static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
12114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
f05326ba 12115}
453fb36b
RD
12116static void *_p_wxPaintEventTo_p_wxObject(void *x) {
12117 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
f05326ba 12118}
453fb36b
RD
12119static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
12120 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
f05326ba 12121}
453fb36b
RD
12122static void *_p_wxRichTextEventTo_p_wxObject(void *x) {
12123 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
f05326ba 12124}
453fb36b
RD
12125static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
12126 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
f05326ba 12127}
453fb36b
RD
12128static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
12129 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
f05326ba 12130}
453fb36b
RD
12131static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
12132 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
f05326ba 12133}
453fb36b
RD
12134static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
12135 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
f05326ba 12136}
453fb36b
RD
12137static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
12138 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
f05326ba
RD
12139}
12140static void *_p_wxControlTo_p_wxObject(void *x) {
12141 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
12142}
453fb36b
RD
12143static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
12144 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
f05326ba 12145}
453fb36b
RD
12146static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
12147 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
f05326ba 12148}
453fb36b
RD
12149static void *_p_wxFSFileTo_p_wxObject(void *x) {
12150 return (void *)((wxObject *) ((wxFSFile *) x));
f05326ba 12151}
453fb36b
RD
12152static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
12153 return (void *)((wxObject *) ((wxFindReplaceData *) x));
f05326ba 12154}
453fb36b
RD
12155static void *_p_wxPySizerTo_p_wxObject(void *x) {
12156 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
f05326ba
RD
12157}
12158static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
12159 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12160}
453fb36b
RD
12161static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) {
12162 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
f05326ba 12163}
453fb36b
RD
12164static void *_p_wxColourDataTo_p_wxObject(void *x) {
12165 return (void *)((wxObject *) ((wxColourData *) x));
f05326ba 12166}
453fb36b
RD
12167static void *_p_wxPyEventTo_p_wxObject(void *x) {
12168 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
f05326ba 12169}
453fb36b
RD
12170static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
12171 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
f05326ba 12172}
453fb36b
RD
12173static void *_p_wxPyWindowTo_p_wxObject(void *x) {
12174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
f05326ba
RD
12175}
12176static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
12177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12178}
453fb36b
RD
12179static void *_p_wxFileDialogTo_p_wxObject(void *x) {
12180 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
f05326ba 12181}
453fb36b
RD
12182static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
12183 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
f05326ba 12184}
453fb36b
RD
12185static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
12186 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
f05326ba 12187}
453fb36b
RD
12188static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
12189 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
f05326ba 12190}
453fb36b
RD
12191static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) {
12192 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
f05326ba 12193}
453fb36b
RD
12194static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
12195 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
f05326ba 12196}
453fb36b
RD
12197static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
12198 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
f05326ba 12199}
453fb36b
RD
12200static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
12201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
f05326ba 12202}
453fb36b
RD
12203static void *_p_wxShowEventTo_p_wxObject(void *x) {
12204 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
f05326ba 12205}
453fb36b
RD
12206static void *_p_wxPrinterTo_p_wxObject(void *x) {
12207 return (void *)((wxObject *) ((wxPrinter *) x));
f05326ba 12208}
453fb36b
RD
12209static void *_p_wxMenuItemTo_p_wxObject(void *x) {
12210 return (void *)((wxObject *) ((wxMenuItem *) x));
f05326ba 12211}
453fb36b
RD
12212static void *_p_wxDateEventTo_p_wxObject(void *x) {
12213 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
f05326ba 12214}
453fb36b
RD
12215static void *_p_wxIdleEventTo_p_wxObject(void *x) {
12216 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
f05326ba 12217}
453fb36b
RD
12218static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
12219 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
f05326ba 12220}
453fb36b
RD
12221static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
12222 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
f05326ba 12223}
453fb36b
RD
12224static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
12225 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
f05326ba 12226}
453fb36b
RD
12227static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
12228 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
f05326ba 12229}
453fb36b
RD
12230static void *_p_wxSizeEventTo_p_wxObject(void *x) {
12231 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
f05326ba 12232}
453fb36b
RD
12233static void *_p_wxMoveEventTo_p_wxObject(void *x) {
12234 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
f05326ba 12235}
453fb36b
RD
12236static void *_p_wxActivateEventTo_p_wxObject(void *x) {
12237 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
f05326ba 12238}
453fb36b
RD
12239static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
12240 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
f05326ba 12241}
453fb36b
RD
12242static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
12243 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
f05326ba 12244}
453fb36b
RD
12245static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
12246 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
f05326ba 12247}
453fb36b
RD
12248static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
12249 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
f05326ba 12250}
453fb36b
RD
12251static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
12252 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
f05326ba 12253}
453fb36b
RD
12254static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
12255 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
f05326ba 12256}
453fb36b
RD
12257static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
12258 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
f05326ba 12259}
453fb36b
RD
12260static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
12261 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
f05326ba 12262}
453fb36b
RD
12263static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
12264 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
f05326ba 12265}
453fb36b
RD
12266static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
12267 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
f05326ba 12268}
453fb36b
RD
12269static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
12270 return (void *)((wxObject *) ((wxImageHandler *) x));
f05326ba
RD
12271}
12272static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
12273 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
12274}
453fb36b
RD
12275static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
12276 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
f05326ba 12277}
453fb36b
RD
12278static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
12279 return (void *)((wxObject *) ((wxEvtHandler *) x));
f05326ba 12280}
453fb36b
RD
12281static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
12282 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
f05326ba 12283}
453fb36b
RD
12284static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
12285 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
f05326ba 12286}
453fb36b
RD
12287static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
12288 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
f05326ba 12289}
453fb36b
RD
12290static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
12291 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
f05326ba 12292}
453fb36b
RD
12293static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
12294 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
f05326ba 12295}
453fb36b
RD
12296static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
12297 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
f05326ba 12298}
453fb36b
RD
12299static void *_p_wxImageTo_p_wxObject(void *x) {
12300 return (void *)((wxObject *) ((wxImage *) x));
f05326ba 12301}
453fb36b
RD
12302static void *_p_wxFrameTo_p_wxObject(void *x) {
12303 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
f05326ba 12304}
453fb36b
RD
12305static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
12306 return (void *)((wxObject *) ((wxPyPrintout *) x));
f05326ba 12307}
453fb36b
RD
12308static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
12309 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
f05326ba 12310}
453fb36b
RD
12311static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
12312 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
f05326ba 12313}
453fb36b
RD
12314static void *_p_wxStatusBarTo_p_wxObject(void *x) {
12315 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
f05326ba 12316}
453fb36b
RD
12317static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
12318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
f05326ba 12319}
453fb36b
RD
12320static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
12321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
f05326ba 12322}
453fb36b
RD
12323static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
12324 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
f05326ba 12325}
453fb36b
RD
12326static void *_p_wxKeyEventTo_p_wxObject(void *x) {
12327 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
f05326ba 12328}
453fb36b
RD
12329static void *_p_wxWindowTo_p_wxObject(void *x) {
12330 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
f05326ba 12331}
453fb36b
RD
12332static void *_p_wxMenuTo_p_wxObject(void *x) {
12333 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
f05326ba 12334}
453fb36b
RD
12335static void *_p_wxMenuBarTo_p_wxObject(void *x) {
12336 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
12337}
12338static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
12339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
f05326ba
RD
12340}
12341static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
12342 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
12343}
453fb36b
RD
12344static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
12345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
f05326ba 12346}
453fb36b
RD
12347static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
12348 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
f05326ba 12349}
453fb36b
RD
12350static void *_p_wxSashWindowTo_p_wxObject(void *x) {
12351 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
f05326ba 12352}
453fb36b
RD
12353static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
12354 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
f05326ba 12355}
453fb36b
RD
12356static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
12357 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
f05326ba 12358}
453fb36b
RD
12359static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
12360 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
f05326ba 12361}
453fb36b
RD
12362static void *_p_wxTipWindowTo_p_wxObject(void *x) {
12363 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
f05326ba 12364}
453fb36b
RD
12365static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
12366 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
f05326ba 12367}
453fb36b
RD
12368static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
12369 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
f05326ba 12370}
453fb36b
RD
12371static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
12372 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
f05326ba 12373}
453fb36b
RD
12374static void *_p_wxSashEventTo_p_wxObject(void *x) {
12375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
f05326ba 12376}
453fb36b
RD
12377static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
12378 return (void *)((wxObject *) ((wxPrintPreview *) x));
f05326ba 12379}
453fb36b
RD
12380static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
12381 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
f05326ba 12382}
453fb36b
RD
12383static void *_p_wxPanelTo_p_wxObject(void *x) {
12384 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
f05326ba 12385}
453fb36b
RD
12386static void *_p_wxDialogTo_p_wxObject(void *x) {
12387 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
f05326ba 12388}
453fb36b
RD
12389static void *_p_wxColourDialogTo_p_wxObject(void *x) {
12390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
f05326ba 12391}
453fb36b
RD
12392static void *_p_wxDirDialogTo_p_wxObject(void *x) {
12393 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
f05326ba 12394}
453fb36b
RD
12395static void *_p_wxFontDialogTo_p_wxObject(void *x) {
12396 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
f05326ba 12397}
453fb36b
RD
12398static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
12399 return (void *)((wxObject *) ((wxPageSetupDialog *) x));
f05326ba 12400}
453fb36b
RD
12401static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
12402 return (void *)((wxObject *) ((wxPrintDialog *) x));
f05326ba 12403}
453fb36b
RD
12404static void *_p_wxFileSystemTo_p_wxObject(void *x) {
12405 return (void *)((wxObject *) ((wxFileSystem *) x));
f05326ba 12406}
453fb36b
RD
12407static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
12408 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
f05326ba 12409}
453fb36b
RD
12410static void *_p_wxMenuEventTo_p_wxObject(void *x) {
12411 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
f05326ba 12412}
453fb36b
RD
12413static void *_p_wxPyAppTo_p_wxObject(void *x) {
12414 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
f05326ba 12415}
453fb36b
RD
12416static void *_p_wxCloseEventTo_p_wxObject(void *x) {
12417 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
f05326ba 12418}
453fb36b
RD
12419static void *_p_wxMouseEventTo_p_wxObject(void *x) {
12420 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
f05326ba 12421}
453fb36b
RD
12422static void *_p_wxEraseEventTo_p_wxObject(void *x) {
12423 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
f05326ba 12424}
453fb36b
RD
12425static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
12426 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
f05326ba
RD
12427}
12428static void *_p_wxCommandEventTo_p_wxObject(void *x) {
12429 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
12430}
453fb36b
RD
12431static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
12432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
f05326ba 12433}
453fb36b
RD
12434static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
12435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
f05326ba 12436}
453fb36b
RD
12437static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
12438 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
f05326ba
RD
12439}
12440static void *_p_wxFocusEventTo_p_wxObject(void *x) {
12441 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
12442}
453fb36b
RD
12443static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
12444 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
f05326ba 12445}
453fb36b
RD
12446static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
12447 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
f05326ba 12448}
453fb36b
RD
12449static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
12450 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
12451}
12452static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
12453 return (void *)((wxObject *) ((wxPrintDialogData *) x));
12454}
12455static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
12456 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
12457}
12458static void *_p_wxValidatorTo_p_wxObject(void *x) {
12459 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
f05326ba
RD
12460}
12461static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
12462 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12463}
12464static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
12465 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12466}
12467static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
12468 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12469}
12470static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
12471 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
12472}
12473static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
12474 return (void *)((wxEvtHandler *) ((wxValidator *) x));
12475}
12476static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
12477 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
12478}
12479static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
12480 return (void *)((wxEvtHandler *) ((wxMenu *) x));
12481}
12482static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) {
12483 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12484}
12485static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
12486 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12487}
12488static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
12489 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12490}
12491static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
12492 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12493}
12494static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
12495 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12496}
12497static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
12498 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12499}
12500static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
12501 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12502}
12503static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
12504 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12505}
12506static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
12507 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
12508}
12509static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
12510 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
12511}
12512static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
12513 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12514}
12515static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
12516 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
12517}
12518static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
12519 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12520}
12521static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
12522 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
12523}
12524static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
12525 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12526}
12527static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
12528 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
12529}
12530static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
12531 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
12532}
12533static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
12534 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
12535}
12536static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
12537 return (void *)((wxEvtHandler *) ((wxWindow *) x));
12538}
12539static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
12540 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12541}
12542static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
12543 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
12544}
12545static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
12546 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
12547}
12548static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
12549 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12550}
12551static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
12552 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
12553}
12554static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
12555 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12556}
12557static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
12558 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12559}
12560static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
12561 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12562}
12563static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
12564 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
12565}
12566static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
12567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12568}
12569static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
12570 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
12571}
12572static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
12573 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12574}
12575static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
12576 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12577}
12578static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
12579 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12580}
12581static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
12582 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12583}
12584static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
12585 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12586}
12587static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) {
12588 return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12589}
12590static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
12591 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12592}
12593static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
12594 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12595}
12596static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
12597 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12598}
12599static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
12600 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12601}
12602static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
12603 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12604}
12605static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
12606 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12607}
12608static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) {
12609 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12610}
12611static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
12612 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
12613}
12614static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
12615 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12616}
12617static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
12618 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
12619}
12620static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) {
12621 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x));
12622}
12623static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
12624 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
12625}
12626static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
12627 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
12628}
12629static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
12630 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
12631}
12632static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
12633 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
12634}
12635static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
12636 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
12637}
12638static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
12639 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
12640}
12641static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
12642 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
12643}
12644static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
12645 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
12646}
12647static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
12648 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
12649}
12650static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
12651 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
12652}
12653static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12654static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
12655static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
12656static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
12657static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
12658static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
12659static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
12660static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
12661static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
12662static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
12663static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
12664static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
12665static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0};
12666static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
12667static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0};
12668static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
12669static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
12670static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
12671static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
12672static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
12673static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
12674static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
12675static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0};
12676static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
12677static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
12678static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
12679static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
12680static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
12681static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
12682static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
12683static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
12684static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
12685static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
12686static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0};
12687static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
12688static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
12689static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
12690static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
12691static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
12692static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
12693static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
12694static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
12695static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
12696static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
12697static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
12698static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
12699static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
12700static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
12701static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
12702static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0};
12703static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
12704static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
12705static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
12706static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
12707static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0};
12708static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
12709static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0};
12710static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0};
12711static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0};
12712static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
12713static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
12714static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
12715static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0};
12716static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0};
12717static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0};
12718static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0};
12719static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0};
12720static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0};
12721static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0};
12722static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0};
12723static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0};
12724static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0};
12725static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0};
12726static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0};
12727static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0};
12728static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0};
12729static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0};
12730static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0};
12731static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0};
12732static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0};
12733static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0};
12734static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0};
12735static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0};
12736static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0};
12737static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
12738static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0};
12739static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
12740static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
12741static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0};
12742static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0};
12743static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0};
12744static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0};
12745static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0};
12746static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0};
12747static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0};
12748static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0};
12749static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0};
12750static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0};
12751static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0};
12752static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0};
12753static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
12754static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0};
12755static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
12756static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
12757static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
12758static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
f05326ba 12759static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
453fb36b
RD
12760static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
12761static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
12762static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
f05326ba 12763static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
453fb36b
RD
12764static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
12765static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
f05326ba 12766static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
453fb36b
RD
12767static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0};
12768static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0};
12769static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
12770static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
12771static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0};
f05326ba 12772static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
453fb36b
RD
12773static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0};
12774static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
12775static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0};
12776static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0};
12777static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
f05326ba
RD
12778static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
12779static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
12780static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
12781static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
12782static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
12783static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
12784static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
12785static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
453fb36b
RD
12786static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
12787static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
12788static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
12789static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
12790static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
12791static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
12792static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
12793static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0};
12794static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0};
12795static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0};
12796static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0};
12797static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0};
12798static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
12799static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0};
12800static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0};
f05326ba
RD
12801static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
12802static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
12803static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0};
12804static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0};
12805static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0};
12806static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0};
12807static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0};
12808static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0};
12809static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0};
12810static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0};
12811static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0};
12812static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0};
12813static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
12814
12815static swig_type_info *swig_type_initial[] = {
12816 &_swigt__p_char,
12817 &_swigt__p_form_ops_t,
12818 &_swigt__p_int,
12819 &_swigt__p_long,
12820 &_swigt__p_unsigned_char,
12821 &_swigt__p_unsigned_int,
12822 &_swigt__p_unsigned_long,
12823 &_swigt__p_wxANIHandler,
12824 &_swigt__p_wxAcceleratorTable,
12825 &_swigt__p_wxActivateEvent,
12826 &_swigt__p_wxArrayInt,
12827 &_swigt__p_wxBMPHandler,
12828 &_swigt__p_wxBitmap,
12829 &_swigt__p_wxBoxSizer,
f05326ba
RD
12830 &_swigt__p_wxCURHandler,
12831 &_swigt__p_wxCalculateLayoutEvent,
12832 &_swigt__p_wxChar,
12833 &_swigt__p_wxChildFocusEvent,
f05326ba
RD
12834 &_swigt__p_wxClipboardTextEvent,
12835 &_swigt__p_wxCloseEvent,
12836 &_swigt__p_wxColour,
12837 &_swigt__p_wxColourData,
12838 &_swigt__p_wxColourDialog,
12839 &_swigt__p_wxCommandEvent,
12840 &_swigt__p_wxContextMenuEvent,
12841 &_swigt__p_wxControl,
12842 &_swigt__p_wxControlWithItems,
f05326ba
RD
12843 &_swigt__p_wxDateEvent,
12844 &_swigt__p_wxDialog,
12845 &_swigt__p_wxDirDialog,
12846 &_swigt__p_wxDisplayChangedEvent,
12847 &_swigt__p_wxDropFilesEvent,
12848 &_swigt__p_wxDuplexMode,
f05326ba
RD
12849 &_swigt__p_wxEraseEvent,
12850 &_swigt__p_wxEvent,
12851 &_swigt__p_wxEvtHandler,
12852 &_swigt__p_wxFSFile,
12853 &_swigt__p_wxFileDialog,
12854 &_swigt__p_wxFileSystem,
12855 &_swigt__p_wxFindDialogEvent,
12856 &_swigt__p_wxFindReplaceData,
12857 &_swigt__p_wxFindReplaceDialog,
12858 &_swigt__p_wxFlexGridSizer,
12859 &_swigt__p_wxFocusEvent,
12860 &_swigt__p_wxFont,
12861 &_swigt__p_wxFontData,
12862 &_swigt__p_wxFontDialog,
12863 &_swigt__p_wxFrame,
12864 &_swigt__p_wxGBSizerItem,
f05326ba
RD
12865 &_swigt__p_wxGIFHandler,
12866 &_swigt__p_wxGridBagSizer,
12867 &_swigt__p_wxGridSizer,
12868 &_swigt__p_wxICOHandler,
f05326ba
RD
12869 &_swigt__p_wxIconizeEvent,
12870 &_swigt__p_wxIdleEvent,
12871 &_swigt__p_wxImage,
12872 &_swigt__p_wxImageHandler,
f05326ba
RD
12873 &_swigt__p_wxIndividualLayoutConstraint,
12874 &_swigt__p_wxInitDialogEvent,
12875 &_swigt__p_wxJPEGHandler,
12876 &_swigt__p_wxKeyEvent,
12877 &_swigt__p_wxLayoutAlgorithm,
12878 &_swigt__p_wxLayoutConstraints,
12879 &_swigt__p_wxMDIChildFrame,
12880 &_swigt__p_wxMDIClientWindow,
12881 &_swigt__p_wxMDIParentFrame,
f05326ba 12882 &_swigt__p_wxMaximizeEvent,
f05326ba
RD
12883 &_swigt__p_wxMenu,
12884 &_swigt__p_wxMenuBar,
12885 &_swigt__p_wxMenuEvent,
12886 &_swigt__p_wxMenuItem,
12887 &_swigt__p_wxMessageDialog,
f05326ba 12888 &_swigt__p_wxMiniFrame,
f05326ba
RD
12889 &_swigt__p_wxMouseCaptureChangedEvent,
12890 &_swigt__p_wxMouseEvent,
12891 &_swigt__p_wxMoveEvent,
12892 &_swigt__p_wxMultiChoiceDialog,
12893 &_swigt__p_wxNavigationKeyEvent,
12894 &_swigt__p_wxNcPaintEvent,
12895 &_swigt__p_wxNotifyEvent,
12896 &_swigt__p_wxObject,
12897 &_swigt__p_wxPCXHandler,
12898 &_swigt__p_wxPNGHandler,
12899 &_swigt__p_wxPNMHandler,
12900 &_swigt__p_wxPageSetupDialog,
12901 &_swigt__p_wxPageSetupDialogData,
f05326ba 12902 &_swigt__p_wxPaintEvent,
f05326ba
RD
12903 &_swigt__p_wxPaletteChangedEvent,
12904 &_swigt__p_wxPanel,
12905 &_swigt__p_wxPaperSize,
12906 &_swigt__p_wxPasswordEntryDialog,
f05326ba 12907 &_swigt__p_wxPopupWindow,
f05326ba
RD
12908 &_swigt__p_wxPreviewCanvas,
12909 &_swigt__p_wxPreviewControlBar,
12910 &_swigt__p_wxPreviewFrame,
12911 &_swigt__p_wxPrintData,
12912 &_swigt__p_wxPrintDialog,
12913 &_swigt__p_wxPrintDialogData,
12914 &_swigt__p_wxPrintPreview,
12915 &_swigt__p_wxPrinter,
f05326ba
RD
12916 &_swigt__p_wxProgressDialog,
12917 &_swigt__p_wxPyApp,
12918 &_swigt__p_wxPyCommandEvent,
12919 &_swigt__p_wxPyEvent,
12920 &_swigt__p_wxPyHtmlListBox,
12921 &_swigt__p_wxPyImageHandler,
12922 &_swigt__p_wxPyPanel,
12923 &_swigt__p_wxPyPopupTransientWindow,
12924 &_swigt__p_wxPyPreviewControlBar,
12925 &_swigt__p_wxPyPreviewFrame,
12926 &_swigt__p_wxPyPrintPreview,
12927 &_swigt__p_wxPyPrintout,
12928 &_swigt__p_wxPyScrolledWindow,
12929 &_swigt__p_wxPySizer,
12930 &_swigt__p_wxPyTaskBarIcon,
12931 &_swigt__p_wxPyVListBox,
12932 &_swigt__p_wxPyVScrolledWindow,
12933 &_swigt__p_wxPyValidator,
12934 &_swigt__p_wxPyWindow,
12935 &_swigt__p_wxQueryLayoutInfoEvent,
12936 &_swigt__p_wxQueryNewPaletteEvent,
f05326ba
RD
12937 &_swigt__p_wxRichTextAttr,
12938 &_swigt__p_wxRichTextBuffer,
12939 &_swigt__p_wxRichTextCtrl,
12940 &_swigt__p_wxRichTextEvent,
12941 &_swigt__p_wxRichTextImageBlock,
12942 &_swigt__p_wxRichTextRange,
12943 &_swigt__p_wxRichTextStyleSheet,
12944 &_swigt__p_wxSashEvent,
12945 &_swigt__p_wxSashLayoutWindow,
12946 &_swigt__p_wxSashWindow,
f05326ba
RD
12947 &_swigt__p_wxScrollEvent,
12948 &_swigt__p_wxScrollWinEvent,
12949 &_swigt__p_wxScrolledWindow,
12950 &_swigt__p_wxSetCursorEvent,
12951 &_swigt__p_wxShowEvent,
12952 &_swigt__p_wxSingleChoiceDialog,
12953 &_swigt__p_wxSizeEvent,
12954 &_swigt__p_wxSizer,
12955 &_swigt__p_wxSizerItem,
12956 &_swigt__p_wxSplashScreen,
12957 &_swigt__p_wxSplashScreenWindow,
12958 &_swigt__p_wxSplitterEvent,
12959 &_swigt__p_wxSplitterWindow,
12960 &_swigt__p_wxStaticBoxSizer,
12961 &_swigt__p_wxStatusBar,
12962 &_swigt__p_wxStdDialogButtonSizer,
12963 &_swigt__p_wxSysColourChangedEvent,
12964 &_swigt__p_wxTIFFHandler,
12965 &_swigt__p_wxTaskBarIconEvent,
12966 &_swigt__p_wxTextCoord,
12967 &_swigt__p_wxTextCtrlHitTestResult,
12968 &_swigt__p_wxTextEntryDialog,
12969 &_swigt__p_wxTipWindow,
12970 &_swigt__p_wxTopLevelWindow,
12971 &_swigt__p_wxUpdateUIEvent,
12972 &_swigt__p_wxValidator,
12973 &_swigt__p_wxWindow,
12974 &_swigt__p_wxWindowCreateEvent,
f05326ba
RD
12975 &_swigt__p_wxWindowDestroyEvent,
12976 &_swigt__p_wxXPMHandler,
12977};
12978
12979static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
12980static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
12981static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
12982static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
12983static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
12984static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
12985static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
12986static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
12987static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
12988static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
12989static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
12990static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}};
12991static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
12992static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}};
12993static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
12994static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
12995static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
12996static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
12997static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
12998static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
12999static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
13000static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13001static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
13002static 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}};
13003static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
13004static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13005static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
13006static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
13007static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
13008static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
13009static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13010static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
13011static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}};
13012static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
13013static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
13014static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13015static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13016static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
13017static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13018static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
13019static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13020static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13021static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13022static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13023static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13024static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13025static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
13026static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13027static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}};
13028static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
13029static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13030static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13031static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
13032static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}};
13033static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
13034static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}};
13035static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}};
13036static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}};
13037static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
13038static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
13039static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
13040static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}};
13041static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}};
13042static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}};
13043static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13044static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13045static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13046static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13047static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}};
13048static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}};
13049static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}};
13050static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}};
13051static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}};
13052static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}};
13053static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}};
13054static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}};
13055static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}};
13056static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13057static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13058static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}};
13059static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}};
13060static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13061static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13062static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
13063static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}};
13064static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
13065static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
13066static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}};
13067static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}};
13068static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}};
13069static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}};
13070static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13071static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13072static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}};
13073static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
13074static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}};
13075static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}};
13076static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}};
13077static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
13078static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
13079static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}};
13080static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
13081static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
13082static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
13083static 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}};
f05326ba 13084static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13085static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13086static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13087static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13088static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13089static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13090static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13091static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13092static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}};
13093static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
13094static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13095static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13096static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13097static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13098static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}};
13099static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
13100static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}};
13101static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}};
13102static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
f05326ba
RD
13103static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
13104static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
13105static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
13106static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
13107static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
13108static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
13109static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
13110static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13111static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
13112static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13113static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13114static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
13115static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
13116static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
13117static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
13118static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}};
13119static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13120static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13121static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}};
13122static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}};
13123static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
13124static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}};
13125static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}};
13126static 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_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}};
f05326ba
RD
13127static 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}};
13128static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
13129static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}};
13130static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}};
13131static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
13132static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13133static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}};
13134static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}};
13135static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}};
13136static 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}};
13137static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}};
13138static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}};
13139static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
13140
13141static swig_cast_info *swig_cast_initial[] = {
13142 _swigc__p_char,
13143 _swigc__p_form_ops_t,
13144 _swigc__p_int,
13145 _swigc__p_long,
13146 _swigc__p_unsigned_char,
13147 _swigc__p_unsigned_int,
13148 _swigc__p_unsigned_long,
13149 _swigc__p_wxANIHandler,
13150 _swigc__p_wxAcceleratorTable,
13151 _swigc__p_wxActivateEvent,
13152 _swigc__p_wxArrayInt,
13153 _swigc__p_wxBMPHandler,
13154 _swigc__p_wxBitmap,
13155 _swigc__p_wxBoxSizer,
f05326ba
RD
13156 _swigc__p_wxCURHandler,
13157 _swigc__p_wxCalculateLayoutEvent,
13158 _swigc__p_wxChar,
13159 _swigc__p_wxChildFocusEvent,
f05326ba
RD
13160 _swigc__p_wxClipboardTextEvent,
13161 _swigc__p_wxCloseEvent,
13162 _swigc__p_wxColour,
13163 _swigc__p_wxColourData,
13164 _swigc__p_wxColourDialog,
13165 _swigc__p_wxCommandEvent,
13166 _swigc__p_wxContextMenuEvent,
13167 _swigc__p_wxControl,
13168 _swigc__p_wxControlWithItems,
f05326ba
RD
13169 _swigc__p_wxDateEvent,
13170 _swigc__p_wxDialog,
13171 _swigc__p_wxDirDialog,
13172 _swigc__p_wxDisplayChangedEvent,
13173 _swigc__p_wxDropFilesEvent,
13174 _swigc__p_wxDuplexMode,
f05326ba
RD
13175 _swigc__p_wxEraseEvent,
13176 _swigc__p_wxEvent,
13177 _swigc__p_wxEvtHandler,
13178 _swigc__p_wxFSFile,
13179 _swigc__p_wxFileDialog,
13180 _swigc__p_wxFileSystem,
13181 _swigc__p_wxFindDialogEvent,
13182 _swigc__p_wxFindReplaceData,
13183 _swigc__p_wxFindReplaceDialog,
13184 _swigc__p_wxFlexGridSizer,
13185 _swigc__p_wxFocusEvent,
13186 _swigc__p_wxFont,
13187 _swigc__p_wxFontData,
13188 _swigc__p_wxFontDialog,
13189 _swigc__p_wxFrame,
13190 _swigc__p_wxGBSizerItem,
f05326ba
RD
13191 _swigc__p_wxGIFHandler,
13192 _swigc__p_wxGridBagSizer,
13193 _swigc__p_wxGridSizer,
13194 _swigc__p_wxICOHandler,
f05326ba
RD
13195 _swigc__p_wxIconizeEvent,
13196 _swigc__p_wxIdleEvent,
13197 _swigc__p_wxImage,
13198 _swigc__p_wxImageHandler,
f05326ba
RD
13199 _swigc__p_wxIndividualLayoutConstraint,
13200 _swigc__p_wxInitDialogEvent,
13201 _swigc__p_wxJPEGHandler,
13202 _swigc__p_wxKeyEvent,
13203 _swigc__p_wxLayoutAlgorithm,
13204 _swigc__p_wxLayoutConstraints,
13205 _swigc__p_wxMDIChildFrame,
13206 _swigc__p_wxMDIClientWindow,
13207 _swigc__p_wxMDIParentFrame,
f05326ba 13208 _swigc__p_wxMaximizeEvent,
f05326ba
RD
13209 _swigc__p_wxMenu,
13210 _swigc__p_wxMenuBar,
13211 _swigc__p_wxMenuEvent,
13212 _swigc__p_wxMenuItem,
13213 _swigc__p_wxMessageDialog,
f05326ba 13214 _swigc__p_wxMiniFrame,
f05326ba
RD
13215 _swigc__p_wxMouseCaptureChangedEvent,
13216 _swigc__p_wxMouseEvent,
13217 _swigc__p_wxMoveEvent,
13218 _swigc__p_wxMultiChoiceDialog,
13219 _swigc__p_wxNavigationKeyEvent,
13220 _swigc__p_wxNcPaintEvent,
13221 _swigc__p_wxNotifyEvent,
13222 _swigc__p_wxObject,
13223 _swigc__p_wxPCXHandler,
13224 _swigc__p_wxPNGHandler,
13225 _swigc__p_wxPNMHandler,
13226 _swigc__p_wxPageSetupDialog,
13227 _swigc__p_wxPageSetupDialogData,
f05326ba 13228 _swigc__p_wxPaintEvent,
f05326ba
RD
13229 _swigc__p_wxPaletteChangedEvent,
13230 _swigc__p_wxPanel,
13231 _swigc__p_wxPaperSize,
13232 _swigc__p_wxPasswordEntryDialog,
f05326ba 13233 _swigc__p_wxPopupWindow,
f05326ba
RD
13234 _swigc__p_wxPreviewCanvas,
13235 _swigc__p_wxPreviewControlBar,
13236 _swigc__p_wxPreviewFrame,
13237 _swigc__p_wxPrintData,
13238 _swigc__p_wxPrintDialog,
13239 _swigc__p_wxPrintDialogData,
13240 _swigc__p_wxPrintPreview,
13241 _swigc__p_wxPrinter,
f05326ba
RD
13242 _swigc__p_wxProgressDialog,
13243 _swigc__p_wxPyApp,
13244 _swigc__p_wxPyCommandEvent,
13245 _swigc__p_wxPyEvent,
13246 _swigc__p_wxPyHtmlListBox,
13247 _swigc__p_wxPyImageHandler,
13248 _swigc__p_wxPyPanel,
13249 _swigc__p_wxPyPopupTransientWindow,
13250 _swigc__p_wxPyPreviewControlBar,
13251 _swigc__p_wxPyPreviewFrame,
13252 _swigc__p_wxPyPrintPreview,
13253 _swigc__p_wxPyPrintout,
13254 _swigc__p_wxPyScrolledWindow,
13255 _swigc__p_wxPySizer,
13256 _swigc__p_wxPyTaskBarIcon,
13257 _swigc__p_wxPyVListBox,
13258 _swigc__p_wxPyVScrolledWindow,
13259 _swigc__p_wxPyValidator,
13260 _swigc__p_wxPyWindow,
13261 _swigc__p_wxQueryLayoutInfoEvent,
13262 _swigc__p_wxQueryNewPaletteEvent,
f05326ba
RD
13263 _swigc__p_wxRichTextAttr,
13264 _swigc__p_wxRichTextBuffer,
13265 _swigc__p_wxRichTextCtrl,
13266 _swigc__p_wxRichTextEvent,
13267 _swigc__p_wxRichTextImageBlock,
13268 _swigc__p_wxRichTextRange,
13269 _swigc__p_wxRichTextStyleSheet,
13270 _swigc__p_wxSashEvent,
13271 _swigc__p_wxSashLayoutWindow,
13272 _swigc__p_wxSashWindow,
f05326ba
RD
13273 _swigc__p_wxScrollEvent,
13274 _swigc__p_wxScrollWinEvent,
13275 _swigc__p_wxScrolledWindow,
13276 _swigc__p_wxSetCursorEvent,
13277 _swigc__p_wxShowEvent,
13278 _swigc__p_wxSingleChoiceDialog,
13279 _swigc__p_wxSizeEvent,
13280 _swigc__p_wxSizer,
13281 _swigc__p_wxSizerItem,
13282 _swigc__p_wxSplashScreen,
13283 _swigc__p_wxSplashScreenWindow,
13284 _swigc__p_wxSplitterEvent,
13285 _swigc__p_wxSplitterWindow,
13286 _swigc__p_wxStaticBoxSizer,
13287 _swigc__p_wxStatusBar,
13288 _swigc__p_wxStdDialogButtonSizer,
13289 _swigc__p_wxSysColourChangedEvent,
13290 _swigc__p_wxTIFFHandler,
13291 _swigc__p_wxTaskBarIconEvent,
13292 _swigc__p_wxTextCoord,
13293 _swigc__p_wxTextCtrlHitTestResult,
13294 _swigc__p_wxTextEntryDialog,
13295 _swigc__p_wxTipWindow,
13296 _swigc__p_wxTopLevelWindow,
13297 _swigc__p_wxUpdateUIEvent,
13298 _swigc__p_wxValidator,
13299 _swigc__p_wxWindow,
13300 _swigc__p_wxWindowCreateEvent,
f05326ba
RD
13301 _swigc__p_wxWindowDestroyEvent,
13302 _swigc__p_wxXPMHandler,
13303};
13304
13305
13306/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13307
13308static swig_const_info swig_const_table[] = {
13309{0, 0, 0, 0.0, 0, 0}};
13310
13311#ifdef __cplusplus
13312}
13313#endif
13314/* -----------------------------------------------------------------------------
13315 * Type initialization:
13316 * This problem is tough by the requirement that no dynamic
13317 * memory is used. Also, since swig_type_info structures store pointers to
13318 * swig_cast_info structures and swig_cast_info structures store pointers back
13319 * to swig_type_info structures, we need some lookup code at initialization.
13320 * The idea is that swig generates all the structures that are needed.
13321 * The runtime then collects these partially filled structures.
13322 * The SWIG_InitializeModule function takes these initial arrays out of
13323 * swig_module, and does all the lookup, filling in the swig_module.types
13324 * array with the correct data and linking the correct swig_cast_info
13325 * structures together.
13326 *
13327 * The generated swig_type_info structures are assigned staticly to an initial
13328 * array. We just loop though that array, and handle each type individually.
13329 * First we lookup if this type has been already loaded, and if so, use the
13330 * loaded structure instead of the generated one. Then we have to fill in the
13331 * cast linked list. The cast data is initially stored in something like a
13332 * two-dimensional array. Each row corresponds to a type (there are the same
13333 * number of rows as there are in the swig_type_initial array). Each entry in
13334 * a column is one of the swig_cast_info structures for that type.
13335 * The cast_initial array is actually an array of arrays, because each row has
13336 * a variable number of columns. So to actually build the cast linked list,
13337 * we find the array of casts associated with the type, and loop through it
13338 * adding the casts to the list. The one last trick we need to do is making
13339 * sure the type pointer in the swig_cast_info struct is correct.
13340 *
13341 * First off, we lookup the cast->type name to see if it is already loaded.
13342 * There are three cases to handle:
13343 * 1) If the cast->type has already been loaded AND the type we are adding
13344 * casting info to has not been loaded (it is in this module), THEN we
13345 * replace the cast->type pointer with the type pointer that has already
13346 * been loaded.
13347 * 2) If BOTH types (the one we are adding casting info to, and the
13348 * cast->type) are loaded, THEN the cast info has already been loaded by
13349 * the previous module so we just ignore it.
13350 * 3) Finally, if cast->type has not already been loaded, then we add that
13351 * swig_cast_info to the linked list (because the cast->type) pointer will
13352 * be correct.
13353 * ----------------------------------------------------------------------------- */
13354
13355#ifdef __cplusplus
13356extern "C" {
13357#if 0
13358} /* c-mode */
13359#endif
13360#endif
13361
13362#if 0
13363#define SWIGRUNTIME_DEBUG
13364#endif
13365
13366SWIGRUNTIME void
13367SWIG_InitializeModule(void *clientdata) {
13368 size_t i;
13369 swig_module_info *module_head;
13370 static int init_run = 0;
13371
13372 clientdata = clientdata;
13373
13374 if (init_run) return;
13375 init_run = 1;
13376
13377 /* Initialize the swig_module */
13378 swig_module.type_initial = swig_type_initial;
13379 swig_module.cast_initial = swig_cast_initial;
13380
13381 /* Try and load any already created modules */
13382 module_head = SWIG_GetModule(clientdata);
13383 if (module_head) {
13384 swig_module.next = module_head->next;
13385 module_head->next = &swig_module;
13386 } else {
13387 /* This is the first module loaded */
13388 swig_module.next = &swig_module;
13389 SWIG_SetModule(clientdata, &swig_module);
13390 }
13391
13392 /* Now work on filling in swig_module.types */
13393#ifdef SWIGRUNTIME_DEBUG
13394 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
13395#endif
13396 for (i = 0; i < swig_module.size; ++i) {
13397 swig_type_info *type = 0;
13398 swig_type_info *ret;
13399 swig_cast_info *cast;
13400
13401#ifdef SWIGRUNTIME_DEBUG
13402 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13403#endif
13404
13405 /* if there is another module already loaded */
13406 if (swig_module.next != &swig_module) {
13407 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
13408 }
13409 if (type) {
13410 /* Overwrite clientdata field */
13411#ifdef SWIGRUNTIME_DEBUG
13412 printf("SWIG_InitializeModule: found type %s\n", type->name);
13413#endif
13414 if (swig_module.type_initial[i]->clientdata) {
13415 type->clientdata = swig_module.type_initial[i]->clientdata;
13416#ifdef SWIGRUNTIME_DEBUG
13417 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13418#endif
13419 }
13420 } else {
13421 type = swig_module.type_initial[i];
13422 }
13423
13424 /* Insert casting types */
13425 cast = swig_module.cast_initial[i];
13426 while (cast->type) {
13427 /* Don't need to add information already in the list */
13428 ret = 0;
13429#ifdef SWIGRUNTIME_DEBUG
13430 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
13431#endif
13432 if (swig_module.next != &swig_module) {
13433 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
13434#ifdef SWIGRUNTIME_DEBUG
13435 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
13436#endif
13437 }
13438 if (ret) {
13439 if (type == swig_module.type_initial[i]) {
13440#ifdef SWIGRUNTIME_DEBUG
13441 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
13442#endif
13443 cast->type = ret;
13444 ret = 0;
13445 } else {
13446 /* Check for casting already in the list */
13447 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
13448#ifdef SWIGRUNTIME_DEBUG
13449 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
13450#endif
13451 if (!ocast) ret = 0;
13452 }
13453 }
13454
13455 if (!ret) {
13456#ifdef SWIGRUNTIME_DEBUG
13457 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
13458#endif
13459 if (type->cast) {
13460 type->cast->prev = cast;
13461 cast->next = type->cast;
13462 }
13463 type->cast = cast;
13464 }
13465 cast++;
13466 }
13467 /* Set entry in modules->types array equal to the type */
13468 swig_module.types[i] = type;
13469 }
13470 swig_module.types[i] = 0;
13471
13472#ifdef SWIGRUNTIME_DEBUG
13473 printf("**** SWIG_InitializeModule: Cast List ******\n");
13474 for (i = 0; i < swig_module.size; ++i) {
13475 int j = 0;
13476 swig_cast_info *cast = swig_module.cast_initial[i];
13477 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13478 while (cast->type) {
13479 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
13480 cast++;
13481 ++j;
13482 }
13483 printf("---- Total casts: %d\n",j);
13484 }
13485 printf("**** SWIG_InitializeModule: Cast List ******\n");
13486#endif
13487}
13488
13489/* This function will propagate the clientdata field of type to
13490* any new swig_type_info structures that have been added into the list
13491* of equivalent types. It is like calling
13492* SWIG_TypeClientData(type, clientdata) a second time.
13493*/
13494SWIGRUNTIME void
13495SWIG_PropagateClientData(void) {
13496 size_t i;
13497 swig_cast_info *equiv;
13498 static int init_run = 0;
13499
13500 if (init_run) return;
13501 init_run = 1;
13502
13503 for (i = 0; i < swig_module.size; i++) {
13504 if (swig_module.types[i]->clientdata) {
13505 equiv = swig_module.types[i]->cast;
13506 while (equiv) {
13507 if (!equiv->converter) {
13508 if (equiv->type && !equiv->type->clientdata)
13509 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
13510 }
13511 equiv = equiv->next;
13512 }
13513 }
13514 }
13515}
13516
13517#ifdef __cplusplus
13518#if 0
13519{
13520 /* c-mode */
13521#endif
13522}
13523#endif
13524
13525
13526
13527#ifdef __cplusplus
13528extern "C" {
13529#endif
13530
13531 /* Python-specific SWIG API */
13532#define SWIG_newvarlink() SWIG_Python_newvarlink()
13533#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
13534#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
13535
13536 /* -----------------------------------------------------------------------------
13537 * global variable support code.
13538 * ----------------------------------------------------------------------------- */
13539
13540 typedef struct swig_globalvar {
13541 char *name; /* Name of global variable */
13542 PyObject *(*get_attr)(void); /* Return the current value */
13543 int (*set_attr)(PyObject *); /* Set the value */
13544 struct swig_globalvar *next;
13545 } swig_globalvar;
13546
13547 typedef struct swig_varlinkobject {
13548 PyObject_HEAD
13549 swig_globalvar *vars;
13550 } swig_varlinkobject;
13551
13552 SWIGINTERN PyObject *
13553 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
13554 return PyString_FromString("<Swig global variables>");
13555 }
13556
13557 SWIGINTERN PyObject *
13558 swig_varlink_str(swig_varlinkobject *v) {
13559 PyObject *str = PyString_FromString("(");
13560 swig_globalvar *var;
13561 for (var = v->vars; var; var=var->next) {
13562 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
13563 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
13564 }
13565 PyString_ConcatAndDel(&str,PyString_FromString(")"));
13566 return str;
13567 }
13568
13569 SWIGINTERN int
13570 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
13571 PyObject *str = swig_varlink_str(v);
13572 fprintf(fp,"Swig global variables ");
13573 fprintf(fp,"%s\n", PyString_AsString(str));
13574 Py_DECREF(str);
13575 return 0;
13576 }
13577
13578 SWIGINTERN void
13579 swig_varlink_dealloc(swig_varlinkobject *v) {
13580 swig_globalvar *var = v->vars;
13581 while (var) {
13582 swig_globalvar *n = var->next;
13583 free(var->name);
13584 free(var);
13585 var = n;
13586 }
13587 }
13588
13589 SWIGINTERN PyObject *
13590 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
13591 PyObject *res = NULL;
13592 swig_globalvar *var = v->vars;
13593 while (var) {
13594 if (strcmp(var->name,n) == 0) {
13595 res = (*var->get_attr)();
13596 break;
13597 }
13598 var = var->next;
13599 }
13600 if (res == NULL && !PyErr_Occurred()) {
13601 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13602 }
13603 return res;
13604 }
13605
13606 SWIGINTERN int
13607 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
13608 int res = 1;
13609 swig_globalvar *var = v->vars;
13610 while (var) {
13611 if (strcmp(var->name,n) == 0) {
13612 res = (*var->set_attr)(p);
13613 break;
13614 }
13615 var = var->next;
13616 }
13617 if (res == 1 && !PyErr_Occurred()) {
13618 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13619 }
13620 return res;
13621 }
13622
13623 SWIGINTERN PyTypeObject*
13624 swig_varlink_type(void) {
13625 static char varlink__doc__[] = "Swig var link object";
13626 static PyTypeObject varlink_type;
13627 static int type_init = 0;
13628 if (!type_init) {
13629 const PyTypeObject tmp
13630 = {
13631 PyObject_HEAD_INIT(NULL)
13632 0, /* Number of items in variable part (ob_size) */
13633 (char *)"swigvarlink", /* Type name (tp_name) */
13634 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
13635 0, /* Itemsize (tp_itemsize) */
13636 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
13637 (printfunc) swig_varlink_print, /* Print (tp_print) */
13638 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
13639 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
13640 0, /* tp_compare */
13641 (reprfunc) swig_varlink_repr, /* tp_repr */
13642 0, /* tp_as_number */
13643 0, /* tp_as_sequence */
13644 0, /* tp_as_mapping */
13645 0, /* tp_hash */
13646 0, /* tp_call */
13647 (reprfunc)swig_varlink_str, /* tp_str */
13648 0, /* tp_getattro */
13649 0, /* tp_setattro */
13650 0, /* tp_as_buffer */
13651 0, /* tp_flags */
13652 varlink__doc__, /* tp_doc */
13653 0, /* tp_traverse */
13654 0, /* tp_clear */
13655 0, /* tp_richcompare */
13656 0, /* tp_weaklistoffset */
13657#if PY_VERSION_HEX >= 0x02020000
13658 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
13659#endif
13660#if PY_VERSION_HEX >= 0x02030000
13661 0, /* tp_del */
13662#endif
13663#ifdef COUNT_ALLOCS
13664 0,0,0,0 /* tp_alloc -> tp_next */
13665#endif
13666 };
13667 varlink_type = tmp;
13668 varlink_type.ob_type = &PyType_Type;
13669 type_init = 1;
13670 }
13671 return &varlink_type;
13672 }
13673
13674 /* Create a variable linking object for use later */
13675 SWIGINTERN PyObject *
13676 SWIG_Python_newvarlink(void) {
13677 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
13678 if (result) {
13679 result->vars = 0;
13680 }
13681 return ((PyObject*) result);
13682 }
13683
13684 SWIGINTERN void
13685 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
13686 swig_varlinkobject *v = (swig_varlinkobject *) p;
13687 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
13688 if (gv) {
13689 size_t size = strlen(name)+1;
13690 gv->name = (char *)malloc(size);
13691 if (gv->name) {
13692 strncpy(gv->name,name,size);
13693 gv->get_attr = get_attr;
13694 gv->set_attr = set_attr;
13695 gv->next = v->vars;
13696 }
13697 }
13698 v->vars = gv;
13699 }
13700
13701 SWIGINTERN PyObject *
13702 SWIG_globals() {
13703 static PyObject *_SWIG_globals = 0;
13704 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
13705 return _SWIG_globals;
13706 }
13707
13708 /* -----------------------------------------------------------------------------
13709 * constants/methods manipulation
13710 * ----------------------------------------------------------------------------- */
13711
13712 /* Install Constants */
13713 SWIGINTERN void
13714 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
13715 PyObject *obj = 0;
13716 size_t i;
13717 for (i = 0; constants[i].type; ++i) {
13718 switch(constants[i].type) {
13719 case SWIG_PY_POINTER:
13720 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
13721 break;
13722 case SWIG_PY_BINARY:
13723 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
13724 break;
13725 default:
13726 obj = 0;
13727 break;
13728 }
13729 if (obj) {
13730 PyDict_SetItemString(d, constants[i].name, obj);
13731 Py_DECREF(obj);
13732 }
13733 }
13734 }
13735
13736 /* -----------------------------------------------------------------------------*/
13737 /* Fix SwigMethods to carry the callback ptrs when needed */
13738 /* -----------------------------------------------------------------------------*/
13739
13740 SWIGINTERN void
13741 SWIG_Python_FixMethods(PyMethodDef *methods,
13742 swig_const_info *const_table,
13743 swig_type_info **types,
13744 swig_type_info **types_initial) {
13745 size_t i;
13746 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 13747 const char *c = methods[i].ml_doc;
f05326ba
RD
13748 if (c && (c = strstr(c, "swig_ptr: "))) {
13749 int j;
13750 swig_const_info *ci = 0;
453fb36b 13751 const char *name = c + 10;
f05326ba
RD
13752 for (j = 0; const_table[j].type; ++j) {
13753 if (strncmp(const_table[j].name, name,
13754 strlen(const_table[j].name)) == 0) {
13755 ci = &(const_table[j]);
13756 break;
13757 }
13758 }
13759 if (ci) {
13760 size_t shift = (ci->ptype) - types;
13761 swig_type_info *ty = types_initial[shift];
13762 size_t ldoc = (c - methods[i].ml_doc);
13763 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
13764 char *ndoc = (char*)malloc(ldoc + lptr + 10);
13765 if (ndoc) {
13766 char *buff = ndoc;
13767 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
13768 if (ptr) {
13769 strncpy(buff, methods[i].ml_doc, ldoc);
13770 buff += ldoc;
13771 strncpy(buff, "swig_ptr: ", 10);
13772 buff += 10;
13773 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
13774 methods[i].ml_doc = ndoc;
13775 }
13776 }
13777 }
13778 }
13779 }
13780 }
13781
13782#ifdef __cplusplus
13783}
13784#endif
13785
13786/* -----------------------------------------------------------------------------*
13787 * Partial Init method
13788 * -----------------------------------------------------------------------------*/
13789
13790#ifdef __cplusplus
13791extern "C"
13792#endif
13793SWIGEXPORT void SWIG_init(void) {
13794 PyObject *m, *d;
13795
13796 /* Fix SwigMethods to carry the callback ptrs when needed */
13797 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
13798
13799 m = Py_InitModule((char *) SWIG_name, SwigMethods);
13800 d = PyModule_GetDict(m);
13801
13802 SWIG_InitializeModule(0);
13803 SWIG_InstallConstants(d,swig_const_table);
13804
13805
13806 SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0)));
13807 SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY)));
13808 SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE)));
13809 SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN)));
13810 SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN)));
13811 SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN)));
13812 SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED)));
13813 SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED)));
13814 SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED)));
13815 SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS)));
13816 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY)));
13817 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT)));
13818 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML)));
13819 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML)));
13820 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF)));
13821 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF)));
13822 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH)));
13823 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT)));
13824 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH)));
13825 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT)));
13826 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE)));
13827 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE)));
13828 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER)));
13829 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
13830 SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
13831 SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
13832 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
13833 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
13834 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
13835 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
13836 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
13837 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
13838 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
13839 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
13840 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
13841 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
13842 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
13843 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
13844 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER)));
13845 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE)));
13846 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING)));
13847 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME)));
13848 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME)));
13849 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE)));
13850 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER)));
13851 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL)));
13852 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE)));
13853 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC)));
13854 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER)));
13855 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER)));
13856 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER)));
13857 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER)));
13858 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL)));
13859 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP)));
13860 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES)));
13861 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD)));
13862 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL)));
13863 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF)));
13864 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE)));
13865 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
13866 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
13867 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
13868 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
13869 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
13870 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
13871 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
13872 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set);
13873 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set);
13874 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER)));
13875 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH)));
13876 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL)));
13877 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED));
13878 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED));
13879 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK));
13880 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK));
13881 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK));
13882 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK));
13883 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN));
13884
13885
13886}
13887