]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/richtext_wrap.cpp
Undeprecate wxGetNumberFromUser, add wxNumberEntryDialog
[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
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
f05326ba
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
1000
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018/* Runtime API */
1019
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
1029
1030
1031/* Runtime API implementation */
1032
1033/* Error manipulation */
1034
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041}
1042
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048}
1049
1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052/* Set a constant value */
1053
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058}
1059
1060/* Append a value to the result obj */
1061
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102#endif
1103}
1104
1105/* Unpack the argument tuple */
1106
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609#if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613#endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
1632#endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651#if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675#endif
1676#ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678#endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685}
1686
1687SWIGRUNTIME PyObject *
1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689{
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754}
1755
1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758SWIGRUNTIME PyTypeObject*
1759PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838#endif
1839#ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841#endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848}
1849
1850SWIGRUNTIME PyObject *
1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852{
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867}
1868
1869SWIGRUNTIME swig_type_info *
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880}
1881
1882/* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
1891
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
1898
1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
1903{
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948}
1949
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963}
1964
1965/* Convert a pointer value */
1966
1967SWIGRUNTIME int
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043}
2044
2045/* Convert a function ptr value */
2046
2047SWIGRUNTIME int
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
f05326ba
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070}
2071
2072/* Convert a packed value value */
2073
2074SWIGRUNTIME int
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086}
2087
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
2096
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
2158}
2159
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175#endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
2180
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196}
2197
2198/* Create a new pointer object */
2199
2200SWIGRUNTIME PyObject *
2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217}
2218
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248#endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251}
2252
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282}
2283#endif
2284
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313}
2314
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320}
2321
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_char swig_types[0]
2467#define SWIGTYPE_p_form_ops_t swig_types[1]
2468#define SWIGTYPE_p_int swig_types[2]
2469#define SWIGTYPE_p_long swig_types[3]
2470#define SWIGTYPE_p_unsigned_char swig_types[4]
2471#define SWIGTYPE_p_unsigned_int swig_types[5]
2472#define SWIGTYPE_p_unsigned_long swig_types[6]
2473#define SWIGTYPE_p_wxANIHandler swig_types[7]
2474#define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475#define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476#define SWIGTYPE_p_wxArrayInt swig_types[10]
2477#define SWIGTYPE_p_wxBMPHandler swig_types[11]
2478#define SWIGTYPE_p_wxBitmap swig_types[12]
2479#define SWIGTYPE_p_wxBoxSizer swig_types[13]
453fb36b
RD
2480#define SWIGTYPE_p_wxCURHandler swig_types[14]
2481#define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15]
2482#define SWIGTYPE_p_wxChar swig_types[16]
2483#define SWIGTYPE_p_wxChildFocusEvent swig_types[17]
2484#define SWIGTYPE_p_wxClipboardTextEvent swig_types[18]
2485#define SWIGTYPE_p_wxCloseEvent swig_types[19]
2486#define SWIGTYPE_p_wxColour swig_types[20]
2487#define SWIGTYPE_p_wxColourData swig_types[21]
2488#define SWIGTYPE_p_wxColourDialog swig_types[22]
2489#define SWIGTYPE_p_wxCommandEvent swig_types[23]
2490#define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2491#define SWIGTYPE_p_wxControl swig_types[25]
2492#define SWIGTYPE_p_wxControlWithItems swig_types[26]
2493#define SWIGTYPE_p_wxDateEvent swig_types[27]
2494#define SWIGTYPE_p_wxDialog swig_types[28]
2495#define SWIGTYPE_p_wxDirDialog swig_types[29]
2496#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30]
2497#define SWIGTYPE_p_wxDropFilesEvent swig_types[31]
2498#define SWIGTYPE_p_wxDuplexMode swig_types[32]
2499#define SWIGTYPE_p_wxEraseEvent swig_types[33]
2500#define SWIGTYPE_p_wxEvent swig_types[34]
2501#define SWIGTYPE_p_wxEvtHandler swig_types[35]
2502#define SWIGTYPE_p_wxFSFile swig_types[36]
2503#define SWIGTYPE_p_wxFileDialog swig_types[37]
2504#define SWIGTYPE_p_wxFileSystem swig_types[38]
2505#define SWIGTYPE_p_wxFindDialogEvent swig_types[39]
2506#define SWIGTYPE_p_wxFindReplaceData swig_types[40]
2507#define SWIGTYPE_p_wxFindReplaceDialog swig_types[41]
2508#define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509#define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510#define SWIGTYPE_p_wxFont swig_types[44]
2511#define SWIGTYPE_p_wxFontData swig_types[45]
2512#define SWIGTYPE_p_wxFontDialog swig_types[46]
2513#define SWIGTYPE_p_wxFrame swig_types[47]
2514#define SWIGTYPE_p_wxGBSizerItem swig_types[48]
2515#define SWIGTYPE_p_wxGIFHandler swig_types[49]
2516#define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2517#define SWIGTYPE_p_wxGridSizer swig_types[51]
2518#define SWIGTYPE_p_wxICOHandler swig_types[52]
2519#define SWIGTYPE_p_wxIconizeEvent swig_types[53]
2520#define SWIGTYPE_p_wxIdleEvent swig_types[54]
2521#define SWIGTYPE_p_wxImage swig_types[55]
2522#define SWIGTYPE_p_wxImageHandler swig_types[56]
2523#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57]
2524#define SWIGTYPE_p_wxInitDialogEvent swig_types[58]
2525#define SWIGTYPE_p_wxJPEGHandler swig_types[59]
2526#define SWIGTYPE_p_wxKeyEvent swig_types[60]
2527#define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61]
2528#define SWIGTYPE_p_wxLayoutConstraints swig_types[62]
2529#define SWIGTYPE_p_wxMDIChildFrame swig_types[63]
2530#define SWIGTYPE_p_wxMDIClientWindow swig_types[64]
2531#define SWIGTYPE_p_wxMDIParentFrame swig_types[65]
2532#define SWIGTYPE_p_wxMaximizeEvent swig_types[66]
2533#define SWIGTYPE_p_wxMenu swig_types[67]
2534#define SWIGTYPE_p_wxMenuBar swig_types[68]
2535#define SWIGTYPE_p_wxMenuEvent swig_types[69]
2536#define SWIGTYPE_p_wxMenuItem swig_types[70]
2537#define SWIGTYPE_p_wxMessageDialog swig_types[71]
2538#define SWIGTYPE_p_wxMiniFrame swig_types[72]
2539#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73]
2540#define SWIGTYPE_p_wxMouseEvent swig_types[74]
2541#define SWIGTYPE_p_wxMoveEvent swig_types[75]
2542#define SWIGTYPE_p_wxMultiChoiceDialog swig_types[76]
2543#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[77]
2544#define SWIGTYPE_p_wxNcPaintEvent swig_types[78]
2545#define SWIGTYPE_p_wxNotifyEvent swig_types[79]
2546#define SWIGTYPE_p_wxObject swig_types[80]
2547#define SWIGTYPE_p_wxPCXHandler swig_types[81]
2548#define SWIGTYPE_p_wxPNGHandler swig_types[82]
2549#define SWIGTYPE_p_wxPNMHandler swig_types[83]
2550#define SWIGTYPE_p_wxPageSetupDialog swig_types[84]
2551#define SWIGTYPE_p_wxPageSetupDialogData swig_types[85]
2552#define SWIGTYPE_p_wxPaintEvent swig_types[86]
2553#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[87]
2554#define SWIGTYPE_p_wxPanel swig_types[88]
2555#define SWIGTYPE_p_wxPaperSize swig_types[89]
2556#define SWIGTYPE_p_wxPasswordEntryDialog swig_types[90]
2557#define SWIGTYPE_p_wxPopupWindow swig_types[91]
2558#define SWIGTYPE_p_wxPreviewCanvas swig_types[92]
2559#define SWIGTYPE_p_wxPreviewControlBar swig_types[93]
2560#define SWIGTYPE_p_wxPreviewFrame swig_types[94]
2561#define SWIGTYPE_p_wxPrintData swig_types[95]
2562#define SWIGTYPE_p_wxPrintDialog swig_types[96]
2563#define SWIGTYPE_p_wxPrintDialogData swig_types[97]
2564#define SWIGTYPE_p_wxPrintPreview swig_types[98]
2565#define SWIGTYPE_p_wxPrinter swig_types[99]
2566#define SWIGTYPE_p_wxProgressDialog swig_types[100]
2567#define SWIGTYPE_p_wxPyApp swig_types[101]
2568#define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2569#define SWIGTYPE_p_wxPyEvent swig_types[103]
2570#define SWIGTYPE_p_wxPyHtmlListBox swig_types[104]
2571#define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2572#define SWIGTYPE_p_wxPyPanel swig_types[106]
2573#define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[107]
2574#define SWIGTYPE_p_wxPyPreviewControlBar swig_types[108]
2575#define SWIGTYPE_p_wxPyPreviewFrame swig_types[109]
2576#define SWIGTYPE_p_wxPyPrintPreview swig_types[110]
2577#define SWIGTYPE_p_wxPyPrintout swig_types[111]
2578#define SWIGTYPE_p_wxPyScrolledWindow swig_types[112]
2579#define SWIGTYPE_p_wxPySizer swig_types[113]
2580#define SWIGTYPE_p_wxPyTaskBarIcon swig_types[114]
2581#define SWIGTYPE_p_wxPyVListBox swig_types[115]
2582#define SWIGTYPE_p_wxPyVScrolledWindow swig_types[116]
2583#define SWIGTYPE_p_wxPyValidator swig_types[117]
2584#define SWIGTYPE_p_wxPyWindow swig_types[118]
2585#define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[119]
2586#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120]
2587#define SWIGTYPE_p_wxRichTextAttr swig_types[121]
2588#define SWIGTYPE_p_wxRichTextBuffer swig_types[122]
2589#define SWIGTYPE_p_wxRichTextCtrl swig_types[123]
2590#define SWIGTYPE_p_wxRichTextEvent swig_types[124]
2591#define SWIGTYPE_p_wxRichTextImageBlock swig_types[125]
2592#define SWIGTYPE_p_wxRichTextRange swig_types[126]
2593#define SWIGTYPE_p_wxRichTextStyleSheet swig_types[127]
2594#define SWIGTYPE_p_wxSashEvent swig_types[128]
2595#define SWIGTYPE_p_wxSashLayoutWindow swig_types[129]
2596#define SWIGTYPE_p_wxSashWindow swig_types[130]
2597#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2598#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrolledWindow swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSingleChoiceDialog swig_types[136]
2603#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2604#define SWIGTYPE_p_wxSizer swig_types[138]
2605#define SWIGTYPE_p_wxSizerItem swig_types[139]
2606#define SWIGTYPE_p_wxSplashScreen swig_types[140]
2607#define SWIGTYPE_p_wxSplashScreenWindow swig_types[141]
2608#define SWIGTYPE_p_wxSplitterEvent swig_types[142]
2609#define SWIGTYPE_p_wxSplitterWindow swig_types[143]
2610#define SWIGTYPE_p_wxStaticBoxSizer swig_types[144]
2611#define SWIGTYPE_p_wxStatusBar swig_types[145]
2612#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615#define SWIGTYPE_p_wxTaskBarIconEvent swig_types[149]
2616#define SWIGTYPE_p_wxTextCoord swig_types[150]
2617#define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[151]
2618#define SWIGTYPE_p_wxTextEntryDialog swig_types[152]
2619#define SWIGTYPE_p_wxTipWindow swig_types[153]
2620#define SWIGTYPE_p_wxTopLevelWindow swig_types[154]
2621#define SWIGTYPE_p_wxUpdateUIEvent swig_types[155]
2622#define SWIGTYPE_p_wxValidator swig_types[156]
2623#define SWIGTYPE_p_wxWindow swig_types[157]
2624#define SWIGTYPE_p_wxWindowCreateEvent swig_types[158]
2625#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[159]
2626#define SWIGTYPE_p_wxXPMHandler swig_types[160]
2627static swig_type_info *swig_types[162];
2628static swig_module_info swig_module = {swig_types, 161, 0, 0, 0, 0};
f05326ba
RD
2629#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2630#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2631
2632/* -------- TYPES TABLE (END) -------- */
2633
2634#if (PY_VERSION_HEX <= 0x02000000)
2635# if !defined(SWIG_PYTHON_CLASSIC)
2636# error "This python version requires to use swig with the '-classic' option"
2637# endif
2638#endif
2639#if (PY_VERSION_HEX <= 0x02020000)
2640# error "This python version requires to use swig with the '-nomodern' option"
2641#endif
2642#if (PY_VERSION_HEX <= 0x02020000)
2643# error "This python version requires to use swig with the '-nomodernargs' option"
2644#endif
2645#ifndef METH_O
2646# error "This python version requires to use swig with the '-nofastunpack' option"
2647#endif
2648
2649/*-----------------------------------------------
2650 @(target):= _richtext.so
2651 ------------------------------------------------*/
2652#define SWIG_init init_richtext
2653
2654#define SWIG_name "_richtext"
2655
2656#define SWIGVERSION 0x010329
2657
2658
2659#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2660#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2661
2662
2663#include <stdexcept>
2664
2665
2666namespace swig {
2667 class PyObject_ptr {
2668 protected:
2669 PyObject *_obj;
2670
2671 public:
2672 PyObject_ptr() :_obj(0)
2673 {
2674 }
2675
2676 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2677 {
2678 Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2682 {
2683 if (initial_ref) Py_XINCREF(_obj);
2684 }
2685
2686 PyObject_ptr & operator=(const PyObject_ptr& item)
2687 {
2688 Py_XINCREF(item._obj);
2689 Py_XDECREF(_obj);
2690 _obj = item._obj;
2691 return *this;
2692 }
2693
2694 ~PyObject_ptr()
2695 {
2696 Py_XDECREF(_obj);
2697 }
2698
2699 operator PyObject *() const
2700 {
2701 return _obj;
2702 }
2703
2704 PyObject *operator->() const
2705 {
2706 return _obj;
2707 }
2708 };
2709}
2710
2711
2712namespace swig {
2713 struct PyObject_var : PyObject_ptr {
2714 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2715
2716 PyObject_var & operator = (PyObject* obj)
2717 {
2718 Py_XDECREF(_obj);
2719 _obj = obj;
2720 return *this;
2721 }
2722 };
2723}
2724
2725
2726#include "wx/wxPython/wxPython.h"
2727#include "wx/wxPython/pyclasses.h"
2728#include "wx/wxPython/printfw.h"
2729#include "wx/wxPython/twoitem.h"
2730
2731#include <wx/richtext/richtextctrl.h>
2732
2733
2734class wxEffects;
2735class wxBufferedDC;
2736class wxBufferedPaintDC;
2737class wxMetaFile;
2738class wxMetaFileDC;
2739class wxPrinterDC;
2740
2741
2742
2743 #define SWIG_From_long PyInt_FromLong
2744
2745
2746SWIGINTERNINLINE PyObject *
2747SWIG_From_int (int value)
2748{
2749 return SWIG_From_long (value);
2750}
2751
2752 static const wxString wxPyEmptyString(wxEmptyString);
2753
2754
2755bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj)
2756{
2757 if (source == Py_None) {
2758 **obj = wxRICHTEXT_NONE;
2759 return true;
2760 }
2761 return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange"));
2762}
2763
2764
2765SWIGINTERN int
2766SWIG_AsVal_long (PyObject* obj, long* val)
2767{
2768 if (PyNumber_Check(obj)) {
2769 if (val) *val = PyInt_AsLong(obj);
2770 return SWIG_OK;
2771 }
2772 return SWIG_TypeError;
2773}
2774
2775SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){
2776 wxRichTextRange temp, *obj = &temp;
2777 if ( other == Py_None ) return false;
2778 if ( ! wxRichTextRange_helper(other, &obj) ) {
2779 PyErr_Clear();
2780 return false;
2781 }
2782 return self->operator==(*obj);
2783 }
2784SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){
2785 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2786 PyObject* tup = PyTuple_New(2);
2787 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart()));
2788 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd()));
2789 wxPyEndBlockThreads(blocked);
2790 return tup;
2791 }
2792
2793 wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL);
2794 wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE);
2795
2796
2797#include <limits.h>
2798#ifndef LLONG_MIN
2799# define LLONG_MIN LONG_LONG_MIN
2800#endif
2801#ifndef LLONG_MAX
2802# define LLONG_MAX LONG_LONG_MAX
2803#endif
2804#ifndef ULLONG_MAX
2805# define ULLONG_MAX ULONG_LONG_MAX
2806#endif
2807
2808
2809SWIGINTERN int
2810SWIG_AsVal_int (PyObject * obj, int *val)
2811{
2812 long v;
2813 int res = SWIG_AsVal_long (obj, &v);
2814 if (SWIG_IsOK(res)) {
2815 if ((v < INT_MIN || v > INT_MAX)) {
2816 return SWIG_OverflowError;
2817 } else {
2818 if (val) *val = static_cast< int >(v);
2819 }
2820 }
2821 return res;
2822}
2823
2824
2825SWIGINTERN int
2826SWIG_AsVal_bool (PyObject *obj, bool *val)
2827{
2828 if (obj == Py_True) {
2829 if (val) *val = true;
2830 return SWIG_OK;
2831 } else if (obj == Py_False) {
2832 if (val) *val = false;
2833 return SWIG_OK;
2834 } else {
2835 long v = 0;
2836 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2837 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2838 return res;
2839 }
2840}
2841
2842
2843SWIGINTERN int
2844SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845{
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853}
2854
2855
2856SWIGINTERN swig_type_info*
2857SWIG_pchar_descriptor()
2858{
2859 static int init = 0;
2860 static swig_type_info* info = 0;
2861 if (!init) {
2862 info = SWIG_TypeQuery("_p_char");
2863 init = 1;
2864 }
2865 return info;
2866}
2867
2868
2869SWIGINTERN int
2870SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2871{
2872 if (PyString_Check(obj)) {
d1a49b78 2873 char *cstr; Py_ssize_t len;
f05326ba
RD
2874 PyString_AsStringAndSize(obj, &cstr, &len);
2875 if (cptr) {
2876 if (alloc) {
2877 /*
2878 In python the user should not be able to modify the inner
2879 string representation. To warranty that, if you define
2880 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
2881 buffer is always returned.
2882
2883 The default behavior is just to return the pointer value,
2884 so, be careful.
2885 */
2886#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
2887 if (*alloc != SWIG_OLDOBJ)
2888#else
2889 if (*alloc == SWIG_NEWOBJ)
2890#endif
2891 {
2892 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
2893 *alloc = SWIG_NEWOBJ;
2894 }
2895 else {
2896 *cptr = cstr;
2897 *alloc = SWIG_OLDOBJ;
2898 }
2899 } else {
2900 *cptr = PyString_AsString(obj);
2901 }
2902 }
2903 if (psize) *psize = len + 1;
2904 return SWIG_OK;
2905 } else {
2906 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2907 if (pchar_descriptor) {
2908 void* vptr = 0;
2909 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
2910 if (cptr) *cptr = (char *) vptr;
2911 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
2912 if (alloc) *alloc = SWIG_OLDOBJ;
2913 return SWIG_OK;
2914 }
2915 }
2916 }
2917 return SWIG_TypeError;
2918}
2919
2920
2921SWIGINTERN int
2922SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
2923{
2924 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
2925 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
2926 if (SWIG_IsOK(res)) {
2927 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
2928 if (csize <= size) {
2929 if (val) {
2930 if (csize) memcpy(val, cptr, csize*sizeof(char));
2931 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
2932 }
2933 if (alloc == SWIG_NEWOBJ) {
2934 delete[] cptr;
2935 res = SWIG_DelNewMask(res);
2936 }
2937 return res;
2938 }
2939 if (alloc == SWIG_NEWOBJ) delete[] cptr;
2940 }
2941 return SWIG_TypeError;
2942}
2943
2944
2945SWIGINTERN int
2946SWIG_AsVal_char (PyObject * obj, char *val)
2947{
2948 int res = SWIG_AsCharArray(obj, val, 1);
2949 if (!SWIG_IsOK(res)) {
2950 long v;
2951 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
2952 if (SWIG_IsOK(res)) {
2953 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
2954 if (val) *val = static_cast< char >(v);
2955 } else {
2956 res = SWIG_OverflowError;
2957 }
2958 }
2959 }
2960 return res;
2961}
2962
2963#ifdef __cplusplus
2964extern "C" {
2965#endif
2966SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2967 PyObject *resultobj = 0;
2968 long arg1 = (long) 0 ;
2969 long arg2 = (long) 0 ;
2970 wxRichTextRange *result = 0 ;
2971 long val1 ;
2972 int ecode1 = 0 ;
2973 long val2 ;
2974 int ecode2 = 0 ;
2975 PyObject * obj0 = 0 ;
2976 PyObject * obj1 = 0 ;
2977 char * kwnames[] = {
2978 (char *) "start",(char *) "end", NULL
2979 };
2980
2981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail;
2982 if (obj0) {
2983 ecode1 = SWIG_AsVal_long(obj0, &val1);
2984 if (!SWIG_IsOK(ecode1)) {
2985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'");
2986 }
2987 arg1 = static_cast< long >(val1);
2988 }
2989 if (obj1) {
2990 ecode2 = SWIG_AsVal_long(obj1, &val2);
2991 if (!SWIG_IsOK(ecode2)) {
2992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'");
2993 }
2994 arg2 = static_cast< long >(val2);
2995 }
2996 {
2997 PyThreadState* __tstate = wxPyBeginAllowThreads();
2998 result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2);
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 );
3003 return resultobj;
3004fail:
3005 return NULL;
3006}
3007
3008
3009SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3010 PyObject *resultobj = 0;
3011 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3012 void *argp1 = 0 ;
3013 int res1 = 0 ;
3014 PyObject *swig_obj[1] ;
3015
3016 if (!args) SWIG_fail;
3017 swig_obj[0] = args;
3018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 );
3019 if (!SWIG_IsOK(res1)) {
3020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3021 }
3022 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3023 {
3024 PyThreadState* __tstate = wxPyBeginAllowThreads();
3025 delete arg1;
3026
3027 wxPyEndAllowThreads(__tstate);
3028 if (PyErr_Occurred()) SWIG_fail;
3029 }
3030 resultobj = SWIG_Py_Void();
3031 return resultobj;
3032fail:
3033 return NULL;
3034}
3035
3036
3037SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3038 PyObject *resultobj = 0;
3039 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3040 PyObject *arg2 = (PyObject *) 0 ;
3041 bool result;
3042 void *argp1 = 0 ;
3043 int res1 = 0 ;
3044 PyObject * obj0 = 0 ;
3045 PyObject * obj1 = 0 ;
3046 char * kwnames[] = {
3047 (char *) "self",(char *) "other", NULL
3048 };
3049
3050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3052 if (!SWIG_IsOK(res1)) {
3053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3054 }
3055 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3056 arg2 = obj1;
3057 {
3058 result = (bool)wxRichTextRange___eq__(arg1,arg2);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 {
3062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3063 }
3064 return resultobj;
3065fail:
3066 return NULL;
3067}
3068
3069
3070SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3071 PyObject *resultobj = 0;
3072 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3073 wxRichTextRange *arg2 = 0 ;
3074 wxRichTextRange result;
3075 void *argp1 = 0 ;
3076 int res1 = 0 ;
3077 wxRichTextRange temp2 ;
3078 PyObject * obj0 = 0 ;
3079 PyObject * obj1 = 0 ;
3080 char * kwnames[] = {
3081 (char *) "self",(char *) "range", NULL
3082 };
3083
3084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
3085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3086 if (!SWIG_IsOK(res1)) {
3087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3088 }
3089 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3090 {
3091 arg2 = &temp2;
3092 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3093 }
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2);
3097 wxPyEndAllowThreads(__tstate);
3098 if (PyErr_Occurred()) SWIG_fail;
3099 }
3100 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3101 return resultobj;
3102fail:
3103 return NULL;
3104}
3105
3106
3107SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3108 PyObject *resultobj = 0;
3109 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3110 wxRichTextRange *arg2 = 0 ;
3111 wxRichTextRange result;
3112 void *argp1 = 0 ;
3113 int res1 = 0 ;
3114 wxRichTextRange temp2 ;
3115 PyObject * obj0 = 0 ;
3116 PyObject * obj1 = 0 ;
3117 char * kwnames[] = {
3118 (char *) "self",(char *) "range", NULL
3119 };
3120
3121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail;
3122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3123 if (!SWIG_IsOK(res1)) {
3124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3125 }
3126 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3127 {
3128 arg2 = &temp2;
3129 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3130 }
3131 {
3132 PyThreadState* __tstate = wxPyBeginAllowThreads();
3133 result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2);
3134 wxPyEndAllowThreads(__tstate);
3135 if (PyErr_Occurred()) SWIG_fail;
3136 }
3137 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3138 return resultobj;
3139fail:
3140 return NULL;
3141}
3142
3143
3144SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3145 PyObject *resultobj = 0;
3146 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3147 long arg2 ;
3148 long arg3 ;
3149 void *argp1 = 0 ;
3150 int res1 = 0 ;
3151 long val2 ;
3152 int ecode2 = 0 ;
3153 long val3 ;
3154 int ecode3 = 0 ;
3155 PyObject * obj0 = 0 ;
3156 PyObject * obj1 = 0 ;
3157 PyObject * obj2 = 0 ;
3158 char * kwnames[] = {
3159 (char *) "self",(char *) "start",(char *) "end", NULL
3160 };
3161
3162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3164 if (!SWIG_IsOK(res1)) {
3165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3166 }
3167 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3168 ecode2 = SWIG_AsVal_long(obj1, &val2);
3169 if (!SWIG_IsOK(ecode2)) {
3170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'");
3171 }
3172 arg2 = static_cast< long >(val2);
3173 ecode3 = SWIG_AsVal_long(obj2, &val3);
3174 if (!SWIG_IsOK(ecode3)) {
3175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'");
3176 }
3177 arg3 = static_cast< long >(val3);
3178 {
3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
3180 (arg1)->SetRange(arg2,arg3);
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
3184 resultobj = SWIG_Py_Void();
3185 return resultobj;
3186fail:
3187 return NULL;
3188}
3189
3190
3191SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj = 0;
3193 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3194 long arg2 ;
3195 void *argp1 = 0 ;
3196 int res1 = 0 ;
3197 long val2 ;
3198 int ecode2 = 0 ;
3199 PyObject * obj0 = 0 ;
3200 PyObject * obj1 = 0 ;
3201 char * kwnames[] = {
3202 (char *) "self",(char *) "start", NULL
3203 };
3204
3205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail;
3206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3207 if (!SWIG_IsOK(res1)) {
3208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3209 }
3210 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3211 ecode2 = SWIG_AsVal_long(obj1, &val2);
3212 if (!SWIG_IsOK(ecode2)) {
3213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'");
3214 }
3215 arg2 = static_cast< long >(val2);
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 (arg1)->SetStart(arg2);
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 resultobj = SWIG_Py_Void();
3223 return resultobj;
3224fail:
3225 return NULL;
3226}
3227
3228
3229SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3230 PyObject *resultobj = 0;
3231 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3232 long result;
3233 void *argp1 = 0 ;
3234 int res1 = 0 ;
3235 PyObject *swig_obj[1] ;
3236
3237 if (!args) SWIG_fail;
3238 swig_obj[0] = args;
3239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3240 if (!SWIG_IsOK(res1)) {
3241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3242 }
3243 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3244 {
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 result = (long)((wxRichTextRange const *)arg1)->GetStart();
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) SWIG_fail;
3249 }
3250 resultobj = SWIG_From_long(static_cast< long >(result));
3251 return resultobj;
3252fail:
3253 return NULL;
3254}
3255
3256
3257SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3258 PyObject *resultobj = 0;
3259 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3260 long arg2 ;
3261 void *argp1 = 0 ;
3262 int res1 = 0 ;
3263 long val2 ;
3264 int ecode2 = 0 ;
3265 PyObject * obj0 = 0 ;
3266 PyObject * obj1 = 0 ;
3267 char * kwnames[] = {
3268 (char *) "self",(char *) "end", NULL
3269 };
3270
3271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail;
3272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3273 if (!SWIG_IsOK(res1)) {
3274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3275 }
3276 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3277 ecode2 = SWIG_AsVal_long(obj1, &val2);
3278 if (!SWIG_IsOK(ecode2)) {
3279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'");
3280 }
3281 arg2 = static_cast< long >(val2);
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 (arg1)->SetEnd(arg2);
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = SWIG_Py_Void();
3289 return resultobj;
3290fail:
3291 return NULL;
3292}
3293
3294
3295SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3296 PyObject *resultobj = 0;
3297 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3298 long result;
3299 void *argp1 = 0 ;
3300 int res1 = 0 ;
3301 PyObject *swig_obj[1] ;
3302
3303 if (!args) SWIG_fail;
3304 swig_obj[0] = args;
3305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3306 if (!SWIG_IsOK(res1)) {
3307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3308 }
3309 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = (long)((wxRichTextRange const *)arg1)->GetEnd();
3313 wxPyEndAllowThreads(__tstate);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 }
3316 resultobj = SWIG_From_long(static_cast< long >(result));
3317 return resultobj;
3318fail:
3319 return NULL;
3320}
3321
3322
3323SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3324 PyObject *resultobj = 0;
3325 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3326 wxRichTextRange *arg2 = 0 ;
3327 bool result;
3328 void *argp1 = 0 ;
3329 int res1 = 0 ;
3330 wxRichTextRange temp2 ;
3331 PyObject * obj0 = 0 ;
3332 PyObject * obj1 = 0 ;
3333 char * kwnames[] = {
3334 (char *) "self",(char *) "range", NULL
3335 };
3336
3337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail;
3338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3339 if (!SWIG_IsOK(res1)) {
3340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3341 }
3342 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3343 {
3344 arg2 = &temp2;
3345 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3346 }
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2);
3350 wxPyEndAllowThreads(__tstate);
3351 if (PyErr_Occurred()) SWIG_fail;
3352 }
3353 {
3354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3355 }
3356 return resultobj;
3357fail:
3358 return NULL;
3359}
3360
3361
3362SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3363 PyObject *resultobj = 0;
3364 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3365 wxRichTextRange *arg2 = 0 ;
3366 bool result;
3367 void *argp1 = 0 ;
3368 int res1 = 0 ;
3369 wxRichTextRange temp2 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 char * kwnames[] = {
3373 (char *) "self",(char *) "range", NULL
3374 };
3375
3376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail;
3377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3378 if (!SWIG_IsOK(res1)) {
3379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3380 }
3381 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3382 {
3383 arg2 = &temp2;
3384 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3385 }
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2);
3389 wxPyEndAllowThreads(__tstate);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 }
3392 {
3393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3394 }
3395 return resultobj;
3396fail:
3397 return NULL;
3398}
3399
3400
3401SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj = 0;
3403 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3404 long arg2 ;
3405 bool result;
3406 void *argp1 = 0 ;
3407 int res1 = 0 ;
3408 long val2 ;
3409 int ecode2 = 0 ;
3410 PyObject * obj0 = 0 ;
3411 PyObject * obj1 = 0 ;
3412 char * kwnames[] = {
3413 (char *) "self",(char *) "pos", NULL
3414 };
3415
3416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
3417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3418 if (!SWIG_IsOK(res1)) {
3419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3420 }
3421 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3422 ecode2 = SWIG_AsVal_long(obj1, &val2);
3423 if (!SWIG_IsOK(ecode2)) {
3424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'");
3425 }
3426 arg2 = static_cast< long >(val2);
3427 {
3428 PyThreadState* __tstate = wxPyBeginAllowThreads();
3429 result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2);
3430 wxPyEndAllowThreads(__tstate);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 {
3434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3435 }
3436 return resultobj;
3437fail:
3438 return NULL;
3439}
3440
3441
3442SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj = 0;
3444 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3445 wxRichTextRange *arg2 = 0 ;
3446 bool result;
3447 void *argp1 = 0 ;
3448 int res1 = 0 ;
3449 wxRichTextRange temp2 ;
3450 PyObject * obj0 = 0 ;
3451 PyObject * obj1 = 0 ;
3452 char * kwnames[] = {
3453 (char *) "self",(char *) "range", NULL
3454 };
3455
3456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail;
3457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3458 if (!SWIG_IsOK(res1)) {
3459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3460 }
3461 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3462 {
3463 arg2 = &temp2;
3464 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3465 }
3466 {
3467 PyThreadState* __tstate = wxPyBeginAllowThreads();
3468 result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2);
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 {
3473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3474 }
3475 return resultobj;
3476fail:
3477 return NULL;
3478}
3479
3480
3481SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3482 PyObject *resultobj = 0;
3483 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3484 long result;
3485 void *argp1 = 0 ;
3486 int res1 = 0 ;
3487 PyObject *swig_obj[1] ;
3488
3489 if (!args) SWIG_fail;
3490 swig_obj[0] = args;
3491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3492 if (!SWIG_IsOK(res1)) {
3493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3494 }
3495 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3496 {
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 result = (long)((wxRichTextRange const *)arg1)->GetLength();
3499 wxPyEndAllowThreads(__tstate);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 }
3502 resultobj = SWIG_From_long(static_cast< long >(result));
3503 return resultobj;
3504fail:
3505 return NULL;
3506}
3507
3508
3509SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3510 PyObject *resultobj = 0;
3511 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3512 void *argp1 = 0 ;
3513 int res1 = 0 ;
3514 PyObject *swig_obj[1] ;
3515
3516 if (!args) SWIG_fail;
3517 swig_obj[0] = args;
3518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3519 if (!SWIG_IsOK(res1)) {
3520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3521 }
3522 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3523 {
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
3525 (arg1)->Swap();
3526 wxPyEndAllowThreads(__tstate);
3527 if (PyErr_Occurred()) SWIG_fail;
3528 }
3529 resultobj = SWIG_Py_Void();
3530 return resultobj;
3531fail:
3532 return NULL;
3533}
3534
3535
3536SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3537 PyObject *resultobj = 0;
3538 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3539 PyObject *result = 0 ;
3540 void *argp1 = 0 ;
3541 int res1 = 0 ;
3542 PyObject *swig_obj[1] ;
3543
3544 if (!args) SWIG_fail;
3545 swig_obj[0] = args;
3546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3547 if (!SWIG_IsOK(res1)) {
3548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3549 }
3550 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3551 {
3552 PyThreadState* __tstate = wxPyBeginAllowThreads();
3553 result = (PyObject *)wxRichTextRange_Get(arg1);
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 resultobj = result;
3558 return resultobj;
3559fail:
3560 return NULL;
3561}
3562
3563
3564SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3565 PyObject *obj;
3566 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3567 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj));
3568 return SWIG_Py_Void();
3569}
3570
3571SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3572 return SWIG_Python_InitShadowInstance(args);
3573}
3574
3575SWIGINTERN int RICHTEXT_ALL_set(PyObject *) {
3576 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only.");
3577 return 1;
3578}
3579
3580
3581SWIGINTERN PyObject *RICHTEXT_ALL_get(void) {
3582 PyObject *pyobj = 0;
3583
3584 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 );
3585 return pyobj;
3586}
3587
3588
3589SWIGINTERN int RICHTEXT_NONE_set(PyObject *) {
3590 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only.");
3591 return 1;
3592}
3593
3594
3595SWIGINTERN PyObject *RICHTEXT_NONE_get(void) {
3596 PyObject *pyobj = 0;
3597
3598 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 );
3599 return pyobj;
3600}
3601
3602
3603SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3604 PyObject *resultobj = 0;
3605 wxColour const &arg1_defvalue = wxNullColour ;
3606 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
3607 wxColour const &arg2_defvalue = wxNullColour ;
3608 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3609 wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
3610 wxRichTextAttr *result = 0 ;
3611 wxColour temp1 ;
3612 wxColour temp2 ;
3613 int val3 ;
3614 int ecode3 = 0 ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 PyObject * obj2 = 0 ;
3618 char * kwnames[] = {
3619 (char *) "colText",(char *) "colBack",(char *) "alignment", NULL
3620 };
3621
3622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3623 if (obj0) {
3624 {
3625 arg1 = &temp1;
3626 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3627 }
3628 }
3629 if (obj1) {
3630 {
3631 arg2 = &temp2;
3632 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3633 }
3634 }
3635 if (obj2) {
3636 ecode3 = SWIG_AsVal_int(obj2, &val3);
3637 if (!SWIG_IsOK(ecode3)) {
3638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'");
3639 }
3640 arg3 = static_cast< wxTextAttrAlignment >(val3);
3641 }
3642 {
3643 PyThreadState* __tstate = wxPyBeginAllowThreads();
3644 result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3);
3645 wxPyEndAllowThreads(__tstate);
3646 if (PyErr_Occurred()) SWIG_fail;
3647 }
3648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 );
3649 return resultobj;
3650fail:
3651 return NULL;
3652}
3653
3654
3655SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3656 PyObject *resultobj = 0;
3657 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3658 void *argp1 = 0 ;
3659 int res1 = 0 ;
3660 PyObject *swig_obj[1] ;
3661
3662 if (!args) SWIG_fail;
3663 swig_obj[0] = args;
3664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 );
3665 if (!SWIG_IsOK(res1)) {
3666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3667 }
3668 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3669 {
3670 PyThreadState* __tstate = wxPyBeginAllowThreads();
3671 delete arg1;
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_Py_Void();
3677 return resultobj;
3678fail:
3679 return NULL;
3680}
3681
3682
3683SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3684 PyObject *resultobj = 0;
3685 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
453fb36b 3686 wxFont result;
f05326ba
RD
3687 void *argp1 = 0 ;
3688 int res1 = 0 ;
3689 PyObject *swig_obj[1] ;
3690
3691 if (!args) SWIG_fail;
3692 swig_obj[0] = args;
3693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3694 if (!SWIG_IsOK(res1)) {
3695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
3696 }
3697 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3698 {
3699 PyThreadState* __tstate = wxPyBeginAllowThreads();
3700 result = ((wxRichTextAttr const *)arg1)->CreateFont();
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
3705 return resultobj;
3706fail:
3707 return NULL;
3708}
3709
3710
3711SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3712 PyObject *resultobj = 0;
3713 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3714 wxFont *arg2 = 0 ;
3715 bool result;
3716 void *argp1 = 0 ;
3717 int res1 = 0 ;
3718 void *argp2 = 0 ;
3719 int res2 = 0 ;
3720 PyObject * obj0 = 0 ;
3721 PyObject * obj1 = 0 ;
3722 char * kwnames[] = {
3723 (char *) "self",(char *) "font", NULL
3724 };
3725
3726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail;
3727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3728 if (!SWIG_IsOK(res1)) {
3729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3730 }
3731 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
3733 if (!SWIG_IsOK(res2)) {
3734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3735 }
3736 if (!argp2) {
3737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3738 }
3739 arg2 = reinterpret_cast< wxFont * >(argp2);
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3748 }
3749 return resultobj;
3750fail:
3751 return NULL;
3752}
3753
3754
3755SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3756 PyObject *resultobj = 0;
3757 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3758 wxColour *arg2 = 0 ;
3759 void *argp1 = 0 ;
3760 int res1 = 0 ;
3761 wxColour temp2 ;
3762 PyObject * obj0 = 0 ;
3763 PyObject * obj1 = 0 ;
3764 char * kwnames[] = {
3765 (char *) "self",(char *) "colText", NULL
3766 };
3767
3768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
3769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3770 if (!SWIG_IsOK(res1)) {
3771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3772 }
3773 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3774 {
3775 arg2 = &temp2;
3776 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3777 }
3778 {
3779 PyThreadState* __tstate = wxPyBeginAllowThreads();
3780 (arg1)->SetTextColour((wxColour const &)*arg2);
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 resultobj = SWIG_Py_Void();
3785 return resultobj;
3786fail:
3787 return NULL;
3788}
3789
3790
3791SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3792 PyObject *resultobj = 0;
3793 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3794 wxColour *arg2 = 0 ;
3795 void *argp1 = 0 ;
3796 int res1 = 0 ;
3797 wxColour temp2 ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 char * kwnames[] = {
3801 (char *) "self",(char *) "colBack", NULL
3802 };
3803
3804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
3805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3806 if (!SWIG_IsOK(res1)) {
3807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3808 }
3809 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3810 {
3811 arg2 = &temp2;
3812 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3813 }
3814 {
3815 PyThreadState* __tstate = wxPyBeginAllowThreads();
3816 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3817 wxPyEndAllowThreads(__tstate);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 }
3820 resultobj = SWIG_Py_Void();
3821 return resultobj;
3822fail:
3823 return NULL;
3824}
3825
3826
3827SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj = 0;
3829 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3830 wxTextAttrAlignment arg2 ;
3831 void *argp1 = 0 ;
3832 int res1 = 0 ;
3833 int val2 ;
3834 int ecode2 = 0 ;
3835 PyObject * obj0 = 0 ;
3836 PyObject * obj1 = 0 ;
3837 char * kwnames[] = {
3838 (char *) "self",(char *) "alignment", NULL
3839 };
3840
3841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
3842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3843 if (!SWIG_IsOK(res1)) {
3844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3845 }
3846 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3847 ecode2 = SWIG_AsVal_int(obj1, &val2);
3848 if (!SWIG_IsOK(ecode2)) {
3849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
3850 }
3851 arg2 = static_cast< wxTextAttrAlignment >(val2);
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 (arg1)->SetAlignment(arg2);
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 resultobj = SWIG_Py_Void();
3859 return resultobj;
3860fail:
3861 return NULL;
3862}
3863
3864
3865SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj = 0;
3867 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3868 wxArrayInt *arg2 = 0 ;
3869 void *argp1 = 0 ;
3870 int res1 = 0 ;
3871 bool temp2 = false ;
3872 PyObject * obj0 = 0 ;
3873 PyObject * obj1 = 0 ;
3874 char * kwnames[] = {
3875 (char *) "self",(char *) "tabs", NULL
3876 };
3877
3878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
3879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3880 if (!SWIG_IsOK(res1)) {
3881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3882 }
3883 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3884 {
3885 if (! PySequence_Check(obj1)) {
3886 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3887 SWIG_fail;
3888 }
3889 arg2 = new wxArrayInt;
3890 temp2 = true;
3891 int i, len=PySequence_Length(obj1);
3892 for (i=0; i<len; i++) {
3893 PyObject* item = PySequence_GetItem(obj1, i);
3894 PyObject* number = PyNumber_Int(item);
3895 arg2->Add(PyInt_AS_LONG(number));
3896 Py_DECREF(item);
3897 Py_DECREF(number);
3898 }
3899 }
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 (arg1)->SetTabs((wxArrayInt const &)*arg2);
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 resultobj = SWIG_Py_Void();
3907 {
3908 if (temp2) delete arg2;
3909 }
3910 return resultobj;
3911fail:
3912 {
3913 if (temp2) delete arg2;
3914 }
3915 return NULL;
3916}
3917
3918
3919SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj = 0;
3921 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3922 int arg2 ;
3923 int arg3 = (int) 0 ;
3924 void *argp1 = 0 ;
3925 int res1 = 0 ;
3926 int val2 ;
3927 int ecode2 = 0 ;
3928 int val3 ;
3929 int ecode3 = 0 ;
3930 PyObject * obj0 = 0 ;
3931 PyObject * obj1 = 0 ;
3932 PyObject * obj2 = 0 ;
3933 char * kwnames[] = {
3934 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
3935 };
3936
3937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3939 if (!SWIG_IsOK(res1)) {
3940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3941 }
3942 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3943 ecode2 = SWIG_AsVal_int(obj1, &val2);
3944 if (!SWIG_IsOK(ecode2)) {
3945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
3946 }
3947 arg2 = static_cast< int >(val2);
3948 if (obj2) {
3949 ecode3 = SWIG_AsVal_int(obj2, &val3);
3950 if (!SWIG_IsOK(ecode3)) {
3951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
3952 }
3953 arg3 = static_cast< int >(val3);
3954 }
3955 {
3956 PyThreadState* __tstate = wxPyBeginAllowThreads();
3957 (arg1)->SetLeftIndent(arg2,arg3);
3958 wxPyEndAllowThreads(__tstate);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 }
3961 resultobj = SWIG_Py_Void();
3962 return resultobj;
3963fail:
3964 return NULL;
3965}
3966
3967
3968SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3969 PyObject *resultobj = 0;
3970 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3971 int arg2 ;
3972 void *argp1 = 0 ;
3973 int res1 = 0 ;
3974 int val2 ;
3975 int ecode2 = 0 ;
3976 PyObject * obj0 = 0 ;
3977 PyObject * obj1 = 0 ;
3978 char * kwnames[] = {
3979 (char *) "self",(char *) "indent", NULL
3980 };
3981
3982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
3983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3986 }
3987 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3988 ecode2 = SWIG_AsVal_int(obj1, &val2);
3989 if (!SWIG_IsOK(ecode2)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
3991 }
3992 arg2 = static_cast< int >(val2);
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 (arg1)->SetRightIndent(arg2);
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 resultobj = SWIG_Py_Void();
4000 return resultobj;
4001fail:
4002 return NULL;
4003}
4004
4005
4006SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4007 PyObject *resultobj = 0;
4008 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4009 int arg2 ;
4010 void *argp1 = 0 ;
4011 int res1 = 0 ;
4012 int val2 ;
4013 int ecode2 = 0 ;
4014 PyObject * obj0 = 0 ;
4015 PyObject * obj1 = 0 ;
4016 char * kwnames[] = {
4017 (char *) "self",(char *) "pointSize", NULL
4018 };
4019
4020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
4021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4022 if (!SWIG_IsOK(res1)) {
4023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4024 }
4025 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4026 ecode2 = SWIG_AsVal_int(obj1, &val2);
4027 if (!SWIG_IsOK(ecode2)) {
4028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'");
4029 }
4030 arg2 = static_cast< int >(val2);
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 (arg1)->SetFontSize(arg2);
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_Py_Void();
4038 return resultobj;
4039fail:
4040 return NULL;
4041}
4042
4043
4044SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj = 0;
4046 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4047 int arg2 ;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 int val2 ;
4051 int ecode2 = 0 ;
4052 PyObject * obj0 = 0 ;
4053 PyObject * obj1 = 0 ;
4054 char * kwnames[] = {
4055 (char *) "self",(char *) "fontStyle", NULL
4056 };
4057
4058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4062 }
4063 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4064 ecode2 = SWIG_AsVal_int(obj1, &val2);
4065 if (!SWIG_IsOK(ecode2)) {
4066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'");
4067 }
4068 arg2 = static_cast< int >(val2);
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 (arg1)->SetFontStyle(arg2);
4072 wxPyEndAllowThreads(__tstate);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 resultobj = SWIG_Py_Void();
4076 return resultobj;
4077fail:
4078 return NULL;
4079}
4080
4081
4082SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj = 0;
4084 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4085 int arg2 ;
4086 void *argp1 = 0 ;
4087 int res1 = 0 ;
4088 int val2 ;
4089 int ecode2 = 0 ;
4090 PyObject * obj0 = 0 ;
4091 PyObject * obj1 = 0 ;
4092 char * kwnames[] = {
4093 (char *) "self",(char *) "fontWeight", NULL
4094 };
4095
4096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail;
4097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4098 if (!SWIG_IsOK(res1)) {
4099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4100 }
4101 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4102 ecode2 = SWIG_AsVal_int(obj1, &val2);
4103 if (!SWIG_IsOK(ecode2)) {
4104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'");
4105 }
4106 arg2 = static_cast< int >(val2);
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 (arg1)->SetFontWeight(arg2);
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 resultobj = SWIG_Py_Void();
4114 return resultobj;
4115fail:
4116 return NULL;
4117}
4118
4119
4120SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj = 0;
4122 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4123 wxString *arg2 = 0 ;
4124 void *argp1 = 0 ;
4125 int res1 = 0 ;
4126 bool temp2 = false ;
4127 PyObject * obj0 = 0 ;
4128 PyObject * obj1 = 0 ;
4129 char * kwnames[] = {
4130 (char *) "self",(char *) "faceName", NULL
4131 };
4132
4133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
4134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4135 if (!SWIG_IsOK(res1)) {
4136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4137 }
4138 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4139 {
4140 arg2 = wxString_in_helper(obj1);
4141 if (arg2 == NULL) SWIG_fail;
4142 temp2 = true;
4143 }
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 (arg1)->SetFontFaceName((wxString const &)*arg2);
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 resultobj = SWIG_Py_Void();
4151 {
4152 if (temp2)
4153 delete arg2;
4154 }
4155 return resultobj;
4156fail:
4157 {
4158 if (temp2)
4159 delete arg2;
4160 }
4161 return NULL;
4162}
4163
4164
4165SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj = 0;
4167 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4168 bool arg2 ;
4169 void *argp1 = 0 ;
4170 int res1 = 0 ;
4171 bool val2 ;
4172 int ecode2 = 0 ;
4173 PyObject * obj0 = 0 ;
4174 PyObject * obj1 = 0 ;
4175 char * kwnames[] = {
4176 (char *) "self",(char *) "underlined", NULL
4177 };
4178
4179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
4180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4181 if (!SWIG_IsOK(res1)) {
4182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4183 }
4184 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4185 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4186 if (!SWIG_IsOK(ecode2)) {
4187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'");
4188 }
4189 arg2 = static_cast< bool >(val2);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 (arg1)->SetFontUnderlined(arg2);
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_Py_Void();
4197 return resultobj;
4198fail:
4199 return NULL;
4200}
4201
4202
4203SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4206 long arg2 ;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 long val2 ;
4210 int ecode2 = 0 ;
4211 PyObject * obj0 = 0 ;
4212 PyObject * obj1 = 0 ;
4213 char * kwnames[] = {
4214 (char *) "self",(char *) "flags", NULL
4215 };
4216
4217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4219 if (!SWIG_IsOK(res1)) {
4220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4221 }
4222 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4223 ecode2 = SWIG_AsVal_long(obj1, &val2);
4224 if (!SWIG_IsOK(ecode2)) {
4225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
4226 }
4227 arg2 = static_cast< long >(val2);
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 (arg1)->SetFlags(arg2);
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_Py_Void();
4235 return resultobj;
4236fail:
4237 return NULL;
4238}
4239
4240
4241SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj = 0;
4243 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4244 wxString *arg2 = 0 ;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 bool temp2 = false ;
4248 PyObject * obj0 = 0 ;
4249 PyObject * obj1 = 0 ;
4250 char * kwnames[] = {
4251 (char *) "self",(char *) "name", NULL
4252 };
4253
4254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4258 }
4259 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4260 {
4261 arg2 = wxString_in_helper(obj1);
4262 if (arg2 == NULL) SWIG_fail;
4263 temp2 = true;
4264 }
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->SetCharacterStyleName((wxString const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 {
4273 if (temp2)
4274 delete arg2;
4275 }
4276 return resultobj;
4277fail:
4278 {
4279 if (temp2)
4280 delete arg2;
4281 }
4282 return NULL;
4283}
4284
4285
4286SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj = 0;
4288 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4289 wxString *arg2 = 0 ;
4290 void *argp1 = 0 ;
4291 int res1 = 0 ;
4292 bool temp2 = false ;
4293 PyObject * obj0 = 0 ;
4294 PyObject * obj1 = 0 ;
4295 char * kwnames[] = {
4296 (char *) "self",(char *) "name", NULL
4297 };
4298
4299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4303 }
4304 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4305 {
4306 arg2 = wxString_in_helper(obj1);
4307 if (arg2 == NULL) SWIG_fail;
4308 temp2 = true;
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 (arg1)->SetParagraphStyleName((wxString const &)*arg2);
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 resultobj = SWIG_Py_Void();
4317 {
4318 if (temp2)
4319 delete arg2;
4320 }
4321 return resultobj;
4322fail:
4323 {
4324 if (temp2)
4325 delete arg2;
4326 }
4327 return NULL;
4328}
4329
4330
4331SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj = 0;
4333 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4334 int arg2 ;
4335 void *argp1 = 0 ;
4336 int res1 = 0 ;
4337 int val2 ;
4338 int ecode2 = 0 ;
4339 PyObject * obj0 = 0 ;
4340 PyObject * obj1 = 0 ;
4341 char * kwnames[] = {
4342 (char *) "self",(char *) "spacing", NULL
4343 };
4344
4345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail;
4346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4347 if (!SWIG_IsOK(res1)) {
4348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4349 }
4350 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4351 ecode2 = SWIG_AsVal_int(obj1, &val2);
4352 if (!SWIG_IsOK(ecode2)) {
4353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'");
4354 }
4355 arg2 = static_cast< int >(val2);
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 (arg1)->SetParagraphSpacingAfter(arg2);
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 resultobj = SWIG_Py_Void();
4363 return resultobj;
4364fail:
4365 return NULL;
4366}
4367
4368
4369SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4370 PyObject *resultobj = 0;
4371 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4372 int arg2 ;
4373 void *argp1 = 0 ;
4374 int res1 = 0 ;
4375 int val2 ;
4376 int ecode2 = 0 ;
4377 PyObject * obj0 = 0 ;
4378 PyObject * obj1 = 0 ;
4379 char * kwnames[] = {
4380 (char *) "self",(char *) "spacing", NULL
4381 };
4382
4383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail;
4384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4385 if (!SWIG_IsOK(res1)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4387 }
4388 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4389 ecode2 = SWIG_AsVal_int(obj1, &val2);
4390 if (!SWIG_IsOK(ecode2)) {
4391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'");
4392 }
4393 arg2 = static_cast< int >(val2);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 (arg1)->SetParagraphSpacingBefore(arg2);
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 resultobj = SWIG_Py_Void();
4401 return resultobj;
4402fail:
4403 return NULL;
4404}
4405
4406
4407SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj = 0;
4409 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4410 int arg2 ;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 int val2 ;
4414 int ecode2 = 0 ;
4415 PyObject * obj0 = 0 ;
4416 PyObject * obj1 = 0 ;
4417 char * kwnames[] = {
4418 (char *) "self",(char *) "spacing", NULL
4419 };
4420
4421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
4422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4423 if (!SWIG_IsOK(res1)) {
4424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4425 }
4426 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4427 ecode2 = SWIG_AsVal_int(obj1, &val2);
4428 if (!SWIG_IsOK(ecode2)) {
4429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'");
4430 }
4431 arg2 = static_cast< int >(val2);
4432 {
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 (arg1)->SetLineSpacing(arg2);
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = SWIG_Py_Void();
4439 return resultobj;
4440fail:
4441 return NULL;
4442}
4443
4444
4445SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj = 0;
4447 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4448 int arg2 ;
4449 void *argp1 = 0 ;
4450 int res1 = 0 ;
4451 int val2 ;
4452 int ecode2 = 0 ;
4453 PyObject * obj0 = 0 ;
4454 PyObject * obj1 = 0 ;
4455 char * kwnames[] = {
4456 (char *) "self",(char *) "style", NULL
4457 };
4458
4459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4461 if (!SWIG_IsOK(res1)) {
4462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4463 }
4464 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4465 ecode2 = SWIG_AsVal_int(obj1, &val2);
4466 if (!SWIG_IsOK(ecode2)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'");
4468 }
4469 arg2 = static_cast< int >(val2);
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 (arg1)->SetBulletStyle(arg2);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_Py_Void();
4477 return resultobj;
4478fail:
4479 return NULL;
4480}
4481
4482
4483SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj = 0;
4485 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4486 int arg2 ;
4487 void *argp1 = 0 ;
4488 int res1 = 0 ;
4489 int val2 ;
4490 int ecode2 = 0 ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 char * kwnames[] = {
4494 (char *) "self",(char *) "n", NULL
4495 };
4496
4497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail;
4498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4499 if (!SWIG_IsOK(res1)) {
4500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4501 }
4502 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4503 ecode2 = SWIG_AsVal_int(obj1, &val2);
4504 if (!SWIG_IsOK(ecode2)) {
4505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'");
4506 }
4507 arg2 = static_cast< int >(val2);
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 (arg1)->SetBulletNumber(arg2);
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = SWIG_Py_Void();
4515 return resultobj;
4516fail:
4517 return NULL;
4518}
4519
4520
4521SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj = 0;
4523 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4524 wxChar arg2 ;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 void *argp2 ;
4528 int res2 = 0 ;
4529 PyObject * obj0 = 0 ;
4530 PyObject * obj1 = 0 ;
4531 char * kwnames[] = {
4532 (char *) "self",(char *) "symbol", NULL
4533 };
4534
4535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail;
4536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4537 if (!SWIG_IsOK(res1)) {
4538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4539 }
4540 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4541 {
4542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0);
4543 if (!SWIG_IsOK(res2)) {
4544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4545 }
4546 if (!argp2) {
4547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4548 } else {
4549 wxChar * temp = reinterpret_cast< wxChar * >(argp2);
4550 arg2 = *temp;
4551 if (SWIG_IsNewObj(res2)) delete temp;
4552 }
4553 }
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 (arg1)->SetBulletSymbol(arg2);
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 resultobj = SWIG_Py_Void();
4561 return resultobj;
4562fail:
4563 return NULL;
4564}
4565
4566
4567SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4568 PyObject *resultobj = 0;
4569 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4570 wxColour *result = 0 ;
4571 void *argp1 = 0 ;
4572 int res1 = 0 ;
4573 PyObject *swig_obj[1] ;
4574
4575 if (!args) SWIG_fail;
4576 swig_obj[0] = args;
4577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4580 }
4581 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4582 {
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 {
4585 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour();
4586 result = (wxColour *) &_result_ref;
4587 }
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4592 return resultobj;
4593fail:
4594 return NULL;
4595}
4596
4597
4598SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4599 PyObject *resultobj = 0;
4600 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4601 wxColour *result = 0 ;
4602 void *argp1 = 0 ;
4603 int res1 = 0 ;
4604 PyObject *swig_obj[1] ;
4605
4606 if (!args) SWIG_fail;
4607 swig_obj[0] = args;
4608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4609 if (!SWIG_IsOK(res1)) {
4610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4611 }
4612 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 {
4616 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour();
4617 result = (wxColour *) &_result_ref;
4618 }
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4623 return resultobj;
4624fail:
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4630 PyObject *resultobj = 0;
4631 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4632 wxTextAttrAlignment result;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 PyObject *swig_obj[1] ;
4636
4637 if (!args) SWIG_fail;
4638 swig_obj[0] = args;
4639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4640 if (!SWIG_IsOK(res1)) {
4641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4642 }
4643 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment();
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_From_int(static_cast< int >(result));
4651 return resultobj;
4652fail:
4653 return NULL;
4654}
4655
4656
4657SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4658 PyObject *resultobj = 0;
4659 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4660 wxArrayInt *result = 0 ;
4661 void *argp1 = 0 ;
4662 int res1 = 0 ;
4663 PyObject *swig_obj[1] ;
4664
4665 if (!args) SWIG_fail;
4666 swig_obj[0] = args;
4667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4668 if (!SWIG_IsOK(res1)) {
4669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4670 }
4671 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4672 {
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 {
4675 wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs();
4676 result = (wxArrayInt *) &_result_ref;
4677 }
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 {
4682 resultobj = PyList_New(0);
4683 size_t idx;
4684 for (idx = 0; idx < result->GetCount(); idx += 1) {
4685 PyObject* val = PyInt_FromLong( result->Item(idx) );
4686 PyList_Append(resultobj, val);
4687 Py_DECREF(val);
4688 }
4689 }
4690 return resultobj;
4691fail:
4692 return NULL;
4693}
4694
4695
4696SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4697 PyObject *resultobj = 0;
4698 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4699 long result;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
4702 PyObject *swig_obj[1] ;
4703
4704 if (!args) SWIG_fail;
4705 swig_obj[0] = args;
4706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4709 }
4710 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4711 {
4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
4713 result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent();
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = SWIG_From_long(static_cast< long >(result));
4718 return resultobj;
4719fail:
4720 return NULL;
4721}
4722
4723
4724SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4725 PyObject *resultobj = 0;
4726 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4727 long result;
4728 void *argp1 = 0 ;
4729 int res1 = 0 ;
4730 PyObject *swig_obj[1] ;
4731
4732 if (!args) SWIG_fail;
4733 swig_obj[0] = args;
4734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4735 if (!SWIG_IsOK(res1)) {
4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4737 }
4738 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent();
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 resultobj = SWIG_From_long(static_cast< long >(result));
4746 return resultobj;
4747fail:
4748 return NULL;
4749}
4750
4751
4752SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4753 PyObject *resultobj = 0;
4754 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4755 long result;
4756 void *argp1 = 0 ;
4757 int res1 = 0 ;
4758 PyObject *swig_obj[1] ;
4759
4760 if (!args) SWIG_fail;
4761 swig_obj[0] = args;
4762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4763 if (!SWIG_IsOK(res1)) {
4764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4765 }
4766 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent();
4770 wxPyEndAllowThreads(__tstate);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 resultobj = SWIG_From_long(static_cast< long >(result));
4774 return resultobj;
4775fail:
4776 return NULL;
4777}
4778
4779
4780SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4781 PyObject *resultobj = 0;
4782 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4783 long result;
4784 void *argp1 = 0 ;
4785 int res1 = 0 ;
4786 PyObject *swig_obj[1] ;
4787
4788 if (!args) SWIG_fail;
4789 swig_obj[0] = args;
4790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4791 if (!SWIG_IsOK(res1)) {
4792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4793 }
4794 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = (long)((wxRichTextAttr const *)arg1)->GetFlags();
4798 wxPyEndAllowThreads(__tstate);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 }
4801 resultobj = SWIG_From_long(static_cast< long >(result));
4802 return resultobj;
4803fail:
4804 return NULL;
4805}
4806
4807
4808SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4809 PyObject *resultobj = 0;
4810 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4811 int result;
4812 void *argp1 = 0 ;
4813 int res1 = 0 ;
4814 PyObject *swig_obj[1] ;
4815
4816 if (!args) SWIG_fail;
4817 swig_obj[0] = args;
4818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4819 if (!SWIG_IsOK(res1)) {
4820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4821 }
4822 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (int)((wxRichTextAttr const *)arg1)->GetFontSize();
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 resultobj = SWIG_From_int(static_cast< int >(result));
4830 return resultobj;
4831fail:
4832 return NULL;
4833}
4834
4835
4836SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4837 PyObject *resultobj = 0;
4838 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4839 int result;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 PyObject *swig_obj[1] ;
4843
4844 if (!args) SWIG_fail;
4845 swig_obj[0] = args;
4846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4847 if (!SWIG_IsOK(res1)) {
4848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4849 }
4850 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle();
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_From_int(static_cast< int >(result));
4858 return resultobj;
4859fail:
4860 return NULL;
4861}
4862
4863
4864SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4865 PyObject *resultobj = 0;
4866 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 PyObject *swig_obj[1] ;
4871
4872 if (!args) SWIG_fail;
4873 swig_obj[0] = args;
4874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4875 if (!SWIG_IsOK(res1)) {
4876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4877 }
4878 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight();
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 resultobj = SWIG_From_int(static_cast< int >(result));
4886 return resultobj;
4887fail:
4888 return NULL;
4889}
4890
4891
4892SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4893 PyObject *resultobj = 0;
4894 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4895 bool result;
4896 void *argp1 = 0 ;
4897 int res1 = 0 ;
4898 PyObject *swig_obj[1] ;
4899
4900 if (!args) SWIG_fail;
4901 swig_obj[0] = args;
4902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4903 if (!SWIG_IsOK(res1)) {
4904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4905 }
4906 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined();
4910 wxPyEndAllowThreads(__tstate);
4911 if (PyErr_Occurred()) SWIG_fail;
4912 }
4913 {
4914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4915 }
4916 return resultobj;
4917fail:
4918 return NULL;
4919}
4920
4921
4922SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4923 PyObject *resultobj = 0;
4924 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4925 wxString *result = 0 ;
4926 void *argp1 = 0 ;
4927 int res1 = 0 ;
4928 PyObject *swig_obj[1] ;
4929
4930 if (!args) SWIG_fail;
4931 swig_obj[0] = args;
4932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4933 if (!SWIG_IsOK(res1)) {
4934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4935 }
4936 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 {
4940 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName();
4941 result = (wxString *) &_result_ref;
4942 }
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 {
4947#if wxUSE_UNICODE
4948 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4949#else
4950 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4951#endif
4952 }
4953 return resultobj;
4954fail:
4955 return NULL;
4956}
4957
4958
4959SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4960 PyObject *resultobj = 0;
4961 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4962 wxString *result = 0 ;
4963 void *argp1 = 0 ;
4964 int res1 = 0 ;
4965 PyObject *swig_obj[1] ;
4966
4967 if (!args) SWIG_fail;
4968 swig_obj[0] = args;
4969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4970 if (!SWIG_IsOK(res1)) {
4971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4972 }
4973 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4974 {
4975 PyThreadState* __tstate = wxPyBeginAllowThreads();
4976 {
4977 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName();
4978 result = (wxString *) &_result_ref;
4979 }
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 {
4984#if wxUSE_UNICODE
4985 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4986#else
4987 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4988#endif
4989 }
4990 return resultobj;
4991fail:
4992 return NULL;
4993}
4994
4995
4996SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4997 PyObject *resultobj = 0;
4998 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4999 wxString *result = 0 ;
5000 void *argp1 = 0 ;
5001 int res1 = 0 ;
5002 PyObject *swig_obj[1] ;
5003
5004 if (!args) SWIG_fail;
5005 swig_obj[0] = args;
5006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5007 if (!SWIG_IsOK(res1)) {
5008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5009 }
5010 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 {
5014 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName();
5015 result = (wxString *) &_result_ref;
5016 }
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 {
5021#if wxUSE_UNICODE
5022 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5023#else
5024 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5025#endif
5026 }
5027 return resultobj;
5028fail:
5029 return NULL;
5030}
5031
5032
5033SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5034 PyObject *resultobj = 0;
5035 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5036 int result;
5037 void *argp1 = 0 ;
5038 int res1 = 0 ;
5039 PyObject *swig_obj[1] ;
5040
5041 if (!args) SWIG_fail;
5042 swig_obj[0] = args;
5043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5044 if (!SWIG_IsOK(res1)) {
5045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5046 }
5047 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5048 {
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter();
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_From_int(static_cast< int >(result));
5055 return resultobj;
5056fail:
5057 return NULL;
5058}
5059
5060
5061SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 PyObject *resultobj = 0;
5063 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5064 int result;
5065 void *argp1 = 0 ;
5066 int res1 = 0 ;
5067 PyObject *swig_obj[1] ;
5068
5069 if (!args) SWIG_fail;
5070 swig_obj[0] = args;
5071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5072 if (!SWIG_IsOK(res1)) {
5073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5074 }
5075 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore();
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_From_int(static_cast< int >(result));
5083 return resultobj;
5084fail:
5085 return NULL;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5090 PyObject *resultobj = 0;
5091 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5092 int result;
5093 void *argp1 = 0 ;
5094 int res1 = 0 ;
5095 PyObject *swig_obj[1] ;
5096
5097 if (!args) SWIG_fail;
5098 swig_obj[0] = args;
5099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5100 if (!SWIG_IsOK(res1)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5102 }
5103 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5104 {
5105 PyThreadState* __tstate = wxPyBeginAllowThreads();
5106 result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing();
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 resultobj = SWIG_From_int(static_cast< int >(result));
5111 return resultobj;
5112fail:
5113 return NULL;
5114}
5115
5116
5117SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5118 PyObject *resultobj = 0;
5119 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5120 int result;
5121 void *argp1 = 0 ;
5122 int res1 = 0 ;
5123 PyObject *swig_obj[1] ;
5124
5125 if (!args) SWIG_fail;
5126 swig_obj[0] = args;
5127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5128 if (!SWIG_IsOK(res1)) {
5129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5130 }
5131 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle();
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 resultobj = SWIG_From_int(static_cast< int >(result));
5139 return resultobj;
5140fail:
5141 return NULL;
5142}
5143
5144
5145SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5146 PyObject *resultobj = 0;
5147 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5148 int result;
5149 void *argp1 = 0 ;
5150 int res1 = 0 ;
5151 PyObject *swig_obj[1] ;
5152
5153 if (!args) SWIG_fail;
5154 swig_obj[0] = args;
5155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5156 if (!SWIG_IsOK(res1)) {
5157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5158 }
5159 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber();
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 resultobj = SWIG_From_int(static_cast< int >(result));
5167 return resultobj;
5168fail:
5169 return NULL;
5170}
5171
5172
5173SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5174 PyObject *resultobj = 0;
5175 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5176 wxChar result;
5177 void *argp1 = 0 ;
5178 int res1 = 0 ;
5179 PyObject *swig_obj[1] ;
5180
5181 if (!args) SWIG_fail;
5182 swig_obj[0] = args;
5183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5186 }
5187 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol();
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 );
5195 return resultobj;
5196fail:
5197 return NULL;
5198}
5199
5200
5201SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5202 PyObject *resultobj = 0;
5203 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5204 bool result;
5205 void *argp1 = 0 ;
5206 int res1 = 0 ;
5207 PyObject *swig_obj[1] ;
5208
5209 if (!args) SWIG_fail;
5210 swig_obj[0] = args;
5211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5212 if (!SWIG_IsOK(res1)) {
5213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5214 }
5215 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour();
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
5222 {
5223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5224 }
5225 return resultobj;
5226fail:
5227 return NULL;
5228}
5229
5230
5231SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5234 bool result;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 PyObject *swig_obj[1] ;
5238
5239 if (!args) SWIG_fail;
5240 swig_obj[0] = args;
5241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5242 if (!SWIG_IsOK(res1)) {
5243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5244 }
5245 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour();
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 {
5253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5254 }
5255 return resultobj;
5256fail:
5257 return NULL;
5258}
5259
5260
5261SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5262 PyObject *resultobj = 0;
5263 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5264 bool result;
5265 void *argp1 = 0 ;
5266 int res1 = 0 ;
5267 PyObject *swig_obj[1] ;
5268
5269 if (!args) SWIG_fail;
5270 swig_obj[0] = args;
5271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5272 if (!SWIG_IsOK(res1)) {
5273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5274 }
5275 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment();
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 {
5283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5284 }
5285 return resultobj;
5286fail:
5287 return NULL;
5288}
5289
5290
5291SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5292 PyObject *resultobj = 0;
5293 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5294 bool result;
5295 void *argp1 = 0 ;
5296 int res1 = 0 ;
5297 PyObject *swig_obj[1] ;
5298
5299 if (!args) SWIG_fail;
5300 swig_obj[0] = args;
5301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5304 }
5305 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (bool)((wxRichTextAttr const *)arg1)->HasTabs();
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 {
5313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5314 }
5315 return resultobj;
5316fail:
5317 return NULL;
5318}
5319
5320
5321SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5322 PyObject *resultobj = 0;
5323 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5324 bool result;
5325 void *argp1 = 0 ;
5326 int res1 = 0 ;
5327 PyObject *swig_obj[1] ;
5328
5329 if (!args) SWIG_fail;
5330 swig_obj[0] = args;
5331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5332 if (!SWIG_IsOK(res1)) {
5333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5334 }
5335 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent();
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 {
5343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5344 }
5345 return resultobj;
5346fail:
5347 return NULL;
5348}
5349
5350
5351SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5352 PyObject *resultobj = 0;
5353 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5354 bool result;
5355 void *argp1 = 0 ;
5356 int res1 = 0 ;
5357 PyObject *swig_obj[1] ;
5358
5359 if (!args) SWIG_fail;
5360 swig_obj[0] = args;
5361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5362 if (!SWIG_IsOK(res1)) {
5363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5364 }
5365 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent();
5369 wxPyEndAllowThreads(__tstate);
5370 if (PyErr_Occurred()) SWIG_fail;
5371 }
5372 {
5373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5374 }
5375 return resultobj;
5376fail:
5377 return NULL;
5378}
5379
5380
5381SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5382 PyObject *resultobj = 0;
5383 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5384 bool result;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 PyObject *swig_obj[1] ;
5388
5389 if (!args) SWIG_fail;
5390 swig_obj[0] = args;
5391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5392 if (!SWIG_IsOK(res1)) {
5393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5394 }
5395 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 result = (bool)((wxRichTextAttr const *)arg1)->HasWeight();
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 {
5403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5404 }
5405 return resultobj;
5406fail:
5407 return NULL;
5408}
5409
5410
5411SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5412 PyObject *resultobj = 0;
5413 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5414 bool result;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject *swig_obj[1] ;
5418
5419 if (!args) SWIG_fail;
5420 swig_obj[0] = args;
5421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5422 if (!SWIG_IsOK(res1)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5424 }
5425 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 result = (bool)((wxRichTextAttr const *)arg1)->HasSize();
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5434 }
5435 return resultobj;
5436fail:
5437 return NULL;
5438}
5439
5440
5441SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5442 PyObject *resultobj = 0;
5443 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5444 bool result;
5445 void *argp1 = 0 ;
5446 int res1 = 0 ;
5447 PyObject *swig_obj[1] ;
5448
5449 if (!args) SWIG_fail;
5450 swig_obj[0] = args;
5451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5452 if (!SWIG_IsOK(res1)) {
5453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5454 }
5455 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (bool)((wxRichTextAttr const *)arg1)->HasItalic();
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 {
5463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5464 }
5465 return resultobj;
5466fail:
5467 return NULL;
5468}
5469
5470
5471SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5472 PyObject *resultobj = 0;
5473 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5474 bool result;
5475 void *argp1 = 0 ;
5476 int res1 = 0 ;
5477 PyObject *swig_obj[1] ;
5478
5479 if (!args) SWIG_fail;
5480 swig_obj[0] = args;
5481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5482 if (!SWIG_IsOK(res1)) {
5483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5484 }
5485 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined();
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5494 }
5495 return resultobj;
5496fail:
5497 return NULL;
5498}
5499
5500
5501SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5502 PyObject *resultobj = 0;
5503 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5504 bool result;
5505 void *argp1 = 0 ;
5506 int res1 = 0 ;
5507 PyObject *swig_obj[1] ;
5508
5509 if (!args) SWIG_fail;
5510 swig_obj[0] = args;
5511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5512 if (!SWIG_IsOK(res1)) {
5513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5514 }
5515 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName();
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 {
5523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5524 }
5525 return resultobj;
5526fail:
5527 return NULL;
5528}
5529
5530
5531SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5532 PyObject *resultobj = 0;
5533 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5534 bool result;
5535 void *argp1 = 0 ;
5536 int res1 = 0 ;
5537 PyObject *swig_obj[1] ;
5538
5539 if (!args) SWIG_fail;
5540 swig_obj[0] = args;
5541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5542 if (!SWIG_IsOK(res1)) {
5543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5544 }
5545 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (bool)((wxRichTextAttr const *)arg1)->HasFont();
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 {
5553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5554 }
5555 return resultobj;
5556fail:
5557 return NULL;
5558}
5559
5560
5561SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5562 PyObject *resultobj = 0;
5563 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5564 bool result;
5565 void *argp1 = 0 ;
5566 int res1 = 0 ;
5567 PyObject *swig_obj[1] ;
5568
5569 if (!args) SWIG_fail;
5570 swig_obj[0] = args;
5571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5572 if (!SWIG_IsOK(res1)) {
5573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5574 }
5575 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter();
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 {
5583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5584 }
5585 return resultobj;
5586fail:
5587 return NULL;
5588}
5589
5590
5591SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5592 PyObject *resultobj = 0;
5593 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5594 bool result;
5595 void *argp1 = 0 ;
5596 int res1 = 0 ;
5597 PyObject *swig_obj[1] ;
5598
5599 if (!args) SWIG_fail;
5600 swig_obj[0] = args;
5601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5604 }
5605 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5606 {
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore();
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 {
5613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5614 }
5615 return resultobj;
5616fail:
5617 return NULL;
5618}
5619
5620
5621SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5622 PyObject *resultobj = 0;
5623 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5624 bool result;
5625 void *argp1 = 0 ;
5626 int res1 = 0 ;
5627 PyObject *swig_obj[1] ;
5628
5629 if (!args) SWIG_fail;
5630 swig_obj[0] = args;
5631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5632 if (!SWIG_IsOK(res1)) {
5633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5634 }
5635 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing();
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 {
5643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5644 }
5645 return resultobj;
5646fail:
5647 return NULL;
5648}
5649
5650
5651SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5654 bool result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5664 }
5665 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 {
5673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5674 }
5675 return resultobj;
5676fail:
5677 return NULL;
5678}
5679
5680
5681SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5682 PyObject *resultobj = 0;
5683 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 PyObject *swig_obj[1] ;
5688
5689 if (!args) SWIG_fail;
5690 swig_obj[0] = args;
5691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5692 if (!SWIG_IsOK(res1)) {
5693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5694 }
5695 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName();
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 {
5703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5704 }
5705 return resultobj;
5706fail:
5707 return NULL;
5708}
5709
5710
5711SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5714 bool result;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject *swig_obj[1] ;
5718
5719 if (!args) SWIG_fail;
5720 swig_obj[0] = args;
5721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5724 }
5725 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle();
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5734 }
5735 return resultobj;
5736fail:
5737 return NULL;
5738}
5739
5740
5741SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5742 PyObject *resultobj = 0;
5743 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5744 bool result;
5745 void *argp1 = 0 ;
5746 int res1 = 0 ;
5747 PyObject *swig_obj[1] ;
5748
5749 if (!args) SWIG_fail;
5750 swig_obj[0] = args;
5751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5752 if (!SWIG_IsOK(res1)) {
5753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5754 }
5755 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber();
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 {
5763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5764 }
5765 return resultobj;
5766fail:
5767 return NULL;
5768}
5769
5770
5771SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5772 PyObject *resultobj = 0;
5773 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5774 bool result;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject *swig_obj[1] ;
5778
5779 if (!args) SWIG_fail;
5780 swig_obj[0] = args;
5781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5784 }
5785 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol();
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 {
5793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5794 }
5795 return resultobj;
5796fail:
5797 return NULL;
5798}
5799
5800
5801SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj = 0;
5803 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5804 long arg2 ;
5805 bool result;
5806 void *argp1 = 0 ;
5807 int res1 = 0 ;
5808 long val2 ;
5809 int ecode2 = 0 ;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 char * kwnames[] = {
5813 (char *) "self",(char *) "flag", NULL
5814 };
5815
5816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
5817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5818 if (!SWIG_IsOK(res1)) {
5819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5820 }
5821 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5822 ecode2 = SWIG_AsVal_long(obj1, &val2);
5823 if (!SWIG_IsOK(ecode2)) {
5824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
5825 }
5826 arg2 = static_cast< long >(val2);
5827 {
5828 PyThreadState* __tstate = wxPyBeginAllowThreads();
5829 result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2);
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 {
5834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5835 }
5836 return resultobj;
5837fail:
5838 return NULL;
5839}
5840
5841
5842SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5843 PyObject *resultobj = 0;
5844 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5845 bool result;
5846 void *argp1 = 0 ;
5847 int res1 = 0 ;
5848 PyObject *swig_obj[1] ;
5849
5850 if (!args) SWIG_fail;
5851 swig_obj[0] = args;
5852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5853 if (!SWIG_IsOK(res1)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5855 }
5856 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle();
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 {
5864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5865 }
5866 return resultobj;
5867fail:
5868 return NULL;
5869}
5870
5871
5872SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5873 PyObject *resultobj = 0;
5874 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5875 bool result;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 PyObject *swig_obj[1] ;
5879
5880 if (!args) SWIG_fail;
5881 swig_obj[0] = args;
5882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5885 }
5886 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle();
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 {
5894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5895 }
5896 return resultobj;
5897fail:
5898 return NULL;
5899}
5900
5901
5902SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5903 PyObject *resultobj = 0;
5904 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5905 bool result;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5915 }
5916 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (bool)((wxRichTextAttr const *)arg1)->IsDefault();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 {
5924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5925 }
5926 return resultobj;
5927fail:
5928 return NULL;
5929}
5930
5931
5932SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5933 PyObject *obj;
5934 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5935 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj));
5936 return SWIG_Py_Void();
5937}
5938
5939SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 return SWIG_Python_InitShadowInstance(args);
5941}
5942
5943SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5944 PyObject *resultobj = 0;
5945 wxWindow *arg1 = (wxWindow *) 0 ;
5946 int arg2 = (int) -1 ;
0ef86618
RD
5947 wxString const &arg3_defvalue = wxPyEmptyString ;
5948 wxString *arg3 = (wxString *) &arg3_defvalue ;
5949 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5950 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5951 wxSize const &arg5_defvalue = wxDefaultSize ;
5952 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5953 long arg6 = (long) wxRE_MULTILINE ;
f05326ba
RD
5954 wxRichTextCtrl *result = 0 ;
5955 void *argp1 = 0 ;
5956 int res1 = 0 ;
5957 int val2 ;
5958 int ecode2 = 0 ;
0ef86618
RD
5959 bool temp3 = false ;
5960 wxPoint temp4 ;
5961 wxSize temp5 ;
5962 long val6 ;
5963 int ecode6 = 0 ;
f05326ba
RD
5964 PyObject * obj0 = 0 ;
5965 PyObject * obj1 = 0 ;
5966 PyObject * obj2 = 0 ;
5967 PyObject * obj3 = 0 ;
5968 PyObject * obj4 = 0 ;
0ef86618 5969 PyObject * obj5 = 0 ;
f05326ba 5970 char * kwnames[] = {
0ef86618 5971 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
f05326ba
RD
5972 };
5973
0ef86618 5974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
f05326ba
RD
5975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5976 if (!SWIG_IsOK(res1)) {
5977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
5978 }
5979 arg1 = reinterpret_cast< wxWindow * >(argp1);
5980 if (obj1) {
5981 ecode2 = SWIG_AsVal_int(obj1, &val2);
5982 if (!SWIG_IsOK(ecode2)) {
5983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'");
5984 }
5985 arg2 = static_cast< int >(val2);
5986 }
5987 if (obj2) {
5988 {
0ef86618
RD
5989 arg3 = wxString_in_helper(obj2);
5990 if (arg3 == NULL) SWIG_fail;
5991 temp3 = true;
f05326ba
RD
5992 }
5993 }
5994 if (obj3) {
5995 {
5996 arg4 = &temp4;
0ef86618 5997 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f05326ba
RD
5998 }
5999 }
6000 if (obj4) {
0ef86618
RD
6001 {
6002 arg5 = &temp5;
6003 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6004 }
6005 }
6006 if (obj5) {
6007 ecode6 = SWIG_AsVal_long(obj5, &val6);
6008 if (!SWIG_IsOK(ecode6)) {
6009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'");
f05326ba 6010 }
0ef86618 6011 arg6 = static_cast< long >(val6);
f05326ba
RD
6012 }
6013 {
6014 if (!wxPyCheckForApp()) SWIG_fail;
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ef86618 6016 result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
f05326ba
RD
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 );
0ef86618
RD
6021 {
6022 if (temp3)
6023 delete arg3;
6024 }
f05326ba
RD
6025 return resultobj;
6026fail:
0ef86618
RD
6027 {
6028 if (temp3)
6029 delete arg3;
6030 }
f05326ba
RD
6031 return NULL;
6032}
6033
6034
6035SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6036 PyObject *resultobj = 0;
6037 wxRichTextCtrl *result = 0 ;
6038
6039 if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail;
6040 {
6041 if (!wxPyCheckForApp()) SWIG_fail;
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 result = (wxRichTextCtrl *)new wxRichTextCtrl();
6044 wxPyEndAllowThreads(__tstate);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 );
6048 return resultobj;
6049fail:
6050 return NULL;
6051}
6052
6053
6054SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6055 PyObject *resultobj = 0;
6056 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6057 wxWindow *arg2 = (wxWindow *) 0 ;
6058 int arg3 = (int) -1 ;
0ef86618
RD
6059 wxString const &arg4_defvalue = wxPyEmptyString ;
6060 wxString *arg4 = (wxString *) &arg4_defvalue ;
6061 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6062 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6063 wxSize const &arg6_defvalue = wxDefaultSize ;
6064 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6065 long arg7 = (long) wxRE_MULTILINE ;
f05326ba
RD
6066 bool result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 void *argp2 = 0 ;
6070 int res2 = 0 ;
6071 int val3 ;
6072 int ecode3 = 0 ;
0ef86618
RD
6073 bool temp4 = false ;
6074 wxPoint temp5 ;
6075 wxSize temp6 ;
6076 long val7 ;
6077 int ecode7 = 0 ;
f05326ba
RD
6078 PyObject * obj0 = 0 ;
6079 PyObject * obj1 = 0 ;
6080 PyObject * obj2 = 0 ;
6081 PyObject * obj3 = 0 ;
6082 PyObject * obj4 = 0 ;
6083 PyObject * obj5 = 0 ;
0ef86618 6084 PyObject * obj6 = 0 ;
f05326ba 6085 char * kwnames[] = {
0ef86618 6086 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
f05326ba
RD
6087 };
6088
0ef86618 6089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
f05326ba
RD
6090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6091 if (!SWIG_IsOK(res1)) {
6092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6093 }
6094 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6095 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6096 if (!SWIG_IsOK(res2)) {
6097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6098 }
6099 arg2 = reinterpret_cast< wxWindow * >(argp2);
6100 if (obj2) {
6101 ecode3 = SWIG_AsVal_int(obj2, &val3);
6102 if (!SWIG_IsOK(ecode3)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
6104 }
6105 arg3 = static_cast< int >(val3);
6106 }
6107 if (obj3) {
6108 {
0ef86618
RD
6109 arg4 = wxString_in_helper(obj3);
6110 if (arg4 == NULL) SWIG_fail;
6111 temp4 = true;
f05326ba
RD
6112 }
6113 }
6114 if (obj4) {
6115 {
6116 arg5 = &temp5;
0ef86618 6117 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f05326ba
RD
6118 }
6119 }
6120 if (obj5) {
0ef86618
RD
6121 {
6122 arg6 = &temp6;
6123 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6124 }
6125 }
6126 if (obj6) {
6127 ecode7 = SWIG_AsVal_long(obj6, &val7);
6128 if (!SWIG_IsOK(ecode7)) {
6129 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
f05326ba 6130 }
0ef86618 6131 arg7 = static_cast< long >(val7);
f05326ba
RD
6132 }
6133 {
6134 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ef86618 6135 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7);
f05326ba
RD
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 {
6140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6141 }
0ef86618
RD
6142 {
6143 if (temp4)
6144 delete arg4;
6145 }
f05326ba
RD
6146 return resultobj;
6147fail:
0ef86618
RD
6148 {
6149 if (temp4)
6150 delete arg4;
6151 }
f05326ba
RD
6152 return NULL;
6153}
6154
6155
6156SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6157 PyObject *resultobj = 0;
6158 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6159 wxString result;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 PyObject *swig_obj[1] ;
6163
6164 if (!args) SWIG_fail;
6165 swig_obj[0] = args;
6166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6169 }
6170 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 result = ((wxRichTextCtrl const *)arg1)->GetValue();
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 {
6178#if wxUSE_UNICODE
6179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6180#else
6181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6182#endif
6183 }
6184 return resultobj;
6185fail:
6186 return NULL;
6187}
6188
6189
6190SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj = 0;
6192 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6193 wxString *arg2 = 0 ;
6194 void *argp1 = 0 ;
6195 int res1 = 0 ;
6196 bool temp2 = false ;
6197 PyObject * obj0 = 0 ;
6198 PyObject * obj1 = 0 ;
6199 char * kwnames[] = {
6200 (char *) "self",(char *) "value", NULL
6201 };
6202
6203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
6204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6205 if (!SWIG_IsOK(res1)) {
6206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6207 }
6208 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6209 {
6210 arg2 = wxString_in_helper(obj1);
6211 if (arg2 == NULL) SWIG_fail;
6212 temp2 = true;
6213 }
6214 {
6215 PyThreadState* __tstate = wxPyBeginAllowThreads();
6216 (arg1)->SetValue((wxString const &)*arg2);
6217 wxPyEndAllowThreads(__tstate);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 resultobj = SWIG_Py_Void();
6221 {
6222 if (temp2)
6223 delete arg2;
6224 }
6225 return resultobj;
6226fail:
6227 {
6228 if (temp2)
6229 delete arg2;
6230 }
6231 return NULL;
6232}
6233
6234
6235SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6236 PyObject *resultobj = 0;
6237 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6238 long arg2 ;
6239 long arg3 ;
6240 wxString result;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 long val2 ;
6244 int ecode2 = 0 ;
6245 long val3 ;
6246 int ecode3 = 0 ;
6247 PyObject * obj0 = 0 ;
6248 PyObject * obj1 = 0 ;
6249 PyObject * obj2 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "from",(char *) "to", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6258 }
6259 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6260 ecode2 = SWIG_AsVal_long(obj1, &val2);
6261 if (!SWIG_IsOK(ecode2)) {
6262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
6263 }
6264 arg2 = static_cast< long >(val2);
6265 ecode3 = SWIG_AsVal_long(obj2, &val3);
6266 if (!SWIG_IsOK(ecode3)) {
6267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
6268 }
6269 arg3 = static_cast< long >(val3);
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3);
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 {
6277#if wxUSE_UNICODE
6278 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6279#else
6280 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6281#endif
6282 }
6283 return resultobj;
6284fail:
6285 return NULL;
6286}
6287
6288
6289SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6290 PyObject *resultobj = 0;
6291 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6292 long arg2 ;
6293 int result;
6294 void *argp1 = 0 ;
6295 int res1 = 0 ;
6296 long val2 ;
6297 int ecode2 = 0 ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 char * kwnames[] = {
6301 (char *) "self",(char *) "lineNo", NULL
6302 };
6303
6304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
6305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6306 if (!SWIG_IsOK(res1)) {
6307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6308 }
6309 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6310 ecode2 = SWIG_AsVal_long(obj1, &val2);
6311 if (!SWIG_IsOK(ecode2)) {
6312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
6313 }
6314 arg2 = static_cast< long >(val2);
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2);
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_From_int(static_cast< int >(result));
6322 return resultobj;
6323fail:
6324 return NULL;
6325}
6326
6327
6328SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj = 0;
6330 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6331 long arg2 ;
6332 wxString result;
6333 void *argp1 = 0 ;
6334 int res1 = 0 ;
6335 long val2 ;
6336 int ecode2 = 0 ;
6337 PyObject * obj0 = 0 ;
6338 PyObject * obj1 = 0 ;
6339 char * kwnames[] = {
6340 (char *) "self",(char *) "lineNo", NULL
6341 };
6342
6343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
6344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6345 if (!SWIG_IsOK(res1)) {
6346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6347 }
6348 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6349 ecode2 = SWIG_AsVal_long(obj1, &val2);
6350 if (!SWIG_IsOK(ecode2)) {
6351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
6352 }
6353 arg2 = static_cast< long >(val2);
6354 {
6355 PyThreadState* __tstate = wxPyBeginAllowThreads();
6356 result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2);
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 {
6361#if wxUSE_UNICODE
6362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6363#else
6364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6365#endif
6366 }
6367 return resultobj;
6368fail:
6369 return NULL;
6370}
6371
6372
6373SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6376 int result;
6377 void *argp1 = 0 ;
6378 int res1 = 0 ;
6379 PyObject *swig_obj[1] ;
6380
6381 if (!args) SWIG_fail;
6382 swig_obj[0] = args;
6383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6386 }
6387 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines();
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_From_int(static_cast< int >(result));
6395 return resultobj;
6396fail:
6397 return NULL;
6398}
6399
6400
6401SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6402 PyObject *resultobj = 0;
6403 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6404 bool result;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 PyObject *swig_obj[1] ;
6408
6409 if (!args) SWIG_fail;
6410 swig_obj[0] = args;
6411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6414 }
6415 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 result = (bool)((wxRichTextCtrl const *)arg1)->IsModified();
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6424 }
6425 return resultobj;
6426fail:
6427 return NULL;
6428}
6429
6430
6431SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6432 PyObject *resultobj = 0;
6433 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6434 bool result;
6435 void *argp1 = 0 ;
6436 int res1 = 0 ;
6437 PyObject *swig_obj[1] ;
6438
6439 if (!args) SWIG_fail;
6440 swig_obj[0] = args;
6441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6442 if (!SWIG_IsOK(res1)) {
6443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6444 }
6445 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6446 {
6447 PyThreadState* __tstate = wxPyBeginAllowThreads();
6448 result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable();
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 {
6453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6454 }
6455 return resultobj;
6456fail:
6457 return NULL;
6458}
6459
6460
6461SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6462 PyObject *resultobj = 0;
6463 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6464 bool result;
6465 void *argp1 = 0 ;
6466 int res1 = 0 ;
6467 PyObject *swig_obj[1] ;
6468
6469 if (!args) SWIG_fail;
6470 swig_obj[0] = args;
6471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6472 if (!SWIG_IsOK(res1)) {
6473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6474 }
6475 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine();
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 {
6483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6484 }
6485 return resultobj;
6486fail:
6487 return NULL;
6488}
6489
6490
6491SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6492 PyObject *resultobj = 0;
6493 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6494 bool result;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 PyObject *swig_obj[1] ;
6498
6499 if (!args) SWIG_fail;
6500 swig_obj[0] = args;
6501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6502 if (!SWIG_IsOK(res1)) {
6503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6504 }
6505 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6506 {
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine();
6509 wxPyEndAllowThreads(__tstate);
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 {
6513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6514 }
6515 return resultobj;
6516fail:
6517 return NULL;
6518}
6519
6520
6521SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6522 PyObject *resultobj = 0;
6523 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6524 long *arg2 = (long *) 0 ;
6525 long *arg3 = (long *) 0 ;
6526 void *argp1 = 0 ;
6527 int res1 = 0 ;
6528 long temp2 ;
6529 int res2 = SWIG_TMPOBJ ;
6530 long temp3 ;
6531 int res3 = SWIG_TMPOBJ ;
6532 PyObject *swig_obj[1] ;
6533
6534 arg2 = &temp2;
6535 arg3 = &temp3;
6536 if (!args) SWIG_fail;
6537 swig_obj[0] = args;
6538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6539 if (!SWIG_IsOK(res1)) {
6540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6541 }
6542 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6543 {
6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
6545 ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3);
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_Py_Void();
6550 if (SWIG_IsTmpObj(res2)) {
6551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6552 } else {
6553 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6555 }
6556 if (SWIG_IsTmpObj(res3)) {
6557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6558 } else {
6559 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6561 }
6562 return resultobj;
6563fail:
6564 return NULL;
6565}
6566
6567
6568SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6571 wxString result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6581 }
6582 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = ((wxRichTextCtrl const *)arg1)->GetStringSelection();
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590#if wxUSE_UNICODE
6591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6592#else
6593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6594#endif
6595 }
6596 return resultobj;
6597fail:
6598 return NULL;
6599}
6600
6601
6602SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6603 PyObject *resultobj = 0;
6604 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6605 wxString result;
6606 void *argp1 = 0 ;
6607 int res1 = 0 ;
6608 PyObject *swig_obj[1] ;
6609
6610 if (!args) SWIG_fail;
6611 swig_obj[0] = args;
6612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6613 if (!SWIG_IsOK(res1)) {
6614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6615 }
6616 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6617 {
6618 PyThreadState* __tstate = wxPyBeginAllowThreads();
6619 result = ((wxRichTextCtrl const *)arg1)->GetFilename();
6620 wxPyEndAllowThreads(__tstate);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 {
6624#if wxUSE_UNICODE
6625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6626#else
6627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6628#endif
6629 }
6630 return resultobj;
6631fail:
6632 return NULL;
6633}
6634
6635
6636SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6637 PyObject *resultobj = 0;
6638 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6639 wxString *arg2 = 0 ;
6640 void *argp1 = 0 ;
6641 int res1 = 0 ;
6642 bool temp2 = false ;
6643 PyObject * obj0 = 0 ;
6644 PyObject * obj1 = 0 ;
6645 char * kwnames[] = {
6646 (char *) "self",(char *) "filename", NULL
6647 };
6648
6649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail;
6650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6651 if (!SWIG_IsOK(res1)) {
6652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6653 }
6654 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6655 {
6656 arg2 = wxString_in_helper(obj1);
6657 if (arg2 == NULL) SWIG_fail;
6658 temp2 = true;
6659 }
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 (arg1)->SetFilename((wxString const &)*arg2);
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 resultobj = SWIG_Py_Void();
6667 {
6668 if (temp2)
6669 delete arg2;
6670 }
6671 return resultobj;
6672fail:
6673 {
6674 if (temp2)
6675 delete arg2;
6676 }
6677 return NULL;
6678}
6679
6680
6681SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6682 PyObject *resultobj = 0;
6683 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6684 long arg2 ;
6685 void *argp1 = 0 ;
6686 int res1 = 0 ;
6687 long val2 ;
6688 int ecode2 = 0 ;
6689 PyObject * obj0 = 0 ;
6690 PyObject * obj1 = 0 ;
6691 char * kwnames[] = {
6692 (char *) "self",(char *) "threshold", NULL
6693 };
6694
6695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
6696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6697 if (!SWIG_IsOK(res1)) {
6698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6699 }
6700 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6701 ecode2 = SWIG_AsVal_long(obj1, &val2);
6702 if (!SWIG_IsOK(ecode2)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'");
6704 }
6705 arg2 = static_cast< long >(val2);
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 (arg1)->SetDelayedLayoutThreshold(arg2);
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 resultobj = SWIG_Py_Void();
6713 return resultobj;
6714fail:
6715 return NULL;
6716}
6717
6718
6719SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6720 PyObject *resultobj = 0;
6721 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6722 long result;
6723 void *argp1 = 0 ;
6724 int res1 = 0 ;
6725 PyObject *swig_obj[1] ;
6726
6727 if (!args) SWIG_fail;
6728 swig_obj[0] = args;
6729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6732 }
6733 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold();
6737 wxPyEndAllowThreads(__tstate);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 resultobj = SWIG_From_long(static_cast< long >(result));
6741 return resultobj;
6742fail:
6743 return NULL;
6744}
6745
6746
6747SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6748 PyObject *resultobj = 0;
6749 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6750 void *argp1 = 0 ;
6751 int res1 = 0 ;
6752 PyObject *swig_obj[1] ;
6753
6754 if (!args) SWIG_fail;
6755 swig_obj[0] = args;
6756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6757 if (!SWIG_IsOK(res1)) {
6758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6759 }
6760 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6761 {
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 (arg1)->Clear();
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 resultobj = SWIG_Py_Void();
6768 return resultobj;
6769fail:
6770 return NULL;
6771}
6772
6773
6774SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj = 0;
6776 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6777 long arg2 ;
6778 long arg3 ;
6779 wxString *arg4 = 0 ;
6780 void *argp1 = 0 ;
6781 int res1 = 0 ;
6782 long val2 ;
6783 int ecode2 = 0 ;
6784 long val3 ;
6785 int ecode3 = 0 ;
6786 bool temp4 = false ;
6787 PyObject * obj0 = 0 ;
6788 PyObject * obj1 = 0 ;
6789 PyObject * obj2 = 0 ;
6790 PyObject * obj3 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6799 }
6800 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6801 ecode2 = SWIG_AsVal_long(obj1, &val2);
6802 if (!SWIG_IsOK(ecode2)) {
6803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
6804 }
6805 arg2 = static_cast< long >(val2);
6806 ecode3 = SWIG_AsVal_long(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
6809 }
6810 arg3 = static_cast< long >(val3);
6811 {
6812 arg4 = wxString_in_helper(obj3);
6813 if (arg4 == NULL) SWIG_fail;
6814 temp4 = true;
6815 }
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 resultobj = SWIG_Py_Void();
6823 {
6824 if (temp4)
6825 delete arg4;
6826 }
6827 return resultobj;
6828fail:
6829 {
6830 if (temp4)
6831 delete arg4;
6832 }
6833 return NULL;
6834}
6835
6836
6837SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj = 0;
6839 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6840 long arg2 ;
6841 long arg3 ;
6842 void *argp1 = 0 ;
6843 int res1 = 0 ;
6844 long val2 ;
6845 int ecode2 = 0 ;
6846 long val3 ;
6847 int ecode3 = 0 ;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 PyObject * obj2 = 0 ;
6851 char * kwnames[] = {
6852 (char *) "self",(char *) "from",(char *) "to", NULL
6853 };
6854
6855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6857 if (!SWIG_IsOK(res1)) {
6858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6859 }
6860 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6861 ecode2 = SWIG_AsVal_long(obj1, &val2);
6862 if (!SWIG_IsOK(ecode2)) {
6863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
6864 }
6865 arg2 = static_cast< long >(val2);
6866 ecode3 = SWIG_AsVal_long(obj2, &val3);
6867 if (!SWIG_IsOK(ecode3)) {
6868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
6869 }
6870 arg3 = static_cast< long >(val3);
6871 {
6872 PyThreadState* __tstate = wxPyBeginAllowThreads();
6873 (arg1)->Remove(arg2,arg3);
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 resultobj = SWIG_Py_Void();
6878 return resultobj;
6879fail:
6880 return NULL;
6881}
6882
6883
6884SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj = 0;
6886 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6887 wxString *arg2 = 0 ;
6888 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6889 bool result;
6890 void *argp1 = 0 ;
6891 int res1 = 0 ;
6892 bool temp2 = false ;
6893 int val3 ;
6894 int ecode3 = 0 ;
6895 PyObject * obj0 = 0 ;
6896 PyObject * obj1 = 0 ;
6897 PyObject * obj2 = 0 ;
6898 char * kwnames[] = {
6899 (char *) "self",(char *) "file",(char *) "type", NULL
6900 };
6901
6902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6904 if (!SWIG_IsOK(res1)) {
6905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6906 }
6907 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6908 {
6909 arg2 = wxString_in_helper(obj1);
6910 if (arg2 == NULL) SWIG_fail;
6911 temp2 = true;
6912 }
6913 if (obj2) {
6914 ecode3 = SWIG_AsVal_int(obj2, &val3);
6915 if (!SWIG_IsOK(ecode3)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
6917 }
6918 arg3 = static_cast< int >(val3);
6919 }
6920 {
6921 PyThreadState* __tstate = wxPyBeginAllowThreads();
6922 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 {
6927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6928 }
6929 {
6930 if (temp2)
6931 delete arg2;
6932 }
6933 return resultobj;
6934fail:
6935 {
6936 if (temp2)
6937 delete arg2;
6938 }
6939 return NULL;
6940}
6941
6942
6943SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj = 0;
6945 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6946 wxString const &arg2_defvalue = wxPyEmptyString ;
6947 wxString *arg2 = (wxString *) &arg2_defvalue ;
6948 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6949 bool result;
6950 void *argp1 = 0 ;
6951 int res1 = 0 ;
6952 bool temp2 = false ;
6953 int val3 ;
6954 int ecode3 = 0 ;
6955 PyObject * obj0 = 0 ;
6956 PyObject * obj1 = 0 ;
6957 PyObject * obj2 = 0 ;
6958 char * kwnames[] = {
6959 (char *) "self",(char *) "file",(char *) "type", NULL
6960 };
6961
6962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6964 if (!SWIG_IsOK(res1)) {
6965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6966 }
6967 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6968 if (obj1) {
6969 {
6970 arg2 = wxString_in_helper(obj1);
6971 if (arg2 == NULL) SWIG_fail;
6972 temp2 = true;
6973 }
6974 }
6975 if (obj2) {
6976 ecode3 = SWIG_AsVal_int(obj2, &val3);
6977 if (!SWIG_IsOK(ecode3)) {
6978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
6979 }
6980 arg3 = static_cast< int >(val3);
6981 }
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 {
6989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6990 }
6991 {
6992 if (temp2)
6993 delete arg2;
6994 }
6995 return resultobj;
6996fail:
6997 {
6998 if (temp2)
6999 delete arg2;
7000 }
7001 return NULL;
7002}
7003
7004
7005SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7006 PyObject *resultobj = 0;
7007 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 PyObject *swig_obj[1] ;
7011
7012 if (!args) SWIG_fail;
7013 swig_obj[0] = args;
7014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7017 }
7018 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 (arg1)->MarkDirty();
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_Py_Void();
7026 return resultobj;
7027fail:
7028 return NULL;
7029}
7030
7031
7032SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7033 PyObject *resultobj = 0;
7034 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7035 void *argp1 = 0 ;
7036 int res1 = 0 ;
7037 PyObject *swig_obj[1] ;
7038
7039 if (!args) SWIG_fail;
7040 swig_obj[0] = args;
7041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7044 }
7045 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7046 {
7047 PyThreadState* __tstate = wxPyBeginAllowThreads();
7048 (arg1)->DiscardEdits();
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 resultobj = SWIG_Py_Void();
7053 return resultobj;
7054fail:
7055 return NULL;
7056}
7057
7058
7059SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj = 0;
7061 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7062 unsigned long arg2 ;
7063 void *argp1 = 0 ;
7064 int res1 = 0 ;
7065 unsigned long val2 ;
7066 int ecode2 = 0 ;
7067 PyObject * obj0 = 0 ;
7068 PyObject * obj1 = 0 ;
7069 char * kwnames[] = {
7070 (char *) "self",(char *) "len", NULL
7071 };
7072
7073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
7074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7075 if (!SWIG_IsOK(res1)) {
7076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7077 }
7078 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7079 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
7080 if (!SWIG_IsOK(ecode2)) {
7081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
7082 }
7083 arg2 = static_cast< unsigned long >(val2);
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 (arg1)->SetMaxLength(arg2);
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 resultobj = SWIG_Py_Void();
7091 return resultobj;
7092fail:
7093 return NULL;
7094}
7095
7096
7097SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7098 PyObject *resultobj = 0;
7099 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7100 wxString *arg2 = 0 ;
7101 void *argp1 = 0 ;
7102 int res1 = 0 ;
7103 bool temp2 = false ;
7104 PyObject * obj0 = 0 ;
7105 PyObject * obj1 = 0 ;
7106 char * kwnames[] = {
7107 (char *) "self",(char *) "text", NULL
7108 };
7109
7110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
7111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7114 }
7115 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7116 {
7117 arg2 = wxString_in_helper(obj1);
7118 if (arg2 == NULL) SWIG_fail;
7119 temp2 = true;
7120 }
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 (arg1)->WriteText((wxString const &)*arg2);
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 resultobj = SWIG_Py_Void();
7128 {
7129 if (temp2)
7130 delete arg2;
7131 }
7132 return resultobj;
7133fail:
7134 {
7135 if (temp2)
7136 delete arg2;
7137 }
7138 return NULL;
7139}
7140
7141
7142SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7143 PyObject *resultobj = 0;
7144 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7145 wxString *arg2 = 0 ;
7146 void *argp1 = 0 ;
7147 int res1 = 0 ;
7148 bool temp2 = false ;
7149 PyObject * obj0 = 0 ;
7150 PyObject * obj1 = 0 ;
7151 char * kwnames[] = {
7152 (char *) "self",(char *) "text", NULL
7153 };
7154
7155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
7156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7157 if (!SWIG_IsOK(res1)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7159 }
7160 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7161 {
7162 arg2 = wxString_in_helper(obj1);
7163 if (arg2 == NULL) SWIG_fail;
7164 temp2 = true;
7165 }
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->AppendText((wxString const &)*arg2);
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 }
7172 resultobj = SWIG_Py_Void();
7173 {
7174 if (temp2)
7175 delete arg2;
7176 }
7177 return resultobj;
7178fail:
7179 {
7180 if (temp2)
7181 delete arg2;
7182 }
7183 return NULL;
7184}
7185
7186
7187SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7188 PyObject *resultobj = 0;
7189 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7190 wxRichTextRange *arg2 = 0 ;
7191 wxRichTextAttr *arg3 = 0 ;
7192 bool result;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 wxRichTextRange temp2 ;
7196 void *argp3 = 0 ;
7197 int res3 = 0 ;
7198 PyObject * obj0 = 0 ;
7199 PyObject * obj1 = 0 ;
7200 PyObject * obj2 = 0 ;
7201 char * kwnames[] = {
7202 (char *) "self",(char *) "range",(char *) "style", NULL
7203 };
7204
7205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7209 }
7210 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7211 {
7212 arg2 = &temp2;
7213 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7214 }
7215 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7216 if (!SWIG_IsOK(res3)) {
7217 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7218 }
7219 if (!argp3) {
7220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7221 }
7222 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7223 {
7224 PyThreadState* __tstate = wxPyBeginAllowThreads();
7225 result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 {
7230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7231 }
7232 return resultobj;
7233fail:
7234 return NULL;
7235}
7236
7237
7238SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj = 0;
7240 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7241 long arg2 ;
7242 wxRichTextAttr *arg3 = 0 ;
7243 bool result;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 long val2 ;
7247 int ecode2 = 0 ;
7248 void *argp3 = 0 ;
7249 int res3 = 0 ;
7250 PyObject * obj0 = 0 ;
7251 PyObject * obj1 = 0 ;
7252 PyObject * obj2 = 0 ;
7253 char * kwnames[] = {
7254 (char *) "self",(char *) "position",(char *) "style", NULL
7255 };
7256
7257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7259 if (!SWIG_IsOK(res1)) {
7260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7261 }
7262 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7263 ecode2 = SWIG_AsVal_long(obj1, &val2);
7264 if (!SWIG_IsOK(ecode2)) {
7265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
7266 }
7267 arg2 = static_cast< long >(val2);
7268 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7269 if (!SWIG_IsOK(res3)) {
7270 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7271 }
7272 if (!argp3) {
7273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7274 }
7275 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 result = (bool)((wxRichTextCtrl const *)arg1)->GetStyle(arg2,*arg3);
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 {
7283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7284 }
7285 return resultobj;
7286fail:
7287 return NULL;
7288}
7289
7290
7291SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj = 0;
7293 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7294 wxRichTextAttr *arg2 = 0 ;
7295 bool result;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298 void *argp2 = 0 ;
7299 int res2 = 0 ;
7300 PyObject * obj0 = 0 ;
7301 PyObject * obj1 = 0 ;
7302 char * kwnames[] = {
7303 (char *) "self",(char *) "style", NULL
7304 };
7305
7306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
7307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7308 if (!SWIG_IsOK(res1)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7310 }
7311 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7313 if (!SWIG_IsOK(res2)) {
7314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7315 }
7316 if (!argp2) {
7317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7318 }
7319 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
7320 {
7321 PyThreadState* __tstate = wxPyBeginAllowThreads();
7322 result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2);
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 {
7327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7328 }
7329 return resultobj;
7330fail:
7331 return NULL;
7332}
7333
7334
7335SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7336 PyObject *resultobj = 0;
7337 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7338 wxRichTextAttr result;
7339 void *argp1 = 0 ;
7340 int res1 = 0 ;
7341 PyObject *swig_obj[1] ;
7342
7343 if (!args) SWIG_fail;
7344 swig_obj[0] = args;
7345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7346 if (!SWIG_IsOK(res1)) {
7347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7348 }
7349 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx();
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 );
7357 return resultobj;
7358fail:
7359 return NULL;
7360}
7361
7362
7363SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7364 PyObject *resultobj = 0;
7365 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7366 long arg2 ;
7367 long arg3 ;
7368 long result;
7369 void *argp1 = 0 ;
7370 int res1 = 0 ;
7371 long val2 ;
7372 int ecode2 = 0 ;
7373 long val3 ;
7374 int ecode3 = 0 ;
7375 PyObject * obj0 = 0 ;
7376 PyObject * obj1 = 0 ;
7377 PyObject * obj2 = 0 ;
7378 char * kwnames[] = {
7379 (char *) "self",(char *) "x",(char *) "y", NULL
7380 };
7381
7382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7384 if (!SWIG_IsOK(res1)) {
7385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7386 }
7387 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7388 ecode2 = SWIG_AsVal_long(obj1, &val2);
7389 if (!SWIG_IsOK(ecode2)) {
7390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
7391 }
7392 arg2 = static_cast< long >(val2);
7393 ecode3 = SWIG_AsVal_long(obj2, &val3);
7394 if (!SWIG_IsOK(ecode3)) {
7395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
7396 }
7397 arg3 = static_cast< long >(val3);
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 resultobj = SWIG_From_long(static_cast< long >(result));
7405 return resultobj;
7406fail:
7407 return NULL;
7408}
7409
7410
7411SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj = 0;
7413 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7414 long arg2 ;
7415 long *arg3 = (long *) 0 ;
7416 long *arg4 = (long *) 0 ;
7417 void *argp1 = 0 ;
7418 int res1 = 0 ;
7419 long val2 ;
7420 int ecode2 = 0 ;
7421 long temp3 ;
7422 int res3 = SWIG_TMPOBJ ;
7423 long temp4 ;
7424 int res4 = SWIG_TMPOBJ ;
7425 PyObject * obj0 = 0 ;
7426 PyObject * obj1 = 0 ;
7427 char * kwnames[] = {
7428 (char *) "self",(char *) "pos", NULL
7429 };
7430
7431 arg3 = &temp3;
7432 arg4 = &temp4;
7433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
7434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7435 if (!SWIG_IsOK(res1)) {
7436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7437 }
7438 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7439 ecode2 = SWIG_AsVal_long(obj1, &val2);
7440 if (!SWIG_IsOK(ecode2)) {
7441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
7442 }
7443 arg2 = static_cast< long >(val2);
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 resultobj = SWIG_Py_Void();
7451 if (SWIG_IsTmpObj(res3)) {
7452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7453 } else {
7454 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7456 }
7457 if (SWIG_IsTmpObj(res4)) {
7458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
7459 } else {
7460 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
7462 }
7463 return resultobj;
7464fail:
7465 return NULL;
7466}
7467
7468
7469SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7470 PyObject *resultobj = 0;
7471 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7472 long arg2 ;
7473 void *argp1 = 0 ;
7474 int res1 = 0 ;
7475 long val2 ;
7476 int ecode2 = 0 ;
7477 PyObject * obj0 = 0 ;
7478 PyObject * obj1 = 0 ;
7479 char * kwnames[] = {
7480 (char *) "self",(char *) "position", NULL
7481 };
7482
7483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",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_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7487 }
7488 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7489 ecode2 = SWIG_AsVal_long(obj1, &val2);
7490 if (!SWIG_IsOK(ecode2)) {
7491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
7492 }
7493 arg2 = static_cast< long >(val2);
7494 {
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 (arg1)->ShowPosition(arg2);
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 resultobj = SWIG_Py_Void();
7501 return resultobj;
7502fail:
7503 return NULL;
7504}
7505
7506
7507SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7508 PyObject *resultobj = 0;
7509 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7510 wxPoint *arg2 = 0 ;
7511 long *arg3 = (long *) 0 ;
7512 wxTextCtrlHitTestResult result;
7513 void *argp1 = 0 ;
7514 int res1 = 0 ;
7515 wxPoint temp2 ;
7516 long temp3 ;
7517 int res3 = SWIG_TMPOBJ ;
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj1 = 0 ;
7520 char * kwnames[] = {
7521 (char *) "self",(char *) "pt", NULL
7522 };
7523
7524 arg3 = &temp3;
7525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
7526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7527 if (!SWIG_IsOK(res1)) {
7528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7529 }
7530 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7531 {
7532 arg2 = &temp2;
7533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7534 }
7535 {
7536 PyThreadState* __tstate = wxPyBeginAllowThreads();
7537 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7542 if (SWIG_IsTmpObj(res3)) {
7543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7544 } else {
7545 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7547 }
7548 return resultobj;
7549fail:
7550 return NULL;
7551}
7552
7553
7554SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj = 0;
7556 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7557 wxPoint *arg2 = 0 ;
7558 wxTextCoord *arg3 = (wxTextCoord *) 0 ;
7559 wxTextCoord *arg4 = (wxTextCoord *) 0 ;
7560 wxTextCtrlHitTestResult result;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 wxPoint temp2 ;
7564 void *argp3 = 0 ;
7565 int res3 = 0 ;
7566 void *argp4 = 0 ;
7567 int res4 = 0 ;
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj1 = 0 ;
7570 PyObject * obj2 = 0 ;
7571 PyObject * obj3 = 0 ;
7572 char * kwnames[] = {
7573 (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL
7574 };
7575
7576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7578 if (!SWIG_IsOK(res1)) {
7579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7580 }
7581 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7582 {
7583 arg2 = &temp2;
7584 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7585 }
7586 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7587 if (!SWIG_IsOK(res3)) {
7588 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'");
7589 }
7590 arg3 = reinterpret_cast< wxTextCoord * >(argp3);
7591 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7592 if (!SWIG_IsOK(res4)) {
7593 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'");
7594 }
7595 arg4 = reinterpret_cast< wxTextCoord * >(argp4);
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
7609SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7610 PyObject *resultobj = 0;
7611 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject *swig_obj[1] ;
7615
7616 if (!args) SWIG_fail;
7617 swig_obj[0] = args;
7618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7619 if (!SWIG_IsOK(res1)) {
7620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7621 }
7622 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 (arg1)->Copy();
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 resultobj = SWIG_Py_Void();
7630 return resultobj;
7631fail:
7632 return NULL;
7633}
7634
7635
7636SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7637 PyObject *resultobj = 0;
7638 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 PyObject *swig_obj[1] ;
7642
7643 if (!args) SWIG_fail;
7644 swig_obj[0] = args;
7645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7646 if (!SWIG_IsOK(res1)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7648 }
7649 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 (arg1)->Cut();
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 resultobj = SWIG_Py_Void();
7657 return resultobj;
7658fail:
7659 return NULL;
7660}
7661
7662
7663SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7664 PyObject *resultobj = 0;
7665 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7666 void *argp1 = 0 ;
7667 int res1 = 0 ;
7668 PyObject *swig_obj[1] ;
7669
7670 if (!args) SWIG_fail;
7671 swig_obj[0] = args;
7672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7673 if (!SWIG_IsOK(res1)) {
7674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7675 }
7676 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7677 {
7678 PyThreadState* __tstate = wxPyBeginAllowThreads();
7679 (arg1)->Paste();
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_Py_Void();
7684 return resultobj;
7685fail:
7686 return NULL;
7687}
7688
7689
7690SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7691 PyObject *resultobj = 0;
7692 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7693 void *argp1 = 0 ;
7694 int res1 = 0 ;
7695 PyObject *swig_obj[1] ;
7696
7697 if (!args) SWIG_fail;
7698 swig_obj[0] = args;
7699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7700 if (!SWIG_IsOK(res1)) {
7701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7702 }
7703 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7704 {
7705 PyThreadState* __tstate = wxPyBeginAllowThreads();
7706 (arg1)->DeleteSelection();
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 resultobj = SWIG_Py_Void();
7711 return resultobj;
7712fail:
7713 return NULL;
7714}
7715
7716
7717SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7718 PyObject *resultobj = 0;
7719 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7720 bool result;
7721 void *argp1 = 0 ;
7722 int res1 = 0 ;
7723 PyObject *swig_obj[1] ;
7724
7725 if (!args) SWIG_fail;
7726 swig_obj[0] = args;
7727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7728 if (!SWIG_IsOK(res1)) {
7729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7730 }
7731 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy();
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 {
7739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7740 }
7741 return resultobj;
7742fail:
7743 return NULL;
7744}
7745
7746
7747SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7748 PyObject *resultobj = 0;
7749 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7750 bool result;
7751 void *argp1 = 0 ;
7752 int res1 = 0 ;
7753 PyObject *swig_obj[1] ;
7754
7755 if (!args) SWIG_fail;
7756 swig_obj[0] = args;
7757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7758 if (!SWIG_IsOK(res1)) {
7759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7760 }
7761 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 result = (bool)((wxRichTextCtrl const *)arg1)->CanCut();
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 {
7769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7770 }
7771 return resultobj;
7772fail:
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7778 PyObject *resultobj = 0;
7779 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7780 bool result;
7781 void *argp1 = 0 ;
7782 int res1 = 0 ;
7783 PyObject *swig_obj[1] ;
7784
7785 if (!args) SWIG_fail;
7786 swig_obj[0] = args;
7787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7790 }
7791 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste();
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7800 }
7801 return resultobj;
7802fail:
7803 return NULL;
7804}
7805
7806
7807SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7808 PyObject *resultobj = 0;
7809 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7810 bool result;
7811 void *argp1 = 0 ;
7812 int res1 = 0 ;
7813 PyObject *swig_obj[1] ;
7814
7815 if (!args) SWIG_fail;
7816 swig_obj[0] = args;
7817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7818 if (!SWIG_IsOK(res1)) {
7819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7820 }
7821 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection();
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 {
7829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7830 }
7831 return resultobj;
7832fail:
7833 return NULL;
7834}
7835
7836
7837SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7838 PyObject *resultobj = 0;
7839 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7840 void *argp1 = 0 ;
7841 int res1 = 0 ;
7842 PyObject *swig_obj[1] ;
7843
7844 if (!args) SWIG_fail;
7845 swig_obj[0] = args;
7846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7847 if (!SWIG_IsOK(res1)) {
7848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7849 }
7850 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 (arg1)->Undo();
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_Py_Void();
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 PyObject *resultobj = 0;
7866 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7867 void *argp1 = 0 ;
7868 int res1 = 0 ;
7869 PyObject *swig_obj[1] ;
7870
7871 if (!args) SWIG_fail;
7872 swig_obj[0] = args;
7873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7876 }
7877 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7878 {
7879 PyThreadState* __tstate = wxPyBeginAllowThreads();
7880 (arg1)->Redo();
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_Py_Void();
7885 return resultobj;
7886fail:
7887 return NULL;
7888}
7889
7890
7891SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7892 PyObject *resultobj = 0;
7893 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7894 bool result;
7895 void *argp1 = 0 ;
7896 int res1 = 0 ;
7897 PyObject *swig_obj[1] ;
7898
7899 if (!args) SWIG_fail;
7900 swig_obj[0] = args;
7901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7902 if (!SWIG_IsOK(res1)) {
7903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7904 }
7905 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7906 {
7907 PyThreadState* __tstate = wxPyBeginAllowThreads();
7908 result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo();
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 {
7913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7914 }
7915 return resultobj;
7916fail:
7917 return NULL;
7918}
7919
7920
7921SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7922 PyObject *resultobj = 0;
7923 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7924 bool result;
7925 void *argp1 = 0 ;
7926 int res1 = 0 ;
7927 PyObject *swig_obj[1] ;
7928
7929 if (!args) SWIG_fail;
7930 swig_obj[0] = args;
7931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7934 }
7935 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7936 {
7937 PyThreadState* __tstate = wxPyBeginAllowThreads();
7938 result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo();
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 {
7943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7944 }
7945 return resultobj;
7946fail:
7947 return NULL;
7948}
7949
7950
7951SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7952 PyObject *resultobj = 0;
7953 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7954 long arg2 ;
7955 void *argp1 = 0 ;
7956 int res1 = 0 ;
7957 long val2 ;
7958 int ecode2 = 0 ;
7959 PyObject * obj0 = 0 ;
7960 PyObject * obj1 = 0 ;
7961 char * kwnames[] = {
7962 (char *) "self",(char *) "pos", NULL
7963 };
7964
7965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
7966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7967 if (!SWIG_IsOK(res1)) {
7968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7969 }
7970 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7971 ecode2 = SWIG_AsVal_long(obj1, &val2);
7972 if (!SWIG_IsOK(ecode2)) {
7973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
7974 }
7975 arg2 = static_cast< long >(val2);
7976 {
7977 PyThreadState* __tstate = wxPyBeginAllowThreads();
7978 (arg1)->SetInsertionPoint(arg2);
7979 wxPyEndAllowThreads(__tstate);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 resultobj = SWIG_Py_Void();
7983 return resultobj;
7984fail:
7985 return NULL;
7986}
7987
7988
7989SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7990 PyObject *resultobj = 0;
7991 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7992 void *argp1 = 0 ;
7993 int res1 = 0 ;
7994 PyObject *swig_obj[1] ;
7995
7996 if (!args) SWIG_fail;
7997 swig_obj[0] = args;
7998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7999 if (!SWIG_IsOK(res1)) {
8000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8001 }
8002 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 (arg1)->SetInsertionPointEnd();
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_Py_Void();
8010 return resultobj;
8011fail:
8012 return NULL;
8013}
8014
8015
8016SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 PyObject *resultobj = 0;
8018 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8019 long result;
8020 void *argp1 = 0 ;
8021 int res1 = 0 ;
8022 PyObject *swig_obj[1] ;
8023
8024 if (!args) SWIG_fail;
8025 swig_obj[0] = args;
8026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8027 if (!SWIG_IsOK(res1)) {
8028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8029 }
8030 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8031 {
8032 PyThreadState* __tstate = wxPyBeginAllowThreads();
8033 result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint();
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 resultobj = SWIG_From_long(static_cast< long >(result));
8038 return resultobj;
8039fail:
8040 return NULL;
8041}
8042
8043
8044SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8045 PyObject *resultobj = 0;
8046 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8047 long result;
8048 void *argp1 = 0 ;
8049 int res1 = 0 ;
8050 PyObject *swig_obj[1] ;
8051
8052 if (!args) SWIG_fail;
8053 swig_obj[0] = args;
8054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8055 if (!SWIG_IsOK(res1)) {
8056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8057 }
8058 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8059 {
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition();
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 resultobj = SWIG_From_long(static_cast< long >(result));
8066 return resultobj;
8067fail:
8068 return NULL;
8069}
8070
8071
8072SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8073 PyObject *resultobj = 0;
8074 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8075 long arg2 ;
8076 long arg3 ;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 long val2 ;
8080 int ecode2 = 0 ;
8081 long val3 ;
8082 int ecode3 = 0 ;
8083 PyObject * obj0 = 0 ;
8084 PyObject * obj1 = 0 ;
8085 PyObject * obj2 = 0 ;
8086 char * kwnames[] = {
8087 (char *) "self",(char *) "from",(char *) "to", NULL
8088 };
8089
8090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8092 if (!SWIG_IsOK(res1)) {
8093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8094 }
8095 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8096 ecode2 = SWIG_AsVal_long(obj1, &val2);
8097 if (!SWIG_IsOK(ecode2)) {
8098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
8099 }
8100 arg2 = static_cast< long >(val2);
8101 ecode3 = SWIG_AsVal_long(obj2, &val3);
8102 if (!SWIG_IsOK(ecode3)) {
8103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
8104 }
8105 arg3 = static_cast< long >(val3);
8106 {
8107 PyThreadState* __tstate = wxPyBeginAllowThreads();
8108 (arg1)->SetSelection(arg2,arg3);
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 resultobj = SWIG_Py_Void();
8113 return resultobj;
8114fail:
8115 return NULL;
8116}
8117
8118
8119SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8120 PyObject *resultobj = 0;
8121 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 PyObject *swig_obj[1] ;
8125
8126 if (!args) SWIG_fail;
8127 swig_obj[0] = args;
8128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8131 }
8132 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 (arg1)->SelectAll();
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_Py_Void();
8140 return resultobj;
8141fail:
8142 return NULL;
8143}
8144
8145
8146SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj = 0;
8148 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8149 bool arg2 ;
8150 void *argp1 = 0 ;
8151 int res1 = 0 ;
8152 bool val2 ;
8153 int ecode2 = 0 ;
8154 PyObject * obj0 = 0 ;
8155 PyObject * obj1 = 0 ;
8156 char * kwnames[] = {
8157 (char *) "self",(char *) "editable", NULL
8158 };
8159
8160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
8161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8162 if (!SWIG_IsOK(res1)) {
8163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8164 }
8165 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8166 ecode2 = SWIG_AsVal_bool(obj1, &val2);
8167 if (!SWIG_IsOK(ecode2)) {
8168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
8169 }
8170 arg2 = static_cast< bool >(val2);
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 (arg1)->SetEditable(arg2);
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = SWIG_Py_Void();
8178 return resultobj;
8179fail:
8180 return NULL;
8181}
8182
8183
8184SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8185 PyObject *resultobj = 0;
8186 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8187 bool result;
8188 void *argp1 = 0 ;
8189 int res1 = 0 ;
8190 PyObject *swig_obj[1] ;
8191
8192 if (!args) SWIG_fail;
8193 swig_obj[0] = args;
8194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8195 if (!SWIG_IsOK(res1)) {
8196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8197 }
8198 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8199 {
8200 PyThreadState* __tstate = wxPyBeginAllowThreads();
8201 result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection();
8202 wxPyEndAllowThreads(__tstate);
8203 if (PyErr_Occurred()) SWIG_fail;
8204 }
8205 {
8206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8207 }
8208 return resultobj;
8209fail:
8210 return NULL;
8211}
8212
8213
8214SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8215 PyObject *resultobj = 0;
8216 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8217 wxImage *arg2 = 0 ;
8218 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8219 bool result;
8220 void *argp1 = 0 ;
8221 int res1 = 0 ;
8222 void *argp2 = 0 ;
8223 int res2 = 0 ;
8224 int val3 ;
8225 int ecode3 = 0 ;
8226 PyObject * obj0 = 0 ;
8227 PyObject * obj1 = 0 ;
8228 PyObject * obj2 = 0 ;
8229 char * kwnames[] = {
8230 (char *) "self",(char *) "image",(char *) "bitmapType", NULL
8231 };
8232
8233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8237 }
8238 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
8240 if (!SWIG_IsOK(res2)) {
8241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8242 }
8243 if (!argp2) {
8244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8245 }
8246 arg2 = reinterpret_cast< wxImage * >(argp2);
8247 if (obj2) {
8248 ecode3 = SWIG_AsVal_int(obj2, &val3);
8249 if (!SWIG_IsOK(ecode3)) {
8250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'");
8251 }
8252 arg3 = static_cast< int >(val3);
8253 }
8254 {
8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
8256 result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3);
8257 wxPyEndAllowThreads(__tstate);
8258 if (PyErr_Occurred()) SWIG_fail;
8259 }
8260 {
8261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8262 }
8263 return resultobj;
8264fail:
8265 return NULL;
8266}
8267
8268
8269SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj = 0;
8271 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8272 wxBitmap *arg2 = 0 ;
8273 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8274 bool result;
8275 void *argp1 = 0 ;
8276 int res1 = 0 ;
8277 void *argp2 = 0 ;
8278 int res2 = 0 ;
8279 int val3 ;
8280 int ecode3 = 0 ;
8281 PyObject * obj0 = 0 ;
8282 PyObject * obj1 = 0 ;
8283 PyObject * obj2 = 0 ;
8284 char * kwnames[] = {
8285 (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL
8286 };
8287
8288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8290 if (!SWIG_IsOK(res1)) {
8291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8292 }
8293 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8295 if (!SWIG_IsOK(res2)) {
8296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8297 }
8298 if (!argp2) {
8299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8300 }
8301 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8302 if (obj2) {
8303 ecode3 = SWIG_AsVal_int(obj2, &val3);
8304 if (!SWIG_IsOK(ecode3)) {
8305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'");
8306 }
8307 arg3 = static_cast< int >(val3);
8308 }
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3);
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 {
8316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8317 }
8318 return resultobj;
8319fail:
8320 return NULL;
8321}
8322
8323
8324SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj = 0;
8326 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8327 wxString *arg2 = 0 ;
8328 int arg3 ;
8329 bool result;
8330 void *argp1 = 0 ;
8331 int res1 = 0 ;
8332 bool temp2 = false ;
8333 int val3 ;
8334 int ecode3 = 0 ;
8335 PyObject * obj0 = 0 ;
8336 PyObject * obj1 = 0 ;
8337 PyObject * obj2 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "self",(char *) "filename",(char *) "bitmapType", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8344 if (!SWIG_IsOK(res1)) {
8345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8346 }
8347 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8348 {
8349 arg2 = wxString_in_helper(obj1);
8350 if (arg2 == NULL) SWIG_fail;
8351 temp2 = true;
8352 }
8353 ecode3 = SWIG_AsVal_int(obj2, &val3);
8354 if (!SWIG_IsOK(ecode3)) {
8355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'");
8356 }
8357 arg3 = static_cast< int >(val3);
8358 {
8359 PyThreadState* __tstate = wxPyBeginAllowThreads();
8360 result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3);
8361 wxPyEndAllowThreads(__tstate);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 {
8365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8366 }
8367 {
8368 if (temp2)
8369 delete arg2;
8370 }
8371 return resultobj;
8372fail:
8373 {
8374 if (temp2)
8375 delete arg2;
8376 }
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj = 0;
8383 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8384 wxRichTextImageBlock *arg2 = 0 ;
8385 bool result;
8386 void *argp1 = 0 ;
8387 int res1 = 0 ;
8388 void *argp2 = 0 ;
8389 int res2 = 0 ;
8390 PyObject * obj0 = 0 ;
8391 PyObject * obj1 = 0 ;
8392 char * kwnames[] = {
8393 (char *) "self",(char *) "imageBlock", NULL
8394 };
8395
8396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail;
8397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8398 if (!SWIG_IsOK(res1)) {
8399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8400 }
8401 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0);
8403 if (!SWIG_IsOK(res2)) {
8404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8405 }
8406 if (!argp2) {
8407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8408 }
8409 arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2);
8410 {
8411 PyThreadState* __tstate = wxPyBeginAllowThreads();
8412 result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2);
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 {
8417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8418 }
8419 return resultobj;
8420fail:
8421 return NULL;
8422}
8423
8424
8425SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8426 PyObject *resultobj = 0;
8427 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8428 bool result;
8429 void *argp1 = 0 ;
8430 int res1 = 0 ;
8431 PyObject *swig_obj[1] ;
8432
8433 if (!args) SWIG_fail;
8434 swig_obj[0] = args;
8435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8436 if (!SWIG_IsOK(res1)) {
8437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8438 }
8439 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 result = (bool)(arg1)->Newline();
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 {
8447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8448 }
8449 return resultobj;
8450fail:
8451 return NULL;
8452}
8453
8454
8455SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj = 0;
8457 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8458 wxRichTextAttr *arg2 = 0 ;
8459 void *argp1 = 0 ;
8460 int res1 = 0 ;
8461 void *argp2 = 0 ;
8462 int res2 = 0 ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 char * kwnames[] = {
8466 (char *) "self",(char *) "style", NULL
8467 };
8468
8469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail;
8470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8471 if (!SWIG_IsOK(res1)) {
8472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8473 }
8474 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
8476 if (!SWIG_IsOK(res2)) {
8477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8478 }
8479 if (!argp2) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8481 }
8482 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
8483 {
8484 PyThreadState* __tstate = wxPyBeginAllowThreads();
8485 (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2);
8486 wxPyEndAllowThreads(__tstate);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_Py_Void();
8490 return resultobj;
8491fail:
8492 return NULL;
8493}
8494
8495
8496SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8497 PyObject *resultobj = 0;
8498 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8499 bool result;
8500 void *argp1 = 0 ;
8501 int res1 = 0 ;
8502 PyObject *swig_obj[1] ;
8503
8504 if (!args) SWIG_fail;
8505 swig_obj[0] = args;
8506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8507 if (!SWIG_IsOK(res1)) {
8508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8509 }
8510 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8511 {
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (bool)(arg1)->EndStyle();
8514 wxPyEndAllowThreads(__tstate);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 {
8518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8519 }
8520 return resultobj;
8521fail:
8522 return NULL;
8523}
8524
8525
8526SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8527 PyObject *resultobj = 0;
8528 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8529 bool result;
8530 void *argp1 = 0 ;
8531 int res1 = 0 ;
8532 PyObject *swig_obj[1] ;
8533
8534 if (!args) SWIG_fail;
8535 swig_obj[0] = args;
8536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8539 }
8540 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 result = (bool)(arg1)->EndAllStyles();
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 {
8548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8549 }
8550 return resultobj;
8551fail:
8552 return NULL;
8553}
8554
8555
8556SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8557 PyObject *resultobj = 0;
8558 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8559 bool result;
8560 void *argp1 = 0 ;
8561 int res1 = 0 ;
8562 PyObject *swig_obj[1] ;
8563
8564 if (!args) SWIG_fail;
8565 swig_obj[0] = args;
8566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8567 if (!SWIG_IsOK(res1)) {
8568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8569 }
8570 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 result = (bool)(arg1)->BeginBold();
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 {
8578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8579 }
8580 return resultobj;
8581fail:
8582 return NULL;
8583}
8584
8585
8586SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8587 PyObject *resultobj = 0;
8588 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8589 bool result;
8590 void *argp1 = 0 ;
8591 int res1 = 0 ;
8592 PyObject *swig_obj[1] ;
8593
8594 if (!args) SWIG_fail;
8595 swig_obj[0] = args;
8596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8597 if (!SWIG_IsOK(res1)) {
8598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8599 }
8600 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8601 {
8602 PyThreadState* __tstate = wxPyBeginAllowThreads();
8603 result = (bool)(arg1)->EndBold();
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 {
8608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8609 }
8610 return resultobj;
8611fail:
8612 return NULL;
8613}
8614
8615
8616SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8617 PyObject *resultobj = 0;
8618 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8619 bool result;
8620 void *argp1 = 0 ;
8621 int res1 = 0 ;
8622 PyObject *swig_obj[1] ;
8623
8624 if (!args) SWIG_fail;
8625 swig_obj[0] = args;
8626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8627 if (!SWIG_IsOK(res1)) {
8628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8629 }
8630 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 result = (bool)(arg1)->BeginItalic();
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 {
8638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8639 }
8640 return resultobj;
8641fail:
8642 return NULL;
8643}
8644
8645
8646SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8647 PyObject *resultobj = 0;
8648 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8649 bool result;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 PyObject *swig_obj[1] ;
8653
8654 if (!args) SWIG_fail;
8655 swig_obj[0] = args;
8656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8657 if (!SWIG_IsOK(res1)) {
8658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8659 }
8660 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 result = (bool)(arg1)->EndItalic();
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 {
8668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8669 }
8670 return resultobj;
8671fail:
8672 return NULL;
8673}
8674
8675
8676SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8677 PyObject *resultobj = 0;
8678 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8679 bool result;
8680 void *argp1 = 0 ;
8681 int res1 = 0 ;
8682 PyObject *swig_obj[1] ;
8683
8684 if (!args) SWIG_fail;
8685 swig_obj[0] = args;
8686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8687 if (!SWIG_IsOK(res1)) {
8688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8689 }
8690 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8691 {
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
8693 result = (bool)(arg1)->BeginUnderline();
8694 wxPyEndAllowThreads(__tstate);
8695 if (PyErr_Occurred()) SWIG_fail;
8696 }
8697 {
8698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8699 }
8700 return resultobj;
8701fail:
8702 return NULL;
8703}
8704
8705
8706SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8707 PyObject *resultobj = 0;
8708 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8709 bool result;
8710 void *argp1 = 0 ;
8711 int res1 = 0 ;
8712 PyObject *swig_obj[1] ;
8713
8714 if (!args) SWIG_fail;
8715 swig_obj[0] = args;
8716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8717 if (!SWIG_IsOK(res1)) {
8718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8719 }
8720 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = (bool)(arg1)->EndUnderline();
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 {
8728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8729 }
8730 return resultobj;
8731fail:
8732 return NULL;
8733}
8734
8735
8736SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj = 0;
8738 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8739 int arg2 ;
8740 bool result;
8741 void *argp1 = 0 ;
8742 int res1 = 0 ;
8743 int val2 ;
8744 int ecode2 = 0 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 char * kwnames[] = {
8748 (char *) "self",(char *) "pointSize", NULL
8749 };
8750
8751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
8752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8753 if (!SWIG_IsOK(res1)) {
8754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8755 }
8756 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8757 ecode2 = SWIG_AsVal_int(obj1, &val2);
8758 if (!SWIG_IsOK(ecode2)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'");
8760 }
8761 arg2 = static_cast< int >(val2);
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 result = (bool)(arg1)->BeginFontSize(arg2);
8765 wxPyEndAllowThreads(__tstate);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 {
8769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8770 }
8771 return resultobj;
8772fail:
8773 return NULL;
8774}
8775
8776
8777SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8778 PyObject *resultobj = 0;
8779 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8780 bool result;
8781 void *argp1 = 0 ;
8782 int res1 = 0 ;
8783 PyObject *swig_obj[1] ;
8784
8785 if (!args) SWIG_fail;
8786 swig_obj[0] = args;
8787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8788 if (!SWIG_IsOK(res1)) {
8789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8790 }
8791 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8792 {
8793 PyThreadState* __tstate = wxPyBeginAllowThreads();
8794 result = (bool)(arg1)->EndFontSize();
8795 wxPyEndAllowThreads(__tstate);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 {
8799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8800 }
8801 return resultobj;
8802fail:
8803 return NULL;
8804}
8805
8806
8807SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj = 0;
8809 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8810 wxFont *arg2 = 0 ;
8811 bool result;
8812 void *argp1 = 0 ;
8813 int res1 = 0 ;
8814 void *argp2 = 0 ;
8815 int res2 = 0 ;
8816 PyObject * obj0 = 0 ;
8817 PyObject * obj1 = 0 ;
8818 char * kwnames[] = {
8819 (char *) "self",(char *) "font", NULL
8820 };
8821
8822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail;
8823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8824 if (!SWIG_IsOK(res1)) {
8825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8826 }
8827 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8828 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
8829 if (!SWIG_IsOK(res2)) {
8830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8831 }
8832 if (!argp2) {
8833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8834 }
8835 arg2 = reinterpret_cast< wxFont * >(argp2);
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 result = (bool)(arg1)->BeginFont((wxFont const &)*arg2);
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 {
8843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8844 }
8845 return resultobj;
8846fail:
8847 return NULL;
8848}
8849
8850
8851SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8852 PyObject *resultobj = 0;
8853 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8854 bool result;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 PyObject *swig_obj[1] ;
8858
8859 if (!args) SWIG_fail;
8860 swig_obj[0] = args;
8861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8862 if (!SWIG_IsOK(res1)) {
8863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8864 }
8865 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 result = (bool)(arg1)->EndFont();
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 {
8873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8874 }
8875 return resultobj;
8876fail:
8877 return NULL;
8878}
8879
8880
8881SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj = 0;
8883 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8884 wxColour *arg2 = 0 ;
8885 bool result;
8886 void *argp1 = 0 ;
8887 int res1 = 0 ;
8888 wxColour temp2 ;
8889 PyObject * obj0 = 0 ;
8890 PyObject * obj1 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "self",(char *) "colour", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8899 }
8900 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8901 {
8902 arg2 = &temp2;
8903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8904 }
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2);
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 {
8912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8913 }
8914 return resultobj;
8915fail:
8916 return NULL;
8917}
8918
8919
8920SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8921 PyObject *resultobj = 0;
8922 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8923 bool result;
8924 void *argp1 = 0 ;
8925 int res1 = 0 ;
8926 PyObject *swig_obj[1] ;
8927
8928 if (!args) SWIG_fail;
8929 swig_obj[0] = args;
8930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8931 if (!SWIG_IsOK(res1)) {
8932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8933 }
8934 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8935 {
8936 PyThreadState* __tstate = wxPyBeginAllowThreads();
8937 result = (bool)(arg1)->EndTextColour();
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 {
8942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8943 }
8944 return resultobj;
8945fail:
8946 return NULL;
8947}
8948
8949
8950SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj = 0;
8952 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8953 wxTextAttrAlignment arg2 ;
8954 bool result;
8955 void *argp1 = 0 ;
8956 int res1 = 0 ;
8957 int val2 ;
8958 int ecode2 = 0 ;
8959 PyObject * obj0 = 0 ;
8960 PyObject * obj1 = 0 ;
8961 char * kwnames[] = {
8962 (char *) "self",(char *) "alignment", NULL
8963 };
8964
8965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
8966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8967 if (!SWIG_IsOK(res1)) {
8968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8969 }
8970 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8971 ecode2 = SWIG_AsVal_int(obj1, &val2);
8972 if (!SWIG_IsOK(ecode2)) {
8973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
8974 }
8975 arg2 = static_cast< wxTextAttrAlignment >(val2);
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (bool)(arg1)->BeginAlignment(arg2);
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 {
8983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8984 }
8985 return resultobj;
8986fail:
8987 return NULL;
8988}
8989
8990
8991SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992 PyObject *resultobj = 0;
8993 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8994 bool result;
8995 void *argp1 = 0 ;
8996 int res1 = 0 ;
8997 PyObject *swig_obj[1] ;
8998
8999 if (!args) SWIG_fail;
9000 swig_obj[0] = args;
9001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9002 if (!SWIG_IsOK(res1)) {
9003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9004 }
9005 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (bool)(arg1)->EndAlignment();
9009 wxPyEndAllowThreads(__tstate);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 }
9012 {
9013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9014 }
9015 return resultobj;
9016fail:
9017 return NULL;
9018}
9019
9020
9021SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9022 PyObject *resultobj = 0;
9023 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9024 int arg2 ;
9025 int arg3 = (int) 0 ;
9026 bool result;
9027 void *argp1 = 0 ;
9028 int res1 = 0 ;
9029 int val2 ;
9030 int ecode2 = 0 ;
9031 int val3 ;
9032 int ecode3 = 0 ;
9033 PyObject * obj0 = 0 ;
9034 PyObject * obj1 = 0 ;
9035 PyObject * obj2 = 0 ;
9036 char * kwnames[] = {
9037 (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL
9038 };
9039
9040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9042 if (!SWIG_IsOK(res1)) {
9043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9044 }
9045 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9046 ecode2 = SWIG_AsVal_int(obj1, &val2);
9047 if (!SWIG_IsOK(ecode2)) {
9048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'");
9049 }
9050 arg2 = static_cast< int >(val2);
9051 if (obj2) {
9052 ecode3 = SWIG_AsVal_int(obj2, &val3);
9053 if (!SWIG_IsOK(ecode3)) {
9054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'");
9055 }
9056 arg3 = static_cast< int >(val3);
9057 }
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 result = (bool)(arg1)->BeginLeftIndent(arg2,arg3);
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 {
9065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9066 }
9067 return resultobj;
9068fail:
9069 return NULL;
9070}
9071
9072
9073SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *resultobj = 0;
9075 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9076 bool result;
9077 void *argp1 = 0 ;
9078 int res1 = 0 ;
9079 PyObject *swig_obj[1] ;
9080
9081 if (!args) SWIG_fail;
9082 swig_obj[0] = args;
9083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9084 if (!SWIG_IsOK(res1)) {
9085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9086 }
9087 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 result = (bool)(arg1)->EndLeftIndent();
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 {
9095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9096 }
9097 return resultobj;
9098fail:
9099 return NULL;
9100}
9101
9102
9103SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj = 0;
9105 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9106 int arg2 ;
9107 bool result;
9108 void *argp1 = 0 ;
9109 int res1 = 0 ;
9110 int val2 ;
9111 int ecode2 = 0 ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 char * kwnames[] = {
9115 (char *) "self",(char *) "rightIndent", NULL
9116 };
9117
9118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
9119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9120 if (!SWIG_IsOK(res1)) {
9121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9122 }
9123 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9124 ecode2 = SWIG_AsVal_int(obj1, &val2);
9125 if (!SWIG_IsOK(ecode2)) {
9126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'");
9127 }
9128 arg2 = static_cast< int >(val2);
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 result = (bool)(arg1)->BeginRightIndent(arg2);
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 {
9136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9137 }
9138 return resultobj;
9139fail:
9140 return NULL;
9141}
9142
9143
9144SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9145 PyObject *resultobj = 0;
9146 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9147 bool result;
9148 void *argp1 = 0 ;
9149 int res1 = 0 ;
9150 PyObject *swig_obj[1] ;
9151
9152 if (!args) SWIG_fail;
9153 swig_obj[0] = args;
9154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9155 if (!SWIG_IsOK(res1)) {
9156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9157 }
9158 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = (bool)(arg1)->EndRightIndent();
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 {
9166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9167 }
9168 return resultobj;
9169fail:
9170 return NULL;
9171}
9172
9173
9174SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj = 0;
9176 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9177 int arg2 ;
9178 int arg3 ;
9179 bool result;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 int val2 ;
9183 int ecode2 = 0 ;
9184 int val3 ;
9185 int ecode3 = 0 ;
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 PyObject * obj2 = 0 ;
9189 char * kwnames[] = {
9190 (char *) "self",(char *) "before",(char *) "after", NULL
9191 };
9192
9193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9197 }
9198 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9199 ecode2 = SWIG_AsVal_int(obj1, &val2);
9200 if (!SWIG_IsOK(ecode2)) {
9201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'");
9202 }
9203 arg2 = static_cast< int >(val2);
9204 ecode3 = SWIG_AsVal_int(obj2, &val3);
9205 if (!SWIG_IsOK(ecode3)) {
9206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'");
9207 }
9208 arg3 = static_cast< int >(val3);
9209 {
9210 PyThreadState* __tstate = wxPyBeginAllowThreads();
9211 result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3);
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 {
9216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9217 }
9218 return resultobj;
9219fail:
9220 return NULL;
9221}
9222
9223
9224SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9225 PyObject *resultobj = 0;
9226 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9227 bool result;
9228 void *argp1 = 0 ;
9229 int res1 = 0 ;
9230 PyObject *swig_obj[1] ;
9231
9232 if (!args) SWIG_fail;
9233 swig_obj[0] = args;
9234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9235 if (!SWIG_IsOK(res1)) {
9236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9237 }
9238 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 result = (bool)(arg1)->EndParagraphSpacing();
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 {
9246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9247 }
9248 return resultobj;
9249fail:
9250 return NULL;
9251}
9252
9253
9254SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj = 0;
9256 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9257 int arg2 ;
9258 bool result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 int val2 ;
9262 int ecode2 = 0 ;
9263 PyObject * obj0 = 0 ;
9264 PyObject * obj1 = 0 ;
9265 char * kwnames[] = {
9266 (char *) "self",(char *) "lineSpacing", NULL
9267 };
9268
9269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
9270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9271 if (!SWIG_IsOK(res1)) {
9272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9273 }
9274 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9275 ecode2 = SWIG_AsVal_int(obj1, &val2);
9276 if (!SWIG_IsOK(ecode2)) {
9277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'");
9278 }
9279 arg2 = static_cast< int >(val2);
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (bool)(arg1)->BeginLineSpacing(arg2);
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9288 }
9289 return resultobj;
9290fail:
9291 return NULL;
9292}
9293
9294
9295SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9296 PyObject *resultobj = 0;
9297 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9298 bool result;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 PyObject *swig_obj[1] ;
9302
9303 if (!args) SWIG_fail;
9304 swig_obj[0] = args;
9305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9308 }
9309 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (bool)(arg1)->EndLineSpacing();
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 return resultobj;
9320fail:
9321 return NULL;
9322}
9323
9324
9325SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj = 0;
9327 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9328 int arg2 ;
9329 int arg3 ;
9330 int arg4 ;
9331 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ;
9332 bool result;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 int val2 ;
9336 int ecode2 = 0 ;
9337 int val3 ;
9338 int ecode3 = 0 ;
9339 int val4 ;
9340 int ecode4 = 0 ;
9341 int val5 ;
9342 int ecode5 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 PyObject * obj2 = 0 ;
9346 PyObject * obj3 = 0 ;
9347 PyObject * obj4 = 0 ;
9348 char * kwnames[] = {
9349 (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9350 };
9351
9352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9354 if (!SWIG_IsOK(res1)) {
9355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9356 }
9357 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9358 ecode2 = SWIG_AsVal_int(obj1, &val2);
9359 if (!SWIG_IsOK(ecode2)) {
9360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'");
9361 }
9362 arg2 = static_cast< int >(val2);
9363 ecode3 = SWIG_AsVal_int(obj2, &val3);
9364 if (!SWIG_IsOK(ecode3)) {
9365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'");
9366 }
9367 arg3 = static_cast< int >(val3);
9368 ecode4 = SWIG_AsVal_int(obj3, &val4);
9369 if (!SWIG_IsOK(ecode4)) {
9370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'");
9371 }
9372 arg4 = static_cast< int >(val4);
9373 if (obj4) {
9374 ecode5 = SWIG_AsVal_int(obj4, &val5);
9375 if (!SWIG_IsOK(ecode5)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'");
9377 }
9378 arg5 = static_cast< int >(val5);
9379 }
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 {
9387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9388 }
9389 return resultobj;
9390fail:
9391 return NULL;
9392}
9393
9394
9395SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9396 PyObject *resultobj = 0;
9397 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9398 bool result;
9399 void *argp1 = 0 ;
9400 int res1 = 0 ;
9401 PyObject *swig_obj[1] ;
9402
9403 if (!args) SWIG_fail;
9404 swig_obj[0] = args;
9405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9406 if (!SWIG_IsOK(res1)) {
9407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9408 }
9409 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (bool)(arg1)->EndNumberedBullet();
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 {
9417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9418 }
9419 return resultobj;
9420fail:
9421 return NULL;
9422}
9423
9424
9425SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9426 PyObject *resultobj = 0;
9427 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9428 char arg2 ;
9429 int arg3 ;
9430 int arg4 ;
9431 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ;
9432 bool result;
9433 void *argp1 = 0 ;
9434 int res1 = 0 ;
9435 char val2 ;
9436 int ecode2 = 0 ;
9437 int val3 ;
9438 int ecode3 = 0 ;
9439 int val4 ;
9440 int ecode4 = 0 ;
9441 int val5 ;
9442 int ecode5 = 0 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 PyObject * obj2 = 0 ;
9446 PyObject * obj3 = 0 ;
9447 PyObject * obj4 = 0 ;
9448 char * kwnames[] = {
9449 (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9450 };
9451
9452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9454 if (!SWIG_IsOK(res1)) {
9455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9456 }
9457 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9458 ecode2 = SWIG_AsVal_char(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'");
9461 }
9462 arg2 = static_cast< char >(val2);
9463 ecode3 = SWIG_AsVal_int(obj2, &val3);
9464 if (!SWIG_IsOK(ecode3)) {
9465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'");
9466 }
9467 arg3 = static_cast< int >(val3);
9468 ecode4 = SWIG_AsVal_int(obj3, &val4);
9469 if (!SWIG_IsOK(ecode4)) {
9470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'");
9471 }
9472 arg4 = static_cast< int >(val4);
9473 if (obj4) {
9474 ecode5 = SWIG_AsVal_int(obj4, &val5);
9475 if (!SWIG_IsOK(ecode5)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'");
9477 }
9478 arg5 = static_cast< int >(val5);
9479 }
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9488 }
9489 return resultobj;
9490fail:
9491 return NULL;
9492}
9493
9494
9495SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9496 PyObject *resultobj = 0;
9497 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9498 bool result;
9499 void *argp1 = 0 ;
9500 int res1 = 0 ;
9501 PyObject *swig_obj[1] ;
9502
9503 if (!args) SWIG_fail;
9504 swig_obj[0] = args;
9505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9506 if (!SWIG_IsOK(res1)) {
9507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9508 }
9509 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 result = (bool)(arg1)->EndSymbolBullet();
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 return resultobj;
9520fail:
9521 return NULL;
9522}
9523
9524
9525SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj = 0;
9527 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9528 wxString *arg2 = 0 ;
9529 bool result;
9530 void *argp1 = 0 ;
9531 int res1 = 0 ;
9532 bool temp2 = false ;
9533 PyObject * obj0 = 0 ;
9534 PyObject * obj1 = 0 ;
9535 char * kwnames[] = {
9536 (char *) "self",(char *) "characterStyle", NULL
9537 };
9538
9539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9541 if (!SWIG_IsOK(res1)) {
9542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9543 }
9544 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9545 {
9546 arg2 = wxString_in_helper(obj1);
9547 if (arg2 == NULL) SWIG_fail;
9548 temp2 = true;
9549 }
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2);
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 {
9557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9558 }
9559 {
9560 if (temp2)
9561 delete arg2;
9562 }
9563 return resultobj;
9564fail:
9565 {
9566 if (temp2)
9567 delete arg2;
9568 }
9569 return NULL;
9570}
9571
9572
9573SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9574 PyObject *resultobj = 0;
9575 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9576 bool result;
9577 void *argp1 = 0 ;
9578 int res1 = 0 ;
9579 PyObject *swig_obj[1] ;
9580
9581 if (!args) SWIG_fail;
9582 swig_obj[0] = args;
9583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9584 if (!SWIG_IsOK(res1)) {
9585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9586 }
9587 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 result = (bool)(arg1)->EndCharacterStyle();
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 {
9595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9596 }
9597 return resultobj;
9598fail:
9599 return NULL;
9600}
9601
9602
9603SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj = 0;
9605 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9606 wxString *arg2 = 0 ;
9607 bool result;
9608 void *argp1 = 0 ;
9609 int res1 = 0 ;
9610 bool temp2 = false ;
9611 PyObject * obj0 = 0 ;
9612 PyObject * obj1 = 0 ;
9613 char * kwnames[] = {
9614 (char *) "self",(char *) "paragraphStyle", NULL
9615 };
9616
9617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9619 if (!SWIG_IsOK(res1)) {
9620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9621 }
9622 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9623 {
9624 arg2 = wxString_in_helper(obj1);
9625 if (arg2 == NULL) SWIG_fail;
9626 temp2 = true;
9627 }
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2);
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 {
9635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9636 }
9637 {
9638 if (temp2)
9639 delete arg2;
9640 }
9641 return resultobj;
9642fail:
9643 {
9644 if (temp2)
9645 delete arg2;
9646 }
9647 return NULL;
9648}
9649
9650
9651SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9652 PyObject *resultobj = 0;
9653 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9654 bool result;
9655 void *argp1 = 0 ;
9656 int res1 = 0 ;
9657 PyObject *swig_obj[1] ;
9658
9659 if (!args) SWIG_fail;
9660 swig_obj[0] = args;
9661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9662 if (!SWIG_IsOK(res1)) {
9663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9664 }
9665 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 result = (bool)(arg1)->EndParagraphStyle();
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9674 }
9675 return resultobj;
9676fail:
9677 return NULL;
9678}
9679
9680
9681SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9682 PyObject *resultobj = 0;
9683 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9684 bool result;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 PyObject *swig_obj[1] ;
9688
9689 if (!args) SWIG_fail;
9690 swig_obj[0] = args;
9691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9692 if (!SWIG_IsOK(res1)) {
9693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9694 }
9695 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (bool)(arg1)->SetDefaultStyleToCursorStyle();
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 {
9703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9704 }
9705 return resultobj;
9706fail:
9707 return NULL;
9708}
9709
9710
9711SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9712 PyObject *resultobj = 0;
9713 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9714 void *argp1 = 0 ;
9715 int res1 = 0 ;
9716 PyObject *swig_obj[1] ;
9717
9718 if (!args) SWIG_fail;
9719 swig_obj[0] = args;
9720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9721 if (!SWIG_IsOK(res1)) {
9722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9723 }
9724 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->SelectNone();
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 return resultobj;
9733fail:
9734 return NULL;
9735}
9736
9737
9738SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9739 PyObject *resultobj = 0;
9740 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9741 wxRichTextRange *result = 0 ;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 PyObject *swig_obj[1] ;
9745
9746 if (!args) SWIG_fail;
9747 swig_obj[0] = args;
9748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9749 if (!SWIG_IsOK(res1)) {
9750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
9751 }
9752 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 {
9756 wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetSelectionRange();
9757 result = (wxRichTextRange *) &_result_ref;
9758 }
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 );
9763 return resultobj;
9764fail:
9765 return NULL;
9766}
9767
9768
9769SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj = 0;
9771 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9772 wxRichTextRange *arg2 = 0 ;
9773 void *argp1 = 0 ;
9774 int res1 = 0 ;
9775 wxRichTextRange temp2 ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 char * kwnames[] = {
9779 (char *) "self",(char *) "range", NULL
9780 };
9781
9782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
9783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9784 if (!SWIG_IsOK(res1)) {
9785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9786 }
9787 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9788 {
9789 arg2 = &temp2;
9790 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
9791 }
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2);
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 resultobj = SWIG_Py_Void();
9799 return resultobj;
9800fail:
9801 return NULL;
9802}
9803
9804
9805SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9806 PyObject *resultobj = 0;
9807 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9808 wxString *arg2 = 0 ;
9809 wxRichTextRange result;
9810 void *argp1 = 0 ;
9811 int res1 = 0 ;
9812 bool temp2 = false ;
9813 PyObject * obj0 = 0 ;
9814 PyObject * obj1 = 0 ;
9815 char * kwnames[] = {
9816 (char *) "self",(char *) "text", NULL
9817 };
9818
9819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail;
9820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9821 if (!SWIG_IsOK(res1)) {
9822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9823 }
9824 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9825 {
9826 arg2 = wxString_in_helper(obj1);
9827 if (arg2 == NULL) SWIG_fail;
9828 temp2 = true;
9829 }
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = (arg1)->AddParagraph((wxString const &)*arg2);
9833 wxPyEndAllowThreads(__tstate);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9837 {
9838 if (temp2)
9839 delete arg2;
9840 }
9841 return resultobj;
9842fail:
9843 {
9844 if (temp2)
9845 delete arg2;
9846 }
9847 return NULL;
9848}
9849
9850
9851SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj = 0;
9853 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9854 wxImage *arg2 = 0 ;
9855 wxRichTextRange result;
9856 void *argp1 = 0 ;
9857 int res1 = 0 ;
9858 void *argp2 = 0 ;
9859 int res2 = 0 ;
9860 PyObject * obj0 = 0 ;
9861 PyObject * obj1 = 0 ;
9862 char * kwnames[] = {
9863 (char *) "self",(char *) "image", NULL
9864 };
9865
9866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",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_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9870 }
9871 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
9873 if (!SWIG_IsOK(res2)) {
9874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9875 }
9876 if (!argp2) {
9877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9878 }
9879 arg2 = reinterpret_cast< wxImage * >(argp2);
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (arg1)->AddImage((wxImage const &)*arg2);
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9887 return resultobj;
9888fail:
9889 return NULL;
9890}
9891
9892
9893SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9894 PyObject *resultobj = 0;
9895 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9896 bool arg2 = (bool) false ;
9897 bool result;
9898 void *argp1 = 0 ;
9899 int res1 = 0 ;
9900 bool val2 ;
9901 int ecode2 = 0 ;
9902 PyObject * obj0 = 0 ;
9903 PyObject * obj1 = 0 ;
9904 char * kwnames[] = {
9905 (char *) "self",(char *) "onlyVisibleRect", NULL
9906 };
9907
9908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail;
9909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9910 if (!SWIG_IsOK(res1)) {
9911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9912 }
9913 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9914 if (obj1) {
9915 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9916 if (!SWIG_IsOK(ecode2)) {
9917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'");
9918 }
9919 arg2 = static_cast< bool >(val2);
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 result = (bool)(arg1)->LayoutContent(arg2);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 {
9928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9929 }
9930 return resultobj;
9931fail:
9932 return NULL;
9933}
9934
9935
9936SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj = 0;
9938 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9939 long arg2 ;
9940 bool arg3 = (bool) false ;
9941 bool result;
9942 void *argp1 = 0 ;
9943 int res1 = 0 ;
9944 long val2 ;
9945 int ecode2 = 0 ;
9946 bool val3 ;
9947 int ecode3 = 0 ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj2 = 0 ;
9951 char * kwnames[] = {
9952 (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL
9953 };
9954
9955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9959 }
9960 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9961 ecode2 = SWIG_AsVal_long(obj1, &val2);
9962 if (!SWIG_IsOK(ecode2)) {
9963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'");
9964 }
9965 arg2 = static_cast< long >(val2);
9966 if (obj2) {
9967 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9968 if (!SWIG_IsOK(ecode3)) {
9969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'");
9970 }
9971 arg3 = static_cast< bool >(val3);
9972 }
9973 {
9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
9975 result = (bool)(arg1)->MoveCaret(arg2,arg3);
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 {
9980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9981 }
9982 return resultobj;
9983fail:
9984 return NULL;
9985}
9986
9987
9988SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9989 PyObject *resultobj = 0;
9990 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9991 int arg2 = (int) 1 ;
9992 int arg3 = (int) 0 ;
9993 bool result;
9994 void *argp1 = 0 ;
9995 int res1 = 0 ;
9996 int val2 ;
9997 int ecode2 = 0 ;
9998 int val3 ;
9999 int ecode3 = 0 ;
10000 PyObject * obj0 = 0 ;
10001 PyObject * obj1 = 0 ;
10002 PyObject * obj2 = 0 ;
10003 char * kwnames[] = {
10004 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10005 };
10006
10007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10009 if (!SWIG_IsOK(res1)) {
10010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10011 }
10012 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10013 if (obj1) {
10014 ecode2 = SWIG_AsVal_int(obj1, &val2);
10015 if (!SWIG_IsOK(ecode2)) {
10016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'");
10017 }
10018 arg2 = static_cast< int >(val2);
10019 }
10020 if (obj2) {
10021 ecode3 = SWIG_AsVal_int(obj2, &val3);
10022 if (!SWIG_IsOK(ecode3)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'");
10024 }
10025 arg3 = static_cast< int >(val3);
10026 }
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 result = (bool)(arg1)->MoveRight(arg2,arg3);
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 {
10034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10035 }
10036 return resultobj;
10037fail:
10038 return NULL;
10039}
10040
10041
10042SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10043 PyObject *resultobj = 0;
10044 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10045 int arg2 = (int) 1 ;
10046 int arg3 = (int) 0 ;
10047 bool result;
10048 void *argp1 = 0 ;
10049 int res1 = 0 ;
10050 int val2 ;
10051 int ecode2 = 0 ;
10052 int val3 ;
10053 int ecode3 = 0 ;
10054 PyObject * obj0 = 0 ;
10055 PyObject * obj1 = 0 ;
10056 PyObject * obj2 = 0 ;
10057 char * kwnames[] = {
10058 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10059 };
10060
10061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10063 if (!SWIG_IsOK(res1)) {
10064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10065 }
10066 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10067 if (obj1) {
10068 ecode2 = SWIG_AsVal_int(obj1, &val2);
10069 if (!SWIG_IsOK(ecode2)) {
10070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'");
10071 }
10072 arg2 = static_cast< int >(val2);
10073 }
10074 if (obj2) {
10075 ecode3 = SWIG_AsVal_int(obj2, &val3);
10076 if (!SWIG_IsOK(ecode3)) {
10077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'");
10078 }
10079 arg3 = static_cast< int >(val3);
10080 }
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (bool)(arg1)->MoveLeft(arg2,arg3);
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 {
10088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10089 }
10090 return resultobj;
10091fail:
10092 return NULL;
10093}
10094
10095
10096SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10097 PyObject *resultobj = 0;
10098 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10099 int arg2 = (int) 1 ;
10100 int arg3 = (int) 0 ;
10101 bool result;
10102 void *argp1 = 0 ;
10103 int res1 = 0 ;
10104 int val2 ;
10105 int ecode2 = 0 ;
10106 int val3 ;
10107 int ecode3 = 0 ;
10108 PyObject * obj0 = 0 ;
10109 PyObject * obj1 = 0 ;
10110 PyObject * obj2 = 0 ;
10111 char * kwnames[] = {
10112 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10113 };
10114
10115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10117 if (!SWIG_IsOK(res1)) {
10118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10119 }
10120 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10121 if (obj1) {
10122 ecode2 = SWIG_AsVal_int(obj1, &val2);
10123 if (!SWIG_IsOK(ecode2)) {
10124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'");
10125 }
10126 arg2 = static_cast< int >(val2);
10127 }
10128 if (obj2) {
10129 ecode3 = SWIG_AsVal_int(obj2, &val3);
10130 if (!SWIG_IsOK(ecode3)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'");
10132 }
10133 arg3 = static_cast< int >(val3);
10134 }
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 result = (bool)(arg1)->MoveUp(arg2,arg3);
10138 wxPyEndAllowThreads(__tstate);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 {
10142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10143 }
10144 return resultobj;
10145fail:
10146 return NULL;
10147}
10148
10149
10150SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10151 PyObject *resultobj = 0;
10152 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10153 int arg2 = (int) 1 ;
10154 int arg3 = (int) 0 ;
10155 bool result;
10156 void *argp1 = 0 ;
10157 int res1 = 0 ;
10158 int val2 ;
10159 int ecode2 = 0 ;
10160 int val3 ;
10161 int ecode3 = 0 ;
10162 PyObject * obj0 = 0 ;
10163 PyObject * obj1 = 0 ;
10164 PyObject * obj2 = 0 ;
10165 char * kwnames[] = {
10166 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10167 };
10168
10169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10171 if (!SWIG_IsOK(res1)) {
10172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10173 }
10174 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10175 if (obj1) {
10176 ecode2 = SWIG_AsVal_int(obj1, &val2);
10177 if (!SWIG_IsOK(ecode2)) {
10178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'");
10179 }
10180 arg2 = static_cast< int >(val2);
10181 }
10182 if (obj2) {
10183 ecode3 = SWIG_AsVal_int(obj2, &val3);
10184 if (!SWIG_IsOK(ecode3)) {
10185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'");
10186 }
10187 arg3 = static_cast< int >(val3);
10188 }
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (bool)(arg1)->MoveDown(arg2,arg3);
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 {
10196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10197 }
10198 return resultobj;
10199fail:
10200 return NULL;
10201}
10202
10203
10204SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10207 int arg2 = (int) 0 ;
10208 bool result;
10209 void *argp1 = 0 ;
10210 int res1 = 0 ;
10211 int val2 ;
10212 int ecode2 = 0 ;
10213 PyObject * obj0 = 0 ;
10214 PyObject * obj1 = 0 ;
10215 char * kwnames[] = {
10216 (char *) "self",(char *) "flags", NULL
10217 };
10218
10219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10221 if (!SWIG_IsOK(res1)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10223 }
10224 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10225 if (obj1) {
10226 ecode2 = SWIG_AsVal_int(obj1, &val2);
10227 if (!SWIG_IsOK(ecode2)) {
10228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'");
10229 }
10230 arg2 = static_cast< int >(val2);
10231 }
10232 {
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 result = (bool)(arg1)->MoveToLineEnd(arg2);
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 {
10239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10240 }
10241 return resultobj;
10242fail:
10243 return NULL;
10244}
10245
10246
10247SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj = 0;
10249 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10250 int arg2 = (int) 0 ;
10251 bool result;
10252 void *argp1 = 0 ;
10253 int res1 = 0 ;
10254 int val2 ;
10255 int ecode2 = 0 ;
10256 PyObject * obj0 = 0 ;
10257 PyObject * obj1 = 0 ;
10258 char * kwnames[] = {
10259 (char *) "self",(char *) "flags", NULL
10260 };
10261
10262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail;
10263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10264 if (!SWIG_IsOK(res1)) {
10265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10266 }
10267 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10268 if (obj1) {
10269 ecode2 = SWIG_AsVal_int(obj1, &val2);
10270 if (!SWIG_IsOK(ecode2)) {
10271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'");
10272 }
10273 arg2 = static_cast< int >(val2);
10274 }
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 result = (bool)(arg1)->MoveToLineStart(arg2);
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10283 }
10284 return resultobj;
10285fail:
10286 return NULL;
10287}
10288
10289
10290SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj = 0;
10292 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10293 int arg2 = (int) 0 ;
10294 bool result;
10295 void *argp1 = 0 ;
10296 int res1 = 0 ;
10297 int val2 ;
10298 int ecode2 = 0 ;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 char * kwnames[] = {
10302 (char *) "self",(char *) "flags", NULL
10303 };
10304
10305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10307 if (!SWIG_IsOK(res1)) {
10308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10309 }
10310 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10311 if (obj1) {
10312 ecode2 = SWIG_AsVal_int(obj1, &val2);
10313 if (!SWIG_IsOK(ecode2)) {
10314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'");
10315 }
10316 arg2 = static_cast< int >(val2);
10317 }
10318 {
10319 PyThreadState* __tstate = wxPyBeginAllowThreads();
10320 result = (bool)(arg1)->MoveToParagraphEnd(arg2);
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 {
10325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10326 }
10327 return resultobj;
10328fail:
10329 return NULL;
10330}
10331
10332
10333SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj = 0;
10335 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10336 int arg2 = (int) 0 ;
10337 bool result;
10338 void *argp1 = 0 ;
10339 int res1 = 0 ;
10340 int val2 ;
10341 int ecode2 = 0 ;
10342 PyObject * obj0 = 0 ;
10343 PyObject * obj1 = 0 ;
10344 char * kwnames[] = {
10345 (char *) "self",(char *) "flags", NULL
10346 };
10347
10348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail;
10349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10350 if (!SWIG_IsOK(res1)) {
10351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10352 }
10353 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10354 if (obj1) {
10355 ecode2 = SWIG_AsVal_int(obj1, &val2);
10356 if (!SWIG_IsOK(ecode2)) {
10357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'");
10358 }
10359 arg2 = static_cast< int >(val2);
10360 }
10361 {
10362 PyThreadState* __tstate = wxPyBeginAllowThreads();
10363 result = (bool)(arg1)->MoveToParagraphStart(arg2);
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 {
10368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10369 }
10370 return resultobj;
10371fail:
10372 return NULL;
10373}
10374
10375
10376SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10379 int arg2 = (int) 0 ;
10380 bool result;
10381 void *argp1 = 0 ;
10382 int res1 = 0 ;
10383 int val2 ;
10384 int ecode2 = 0 ;
10385 PyObject * obj0 = 0 ;
10386 PyObject * obj1 = 0 ;
10387 char * kwnames[] = {
10388 (char *) "self",(char *) "flags", NULL
10389 };
10390
10391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail;
10392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10393 if (!SWIG_IsOK(res1)) {
10394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10395 }
10396 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10397 if (obj1) {
10398 ecode2 = SWIG_AsVal_int(obj1, &val2);
10399 if (!SWIG_IsOK(ecode2)) {
10400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'");
10401 }
10402 arg2 = static_cast< int >(val2);
10403 }
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (bool)(arg1)->MoveHome(arg2);
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 {
10411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10412 }
10413 return resultobj;
10414fail:
10415 return NULL;
10416}
10417
10418
10419SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10420 PyObject *resultobj = 0;
10421 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10422 int arg2 = (int) 0 ;
10423 bool result;
10424 void *argp1 = 0 ;
10425 int res1 = 0 ;
10426 int val2 ;
10427 int ecode2 = 0 ;
10428 PyObject * obj0 = 0 ;
10429 PyObject * obj1 = 0 ;
10430 char * kwnames[] = {
10431 (char *) "self",(char *) "flags", NULL
10432 };
10433
10434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10436 if (!SWIG_IsOK(res1)) {
10437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10438 }
10439 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10440 if (obj1) {
10441 ecode2 = SWIG_AsVal_int(obj1, &val2);
10442 if (!SWIG_IsOK(ecode2)) {
10443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'");
10444 }
10445 arg2 = static_cast< int >(val2);
10446 }
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (bool)(arg1)->MoveEnd(arg2);
10450 wxPyEndAllowThreads(__tstate);
10451 if (PyErr_Occurred()) SWIG_fail;
10452 }
10453 {
10454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10455 }
10456 return resultobj;
10457fail:
10458 return NULL;
10459}
10460
10461
10462SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj = 0;
10464 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10465 int arg2 = (int) 1 ;
10466 int arg3 = (int) 0 ;
10467 bool result;
10468 void *argp1 = 0 ;
10469 int res1 = 0 ;
10470 int val2 ;
10471 int ecode2 = 0 ;
10472 int val3 ;
10473 int ecode3 = 0 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 PyObject * obj2 = 0 ;
10477 char * kwnames[] = {
10478 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10479 };
10480
10481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10483 if (!SWIG_IsOK(res1)) {
10484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10485 }
10486 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10487 if (obj1) {
10488 ecode2 = SWIG_AsVal_int(obj1, &val2);
10489 if (!SWIG_IsOK(ecode2)) {
10490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'");
10491 }
10492 arg2 = static_cast< int >(val2);
10493 }
10494 if (obj2) {
10495 ecode3 = SWIG_AsVal_int(obj2, &val3);
10496 if (!SWIG_IsOK(ecode3)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'");
10498 }
10499 arg3 = static_cast< int >(val3);
10500 }
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (bool)(arg1)->PageUp(arg2,arg3);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 {
10508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10509 }
10510 return resultobj;
10511fail:
10512 return NULL;
10513}
10514
10515
10516SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj = 0;
10518 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10519 int arg2 = (int) 1 ;
10520 int arg3 = (int) 0 ;
10521 bool result;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 int val2 ;
10525 int ecode2 = 0 ;
10526 int val3 ;
10527 int ecode3 = 0 ;
10528 PyObject * obj0 = 0 ;
10529 PyObject * obj1 = 0 ;
10530 PyObject * obj2 = 0 ;
10531 char * kwnames[] = {
10532 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10533 };
10534
10535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10537 if (!SWIG_IsOK(res1)) {
10538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10539 }
10540 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10541 if (obj1) {
10542 ecode2 = SWIG_AsVal_int(obj1, &val2);
10543 if (!SWIG_IsOK(ecode2)) {
10544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'");
10545 }
10546 arg2 = static_cast< int >(val2);
10547 }
10548 if (obj2) {
10549 ecode3 = SWIG_AsVal_int(obj2, &val3);
10550 if (!SWIG_IsOK(ecode3)) {
10551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'");
10552 }
10553 arg3 = static_cast< int >(val3);
10554 }
10555 {
10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
10557 result = (bool)(arg1)->PageDown(arg2,arg3);
10558 wxPyEndAllowThreads(__tstate);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 {
10562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10563 }
10564 return resultobj;
10565fail:
10566 return NULL;
10567}
10568
10569
10570SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10573 int arg2 = (int) 1 ;
10574 int arg3 = (int) 0 ;
10575 bool result;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 int val2 ;
10579 int ecode2 = 0 ;
10580 int val3 ;
10581 int ecode3 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 PyObject * obj2 = 0 ;
10585 char * kwnames[] = {
10586 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10587 };
10588
10589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10591 if (!SWIG_IsOK(res1)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10593 }
10594 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10595 if (obj1) {
10596 ecode2 = SWIG_AsVal_int(obj1, &val2);
10597 if (!SWIG_IsOK(ecode2)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'");
10599 }
10600 arg2 = static_cast< int >(val2);
10601 }
10602 if (obj2) {
10603 ecode3 = SWIG_AsVal_int(obj2, &val3);
10604 if (!SWIG_IsOK(ecode3)) {
10605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'");
10606 }
10607 arg3 = static_cast< int >(val3);
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 result = (bool)(arg1)->WordLeft(arg2,arg3);
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 {
10616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10617 }
10618 return resultobj;
10619fail:
10620 return NULL;
10621}
10622
10623
10624SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj = 0;
10626 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10627 int arg2 = (int) 1 ;
10628 int arg3 = (int) 0 ;
10629 bool result;
10630 void *argp1 = 0 ;
10631 int res1 = 0 ;
10632 int val2 ;
10633 int ecode2 = 0 ;
10634 int val3 ;
10635 int ecode3 = 0 ;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 PyObject * obj2 = 0 ;
10639 char * kwnames[] = {
10640 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10641 };
10642
10643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10645 if (!SWIG_IsOK(res1)) {
10646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10647 }
10648 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10649 if (obj1) {
10650 ecode2 = SWIG_AsVal_int(obj1, &val2);
10651 if (!SWIG_IsOK(ecode2)) {
10652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'");
10653 }
10654 arg2 = static_cast< int >(val2);
10655 }
10656 if (obj2) {
10657 ecode3 = SWIG_AsVal_int(obj2, &val3);
10658 if (!SWIG_IsOK(ecode3)) {
10659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'");
10660 }
10661 arg3 = static_cast< int >(val3);
10662 }
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (bool)(arg1)->WordRight(arg2,arg3);
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10671 }
10672 return resultobj;
10673fail:
10674 return NULL;
10675}
10676
10677
10678SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10679 PyObject *resultobj = 0;
10680 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10681 wxRichTextBuffer *result = 0 ;
10682 void *argp1 = 0 ;
10683 int res1 = 0 ;
10684 PyObject *swig_obj[1] ;
10685
10686 if (!args) SWIG_fail;
10687 swig_obj[0] = args;
10688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10689 if (!SWIG_IsOK(res1)) {
10690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10691 }
10692 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10693 {
10694 PyThreadState* __tstate = wxPyBeginAllowThreads();
10695 {
10696 wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer();
10697 result = (wxRichTextBuffer *) &_result_ref;
10698 }
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 );
10703 return resultobj;
10704fail:
10705 return NULL;
10706}
10707
10708
10709SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10710 PyObject *resultobj = 0;
10711 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10712 wxString *arg2 = 0 ;
10713 bool result;
10714 void *argp1 = 0 ;
10715 int res1 = 0 ;
10716 bool temp2 = false ;
10717 PyObject * obj0 = 0 ;
10718 PyObject * obj1 = 0 ;
10719 char * kwnames[] = {
10720 (char *) "self",(char *) "cmdName", NULL
10721 };
10722
10723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail;
10724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10725 if (!SWIG_IsOK(res1)) {
10726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10727 }
10728 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10729 {
10730 arg2 = wxString_in_helper(obj1);
10731 if (arg2 == NULL) SWIG_fail;
10732 temp2 = true;
10733 }
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2);
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 {
10741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10742 }
10743 {
10744 if (temp2)
10745 delete arg2;
10746 }
10747 return resultobj;
10748fail:
10749 {
10750 if (temp2)
10751 delete arg2;
10752 }
10753 return NULL;
10754}
10755
10756
10757SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10758 PyObject *resultobj = 0;
10759 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10760 bool result;
10761 void *argp1 = 0 ;
10762 int res1 = 0 ;
10763 PyObject *swig_obj[1] ;
10764
10765 if (!args) SWIG_fail;
10766 swig_obj[0] = args;
10767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10768 if (!SWIG_IsOK(res1)) {
10769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10770 }
10771 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = (bool)(arg1)->EndBatchUndo();
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 {
10779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10780 }
10781 return resultobj;
10782fail:
10783 return NULL;
10784}
10785
10786
10787SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10788 PyObject *resultobj = 0;
10789 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10790 bool result;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 PyObject *swig_obj[1] ;
10794
10795 if (!args) SWIG_fail;
10796 swig_obj[0] = args;
10797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10798 if (!SWIG_IsOK(res1)) {
10799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10800 }
10801 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo();
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 {
10809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10810 }
10811 return resultobj;
10812fail:
10813 return NULL;
10814}
10815
10816
10817SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10818 PyObject *resultobj = 0;
10819 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10820 bool result;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 PyObject *swig_obj[1] ;
10824
10825 if (!args) SWIG_fail;
10826 swig_obj[0] = args;
10827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10830 }
10831 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 result = (bool)(arg1)->BeginSuppressUndo();
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 {
10839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10840 }
10841 return resultobj;
10842fail:
10843 return NULL;
10844}
10845
10846
10847SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10848 PyObject *resultobj = 0;
10849 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10850 bool result;
10851 void *argp1 = 0 ;
10852 int res1 = 0 ;
10853 PyObject *swig_obj[1] ;
10854
10855 if (!args) SWIG_fail;
10856 swig_obj[0] = args;
10857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10860 }
10861 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 result = (bool)(arg1)->EndSuppressUndo();
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 {
10869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10870 }
10871 return resultobj;
10872fail:
10873 return NULL;
10874}
10875
10876
10877SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10878 PyObject *resultobj = 0;
10879 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10880 bool result;
10881 void *argp1 = 0 ;
10882 int res1 = 0 ;
10883 PyObject *swig_obj[1] ;
10884
10885 if (!args) SWIG_fail;
10886 swig_obj[0] = args;
10887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10888 if (!SWIG_IsOK(res1)) {
10889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10890 }
10891 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo();
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10900 }
10901 return resultobj;
10902fail:
10903 return NULL;
10904}
10905
10906
10907SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj = 0;
10909 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10910 wxRichTextRange *arg2 = 0 ;
10911 wxRichTextAttr *arg3 = 0 ;
10912 bool result;
10913 void *argp1 = 0 ;
10914 int res1 = 0 ;
10915 wxRichTextRange temp2 ;
10916 void *argp3 = 0 ;
10917 int res3 = 0 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 PyObject * obj2 = 0 ;
10921 char * kwnames[] = {
10922 (char *) "self",(char *) "range",(char *) "style", NULL
10923 };
10924
10925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10927 if (!SWIG_IsOK(res1)) {
10928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10929 }
10930 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10931 {
10932 arg2 = &temp2;
10933 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10934 }
10935 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10936 if (!SWIG_IsOK(res3)) {
10937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10938 }
10939 if (!argp3) {
10940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10941 }
10942 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 {
10950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10951 }
10952 return resultobj;
10953fail:
10954 return NULL;
10955}
10956
10957
10958SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj = 0;
10960 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10961 wxRichTextRange *arg2 = 0 ;
10962 wxRichTextAttr *arg3 = 0 ;
10963 bool result;
10964 void *argp1 = 0 ;
10965 int res1 = 0 ;
10966 wxRichTextRange temp2 ;
10967 void *argp3 = 0 ;
10968 int res3 = 0 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 PyObject * obj2 = 0 ;
10972 char * kwnames[] = {
10973 (char *) "self",(char *) "range",(char *) "style", NULL
10974 };
10975
10976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10978 if (!SWIG_IsOK(res1)) {
10979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10980 }
10981 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10982 {
10983 arg2 = &temp2;
10984 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10985 }
10986 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10987 if (!SWIG_IsOK(res3)) {
10988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10989 }
10990 if (!argp3) {
10991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10992 }
10993 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 {
11001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11002 }
11003 return resultobj;
11004fail:
11005 return NULL;
11006}
11007
11008
11009SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11010 PyObject *resultobj = 0;
11011 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11012 bool result;
11013 void *argp1 = 0 ;
11014 int res1 = 0 ;
11015 PyObject *swig_obj[1] ;
11016
11017 if (!args) SWIG_fail;
11018 swig_obj[0] = args;
11019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11022 }
11023 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionBold();
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034fail:
11035 return NULL;
11036}
11037
11038
11039SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11040 PyObject *resultobj = 0;
11041 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11042 bool result;
11043 void *argp1 = 0 ;
11044 int res1 = 0 ;
11045 PyObject *swig_obj[1] ;
11046
11047 if (!args) SWIG_fail;
11048 swig_obj[0] = args;
11049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11050 if (!SWIG_IsOK(res1)) {
11051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11052 }
11053 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionItalics();
11057 wxPyEndAllowThreads(__tstate);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 }
11060 {
11061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11062 }
11063 return resultobj;
11064fail:
11065 return NULL;
11066}
11067
11068
11069SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11070 PyObject *resultobj = 0;
11071 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11072 bool result;
11073 void *argp1 = 0 ;
11074 int res1 = 0 ;
11075 PyObject *swig_obj[1] ;
11076
11077 if (!args) SWIG_fail;
11078 swig_obj[0] = args;
11079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11080 if (!SWIG_IsOK(res1)) {
11081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11082 }
11083 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11084 {
11085 PyThreadState* __tstate = wxPyBeginAllowThreads();
11086 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionUnderlined();
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 {
11091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11092 }
11093 return resultobj;
11094fail:
11095 return NULL;
11096}
11097
11098
11099SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj = 0;
11101 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11102 wxTextAttrAlignment arg2 ;
11103 bool result;
11104 void *argp1 = 0 ;
11105 int res1 = 0 ;
11106 int val2 ;
11107 int ecode2 = 0 ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 char * kwnames[] = {
11111 (char *) "self",(char *) "alignment", NULL
11112 };
11113
11114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail;
11115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11118 }
11119 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11120 ecode2 = SWIG_AsVal_int(obj1, &val2);
11121 if (!SWIG_IsOK(ecode2)) {
11122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11123 }
11124 arg2 = static_cast< wxTextAttrAlignment >(val2);
11125 {
11126 PyThreadState* __tstate = wxPyBeginAllowThreads();
11127 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionAligned(arg2);
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 {
11132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11133 }
11134 return resultobj;
11135fail:
11136 return NULL;
11137}
11138
11139
11140SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11141 PyObject *resultobj = 0;
11142 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11143 bool result;
11144 void *argp1 = 0 ;
11145 int res1 = 0 ;
11146 PyObject *swig_obj[1] ;
11147
11148 if (!args) SWIG_fail;
11149 swig_obj[0] = args;
11150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11151 if (!SWIG_IsOK(res1)) {
11152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11153 }
11154 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
11157 result = (bool)(arg1)->ApplyBoldToSelection();
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11163 }
11164 return resultobj;
11165fail:
11166 return NULL;
11167}
11168
11169
11170SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11171 PyObject *resultobj = 0;
11172 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11173 bool result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 PyObject *swig_obj[1] ;
11177
11178 if (!args) SWIG_fail;
11179 swig_obj[0] = args;
11180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11181 if (!SWIG_IsOK(res1)) {
11182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11183 }
11184 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11185 {
11186 PyThreadState* __tstate = wxPyBeginAllowThreads();
11187 result = (bool)(arg1)->ApplyItalicToSelection();
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 {
11192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11193 }
11194 return resultobj;
11195fail:
11196 return NULL;
11197}
11198
11199
11200SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11201 PyObject *resultobj = 0;
11202 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11203 bool result;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 PyObject *swig_obj[1] ;
11207
11208 if (!args) SWIG_fail;
11209 swig_obj[0] = args;
11210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11213 }
11214 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 result = (bool)(arg1)->ApplyUnderlineToSelection();
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 {
11222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11223 }
11224 return resultobj;
11225fail:
11226 return NULL;
11227}
11228
11229
11230SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11231 PyObject *resultobj = 0;
11232 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11233 wxTextAttrAlignment arg2 ;
11234 bool result;
11235 void *argp1 = 0 ;
11236 int res1 = 0 ;
11237 int val2 ;
11238 int ecode2 = 0 ;
11239 PyObject * obj0 = 0 ;
11240 PyObject * obj1 = 0 ;
11241 char * kwnames[] = {
11242 (char *) "self",(char *) "alignment", NULL
11243 };
11244
11245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail;
11246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11247 if (!SWIG_IsOK(res1)) {
11248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11249 }
11250 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11251 ecode2 = SWIG_AsVal_int(obj1, &val2);
11252 if (!SWIG_IsOK(ecode2)) {
11253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11254 }
11255 arg2 = static_cast< wxTextAttrAlignment >(val2);
11256 {
11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
11258 result = (bool)(arg1)->ApplyAlignmentToSelection(arg2);
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 {
11263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11264 }
11265 return resultobj;
11266fail:
11267 return NULL;
11268}
11269
11270
11271SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj = 0;
11273 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11274 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ;
11275 void *argp1 = 0 ;
11276 int res1 = 0 ;
11277 void *argp2 = 0 ;
11278 int res2 = 0 ;
11279 PyObject * obj0 = 0 ;
11280 PyObject * obj1 = 0 ;
11281 char * kwnames[] = {
11282 (char *) "self",(char *) "styleSheet", NULL
11283 };
11284
11285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11287 if (!SWIG_IsOK(res1)) {
11288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11289 }
11290 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11292 if (!SWIG_IsOK(res2)) {
11293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11294 }
11295 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 (arg1)->SetStyleSheet(arg2);
11299 wxPyEndAllowThreads(__tstate);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 }
11302 resultobj = SWIG_Py_Void();
11303 return resultobj;
11304fail:
11305 return NULL;
11306}
11307
11308
11309SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11310 PyObject *resultobj = 0;
11311 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11312 wxRichTextStyleSheet *result = 0 ;
11313 void *argp1 = 0 ;
11314 int res1 = 0 ;
11315 PyObject *swig_obj[1] ;
11316
11317 if (!args) SWIG_fail;
11318 swig_obj[0] = args;
11319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11320 if (!SWIG_IsOK(res1)) {
11321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11322 }
11323 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet();
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11331 return resultobj;
11332fail:
11333 return NULL;
11334}
11335
11336
11337SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11338 PyObject *obj;
11339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11340 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj));
11341 return SWIG_Py_Void();
11342}
11343
11344SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11345 return SWIG_Python_InitShadowInstance(args);
11346}
11347
11348SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj = 0;
11350 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11351 int arg2 = (int) 0 ;
11352 wxRichTextEvent *result = 0 ;
11353 int val1 ;
11354 int ecode1 = 0 ;
11355 int val2 ;
11356 int ecode2 = 0 ;
11357 PyObject * obj0 = 0 ;
11358 PyObject * obj1 = 0 ;
11359 char * kwnames[] = {
11360 (char *) "commandType",(char *) "winid", NULL
11361 };
11362
11363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11364 if (obj0) {
11365 ecode1 = SWIG_AsVal_int(obj0, &val1);
11366 if (!SWIG_IsOK(ecode1)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
11368 }
11369 arg1 = static_cast< wxEventType >(val1);
11370 }
11371 if (obj1) {
11372 ecode2 = SWIG_AsVal_int(obj1, &val2);
11373 if (!SWIG_IsOK(ecode2)) {
11374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'");
11375 }
11376 arg2 = static_cast< int >(val2);
11377 }
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2);
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 );
11385 return resultobj;
11386fail:
11387 return NULL;
11388}
11389
11390
11391SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11392 PyObject *resultobj = 0;
11393 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11394 int result;
11395 void *argp1 = 0 ;
11396 int res1 = 0 ;
11397 PyObject *swig_obj[1] ;
11398
11399 if (!args) SWIG_fail;
11400 swig_obj[0] = args;
11401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11402 if (!SWIG_IsOK(res1)) {
11403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11404 }
11405 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = (int)((wxRichTextEvent const *)arg1)->GetIndex();
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 resultobj = SWIG_From_int(static_cast< int >(result));
11413 return resultobj;
11414fail:
11415 return NULL;
11416}
11417
11418
11419SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj = 0;
11421 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11422 int arg2 ;
11423 void *argp1 = 0 ;
11424 int res1 = 0 ;
11425 int val2 ;
11426 int ecode2 = 0 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 char * kwnames[] = {
11430 (char *) "self",(char *) "n", NULL
11431 };
11432
11433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
11434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11435 if (!SWIG_IsOK(res1)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11437 }
11438 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11439 ecode2 = SWIG_AsVal_int(obj1, &val2);
11440 if (!SWIG_IsOK(ecode2)) {
11441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'");
11442 }
11443 arg2 = static_cast< int >(val2);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 (arg1)->SetIndex(arg2);
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_Py_Void();
11451 return resultobj;
11452fail:
11453 return NULL;
11454}
11455
11456
11457SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11458 PyObject *resultobj = 0;
11459 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11460 int result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 PyObject *swig_obj[1] ;
11464
11465 if (!args) SWIG_fail;
11466 swig_obj[0] = args;
11467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11468 if (!SWIG_IsOK(res1)) {
11469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11470 }
11471 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (int)((wxRichTextEvent const *)arg1)->GetFlags();
11475 wxPyEndAllowThreads(__tstate);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 }
11478 resultobj = SWIG_From_int(static_cast< int >(result));
11479 return resultobj;
11480fail:
11481 return NULL;
11482}
11483
11484
11485SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11486 PyObject *resultobj = 0;
11487 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11488 int arg2 ;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 int val2 ;
11492 int ecode2 = 0 ;
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 char * kwnames[] = {
11496 (char *) "self",(char *) "flags", NULL
11497 };
11498
11499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11501 if (!SWIG_IsOK(res1)) {
11502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11503 }
11504 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11505 ecode2 = SWIG_AsVal_int(obj1, &val2);
11506 if (!SWIG_IsOK(ecode2)) {
11507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'");
11508 }
11509 arg2 = static_cast< int >(val2);
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 (arg1)->SetFlags(arg2);
11513 wxPyEndAllowThreads(__tstate);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 resultobj = SWIG_Py_Void();
11517 return resultobj;
11518fail:
11519 return NULL;
11520}
11521
11522
11523SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11524 PyObject *obj;
11525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11526 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj));
11527 return SWIG_Py_Void();
11528}
11529
11530SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11531 return SWIG_Python_InitShadowInstance(args);
11532}
11533
11534static PyMethodDef SwigMethods[] = {
11535 { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL},
11536 { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL},
11537 { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
11538 { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
11539 { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL},
11540 { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11541 { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL},
11542 { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL},
11543 { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11544 { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL},
11545 { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL},
11546 { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL},
11547 { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
11548 { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL},
11549 { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL},
11550 { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL},
11551 { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL},
11552 { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL},
11553 { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL},
11554 { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
11555 { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL},
11556 { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL},
11557 { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11558 { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11559 { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
11560 { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11561 { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
11562 { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11563 { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11564 { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11565 { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11566 { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL},
11567 { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
11568 { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
11569 { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11570 { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11571 { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11572 { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL},
11573 { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL},
11574 { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11575 { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11576 { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
11577 { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL},
11578 { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
11579 { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
11580 { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
11581 { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL},
11582 { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL},
11583 { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL},
11584 { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL},
11585 { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL},
11586 { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL},
11587 { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL},
11588 { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL},
11589 { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL},
11590 { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL},
11591 { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL},
11592 { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL},
11593 { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL},
11594 { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL},
11595 { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL},
11596 { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
11597 { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
11598 { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL},
11599 { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
11600 { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
11601 { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
11602 { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL},
11603 { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL},
11604 { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL},
11605 { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL},
11606 { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL},
11607 { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL},
11608 { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL},
11609 { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL},
11610 { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL},
11611 { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL},
11612 { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL},
11613 { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL},
11614 { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL},
11615 { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL},
11616 { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL},
11617 { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL},
11618 { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL},
11619 { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
11620 { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL},
11621 { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL},
11622 { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL},
11623 { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL},
11624 { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL},
11625 { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
11626 { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL},
11627 { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
11628 { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL},
11629 { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
11630 { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11631 { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
11632 { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
11633 { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL},
11634 { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL},
11635 { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL},
11636 { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL},
11637 { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL},
11638 { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL},
11639 { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL},
11640 { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL},
11641 { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL},
11642 { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
11643 { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL},
11644 { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL},
11645 { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
11646 { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
11647 { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
11648 { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
11649 { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL},
11650 { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL},
11651 { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
11652 { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
11653 { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
11654 { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11655 { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11656 { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11657 { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL},
11658 { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11659 { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
11660 { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11661 { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
11662 { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
11663 { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL},
11664 { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL},
11665 { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL},
11666 { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL},
11667 { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL},
11668 { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL},
11669 { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL},
11670 { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL},
11671 { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL},
11672 { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL},
11673 { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL},
11674 { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL},
11675 { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
11676 { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL},
11677 { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL},
11678 { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL},
11679 { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11680 { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL},
11681 { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
11682 { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL},
11683 { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL},
11684 { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
11685 { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL},
11686 { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL},
11687 { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL},
11688 { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11689 { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL},
11690 { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL},
11691 { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL},
11692 { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL},
11693 { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL},
11694 { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL},
11695 { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL},
11696 { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL},
11697 { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11698 { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL},
11699 { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL},
11700 { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL},
11701 { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11702 { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL},
11703 { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11704 { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL},
11705 { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11706 { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL},
11707 { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11708 { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL},
11709 { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11710 { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL},
11711 { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11712 { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL},
11713 { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11714 { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL},
11715 { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11716 { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL},
11717 { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11718 { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL},
11719 { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11720 { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL},
11721 { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL},
11722 { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL},
11723 { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL},
11724 { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
11725 { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL},
11726 { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL},
11727 { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL},
11728 { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL},
11729 { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL},
11730 { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11731 { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL},
11732 { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL},
11733 { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11734 { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL},
11735 { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11736 { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL},
11737 { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL},
11738 { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11739 { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
11740 { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
11741 { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11742 { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL},
11743 { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL},
11744 { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL},
11745 { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL},
11746 { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL},
11747 { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL},
11748 { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL},
11749 { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL},
11750 { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11751 { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11752 { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL},
11753 { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL},
11754 { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL},
11755 { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL},
11756 { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL},
11757 { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL},
11758 { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL},
11759 { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11760 { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
11761 { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL},
11762 { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL},
11763 { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL},
11764 { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
11765 { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL},
11766 { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
11767 { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL},
11768 { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11769 { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL},
11770 { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL},
11771 { NULL, NULL, 0, NULL }
11772};
11773
11774
11775/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
11776
11777static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
11778 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
11779}
11780static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
11781 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
11782}
11783static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
11784 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11785}
11786static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
11787 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11788}
11789static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
11790 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11791}
11792static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
11793 return (void *)((wxPanel *) ((wxPyPanel *) x));
11794}
11795static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) {
11796 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x));
11797}
11798static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
11799 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
11800}
11801static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
11802 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
11803}
11804static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
11805 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11806}
11807static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) {
11808 return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x));
11809}
11810static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
11811 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
11812}
11813static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
11814 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11815}
11816static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) {
11817 return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x));
11818}
11819static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
11820 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
11821}
11822static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
11823 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
11824}
11825static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
11826 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
11827}
11828static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
11829 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
11830}
11831static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
11832 return (void *)((wxWindow *) ((wxMenuBar *) x));
11833}
11834static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
11835 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
11836}
11837static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
11838 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
11839}
11840static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
11841 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
11842}
11843static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) {
11844 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
11845}
11846static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
11847 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
11848}
11849static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
11850 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
11851}
11852static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
11853 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
11854}
11855static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
11856 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
11857}
11858static void *_p_wxPanelTo_p_wxWindow(void *x) {
11859 return (void *)((wxWindow *) ((wxPanel *) x));
11860}
11861static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
11862 return (void *)((wxWindow *) ((wxStatusBar *) x));
11863}
11864static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
11865 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
11866}
11867static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
11868 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
11869}
11870static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
11871 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
11872}
11873static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
11874 return (void *)((wxWindow *) ((wxPopupWindow *) x));
11875}
11876static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
11877 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
11878}
11879static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
11880 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
11881}
11882static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
11883 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
11884}
11885static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
11886 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
11887}
11888static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
11889 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
11890}
11891static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
11892 return (void *)((wxWindow *) ((wxSashWindow *) x));
11893}
11894static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
11895 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
11896}
11897static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
11898 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11899}
11900static void *_p_wxControlTo_p_wxWindow(void *x) {
11901 return (void *)((wxWindow *) ((wxControl *) x));
11902}
11903static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
11904 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
11905}
11906static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
11907 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
11908}
11909static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
11910 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
11911}
11912static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
11913 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
11914}
11915static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
11916 return (void *)((wxWindow *) ((wxPyWindow *) x));
11917}
11918static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
11919 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
11920}
11921static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
11922 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11923}
11924static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
11925 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11926}
11927static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
11928 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
11929}
11930static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
11931 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11932}
11933static void *_p_wxFrameTo_p_wxWindow(void *x) {
11934 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
11935}
11936static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
11937 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
11938}
11939static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
11940 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
11941}
11942static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
11943 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
11944}
11945static void *_p_wxDialogTo_p_wxWindow(void *x) {
11946 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
11947}
11948static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
11949 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
11950}
11951static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) {
11952 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
11953}
11954static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
11955 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
11956}
11957static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
11958 return (void *)((wxEvent *) ((wxMenuEvent *) x));
11959}
11960static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
11961 return (void *)((wxEvent *) ((wxCloseEvent *) x));
11962}
11963static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
11964 return (void *)((wxEvent *) ((wxMouseEvent *) x));
11965}
11966static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
11967 return (void *)((wxEvent *) ((wxEraseEvent *) x));
11968}
11969static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
11970 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
11971}
11972static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
11973 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
11974}
11975static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
11976 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
11977}
11978static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
11979 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
11980}
11981static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
11982 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
11983}
11984static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
11985 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
11986}
11987static void *_p_wxPyEventTo_p_wxEvent(void *x) {
11988 return (void *)((wxEvent *) ((wxPyEvent *) x));
11989}
11990static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
11991 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
11992}
11993static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
11994 return (void *)((wxEvent *) ((wxIdleEvent *) x));
11995}
11996static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
11997 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
11998}
11999static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
12000 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
12001}
12002static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
12003 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
12004}
12005static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
12006 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
12007}
12008static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
12009 return (void *)((wxEvent *) ((wxActivateEvent *) x));
12010}
12011static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
12012 return (void *)((wxEvent *) ((wxSizeEvent *) x));
12013}
12014static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
12015 return (void *)((wxEvent *) ((wxMoveEvent *) x));
12016}
12017static void *_p_wxDateEventTo_p_wxEvent(void *x) {
12018 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
12019}
12020static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
12021 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
12022}
12023static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
12024 return (void *)((wxEvent *) ((wxPaintEvent *) x));
12025}
12026static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
12027 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
12028}
12029static void *_p_wxRichTextEventTo_p_wxEvent(void *x) {
12030 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12031}
12032static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
12033 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
12034}
12035static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
12036 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
12037}
12038static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
12039 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
12040}
12041static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
12042 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12043}
12044static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
12045 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
12046}
12047static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
12048 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
12049}
12050static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
12051 return (void *)((wxEvent *) ((wxFocusEvent *) x));
12052}
12053static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
12054 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
12055}
12056static void *_p_wxSashEventTo_p_wxEvent(void *x) {
12057 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
12058}
12059static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
12060 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12061}
12062static void *_p_wxShowEventTo_p_wxEvent(void *x) {
12063 return (void *)((wxEvent *) ((wxShowEvent *) x));
12064}
12065static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
12066 return (void *)((wxEvent *) ((wxCommandEvent *) x));
12067}
12068static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
12069 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
12070}
12071static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
12072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12073}
12074static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
12075 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
12076}
12077static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
12078 return (void *)((wxEvent *) ((wxKeyEvent *) x));
12079}
12080static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
12081 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
12082}
12083static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
12084 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
12085}
453fb36b
RD
12086static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
12087 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
f05326ba 12088}
453fb36b
RD
12089static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
12090 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
f05326ba
RD
12091}
12092static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
12093 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12094}
453fb36b
RD
12095static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
12096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
f05326ba 12097}
453fb36b
RD
12098static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
12099 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
f05326ba 12100}
453fb36b
RD
12101static void *_p_wxSizerItemTo_p_wxObject(void *x) {
12102 return (void *)((wxObject *) ((wxSizerItem *) x));
f05326ba 12103}
453fb36b
RD
12104static void *_p_wxScrollEventTo_p_wxObject(void *x) {
12105 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
f05326ba 12106}
453fb36b
RD
12107static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
12108 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
f05326ba 12109}
453fb36b
RD
12110static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
12111 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
f05326ba 12112}
453fb36b
RD
12113static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
12114 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
f05326ba 12115}
453fb36b
RD
12116static void *_p_wxSizerTo_p_wxObject(void *x) {
12117 return (void *)((wxObject *) ((wxSizer *) x));
f05326ba 12118}
453fb36b
RD
12119static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
12120 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
f05326ba 12121}
453fb36b
RD
12122static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
12123 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
f05326ba 12124}
453fb36b
RD
12125static void *_p_wxPyPanelTo_p_wxObject(void *x) {
12126 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
f05326ba 12127}
453fb36b
RD
12128static void *_p_wxEventTo_p_wxObject(void *x) {
12129 return (void *)((wxObject *) ((wxEvent *) x));
f05326ba 12130}
453fb36b
RD
12131static void *_p_wxFontDataTo_p_wxObject(void *x) {
12132 return (void *)((wxObject *) ((wxFontData *) x));
f05326ba 12133}
453fb36b
RD
12134static void *_p_wxPrintDataTo_p_wxObject(void *x) {
12135 return (void *)((wxObject *) ((wxPrintData *) x));
f05326ba 12136}
453fb36b
RD
12137static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
12138 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
f05326ba 12139}
453fb36b
RD
12140static void *_p_wxGridSizerTo_p_wxObject(void *x) {
12141 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
f05326ba 12142}
453fb36b
RD
12143static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
12144 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
f05326ba 12145}
453fb36b
RD
12146static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
12147 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
f05326ba 12148}
453fb36b
RD
12149static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) {
12150 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x));
f05326ba 12151}
453fb36b
RD
12152static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
12153 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
f05326ba 12154}
453fb36b
RD
12155static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
12156 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
f05326ba 12157}
453fb36b
RD
12158static void *_p_wxPaintEventTo_p_wxObject(void *x) {
12159 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
f05326ba 12160}
453fb36b
RD
12161static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
12162 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
f05326ba 12163}
453fb36b
RD
12164static void *_p_wxRichTextEventTo_p_wxObject(void *x) {
12165 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
f05326ba 12166}
453fb36b
RD
12167static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
12168 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
f05326ba 12169}
453fb36b
RD
12170static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
12171 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
f05326ba 12172}
453fb36b
RD
12173static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
12174 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
f05326ba 12175}
453fb36b
RD
12176static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
12177 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
f05326ba 12178}
453fb36b
RD
12179static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
12180 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
f05326ba
RD
12181}
12182static void *_p_wxControlTo_p_wxObject(void *x) {
12183 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
12184}
453fb36b
RD
12185static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
12186 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
f05326ba 12187}
453fb36b
RD
12188static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
12189 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
f05326ba 12190}
453fb36b
RD
12191static void *_p_wxFSFileTo_p_wxObject(void *x) {
12192 return (void *)((wxObject *) ((wxFSFile *) x));
f05326ba 12193}
453fb36b
RD
12194static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
12195 return (void *)((wxObject *) ((wxFindReplaceData *) x));
f05326ba 12196}
453fb36b
RD
12197static void *_p_wxPySizerTo_p_wxObject(void *x) {
12198 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
f05326ba
RD
12199}
12200static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
12201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12202}
453fb36b
RD
12203static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) {
12204 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
f05326ba 12205}
453fb36b
RD
12206static void *_p_wxColourDataTo_p_wxObject(void *x) {
12207 return (void *)((wxObject *) ((wxColourData *) x));
f05326ba 12208}
453fb36b
RD
12209static void *_p_wxPyEventTo_p_wxObject(void *x) {
12210 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
f05326ba 12211}
453fb36b
RD
12212static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
12213 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
f05326ba 12214}
453fb36b
RD
12215static void *_p_wxPyWindowTo_p_wxObject(void *x) {
12216 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
f05326ba
RD
12217}
12218static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
12219 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12220}
453fb36b
RD
12221static void *_p_wxFileDialogTo_p_wxObject(void *x) {
12222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
f05326ba 12223}
453fb36b
RD
12224static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
12225 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
f05326ba 12226}
453fb36b
RD
12227static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
12228 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
f05326ba 12229}
453fb36b
RD
12230static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
12231 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
f05326ba 12232}
453fb36b
RD
12233static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) {
12234 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
f05326ba 12235}
453fb36b
RD
12236static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
12237 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
f05326ba 12238}
453fb36b
RD
12239static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
12240 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
f05326ba 12241}
453fb36b
RD
12242static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
12243 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
f05326ba 12244}
453fb36b
RD
12245static void *_p_wxShowEventTo_p_wxObject(void *x) {
12246 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
f05326ba 12247}
453fb36b
RD
12248static void *_p_wxPrinterTo_p_wxObject(void *x) {
12249 return (void *)((wxObject *) ((wxPrinter *) x));
f05326ba 12250}
453fb36b
RD
12251static void *_p_wxMenuItemTo_p_wxObject(void *x) {
12252 return (void *)((wxObject *) ((wxMenuItem *) x));
f05326ba 12253}
453fb36b
RD
12254static void *_p_wxDateEventTo_p_wxObject(void *x) {
12255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
f05326ba 12256}
453fb36b
RD
12257static void *_p_wxIdleEventTo_p_wxObject(void *x) {
12258 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
f05326ba 12259}
453fb36b
RD
12260static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
12261 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
f05326ba 12262}
453fb36b
RD
12263static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
12264 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
f05326ba 12265}
453fb36b
RD
12266static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
12267 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
f05326ba 12268}
453fb36b
RD
12269static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
12270 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
f05326ba 12271}
453fb36b
RD
12272static void *_p_wxSizeEventTo_p_wxObject(void *x) {
12273 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
f05326ba 12274}
453fb36b
RD
12275static void *_p_wxMoveEventTo_p_wxObject(void *x) {
12276 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
f05326ba 12277}
453fb36b
RD
12278static void *_p_wxActivateEventTo_p_wxObject(void *x) {
12279 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
f05326ba 12280}
453fb36b
RD
12281static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
12282 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
f05326ba 12283}
453fb36b
RD
12284static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
12285 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
f05326ba 12286}
453fb36b
RD
12287static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
12288 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
f05326ba 12289}
453fb36b
RD
12290static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
12291 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
f05326ba 12292}
453fb36b
RD
12293static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
12294 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
f05326ba 12295}
453fb36b
RD
12296static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
12297 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
f05326ba 12298}
453fb36b
RD
12299static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
12300 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
f05326ba 12301}
453fb36b
RD
12302static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
12303 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
f05326ba 12304}
453fb36b
RD
12305static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
12306 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
f05326ba 12307}
453fb36b
RD
12308static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
12309 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
f05326ba 12310}
453fb36b
RD
12311static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
12312 return (void *)((wxObject *) ((wxImageHandler *) x));
f05326ba
RD
12313}
12314static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
12315 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
12316}
453fb36b
RD
12317static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
12318 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
f05326ba 12319}
453fb36b
RD
12320static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
12321 return (void *)((wxObject *) ((wxEvtHandler *) x));
f05326ba 12322}
453fb36b
RD
12323static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
12324 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
f05326ba 12325}
453fb36b
RD
12326static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
12327 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
f05326ba 12328}
453fb36b
RD
12329static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
12330 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
f05326ba 12331}
453fb36b
RD
12332static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
12333 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
f05326ba 12334}
453fb36b
RD
12335static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
12336 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
f05326ba 12337}
453fb36b
RD
12338static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
12339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
f05326ba 12340}
453fb36b
RD
12341static void *_p_wxImageTo_p_wxObject(void *x) {
12342 return (void *)((wxObject *) ((wxImage *) x));
f05326ba 12343}
453fb36b
RD
12344static void *_p_wxFrameTo_p_wxObject(void *x) {
12345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
f05326ba 12346}
453fb36b
RD
12347static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
12348 return (void *)((wxObject *) ((wxPyPrintout *) x));
f05326ba 12349}
453fb36b
RD
12350static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
12351 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
f05326ba 12352}
453fb36b
RD
12353static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
12354 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
f05326ba 12355}
453fb36b
RD
12356static void *_p_wxStatusBarTo_p_wxObject(void *x) {
12357 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
f05326ba 12358}
453fb36b
RD
12359static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
12360 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
f05326ba 12361}
453fb36b
RD
12362static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
12363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
f05326ba 12364}
453fb36b
RD
12365static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
12366 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
f05326ba 12367}
453fb36b
RD
12368static void *_p_wxKeyEventTo_p_wxObject(void *x) {
12369 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
f05326ba 12370}
453fb36b
RD
12371static void *_p_wxWindowTo_p_wxObject(void *x) {
12372 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
f05326ba 12373}
453fb36b
RD
12374static void *_p_wxMenuTo_p_wxObject(void *x) {
12375 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
f05326ba 12376}
453fb36b
RD
12377static void *_p_wxMenuBarTo_p_wxObject(void *x) {
12378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
12379}
12380static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
12381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
f05326ba
RD
12382}
12383static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
12384 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
12385}
453fb36b
RD
12386static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
12387 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
f05326ba 12388}
453fb36b
RD
12389static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
12390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
f05326ba 12391}
453fb36b
RD
12392static void *_p_wxSashWindowTo_p_wxObject(void *x) {
12393 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
f05326ba 12394}
453fb36b
RD
12395static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
12396 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
f05326ba 12397}
453fb36b
RD
12398static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
12399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
f05326ba 12400}
453fb36b
RD
12401static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
12402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
f05326ba 12403}
453fb36b
RD
12404static void *_p_wxTipWindowTo_p_wxObject(void *x) {
12405 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
f05326ba 12406}
453fb36b
RD
12407static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
12408 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
f05326ba 12409}
453fb36b
RD
12410static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
12411 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
f05326ba 12412}
453fb36b
RD
12413static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
12414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
f05326ba 12415}
453fb36b
RD
12416static void *_p_wxSashEventTo_p_wxObject(void *x) {
12417 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
f05326ba 12418}
453fb36b
RD
12419static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
12420 return (void *)((wxObject *) ((wxPrintPreview *) x));
f05326ba 12421}
453fb36b
RD
12422static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
12423 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
f05326ba 12424}
453fb36b
RD
12425static void *_p_wxPanelTo_p_wxObject(void *x) {
12426 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
f05326ba 12427}
453fb36b
RD
12428static void *_p_wxDialogTo_p_wxObject(void *x) {
12429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
f05326ba 12430}
453fb36b
RD
12431static void *_p_wxColourDialogTo_p_wxObject(void *x) {
12432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
f05326ba 12433}
453fb36b
RD
12434static void *_p_wxDirDialogTo_p_wxObject(void *x) {
12435 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
f05326ba 12436}
453fb36b
RD
12437static void *_p_wxFontDialogTo_p_wxObject(void *x) {
12438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
f05326ba 12439}
453fb36b
RD
12440static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
12441 return (void *)((wxObject *) ((wxPageSetupDialog *) x));
f05326ba 12442}
453fb36b
RD
12443static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
12444 return (void *)((wxObject *) ((wxPrintDialog *) x));
f05326ba 12445}
453fb36b
RD
12446static void *_p_wxFileSystemTo_p_wxObject(void *x) {
12447 return (void *)((wxObject *) ((wxFileSystem *) x));
f05326ba 12448}
453fb36b
RD
12449static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
12450 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
f05326ba 12451}
453fb36b
RD
12452static void *_p_wxMenuEventTo_p_wxObject(void *x) {
12453 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
f05326ba 12454}
453fb36b
RD
12455static void *_p_wxPyAppTo_p_wxObject(void *x) {
12456 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
f05326ba 12457}
453fb36b
RD
12458static void *_p_wxCloseEventTo_p_wxObject(void *x) {
12459 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
f05326ba 12460}
453fb36b
RD
12461static void *_p_wxMouseEventTo_p_wxObject(void *x) {
12462 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
f05326ba 12463}
453fb36b
RD
12464static void *_p_wxEraseEventTo_p_wxObject(void *x) {
12465 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
f05326ba 12466}
453fb36b
RD
12467static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
12468 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
f05326ba
RD
12469}
12470static void *_p_wxCommandEventTo_p_wxObject(void *x) {
12471 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
12472}
453fb36b
RD
12473static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
12474 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
f05326ba 12475}
453fb36b
RD
12476static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
12477 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
f05326ba 12478}
453fb36b
RD
12479static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
12480 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
f05326ba
RD
12481}
12482static void *_p_wxFocusEventTo_p_wxObject(void *x) {
12483 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
12484}
453fb36b
RD
12485static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
12486 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
f05326ba 12487}
453fb36b
RD
12488static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
12489 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
f05326ba 12490}
453fb36b
RD
12491static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
12492 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
12493}
12494static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
12495 return (void *)((wxObject *) ((wxPrintDialogData *) x));
12496}
12497static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
12498 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
12499}
12500static void *_p_wxValidatorTo_p_wxObject(void *x) {
12501 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
f05326ba
RD
12502}
12503static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
12504 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12505}
12506static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
12507 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12508}
12509static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
12510 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12511}
12512static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
12513 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
12514}
12515static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
12516 return (void *)((wxEvtHandler *) ((wxValidator *) x));
12517}
12518static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
12519 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
12520}
12521static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
12522 return (void *)((wxEvtHandler *) ((wxMenu *) x));
12523}
12524static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) {
12525 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12526}
12527static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
12528 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12529}
12530static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
12531 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12532}
12533static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
12534 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12535}
12536static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
12537 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12538}
12539static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
12540 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12541}
12542static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
12543 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12544}
12545static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
12546 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12547}
12548static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
12549 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
12550}
12551static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
12552 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
12553}
12554static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
12555 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12556}
12557static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
12558 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
12559}
12560static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
12561 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12562}
12563static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
12564 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
12565}
12566static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
12567 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12568}
12569static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
12570 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
12571}
12572static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
12573 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
12574}
12575static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
12576 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
12577}
12578static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
12579 return (void *)((wxEvtHandler *) ((wxWindow *) x));
12580}
12581static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
12582 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12583}
12584static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
12585 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
12586}
12587static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
12588 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
12589}
12590static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
12591 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12592}
12593static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
12594 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
12595}
12596static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
12597 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12598}
12599static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
12600 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12601}
12602static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
12603 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12604}
12605static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
12606 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
12607}
12608static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
12609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12610}
12611static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
12612 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
12613}
12614static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
12615 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12616}
12617static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
12618 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12619}
12620static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
12621 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12622}
12623static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
12624 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12625}
12626static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
12627 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12628}
12629static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) {
12630 return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12631}
12632static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
12633 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12634}
12635static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
12636 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12637}
12638static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
12639 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12640}
12641static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
12642 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12643}
12644static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
12645 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12646}
12647static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
12648 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12649}
12650static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) {
12651 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12652}
12653static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
12654 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
12655}
12656static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
12657 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12658}
12659static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
12660 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
12661}
12662static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) {
12663 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x));
12664}
12665static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
12666 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
12667}
12668static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
12669 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
12670}
12671static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
12672 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
12673}
12674static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
12675 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
12676}
12677static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
12678 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
12679}
12680static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
12681 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
12682}
12683static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
12684 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
12685}
12686static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
12687 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
12688}
12689static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
12690 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
12691}
12692static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
12693 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
12694}
12695static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12696static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
12697static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
12698static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
12699static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
12700static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
12701static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
12702static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
12703static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
12704static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
12705static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
12706static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
12707static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0};
12708static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
12709static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0};
12710static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
12711static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
12712static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
12713static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
12714static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
12715static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
12716static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
12717static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0};
12718static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
12719static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
12720static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
12721static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
12722static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
12723static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
12724static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
12725static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
12726static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
12727static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
12728static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0};
12729static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
12730static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
12731static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
12732static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
12733static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
12734static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
12735static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
12736static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
12737static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
12738static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
12739static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
12740static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
12741static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
12742static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
12743static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
12744static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0};
12745static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
12746static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
12747static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
12748static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
12749static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0};
12750static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
12751static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0};
12752static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0};
12753static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0};
12754static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
12755static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
12756static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
12757static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0};
12758static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0};
12759static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0};
12760static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0};
12761static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0};
12762static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0};
12763static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0};
12764static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0};
12765static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0};
12766static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0};
12767static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0};
12768static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0};
12769static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0};
12770static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0};
12771static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0};
12772static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0};
12773static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0};
12774static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0};
12775static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0};
12776static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0};
12777static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0};
12778static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0};
12779static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
12780static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0};
12781static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
12782static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
12783static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0};
12784static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0};
12785static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0};
12786static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0};
12787static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0};
12788static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0};
12789static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0};
12790static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0};
12791static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0};
12792static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0};
12793static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0};
12794static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0};
12795static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
12796static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0};
12797static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
12798static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
12799static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
12800static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
f05326ba 12801static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
453fb36b
RD
12802static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
12803static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
12804static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
f05326ba 12805static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
453fb36b
RD
12806static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
12807static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
f05326ba 12808static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
453fb36b
RD
12809static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0};
12810static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0};
12811static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
12812static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
12813static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0};
f05326ba 12814static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
453fb36b
RD
12815static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0};
12816static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
12817static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0};
12818static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0};
12819static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
f05326ba
RD
12820static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
12821static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
12822static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
12823static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
12824static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
12825static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
12826static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
12827static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
453fb36b
RD
12828static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
12829static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
12830static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
12831static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
12832static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
12833static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
12834static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
12835static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0};
12836static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0};
12837static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0};
12838static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0};
12839static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0};
12840static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
12841static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0};
12842static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0};
f05326ba
RD
12843static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
12844static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
12845static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0};
12846static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0};
12847static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0};
12848static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0};
12849static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0};
12850static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0};
12851static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0};
12852static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0};
12853static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0};
12854static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0};
12855static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
12856
12857static swig_type_info *swig_type_initial[] = {
12858 &_swigt__p_char,
12859 &_swigt__p_form_ops_t,
12860 &_swigt__p_int,
12861 &_swigt__p_long,
12862 &_swigt__p_unsigned_char,
12863 &_swigt__p_unsigned_int,
12864 &_swigt__p_unsigned_long,
12865 &_swigt__p_wxANIHandler,
12866 &_swigt__p_wxAcceleratorTable,
12867 &_swigt__p_wxActivateEvent,
12868 &_swigt__p_wxArrayInt,
12869 &_swigt__p_wxBMPHandler,
12870 &_swigt__p_wxBitmap,
12871 &_swigt__p_wxBoxSizer,
f05326ba
RD
12872 &_swigt__p_wxCURHandler,
12873 &_swigt__p_wxCalculateLayoutEvent,
12874 &_swigt__p_wxChar,
12875 &_swigt__p_wxChildFocusEvent,
f05326ba
RD
12876 &_swigt__p_wxClipboardTextEvent,
12877 &_swigt__p_wxCloseEvent,
12878 &_swigt__p_wxColour,
12879 &_swigt__p_wxColourData,
12880 &_swigt__p_wxColourDialog,
12881 &_swigt__p_wxCommandEvent,
12882 &_swigt__p_wxContextMenuEvent,
12883 &_swigt__p_wxControl,
12884 &_swigt__p_wxControlWithItems,
f05326ba
RD
12885 &_swigt__p_wxDateEvent,
12886 &_swigt__p_wxDialog,
12887 &_swigt__p_wxDirDialog,
12888 &_swigt__p_wxDisplayChangedEvent,
12889 &_swigt__p_wxDropFilesEvent,
12890 &_swigt__p_wxDuplexMode,
f05326ba
RD
12891 &_swigt__p_wxEraseEvent,
12892 &_swigt__p_wxEvent,
12893 &_swigt__p_wxEvtHandler,
12894 &_swigt__p_wxFSFile,
12895 &_swigt__p_wxFileDialog,
12896 &_swigt__p_wxFileSystem,
12897 &_swigt__p_wxFindDialogEvent,
12898 &_swigt__p_wxFindReplaceData,
12899 &_swigt__p_wxFindReplaceDialog,
12900 &_swigt__p_wxFlexGridSizer,
12901 &_swigt__p_wxFocusEvent,
12902 &_swigt__p_wxFont,
12903 &_swigt__p_wxFontData,
12904 &_swigt__p_wxFontDialog,
12905 &_swigt__p_wxFrame,
12906 &_swigt__p_wxGBSizerItem,
f05326ba
RD
12907 &_swigt__p_wxGIFHandler,
12908 &_swigt__p_wxGridBagSizer,
12909 &_swigt__p_wxGridSizer,
12910 &_swigt__p_wxICOHandler,
f05326ba
RD
12911 &_swigt__p_wxIconizeEvent,
12912 &_swigt__p_wxIdleEvent,
12913 &_swigt__p_wxImage,
12914 &_swigt__p_wxImageHandler,
f05326ba
RD
12915 &_swigt__p_wxIndividualLayoutConstraint,
12916 &_swigt__p_wxInitDialogEvent,
12917 &_swigt__p_wxJPEGHandler,
12918 &_swigt__p_wxKeyEvent,
12919 &_swigt__p_wxLayoutAlgorithm,
12920 &_swigt__p_wxLayoutConstraints,
12921 &_swigt__p_wxMDIChildFrame,
12922 &_swigt__p_wxMDIClientWindow,
12923 &_swigt__p_wxMDIParentFrame,
f05326ba 12924 &_swigt__p_wxMaximizeEvent,
f05326ba
RD
12925 &_swigt__p_wxMenu,
12926 &_swigt__p_wxMenuBar,
12927 &_swigt__p_wxMenuEvent,
12928 &_swigt__p_wxMenuItem,
12929 &_swigt__p_wxMessageDialog,
f05326ba 12930 &_swigt__p_wxMiniFrame,
f05326ba
RD
12931 &_swigt__p_wxMouseCaptureChangedEvent,
12932 &_swigt__p_wxMouseEvent,
12933 &_swigt__p_wxMoveEvent,
12934 &_swigt__p_wxMultiChoiceDialog,
12935 &_swigt__p_wxNavigationKeyEvent,
12936 &_swigt__p_wxNcPaintEvent,
12937 &_swigt__p_wxNotifyEvent,
12938 &_swigt__p_wxObject,
12939 &_swigt__p_wxPCXHandler,
12940 &_swigt__p_wxPNGHandler,
12941 &_swigt__p_wxPNMHandler,
12942 &_swigt__p_wxPageSetupDialog,
12943 &_swigt__p_wxPageSetupDialogData,
f05326ba 12944 &_swigt__p_wxPaintEvent,
f05326ba
RD
12945 &_swigt__p_wxPaletteChangedEvent,
12946 &_swigt__p_wxPanel,
12947 &_swigt__p_wxPaperSize,
12948 &_swigt__p_wxPasswordEntryDialog,
f05326ba 12949 &_swigt__p_wxPopupWindow,
f05326ba
RD
12950 &_swigt__p_wxPreviewCanvas,
12951 &_swigt__p_wxPreviewControlBar,
12952 &_swigt__p_wxPreviewFrame,
12953 &_swigt__p_wxPrintData,
12954 &_swigt__p_wxPrintDialog,
12955 &_swigt__p_wxPrintDialogData,
12956 &_swigt__p_wxPrintPreview,
12957 &_swigt__p_wxPrinter,
f05326ba
RD
12958 &_swigt__p_wxProgressDialog,
12959 &_swigt__p_wxPyApp,
12960 &_swigt__p_wxPyCommandEvent,
12961 &_swigt__p_wxPyEvent,
12962 &_swigt__p_wxPyHtmlListBox,
12963 &_swigt__p_wxPyImageHandler,
12964 &_swigt__p_wxPyPanel,
12965 &_swigt__p_wxPyPopupTransientWindow,
12966 &_swigt__p_wxPyPreviewControlBar,
12967 &_swigt__p_wxPyPreviewFrame,
12968 &_swigt__p_wxPyPrintPreview,
12969 &_swigt__p_wxPyPrintout,
12970 &_swigt__p_wxPyScrolledWindow,
12971 &_swigt__p_wxPySizer,
12972 &_swigt__p_wxPyTaskBarIcon,
12973 &_swigt__p_wxPyVListBox,
12974 &_swigt__p_wxPyVScrolledWindow,
12975 &_swigt__p_wxPyValidator,
12976 &_swigt__p_wxPyWindow,
12977 &_swigt__p_wxQueryLayoutInfoEvent,
12978 &_swigt__p_wxQueryNewPaletteEvent,
f05326ba
RD
12979 &_swigt__p_wxRichTextAttr,
12980 &_swigt__p_wxRichTextBuffer,
12981 &_swigt__p_wxRichTextCtrl,
12982 &_swigt__p_wxRichTextEvent,
12983 &_swigt__p_wxRichTextImageBlock,
12984 &_swigt__p_wxRichTextRange,
12985 &_swigt__p_wxRichTextStyleSheet,
12986 &_swigt__p_wxSashEvent,
12987 &_swigt__p_wxSashLayoutWindow,
12988 &_swigt__p_wxSashWindow,
f05326ba
RD
12989 &_swigt__p_wxScrollEvent,
12990 &_swigt__p_wxScrollWinEvent,
12991 &_swigt__p_wxScrolledWindow,
12992 &_swigt__p_wxSetCursorEvent,
12993 &_swigt__p_wxShowEvent,
12994 &_swigt__p_wxSingleChoiceDialog,
12995 &_swigt__p_wxSizeEvent,
12996 &_swigt__p_wxSizer,
12997 &_swigt__p_wxSizerItem,
12998 &_swigt__p_wxSplashScreen,
12999 &_swigt__p_wxSplashScreenWindow,
13000 &_swigt__p_wxSplitterEvent,
13001 &_swigt__p_wxSplitterWindow,
13002 &_swigt__p_wxStaticBoxSizer,
13003 &_swigt__p_wxStatusBar,
13004 &_swigt__p_wxStdDialogButtonSizer,
13005 &_swigt__p_wxSysColourChangedEvent,
13006 &_swigt__p_wxTIFFHandler,
13007 &_swigt__p_wxTaskBarIconEvent,
13008 &_swigt__p_wxTextCoord,
13009 &_swigt__p_wxTextCtrlHitTestResult,
13010 &_swigt__p_wxTextEntryDialog,
13011 &_swigt__p_wxTipWindow,
13012 &_swigt__p_wxTopLevelWindow,
13013 &_swigt__p_wxUpdateUIEvent,
13014 &_swigt__p_wxValidator,
13015 &_swigt__p_wxWindow,
13016 &_swigt__p_wxWindowCreateEvent,
f05326ba
RD
13017 &_swigt__p_wxWindowDestroyEvent,
13018 &_swigt__p_wxXPMHandler,
13019};
13020
13021static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
13022static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
13023static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
13024static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
13025static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
13026static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
13027static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
13028static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
13029static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
13030static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
13031static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
13032static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}};
13033static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
13034static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}};
13035static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13036static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
13037static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
13038static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13039static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13040static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
13041static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
13042static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13043static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
13044static 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}};
13045static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
13046static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13047static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
13048static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
13049static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
13050static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
13051static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13052static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
13053static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}};
13054static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
13055static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
13056static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13057static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13058static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
13059static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13060static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
13061static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13062static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13063static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13064static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13065static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13066static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13067static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
13068static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13069static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}};
13070static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
13071static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13072static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13073static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
13074static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}};
13075static 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}};
13076static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}};
13077static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}};
13078static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}};
13079static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
13080static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
13081static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
13082static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}};
13083static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}};
13084static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}};
13085static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13086static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13087static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13088static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13089static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}};
13090static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}};
13091static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}};
13092static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}};
13093static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}};
13094static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}};
13095static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}};
13096static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}};
13097static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}};
13098static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13099static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13100static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}};
13101static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}};
13102static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13103static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13104static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
13105static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}};
13106static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
13107static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
13108static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}};
13109static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}};
13110static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}};
13111static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}};
13112static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13113static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13114static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}};
13115static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
13116static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}};
13117static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}};
13118static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}};
13119static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
13120static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
13121static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}};
13122static 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}};
13123static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
13124static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
13125static 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 13126static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13127static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13128static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13129static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13130static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13131static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13132static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13133static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13134static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}};
13135static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
13136static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13137static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13138static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
f05326ba 13139static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13140static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}};
13141static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
13142static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}};
13143static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}};
13144static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
f05326ba
RD
13145static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
13146static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
13147static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
13148static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
13149static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
13150static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
13151static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
13152static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
453fb36b
RD
13153static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
13154static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13155static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13156static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
13157static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
13158static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
13159static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
13160static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}};
13161static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13162static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13163static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}};
13164static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}};
13165static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
13166static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}};
13167static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}};
13168static 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
13169static 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}};
13170static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
13171static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}};
13172static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}};
13173static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
13174static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13175static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}};
13176static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}};
13177static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}};
13178static 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}};
13179static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}};
13180static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}};
13181static 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}};
13182
13183static swig_cast_info *swig_cast_initial[] = {
13184 _swigc__p_char,
13185 _swigc__p_form_ops_t,
13186 _swigc__p_int,
13187 _swigc__p_long,
13188 _swigc__p_unsigned_char,
13189 _swigc__p_unsigned_int,
13190 _swigc__p_unsigned_long,
13191 _swigc__p_wxANIHandler,
13192 _swigc__p_wxAcceleratorTable,
13193 _swigc__p_wxActivateEvent,
13194 _swigc__p_wxArrayInt,
13195 _swigc__p_wxBMPHandler,
13196 _swigc__p_wxBitmap,
13197 _swigc__p_wxBoxSizer,
f05326ba
RD
13198 _swigc__p_wxCURHandler,
13199 _swigc__p_wxCalculateLayoutEvent,
13200 _swigc__p_wxChar,
13201 _swigc__p_wxChildFocusEvent,
f05326ba
RD
13202 _swigc__p_wxClipboardTextEvent,
13203 _swigc__p_wxCloseEvent,
13204 _swigc__p_wxColour,
13205 _swigc__p_wxColourData,
13206 _swigc__p_wxColourDialog,
13207 _swigc__p_wxCommandEvent,
13208 _swigc__p_wxContextMenuEvent,
13209 _swigc__p_wxControl,
13210 _swigc__p_wxControlWithItems,
f05326ba
RD
13211 _swigc__p_wxDateEvent,
13212 _swigc__p_wxDialog,
13213 _swigc__p_wxDirDialog,
13214 _swigc__p_wxDisplayChangedEvent,
13215 _swigc__p_wxDropFilesEvent,
13216 _swigc__p_wxDuplexMode,
f05326ba
RD
13217 _swigc__p_wxEraseEvent,
13218 _swigc__p_wxEvent,
13219 _swigc__p_wxEvtHandler,
13220 _swigc__p_wxFSFile,
13221 _swigc__p_wxFileDialog,
13222 _swigc__p_wxFileSystem,
13223 _swigc__p_wxFindDialogEvent,
13224 _swigc__p_wxFindReplaceData,
13225 _swigc__p_wxFindReplaceDialog,
13226 _swigc__p_wxFlexGridSizer,
13227 _swigc__p_wxFocusEvent,
13228 _swigc__p_wxFont,
13229 _swigc__p_wxFontData,
13230 _swigc__p_wxFontDialog,
13231 _swigc__p_wxFrame,
13232 _swigc__p_wxGBSizerItem,
f05326ba
RD
13233 _swigc__p_wxGIFHandler,
13234 _swigc__p_wxGridBagSizer,
13235 _swigc__p_wxGridSizer,
13236 _swigc__p_wxICOHandler,
f05326ba
RD
13237 _swigc__p_wxIconizeEvent,
13238 _swigc__p_wxIdleEvent,
13239 _swigc__p_wxImage,
13240 _swigc__p_wxImageHandler,
f05326ba
RD
13241 _swigc__p_wxIndividualLayoutConstraint,
13242 _swigc__p_wxInitDialogEvent,
13243 _swigc__p_wxJPEGHandler,
13244 _swigc__p_wxKeyEvent,
13245 _swigc__p_wxLayoutAlgorithm,
13246 _swigc__p_wxLayoutConstraints,
13247 _swigc__p_wxMDIChildFrame,
13248 _swigc__p_wxMDIClientWindow,
13249 _swigc__p_wxMDIParentFrame,
f05326ba 13250 _swigc__p_wxMaximizeEvent,
f05326ba
RD
13251 _swigc__p_wxMenu,
13252 _swigc__p_wxMenuBar,
13253 _swigc__p_wxMenuEvent,
13254 _swigc__p_wxMenuItem,
13255 _swigc__p_wxMessageDialog,
f05326ba 13256 _swigc__p_wxMiniFrame,
f05326ba
RD
13257 _swigc__p_wxMouseCaptureChangedEvent,
13258 _swigc__p_wxMouseEvent,
13259 _swigc__p_wxMoveEvent,
13260 _swigc__p_wxMultiChoiceDialog,
13261 _swigc__p_wxNavigationKeyEvent,
13262 _swigc__p_wxNcPaintEvent,
13263 _swigc__p_wxNotifyEvent,
13264 _swigc__p_wxObject,
13265 _swigc__p_wxPCXHandler,
13266 _swigc__p_wxPNGHandler,
13267 _swigc__p_wxPNMHandler,
13268 _swigc__p_wxPageSetupDialog,
13269 _swigc__p_wxPageSetupDialogData,
f05326ba 13270 _swigc__p_wxPaintEvent,
f05326ba
RD
13271 _swigc__p_wxPaletteChangedEvent,
13272 _swigc__p_wxPanel,
13273 _swigc__p_wxPaperSize,
13274 _swigc__p_wxPasswordEntryDialog,
f05326ba 13275 _swigc__p_wxPopupWindow,
f05326ba
RD
13276 _swigc__p_wxPreviewCanvas,
13277 _swigc__p_wxPreviewControlBar,
13278 _swigc__p_wxPreviewFrame,
13279 _swigc__p_wxPrintData,
13280 _swigc__p_wxPrintDialog,
13281 _swigc__p_wxPrintDialogData,
13282 _swigc__p_wxPrintPreview,
13283 _swigc__p_wxPrinter,
f05326ba
RD
13284 _swigc__p_wxProgressDialog,
13285 _swigc__p_wxPyApp,
13286 _swigc__p_wxPyCommandEvent,
13287 _swigc__p_wxPyEvent,
13288 _swigc__p_wxPyHtmlListBox,
13289 _swigc__p_wxPyImageHandler,
13290 _swigc__p_wxPyPanel,
13291 _swigc__p_wxPyPopupTransientWindow,
13292 _swigc__p_wxPyPreviewControlBar,
13293 _swigc__p_wxPyPreviewFrame,
13294 _swigc__p_wxPyPrintPreview,
13295 _swigc__p_wxPyPrintout,
13296 _swigc__p_wxPyScrolledWindow,
13297 _swigc__p_wxPySizer,
13298 _swigc__p_wxPyTaskBarIcon,
13299 _swigc__p_wxPyVListBox,
13300 _swigc__p_wxPyVScrolledWindow,
13301 _swigc__p_wxPyValidator,
13302 _swigc__p_wxPyWindow,
13303 _swigc__p_wxQueryLayoutInfoEvent,
13304 _swigc__p_wxQueryNewPaletteEvent,
f05326ba
RD
13305 _swigc__p_wxRichTextAttr,
13306 _swigc__p_wxRichTextBuffer,
13307 _swigc__p_wxRichTextCtrl,
13308 _swigc__p_wxRichTextEvent,
13309 _swigc__p_wxRichTextImageBlock,
13310 _swigc__p_wxRichTextRange,
13311 _swigc__p_wxRichTextStyleSheet,
13312 _swigc__p_wxSashEvent,
13313 _swigc__p_wxSashLayoutWindow,
13314 _swigc__p_wxSashWindow,
f05326ba
RD
13315 _swigc__p_wxScrollEvent,
13316 _swigc__p_wxScrollWinEvent,
13317 _swigc__p_wxScrolledWindow,
13318 _swigc__p_wxSetCursorEvent,
13319 _swigc__p_wxShowEvent,
13320 _swigc__p_wxSingleChoiceDialog,
13321 _swigc__p_wxSizeEvent,
13322 _swigc__p_wxSizer,
13323 _swigc__p_wxSizerItem,
13324 _swigc__p_wxSplashScreen,
13325 _swigc__p_wxSplashScreenWindow,
13326 _swigc__p_wxSplitterEvent,
13327 _swigc__p_wxSplitterWindow,
13328 _swigc__p_wxStaticBoxSizer,
13329 _swigc__p_wxStatusBar,
13330 _swigc__p_wxStdDialogButtonSizer,
13331 _swigc__p_wxSysColourChangedEvent,
13332 _swigc__p_wxTIFFHandler,
13333 _swigc__p_wxTaskBarIconEvent,
13334 _swigc__p_wxTextCoord,
13335 _swigc__p_wxTextCtrlHitTestResult,
13336 _swigc__p_wxTextEntryDialog,
13337 _swigc__p_wxTipWindow,
13338 _swigc__p_wxTopLevelWindow,
13339 _swigc__p_wxUpdateUIEvent,
13340 _swigc__p_wxValidator,
13341 _swigc__p_wxWindow,
13342 _swigc__p_wxWindowCreateEvent,
f05326ba
RD
13343 _swigc__p_wxWindowDestroyEvent,
13344 _swigc__p_wxXPMHandler,
13345};
13346
13347
13348/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13349
13350static swig_const_info swig_const_table[] = {
13351{0, 0, 0, 0.0, 0, 0}};
13352
13353#ifdef __cplusplus
13354}
13355#endif
13356/* -----------------------------------------------------------------------------
13357 * Type initialization:
13358 * This problem is tough by the requirement that no dynamic
13359 * memory is used. Also, since swig_type_info structures store pointers to
13360 * swig_cast_info structures and swig_cast_info structures store pointers back
13361 * to swig_type_info structures, we need some lookup code at initialization.
13362 * The idea is that swig generates all the structures that are needed.
13363 * The runtime then collects these partially filled structures.
13364 * The SWIG_InitializeModule function takes these initial arrays out of
13365 * swig_module, and does all the lookup, filling in the swig_module.types
13366 * array with the correct data and linking the correct swig_cast_info
13367 * structures together.
13368 *
13369 * The generated swig_type_info structures are assigned staticly to an initial
13370 * array. We just loop though that array, and handle each type individually.
13371 * First we lookup if this type has been already loaded, and if so, use the
13372 * loaded structure instead of the generated one. Then we have to fill in the
13373 * cast linked list. The cast data is initially stored in something like a
13374 * two-dimensional array. Each row corresponds to a type (there are the same
13375 * number of rows as there are in the swig_type_initial array). Each entry in
13376 * a column is one of the swig_cast_info structures for that type.
13377 * The cast_initial array is actually an array of arrays, because each row has
13378 * a variable number of columns. So to actually build the cast linked list,
13379 * we find the array of casts associated with the type, and loop through it
13380 * adding the casts to the list. The one last trick we need to do is making
13381 * sure the type pointer in the swig_cast_info struct is correct.
13382 *
13383 * First off, we lookup the cast->type name to see if it is already loaded.
13384 * There are three cases to handle:
13385 * 1) If the cast->type has already been loaded AND the type we are adding
13386 * casting info to has not been loaded (it is in this module), THEN we
13387 * replace the cast->type pointer with the type pointer that has already
13388 * been loaded.
13389 * 2) If BOTH types (the one we are adding casting info to, and the
13390 * cast->type) are loaded, THEN the cast info has already been loaded by
13391 * the previous module so we just ignore it.
13392 * 3) Finally, if cast->type has not already been loaded, then we add that
13393 * swig_cast_info to the linked list (because the cast->type) pointer will
13394 * be correct.
13395 * ----------------------------------------------------------------------------- */
13396
13397#ifdef __cplusplus
13398extern "C" {
13399#if 0
13400} /* c-mode */
13401#endif
13402#endif
13403
13404#if 0
13405#define SWIGRUNTIME_DEBUG
13406#endif
13407
13408SWIGRUNTIME void
13409SWIG_InitializeModule(void *clientdata) {
13410 size_t i;
13411 swig_module_info *module_head;
13412 static int init_run = 0;
13413
13414 clientdata = clientdata;
13415
13416 if (init_run) return;
13417 init_run = 1;
13418
13419 /* Initialize the swig_module */
13420 swig_module.type_initial = swig_type_initial;
13421 swig_module.cast_initial = swig_cast_initial;
13422
13423 /* Try and load any already created modules */
13424 module_head = SWIG_GetModule(clientdata);
13425 if (module_head) {
13426 swig_module.next = module_head->next;
13427 module_head->next = &swig_module;
13428 } else {
13429 /* This is the first module loaded */
13430 swig_module.next = &swig_module;
13431 SWIG_SetModule(clientdata, &swig_module);
13432 }
13433
13434 /* Now work on filling in swig_module.types */
13435#ifdef SWIGRUNTIME_DEBUG
13436 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
13437#endif
13438 for (i = 0; i < swig_module.size; ++i) {
13439 swig_type_info *type = 0;
13440 swig_type_info *ret;
13441 swig_cast_info *cast;
13442
13443#ifdef SWIGRUNTIME_DEBUG
13444 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13445#endif
13446
13447 /* if there is another module already loaded */
13448 if (swig_module.next != &swig_module) {
13449 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
13450 }
13451 if (type) {
13452 /* Overwrite clientdata field */
13453#ifdef SWIGRUNTIME_DEBUG
13454 printf("SWIG_InitializeModule: found type %s\n", type->name);
13455#endif
13456 if (swig_module.type_initial[i]->clientdata) {
13457 type->clientdata = swig_module.type_initial[i]->clientdata;
13458#ifdef SWIGRUNTIME_DEBUG
13459 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13460#endif
13461 }
13462 } else {
13463 type = swig_module.type_initial[i];
13464 }
13465
13466 /* Insert casting types */
13467 cast = swig_module.cast_initial[i];
13468 while (cast->type) {
13469 /* Don't need to add information already in the list */
13470 ret = 0;
13471#ifdef SWIGRUNTIME_DEBUG
13472 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
13473#endif
13474 if (swig_module.next != &swig_module) {
13475 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
13476#ifdef SWIGRUNTIME_DEBUG
13477 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
13478#endif
13479 }
13480 if (ret) {
13481 if (type == swig_module.type_initial[i]) {
13482#ifdef SWIGRUNTIME_DEBUG
13483 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
13484#endif
13485 cast->type = ret;
13486 ret = 0;
13487 } else {
13488 /* Check for casting already in the list */
13489 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
13490#ifdef SWIGRUNTIME_DEBUG
13491 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
13492#endif
13493 if (!ocast) ret = 0;
13494 }
13495 }
13496
13497 if (!ret) {
13498#ifdef SWIGRUNTIME_DEBUG
13499 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
13500#endif
13501 if (type->cast) {
13502 type->cast->prev = cast;
13503 cast->next = type->cast;
13504 }
13505 type->cast = cast;
13506 }
13507 cast++;
13508 }
13509 /* Set entry in modules->types array equal to the type */
13510 swig_module.types[i] = type;
13511 }
13512 swig_module.types[i] = 0;
13513
13514#ifdef SWIGRUNTIME_DEBUG
13515 printf("**** SWIG_InitializeModule: Cast List ******\n");
13516 for (i = 0; i < swig_module.size; ++i) {
13517 int j = 0;
13518 swig_cast_info *cast = swig_module.cast_initial[i];
13519 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13520 while (cast->type) {
13521 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
13522 cast++;
13523 ++j;
13524 }
13525 printf("---- Total casts: %d\n",j);
13526 }
13527 printf("**** SWIG_InitializeModule: Cast List ******\n");
13528#endif
13529}
13530
13531/* This function will propagate the clientdata field of type to
13532* any new swig_type_info structures that have been added into the list
13533* of equivalent types. It is like calling
13534* SWIG_TypeClientData(type, clientdata) a second time.
13535*/
13536SWIGRUNTIME void
13537SWIG_PropagateClientData(void) {
13538 size_t i;
13539 swig_cast_info *equiv;
13540 static int init_run = 0;
13541
13542 if (init_run) return;
13543 init_run = 1;
13544
13545 for (i = 0; i < swig_module.size; i++) {
13546 if (swig_module.types[i]->clientdata) {
13547 equiv = swig_module.types[i]->cast;
13548 while (equiv) {
13549 if (!equiv->converter) {
13550 if (equiv->type && !equiv->type->clientdata)
13551 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
13552 }
13553 equiv = equiv->next;
13554 }
13555 }
13556 }
13557}
13558
13559#ifdef __cplusplus
13560#if 0
13561{
13562 /* c-mode */
13563#endif
13564}
13565#endif
13566
13567
13568
13569#ifdef __cplusplus
13570extern "C" {
13571#endif
13572
13573 /* Python-specific SWIG API */
13574#define SWIG_newvarlink() SWIG_Python_newvarlink()
13575#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
13576#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
13577
13578 /* -----------------------------------------------------------------------------
13579 * global variable support code.
13580 * ----------------------------------------------------------------------------- */
13581
13582 typedef struct swig_globalvar {
13583 char *name; /* Name of global variable */
13584 PyObject *(*get_attr)(void); /* Return the current value */
13585 int (*set_attr)(PyObject *); /* Set the value */
13586 struct swig_globalvar *next;
13587 } swig_globalvar;
13588
13589 typedef struct swig_varlinkobject {
13590 PyObject_HEAD
13591 swig_globalvar *vars;
13592 } swig_varlinkobject;
13593
13594 SWIGINTERN PyObject *
13595 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
13596 return PyString_FromString("<Swig global variables>");
13597 }
13598
13599 SWIGINTERN PyObject *
13600 swig_varlink_str(swig_varlinkobject *v) {
13601 PyObject *str = PyString_FromString("(");
13602 swig_globalvar *var;
13603 for (var = v->vars; var; var=var->next) {
13604 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
13605 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
13606 }
13607 PyString_ConcatAndDel(&str,PyString_FromString(")"));
13608 return str;
13609 }
13610
13611 SWIGINTERN int
13612 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
13613 PyObject *str = swig_varlink_str(v);
13614 fprintf(fp,"Swig global variables ");
13615 fprintf(fp,"%s\n", PyString_AsString(str));
13616 Py_DECREF(str);
13617 return 0;
13618 }
13619
13620 SWIGINTERN void
13621 swig_varlink_dealloc(swig_varlinkobject *v) {
13622 swig_globalvar *var = v->vars;
13623 while (var) {
13624 swig_globalvar *n = var->next;
13625 free(var->name);
13626 free(var);
13627 var = n;
13628 }
13629 }
13630
13631 SWIGINTERN PyObject *
13632 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
13633 PyObject *res = NULL;
13634 swig_globalvar *var = v->vars;
13635 while (var) {
13636 if (strcmp(var->name,n) == 0) {
13637 res = (*var->get_attr)();
13638 break;
13639 }
13640 var = var->next;
13641 }
13642 if (res == NULL && !PyErr_Occurred()) {
13643 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13644 }
13645 return res;
13646 }
13647
13648 SWIGINTERN int
13649 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
13650 int res = 1;
13651 swig_globalvar *var = v->vars;
13652 while (var) {
13653 if (strcmp(var->name,n) == 0) {
13654 res = (*var->set_attr)(p);
13655 break;
13656 }
13657 var = var->next;
13658 }
13659 if (res == 1 && !PyErr_Occurred()) {
13660 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13661 }
13662 return res;
13663 }
13664
13665 SWIGINTERN PyTypeObject*
13666 swig_varlink_type(void) {
13667 static char varlink__doc__[] = "Swig var link object";
13668 static PyTypeObject varlink_type;
13669 static int type_init = 0;
13670 if (!type_init) {
13671 const PyTypeObject tmp
13672 = {
13673 PyObject_HEAD_INIT(NULL)
13674 0, /* Number of items in variable part (ob_size) */
13675 (char *)"swigvarlink", /* Type name (tp_name) */
13676 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
13677 0, /* Itemsize (tp_itemsize) */
13678 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
13679 (printfunc) swig_varlink_print, /* Print (tp_print) */
13680 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
13681 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
13682 0, /* tp_compare */
13683 (reprfunc) swig_varlink_repr, /* tp_repr */
13684 0, /* tp_as_number */
13685 0, /* tp_as_sequence */
13686 0, /* tp_as_mapping */
13687 0, /* tp_hash */
13688 0, /* tp_call */
13689 (reprfunc)swig_varlink_str, /* tp_str */
13690 0, /* tp_getattro */
13691 0, /* tp_setattro */
13692 0, /* tp_as_buffer */
13693 0, /* tp_flags */
13694 varlink__doc__, /* tp_doc */
13695 0, /* tp_traverse */
13696 0, /* tp_clear */
13697 0, /* tp_richcompare */
13698 0, /* tp_weaklistoffset */
13699#if PY_VERSION_HEX >= 0x02020000
13700 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
13701#endif
13702#if PY_VERSION_HEX >= 0x02030000
13703 0, /* tp_del */
13704#endif
13705#ifdef COUNT_ALLOCS
13706 0,0,0,0 /* tp_alloc -> tp_next */
13707#endif
13708 };
13709 varlink_type = tmp;
13710 varlink_type.ob_type = &PyType_Type;
13711 type_init = 1;
13712 }
13713 return &varlink_type;
13714 }
13715
13716 /* Create a variable linking object for use later */
13717 SWIGINTERN PyObject *
13718 SWIG_Python_newvarlink(void) {
13719 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
13720 if (result) {
13721 result->vars = 0;
13722 }
13723 return ((PyObject*) result);
13724 }
13725
13726 SWIGINTERN void
13727 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
13728 swig_varlinkobject *v = (swig_varlinkobject *) p;
13729 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
13730 if (gv) {
13731 size_t size = strlen(name)+1;
13732 gv->name = (char *)malloc(size);
13733 if (gv->name) {
13734 strncpy(gv->name,name,size);
13735 gv->get_attr = get_attr;
13736 gv->set_attr = set_attr;
13737 gv->next = v->vars;
13738 }
13739 }
13740 v->vars = gv;
13741 }
13742
13743 SWIGINTERN PyObject *
13744 SWIG_globals() {
13745 static PyObject *_SWIG_globals = 0;
13746 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
13747 return _SWIG_globals;
13748 }
13749
13750 /* -----------------------------------------------------------------------------
13751 * constants/methods manipulation
13752 * ----------------------------------------------------------------------------- */
13753
13754 /* Install Constants */
13755 SWIGINTERN void
13756 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
13757 PyObject *obj = 0;
13758 size_t i;
13759 for (i = 0; constants[i].type; ++i) {
13760 switch(constants[i].type) {
13761 case SWIG_PY_POINTER:
13762 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
13763 break;
13764 case SWIG_PY_BINARY:
13765 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
13766 break;
13767 default:
13768 obj = 0;
13769 break;
13770 }
13771 if (obj) {
13772 PyDict_SetItemString(d, constants[i].name, obj);
13773 Py_DECREF(obj);
13774 }
13775 }
13776 }
13777
13778 /* -----------------------------------------------------------------------------*/
13779 /* Fix SwigMethods to carry the callback ptrs when needed */
13780 /* -----------------------------------------------------------------------------*/
13781
13782 SWIGINTERN void
13783 SWIG_Python_FixMethods(PyMethodDef *methods,
13784 swig_const_info *const_table,
13785 swig_type_info **types,
13786 swig_type_info **types_initial) {
13787 size_t i;
13788 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 13789 const char *c = methods[i].ml_doc;
f05326ba
RD
13790 if (c && (c = strstr(c, "swig_ptr: "))) {
13791 int j;
13792 swig_const_info *ci = 0;
453fb36b 13793 const char *name = c + 10;
f05326ba
RD
13794 for (j = 0; const_table[j].type; ++j) {
13795 if (strncmp(const_table[j].name, name,
13796 strlen(const_table[j].name)) == 0) {
13797 ci = &(const_table[j]);
13798 break;
13799 }
13800 }
13801 if (ci) {
13802 size_t shift = (ci->ptype) - types;
13803 swig_type_info *ty = types_initial[shift];
13804 size_t ldoc = (c - methods[i].ml_doc);
13805 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
13806 char *ndoc = (char*)malloc(ldoc + lptr + 10);
13807 if (ndoc) {
13808 char *buff = ndoc;
13809 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
13810 if (ptr) {
13811 strncpy(buff, methods[i].ml_doc, ldoc);
13812 buff += ldoc;
13813 strncpy(buff, "swig_ptr: ", 10);
13814 buff += 10;
13815 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
13816 methods[i].ml_doc = ndoc;
13817 }
13818 }
13819 }
13820 }
13821 }
13822 }
13823
13824#ifdef __cplusplus
13825}
13826#endif
13827
13828/* -----------------------------------------------------------------------------*
13829 * Partial Init method
13830 * -----------------------------------------------------------------------------*/
13831
13832#ifdef __cplusplus
13833extern "C"
13834#endif
13835SWIGEXPORT void SWIG_init(void) {
13836 PyObject *m, *d;
13837
13838 /* Fix SwigMethods to carry the callback ptrs when needed */
13839 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
13840
13841 m = Py_InitModule((char *) SWIG_name, SwigMethods);
13842 d = PyModule_GetDict(m);
13843
13844 SWIG_InitializeModule(0);
13845 SWIG_InstallConstants(d,swig_const_table);
13846
13847
13848 SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0)));
13849 SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY)));
13850 SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE)));
13851 SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN)));
13852 SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN)));
13853 SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN)));
13854 SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED)));
13855 SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED)));
13856 SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED)));
13857 SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS)));
13858 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY)));
13859 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT)));
13860 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML)));
13861 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML)));
13862 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF)));
13863 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF)));
13864 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH)));
13865 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT)));
13866 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH)));
13867 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT)));
13868 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE)));
13869 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE)));
13870 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER)));
13871 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
13872 SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
13873 SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
13874 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
13875 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
13876 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
13877 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
13878 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
13879 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
13880 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
13881 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
13882 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
13883 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
13884 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
13885 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
13886 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER)));
13887 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE)));
13888 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING)));
13889 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME)));
13890 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME)));
13891 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE)));
13892 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER)));
13893 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL)));
13894 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE)));
13895 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC)));
13896 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER)));
13897 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER)));
13898 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER)));
13899 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER)));
13900 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL)));
13901 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP)));
13902 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES)));
13903 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD)));
13904 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL)));
13905 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF)));
13906 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE)));
13907 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
13908 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
13909 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
13910 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
13911 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
13912 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
13913 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
13914 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set);
13915 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set);
13916 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER)));
13917 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH)));
13918 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL)));
13919 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED));
13920 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED));
13921 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK));
13922 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK));
13923 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK));
13924 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK));
13925 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN));
13926
13927
13928}
13929