1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
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
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
53 /***********************************************************************
54 * common.swg for wxPython
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
61 ************************************************************************/
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
91 # define SWIGRUNTIME(a) static a
98 typedef void *(*swig_converter_func
)(void *);
99 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
101 typedef struct swig_type_info
{
103 swig_converter_func converter
;
106 swig_dycast_func dcast
;
107 struct swig_type_info
*next
;
108 struct swig_type_info
*prev
;
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
113 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
115 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info
*);
118 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
129 /***********************************************************************
130 * pyrun.swg for wxPython
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
137 ************************************************************************/
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
149 /* Flags for pointer conversion */
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
157 /* Constant information structure */
158 typedef struct swig_const_info
{
164 swig_type_info
**ptype
;
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
187 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
190 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
192 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
195 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
199 /* Contract support */
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
209 /* -------- TYPES TABLE (BEGIN) -------- */
211 #define SWIGTYPE_p_wxFrame swig_types[0]
212 #define SWIGTYPE_p_wxIcon swig_types[1]
213 #define SWIGTYPE_p_wxObject swig_types[2]
214 #define SWIGTYPE_p_wxDialog swig_types[3]
215 #define SWIGTYPE_p_wxColour swig_types[4]
216 #define SWIGTYPE_p_wxWindow swig_types[5]
217 #define SWIGTYPE_p_wxArtClient swig_types[6]
218 #define SWIGTYPE_p_wxBitmap swig_types[7]
219 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
220 #define SWIGTYPE_p_char swig_types[9]
221 #define SWIGTYPE_p_wxPoint swig_types[10]
222 #define SWIGTYPE_p_wxXmlNode swig_types[11]
223 #define SWIGTYPE_p_wxInputStream swig_types[12]
224 #define SWIGTYPE_p_wxOutputStream swig_types[13]
225 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
226 #define SWIGTYPE_p_wxFileSystem swig_types[15]
227 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
228 #define SWIGTYPE_p_wxFont swig_types[17]
229 #define SWIGTYPE_p_wxXmlResource swig_types[18]
230 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
231 #define SWIGTYPE_p_wxPanel swig_types[20]
232 #define SWIGTYPE_p_wxSize swig_types[21]
233 static swig_type_info
*swig_types
[23];
235 /* -------- TYPES TABLE (END) -------- */
238 /*-----------------------------------------------
240 ------------------------------------------------*/
241 #define SWIG_init init_xrc
243 #define SWIG_name "_xrc"
245 /* Auxiliar swig macros that appear in the header */
247 #define SWIG_OLDOBJ 1
248 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
249 #define SWIG_PYSTR SWIG_NEWOBJ + 1
252 #define SWIGSTATICINLINE(a) static inline a
253 #define SWIGSTATIC(a) static a
254 #define swig_new_array(size,Type) (new Type[(size)])
255 #define swig_delete(cptr) delete cptr
256 #define swig_delete_array(cptr) delete[] cptr
257 #define swig_const_cast(a,Type) const_cast<Type >(a)
258 #define swig_static_cast(a,Type) static_cast<Type >(a)
259 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
260 #define swig_new_copy(ptr,Type) (new Type(*ptr))
261 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
265 #define SWIGSTATICINLINE(a) static a
266 #define SWIGSTATIC(a) static a
267 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
268 #define swig_delete(cptr) free((char*)cptr)
269 #define swig_delete_array(cptr) free((char*)cptr)
270 #define swig_const_cast(a,Type) (Type)(a)
271 #define swig_static_cast(a,Type) (Type)(a)
272 #define swig_reinterpret_cast(a,Type) (Type)(a)
273 #define swig_numeric_cast(a,Type) (Type)(a)
274 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
276 #endif /* __cplusplus */
279 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
280 #define SWIG_From_signed_SS_char PyInt_FromLong
282 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
283 #define SWIG_From_unsigned_SS_char PyInt_FromLong
285 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
286 #define SWIG_From_short PyInt_FromLong
288 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
289 #define SWIG_From_unsigned_SS_short PyInt_FromLong
291 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
292 #define SWIG_From_int PyInt_FromLong
294 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
295 #define SWIG_From_long PyInt_FromLong
297 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
298 #define SWIG_From_float PyFloat_FromDouble
300 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
301 #define SWIG_From_double PyFloat_FromDouble
305 #include "wx/wxPython/wxPython.h"
306 #include "wx/wxPython/pyclasses.h"
307 #include "wx/wxPython/pyistream.h"
309 #include <wx/xml/xml.h>
310 #include <wx/xrc/xmlres.h>
312 static const wxString
wxPyEmptyString(wxEmptyString
);
313 static const wxString
wxPyUTF8String(wxT("UTF-8"));
314 static const wxString
wxPyStyleString(wxT("style"));
315 static const wxString
wxPySizeString(wxT("size"));
316 static const wxString
wxPyPosString(wxT("pos"));
317 static const wxString
wxPyBitmapString(wxT("bitmap"));
318 static const wxString
wxPyIconString(wxT("icon"));
319 static const wxString
wxPyFontString(wxT("font"));
324 SWIGSTATICINLINE(int)
325 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
328 if (value
< min_value
) {
330 PyErr_Format(PyExc_OverflowError
,
331 "value %ld is less than '%s' minimum %ld",
332 value
, errmsg
, min_value
);
335 } else if (value
> max_value
) {
337 PyErr_Format(PyExc_OverflowError
,
338 "value %ld is greater than '%s' maximum %ld",
339 value
, errmsg
, max_value
);
347 // See my_fragments.i
348 SWIGSTATICINLINE(int)
349 SWIG_AsVal_long(PyObject
* obj
, long* val
)
351 if (PyNumber_Check(obj
)) {
352 if (val
) *val
= PyInt_AsLong(obj
);
356 PyObject
* errmsg
= PyString_FromFormat("Expected number, got %s",
357 obj
->ob_type
->tp_name
);
358 PyErr_SetObject(PyExc_TypeError
, errmsg
);
365 #if INT_MAX != LONG_MAX
366 SWIGSTATICINLINE(int)
367 SWIG_AsVal_int(PyObject
*obj
, int *val
)
369 const char* errmsg
= val
? "int" : 0;
371 if (SWIG_AsVal_long(obj
, &v
)) {
372 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
373 if (val
) *val
= swig_numeric_cast(v
, int);
382 PyErr_SetString(PyExc_TypeError
, "an int is expected");
387 SWIGSTATICINLINE(int)
388 SWIG_AsVal_int(PyObject
*obj
, int *val
)
390 return SWIG_AsVal_long(obj
,(long*)val
);
395 SWIGSTATICINLINE(int)
396 SWIG_As_int(PyObject
* obj
)
399 if (!SWIG_AsVal_int(obj
, &v
)) {
401 this is needed to make valgrind/purify happier. the other
402 solution is throw an exception, but since this code should work
405 memset((void*)&v
, 0, sizeof(int));
411 SWIGSTATICINLINE(int)
412 SWIG_Check_int(PyObject
* obj
)
414 return SWIG_AsVal_int(obj
, (int*)0);
417 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
418 static int s_memFileIdx
= 0;
420 // Check for memory FS. If not present, load the handler:
421 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
424 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
425 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
429 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
431 // Now put the resource data into the memory FS
432 wxString
filename(wxT("XRC_resource/data_string_"));
433 filename
<< s_memFileIdx
;
435 wxMemoryFSHandler::AddFile(filename
, data
);
437 // Load the "file" into the resource object
438 bool retval
= self
->Load(wxT("memory:") + filename
);
443 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
446 wxPyXmlSubclassFactory() {}
447 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
451 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
453 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
454 // callbacks, as well as to make some protected things public so they can
456 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
458 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
459 //~wxPyXmlResourceHandler();
461 // Base class virtuals
463 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
464 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
467 // accessors for protected members
469 wxXmlResource
* GetResource() { return m_resource
; }
470 wxXmlNode
* GetNode() { return m_node
; }
471 wxString
GetClass() { return m_class
; }
472 wxObject
* GetParent() { return m_parent
; }
473 wxObject
* GetInstance() { return m_instance
; }
474 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
475 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
478 // turn some protected methods into public via delegation
480 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
481 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
483 wxString
GetNodeContent(wxXmlNode
*node
)
484 { return wxXmlResourceHandler::GetNodeContent(node
); }
486 bool HasParam(const wxString
& param
)
487 { return wxXmlResourceHandler::HasParam(param
); }
489 wxXmlNode
*GetParamNode(const wxString
& param
)
490 { return wxXmlResourceHandler::GetParamNode(param
); }
492 wxString
GetParamValue(const wxString
& param
)
493 { return wxXmlResourceHandler::GetParamValue(param
); }
495 void AddStyle(const wxString
& name
, int value
)
496 { wxXmlResourceHandler::AddStyle(name
, value
); }
498 void AddWindowStyles()
499 { wxXmlResourceHandler::AddWindowStyles(); }
501 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
502 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
504 wxString
GetText(const wxString
& param
, bool translate
= true)
505 { return wxXmlResourceHandler::GetText(param
, translate
); }
508 { return wxXmlResourceHandler::GetID(); }
511 { return wxXmlResourceHandler::GetName(); }
513 bool GetBool(const wxString
& param
, bool defaultv
= false)
514 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
516 long GetLong( const wxString
& param
, long defaultv
= 0 )
517 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
519 wxColour
GetColour(const wxString
& param
)
520 { return wxXmlResourceHandler::GetColour(param
); }
522 wxSize
GetSize(const wxString
& param
= wxT("size"))
523 { return wxXmlResourceHandler::GetSize(param
); }
525 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
526 { return wxXmlResourceHandler::GetPosition(param
); }
528 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
529 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
531 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
532 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
533 wxSize size
= wxDefaultSize
)
534 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
536 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
537 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
538 wxSize size
= wxDefaultSize
)
539 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
541 wxFont
GetFont(const wxString
& param
= wxT("font"))
542 { return wxXmlResourceHandler::GetFont(param
); }
544 void SetupWindow(wxWindow
*wnd
)
545 { wxXmlResourceHandler::SetupWindow(wnd
); }
547 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= false)
548 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
550 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
551 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
553 wxObject
*CreateResFromNode(wxXmlNode
*node
,
554 wxObject
*parent
, wxObject
*instance
= NULL
)
555 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
557 wxFileSystem
& GetCurFileSystem()
558 { return wxXmlResourceHandler::GetCurFileSystem(); }
564 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
565 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
569 SWIGSTATICINLINE(int)
570 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
572 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
573 if (obj
== Py_True
) {
574 if (val
) *val
= true;
577 if (obj
== Py_False
) {
578 if (val
) *val
= false;
582 if (SWIG_AsVal_int(obj
, &res
)) {
583 if (val
) *val
= (bool)res
;
587 PyErr_SetString(PyExc_TypeError
, "a bool is expected");
593 SWIGSTATICINLINE(bool)
594 SWIG_As_bool(PyObject
* obj
)
597 if (!SWIG_AsVal_bool(obj
, &v
)) {
599 this is needed to make valgrind/purify happier. the other
600 solution is throw an exception, but since this code should work
603 memset((void*)&v
, 0, sizeof(bool));
609 SWIGSTATICINLINE(int)
610 SWIG_Check_bool(PyObject
* obj
)
612 return SWIG_AsVal_bool(obj
, (bool*)0);
616 SWIGSTATICINLINE(long)
617 SWIG_As_long(PyObject
* obj
)
620 if (!SWIG_AsVal_long(obj
, &v
)) {
622 this is needed to make valgrind/purify happier. the other
623 solution is throw an exception, but since this code should work
626 memset((void*)&v
, 0, sizeof(long));
632 SWIGSTATICINLINE(int)
633 SWIG_Check_long(PyObject
* obj
)
635 return SWIG_AsVal_long(obj
, (long*)0);
641 static int _wrap_UTF8String_set(PyObject
*) {
642 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
647 static PyObject
*_wrap_UTF8String_get() {
652 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
654 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
661 static int _wrap_StyleString_set(PyObject
*) {
662 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
667 static PyObject
*_wrap_StyleString_get() {
672 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
674 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
681 static int _wrap_SizeString_set(PyObject
*) {
682 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
687 static PyObject
*_wrap_SizeString_get() {
692 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
694 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
701 static int _wrap_PosString_set(PyObject
*) {
702 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
707 static PyObject
*_wrap_PosString_get() {
712 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
714 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
721 static int _wrap_BitmapString_set(PyObject
*) {
722 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
727 static PyObject
*_wrap_BitmapString_get() {
732 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
734 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
741 static int _wrap_IconString_set(PyObject
*) {
742 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
747 static PyObject
*_wrap_IconString_get() {
752 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
754 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
761 static int _wrap_FontString_set(PyObject
*) {
762 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
767 static PyObject
*_wrap_FontString_get() {
772 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
774 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
781 static PyObject
*_wrap_new_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
784 int arg2
= (int) wxXRC_USE_LOCALE
;
785 wxXmlResource
*result
;
787 PyObject
* obj0
= 0 ;
788 PyObject
* obj1
= 0 ;
790 (char *) "filemask",(char *) "flags", NULL
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
795 arg1
= wxString_in_helper(obj0
);
796 if (arg1
== NULL
) SWIG_fail
;
800 arg2
= (int)SWIG_As_int(obj1
);
801 if (PyErr_Occurred()) SWIG_fail
;
804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
805 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
807 wxPyEndAllowThreads(__tstate
);
808 if (PyErr_Occurred()) SWIG_fail
;
810 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
825 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
827 int arg1
= (int) wxXRC_USE_LOCALE
;
828 wxXmlResource
*result
;
829 PyObject
* obj0
= 0 ;
831 (char *) "flags", NULL
834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
836 arg1
= (int)SWIG_As_int(obj0
);
837 if (PyErr_Occurred()) SWIG_fail
;
840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
841 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
843 wxPyEndAllowThreads(__tstate
);
844 if (PyErr_Occurred()) SWIG_fail
;
846 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
853 static PyObject
*_wrap_delete_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
855 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
856 PyObject
* obj0
= 0 ;
858 (char *) "self", NULL
861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
862 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
863 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
868 wxPyEndAllowThreads(__tstate
);
869 if (PyErr_Occurred()) SWIG_fail
;
871 Py_INCREF(Py_None
); resultobj
= Py_None
;
878 static PyObject
*_wrap_XmlResource_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
880 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
884 PyObject
* obj0
= 0 ;
885 PyObject
* obj1
= 0 ;
887 (char *) "self",(char *) "filemask", NULL
890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
891 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
892 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
894 arg2
= wxString_in_helper(obj1
);
895 if (arg2
== NULL
) SWIG_fail
;
899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
900 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
902 wxPyEndAllowThreads(__tstate
);
903 if (PyErr_Occurred()) SWIG_fail
;
906 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
922 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
924 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
928 PyObject
* obj0
= 0 ;
929 PyObject
* obj1
= 0 ;
931 (char *) "self",(char *) "data", NULL
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
935 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
936 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
938 arg2
= wxString_in_helper(obj1
);
939 if (arg2
== NULL
) SWIG_fail
;
943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
944 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
946 wxPyEndAllowThreads(__tstate
);
947 if (PyErr_Occurred()) SWIG_fail
;
950 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
966 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
968 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
969 PyObject
* obj0
= 0 ;
971 (char *) "self", NULL
974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
975 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
976 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
979 (arg1
)->InitAllHandlers();
981 wxPyEndAllowThreads(__tstate
);
982 if (PyErr_Occurred()) SWIG_fail
;
984 Py_INCREF(Py_None
); resultobj
= Py_None
;
991 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
993 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
994 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
995 PyObject
* obj0
= 0 ;
996 PyObject
* obj1
= 0 ;
998 (char *) "self",(char *) "handler", NULL
1001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
1002 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1003 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1004 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
1005 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1008 (arg1
)->AddHandler(arg2
);
1010 wxPyEndAllowThreads(__tstate
);
1011 if (PyErr_Occurred()) SWIG_fail
;
1013 Py_INCREF(Py_None
); resultobj
= Py_None
;
1020 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1021 PyObject
*resultobj
;
1022 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1023 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
1024 PyObject
* obj0
= 0 ;
1025 PyObject
* obj1
= 0 ;
1027 (char *) "self",(char *) "handler", NULL
1030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
1031 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1032 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1033 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
1034 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1037 (arg1
)->InsertHandler(arg2
);
1039 wxPyEndAllowThreads(__tstate
);
1040 if (PyErr_Occurred()) SWIG_fail
;
1042 Py_INCREF(Py_None
); resultobj
= Py_None
;
1049 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
*resultobj
;
1051 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1052 PyObject
* obj0
= 0 ;
1054 (char *) "self", NULL
1057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
1058 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1059 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1062 (arg1
)->ClearHandlers();
1064 wxPyEndAllowThreads(__tstate
);
1065 if (PyErr_Occurred()) SWIG_fail
;
1067 Py_INCREF(Py_None
); resultobj
= Py_None
;
1074 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1075 PyObject
*resultobj
;
1076 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1077 PyObject
* obj0
= 0 ;
1079 (char *) "factory", NULL
1082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
1083 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
1084 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1087 wxXmlResource::AddSubclassFactory(arg1
);
1089 wxPyEndAllowThreads(__tstate
);
1090 if (PyErr_Occurred()) SWIG_fail
;
1092 Py_INCREF(Py_None
); resultobj
= Py_None
;
1099 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1100 PyObject
*resultobj
;
1101 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1102 wxString
*arg2
= 0 ;
1104 bool temp2
= false ;
1105 PyObject
* obj0
= 0 ;
1106 PyObject
* obj1
= 0 ;
1108 (char *) "self",(char *) "name", NULL
1111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1112 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1113 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1115 arg2
= wxString_in_helper(obj1
);
1116 if (arg2
== NULL
) SWIG_fail
;
1120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1121 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1123 wxPyEndAllowThreads(__tstate
);
1124 if (PyErr_Occurred()) SWIG_fail
;
1127 resultobj
= wxPyMake_wxObject(result
, 0);
1143 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1144 PyObject
*resultobj
;
1145 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1146 wxString
*arg2
= 0 ;
1148 bool temp2
= false ;
1149 PyObject
* obj0
= 0 ;
1150 PyObject
* obj1
= 0 ;
1152 (char *) "self",(char *) "name", NULL
1155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1156 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1157 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1159 arg2
= wxString_in_helper(obj1
);
1160 if (arg2
== NULL
) SWIG_fail
;
1164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1165 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1167 wxPyEndAllowThreads(__tstate
);
1168 if (PyErr_Occurred()) SWIG_fail
;
1171 resultobj
= wxPyMake_wxObject(result
, 0);
1187 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1188 PyObject
*resultobj
;
1189 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1190 wxWindow
*arg2
= (wxWindow
*) 0 ;
1191 wxString
*arg3
= 0 ;
1193 bool temp3
= false ;
1194 PyObject
* obj0
= 0 ;
1195 PyObject
* obj1
= 0 ;
1196 PyObject
* obj2
= 0 ;
1198 (char *) "self",(char *) "parent",(char *) "name", NULL
1201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1202 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1204 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1207 arg3
= wxString_in_helper(obj2
);
1208 if (arg3
== NULL
) SWIG_fail
;
1212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1213 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1215 wxPyEndAllowThreads(__tstate
);
1216 if (PyErr_Occurred()) SWIG_fail
;
1219 resultobj
= wxPyMake_wxObject(result
, 0);
1235 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1236 PyObject
*resultobj
;
1237 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1238 wxWindow
*arg2
= (wxWindow
*) 0 ;
1239 wxString
*arg3
= 0 ;
1241 bool temp3
= false ;
1242 PyObject
* obj0
= 0 ;
1243 PyObject
* obj1
= 0 ;
1244 PyObject
* obj2
= 0 ;
1246 (char *) "self",(char *) "parent",(char *) "name", NULL
1249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1250 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1251 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1252 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1253 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1255 arg3
= wxString_in_helper(obj2
);
1256 if (arg3
== NULL
) SWIG_fail
;
1260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1261 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1263 wxPyEndAllowThreads(__tstate
);
1264 if (PyErr_Occurred()) SWIG_fail
;
1267 resultobj
= wxPyMake_wxObject(result
, 0);
1283 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1284 PyObject
*resultobj
;
1285 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1286 wxWindow
*arg2
= (wxWindow
*) 0 ;
1287 wxString
*arg3
= 0 ;
1289 bool temp3
= false ;
1290 PyObject
* obj0
= 0 ;
1291 PyObject
* obj1
= 0 ;
1292 PyObject
* obj2
= 0 ;
1294 (char *) "self",(char *) "parent",(char *) "name", NULL
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1303 arg3
= wxString_in_helper(obj2
);
1304 if (arg3
== NULL
) SWIG_fail
;
1308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1309 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1311 wxPyEndAllowThreads(__tstate
);
1312 if (PyErr_Occurred()) SWIG_fail
;
1315 resultobj
= wxPyMake_wxObject(result
, 0);
1331 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1332 PyObject
*resultobj
;
1333 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1334 wxDialog
*arg2
= (wxDialog
*) 0 ;
1335 wxWindow
*arg3
= (wxWindow
*) 0 ;
1336 wxString
*arg4
= 0 ;
1338 bool temp4
= false ;
1339 PyObject
* obj0
= 0 ;
1340 PyObject
* obj1
= 0 ;
1341 PyObject
* obj2
= 0 ;
1342 PyObject
* obj3
= 0 ;
1344 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1348 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1349 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1350 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1351 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1352 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1355 arg4
= wxString_in_helper(obj3
);
1356 if (arg4
== NULL
) SWIG_fail
;
1360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1361 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1363 wxPyEndAllowThreads(__tstate
);
1364 if (PyErr_Occurred()) SWIG_fail
;
1367 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1383 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1384 PyObject
*resultobj
;
1385 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1386 wxWindow
*arg2
= (wxWindow
*) 0 ;
1387 wxString
*arg3
= 0 ;
1389 bool temp3
= false ;
1390 PyObject
* obj0
= 0 ;
1391 PyObject
* obj1
= 0 ;
1392 PyObject
* obj2
= 0 ;
1394 (char *) "self",(char *) "parent",(char *) "name", NULL
1397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1398 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1399 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1400 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1401 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1403 arg3
= wxString_in_helper(obj2
);
1404 if (arg3
== NULL
) SWIG_fail
;
1408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1409 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1411 wxPyEndAllowThreads(__tstate
);
1412 if (PyErr_Occurred()) SWIG_fail
;
1415 resultobj
= wxPyMake_wxObject(result
, 0);
1431 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
*resultobj
;
1433 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1434 wxPanel
*arg2
= (wxPanel
*) 0 ;
1435 wxWindow
*arg3
= (wxWindow
*) 0 ;
1436 wxString
*arg4
= 0 ;
1438 bool temp4
= false ;
1439 PyObject
* obj0
= 0 ;
1440 PyObject
* obj1
= 0 ;
1441 PyObject
* obj2
= 0 ;
1442 PyObject
* obj3
= 0 ;
1444 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1448 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1449 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1450 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1451 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1452 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1453 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1455 arg4
= wxString_in_helper(obj3
);
1456 if (arg4
== NULL
) SWIG_fail
;
1460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1461 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1463 wxPyEndAllowThreads(__tstate
);
1464 if (PyErr_Occurred()) SWIG_fail
;
1467 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1483 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1484 PyObject
*resultobj
;
1485 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1486 wxWindow
*arg2
= (wxWindow
*) 0 ;
1487 wxString
*arg3
= 0 ;
1489 bool temp3
= false ;
1490 PyObject
* obj0
= 0 ;
1491 PyObject
* obj1
= 0 ;
1492 PyObject
* obj2
= 0 ;
1494 (char *) "self",(char *) "parent",(char *) "name", NULL
1497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1498 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1499 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1500 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1501 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1503 arg3
= wxString_in_helper(obj2
);
1504 if (arg3
== NULL
) SWIG_fail
;
1508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1509 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1511 wxPyEndAllowThreads(__tstate
);
1512 if (PyErr_Occurred()) SWIG_fail
;
1515 resultobj
= wxPyMake_wxObject(result
, 0);
1531 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
*resultobj
;
1533 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1534 wxFrame
*arg2
= (wxFrame
*) 0 ;
1535 wxWindow
*arg3
= (wxWindow
*) 0 ;
1536 wxString
*arg4
= 0 ;
1538 bool temp4
= false ;
1539 PyObject
* obj0
= 0 ;
1540 PyObject
* obj1
= 0 ;
1541 PyObject
* obj2
= 0 ;
1542 PyObject
* obj3
= 0 ;
1544 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1548 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1549 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1550 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1551 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1552 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1553 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1555 arg4
= wxString_in_helper(obj3
);
1556 if (arg4
== NULL
) SWIG_fail
;
1560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1561 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1563 wxPyEndAllowThreads(__tstate
);
1564 if (PyErr_Occurred()) SWIG_fail
;
1567 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1583 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
*resultobj
;
1585 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1586 wxWindow
*arg2
= (wxWindow
*) 0 ;
1587 wxString
*arg3
= 0 ;
1588 wxString
*arg4
= 0 ;
1590 bool temp3
= false ;
1591 bool temp4
= false ;
1592 PyObject
* obj0
= 0 ;
1593 PyObject
* obj1
= 0 ;
1594 PyObject
* obj2
= 0 ;
1595 PyObject
* obj3
= 0 ;
1597 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1601 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1602 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1603 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1604 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1606 arg3
= wxString_in_helper(obj2
);
1607 if (arg3
== NULL
) SWIG_fail
;
1611 arg4
= wxString_in_helper(obj3
);
1612 if (arg4
== NULL
) SWIG_fail
;
1616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1617 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1619 wxPyEndAllowThreads(__tstate
);
1620 if (PyErr_Occurred()) SWIG_fail
;
1623 resultobj
= wxPyMake_wxObject(result
, 0);
1647 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1648 PyObject
*resultobj
;
1649 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1650 wxObject
*arg2
= (wxObject
*) 0 ;
1651 wxWindow
*arg3
= (wxWindow
*) 0 ;
1652 wxString
*arg4
= 0 ;
1653 wxString
*arg5
= 0 ;
1655 bool temp4
= false ;
1656 bool temp5
= false ;
1657 PyObject
* obj0
= 0 ;
1658 PyObject
* obj1
= 0 ;
1659 PyObject
* obj2
= 0 ;
1660 PyObject
* obj3
= 0 ;
1661 PyObject
* obj4
= 0 ;
1663 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1667 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1668 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1669 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1670 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1671 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1672 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1674 arg4
= wxString_in_helper(obj3
);
1675 if (arg4
== NULL
) SWIG_fail
;
1679 arg5
= wxString_in_helper(obj4
);
1680 if (arg5
== NULL
) SWIG_fail
;
1684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1685 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1687 wxPyEndAllowThreads(__tstate
);
1688 if (PyErr_Occurred()) SWIG_fail
;
1691 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1715 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1716 PyObject
*resultobj
;
1717 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1718 wxString
*arg2
= 0 ;
1720 bool temp2
= false ;
1721 PyObject
* obj0
= 0 ;
1722 PyObject
* obj1
= 0 ;
1724 (char *) "self",(char *) "name", NULL
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1728 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1729 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1731 arg2
= wxString_in_helper(obj1
);
1732 if (arg2
== NULL
) SWIG_fail
;
1736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1737 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1739 wxPyEndAllowThreads(__tstate
);
1740 if (PyErr_Occurred()) SWIG_fail
;
1743 wxBitmap
* resultptr
;
1744 resultptr
= new wxBitmap((wxBitmap
&) result
);
1745 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1761 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1762 PyObject
*resultobj
;
1763 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1764 wxString
*arg2
= 0 ;
1766 bool temp2
= false ;
1767 PyObject
* obj0
= 0 ;
1768 PyObject
* obj1
= 0 ;
1770 (char *) "self",(char *) "name", NULL
1773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1774 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1775 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1777 arg2
= wxString_in_helper(obj1
);
1778 if (arg2
== NULL
) SWIG_fail
;
1782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1783 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1785 wxPyEndAllowThreads(__tstate
);
1786 if (PyErr_Occurred()) SWIG_fail
;
1790 resultptr
= new wxIcon((wxIcon
&) result
);
1791 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1807 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
*resultobj
;
1809 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1810 wxString
*arg2
= 0 ;
1811 wxWindow
*arg3
= (wxWindow
*) 0 ;
1812 wxWindow
*arg4
= (wxWindow
*) NULL
;
1814 bool temp2
= false ;
1815 PyObject
* obj0
= 0 ;
1816 PyObject
* obj1
= 0 ;
1817 PyObject
* obj2
= 0 ;
1818 PyObject
* obj3
= 0 ;
1820 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1824 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1825 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1827 arg2
= wxString_in_helper(obj1
);
1828 if (arg2
== NULL
) SWIG_fail
;
1831 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1832 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1834 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1835 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1839 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1841 wxPyEndAllowThreads(__tstate
);
1842 if (PyErr_Occurred()) SWIG_fail
;
1845 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1861 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
*resultobj
;
1863 wxString
*arg1
= 0 ;
1865 bool temp1
= false ;
1866 PyObject
* obj0
= 0 ;
1868 (char *) "str_id", NULL
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1873 arg1
= wxString_in_helper(obj0
);
1874 if (arg1
== NULL
) SWIG_fail
;
1878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1879 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1881 wxPyEndAllowThreads(__tstate
);
1882 if (PyErr_Occurred()) SWIG_fail
;
1884 resultobj
= SWIG_From_int((int)result
);
1899 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1900 PyObject
*resultobj
;
1901 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1903 PyObject
* obj0
= 0 ;
1905 (char *) "self", NULL
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1909 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1910 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1913 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1915 wxPyEndAllowThreads(__tstate
);
1916 if (PyErr_Occurred()) SWIG_fail
;
1918 resultobj
= SWIG_From_long((long)result
);
1925 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
*resultobj
;
1927 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1933 PyObject
* obj0
= 0 ;
1934 PyObject
* obj1
= 0 ;
1935 PyObject
* obj2
= 0 ;
1936 PyObject
* obj3
= 0 ;
1937 PyObject
* obj4
= 0 ;
1939 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1943 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1944 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1945 arg2
= (int)SWIG_As_int(obj1
);
1946 if (PyErr_Occurred()) SWIG_fail
;
1947 arg3
= (int)SWIG_As_int(obj2
);
1948 if (PyErr_Occurred()) SWIG_fail
;
1949 arg4
= (int)SWIG_As_int(obj3
);
1950 if (PyErr_Occurred()) SWIG_fail
;
1951 arg5
= (int)SWIG_As_int(obj4
);
1952 if (PyErr_Occurred()) SWIG_fail
;
1954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1955 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1957 wxPyEndAllowThreads(__tstate
);
1958 if (PyErr_Occurred()) SWIG_fail
;
1960 resultobj
= SWIG_From_int((int)result
);
1967 static PyObject
*_wrap_XmlResource_Get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1968 PyObject
*resultobj
;
1969 wxXmlResource
*result
;
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1977 result
= (wxXmlResource
*)wxXmlResource::Get();
1979 wxPyEndAllowThreads(__tstate
);
1980 if (PyErr_Occurred()) SWIG_fail
;
1982 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1989 static PyObject
*_wrap_XmlResource_Set(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
*resultobj
;
1991 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1992 wxXmlResource
*result
;
1993 PyObject
* obj0
= 0 ;
1995 (char *) "res", NULL
1998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1999 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2000 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2003 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
2005 wxPyEndAllowThreads(__tstate
);
2006 if (PyErr_Occurred()) SWIG_fail
;
2008 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
2015 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
*resultobj
;
2017 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2019 PyObject
* obj0
= 0 ;
2021 (char *) "self", NULL
2024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
2025 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2026 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2029 result
= (int)(arg1
)->GetFlags();
2031 wxPyEndAllowThreads(__tstate
);
2032 if (PyErr_Occurred()) SWIG_fail
;
2034 resultobj
= SWIG_From_int((int)result
);
2041 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2042 PyObject
*resultobj
;
2043 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2045 PyObject
* obj0
= 0 ;
2046 PyObject
* obj1
= 0 ;
2048 (char *) "self",(char *) "flags", NULL
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
2052 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2053 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2054 arg2
= (int)SWIG_As_int(obj1
);
2055 if (PyErr_Occurred()) SWIG_fail
;
2057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2058 (arg1
)->SetFlags(arg2
);
2060 wxPyEndAllowThreads(__tstate
);
2061 if (PyErr_Occurred()) SWIG_fail
;
2063 Py_INCREF(Py_None
); resultobj
= Py_None
;
2070 static PyObject
* XmlResource_swigregister(PyObject
*, PyObject
*args
) {
2072 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2073 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
2075 return Py_BuildValue((char *)"");
2077 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
*resultobj
;
2079 wxPyXmlSubclassFactory
*result
;
2084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
2086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2087 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
2089 wxPyEndAllowThreads(__tstate
);
2090 if (PyErr_Occurred()) SWIG_fail
;
2092 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2099 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2100 PyObject
*resultobj
;
2101 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2102 PyObject
*arg2
= (PyObject
*) 0 ;
2103 PyObject
*arg3
= (PyObject
*) 0 ;
2104 PyObject
* obj0
= 0 ;
2105 PyObject
* obj1
= 0 ;
2106 PyObject
* obj2
= 0 ;
2108 (char *) "self",(char *) "self",(char *) "_class", NULL
2111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2112 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2113 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2118 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2120 wxPyEndAllowThreads(__tstate
);
2121 if (PyErr_Occurred()) SWIG_fail
;
2123 Py_INCREF(Py_None
); resultobj
= Py_None
;
2130 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*, PyObject
*args
) {
2132 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2133 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2135 return Py_BuildValue((char *)"");
2137 static PyObject
*_wrap_new_XmlProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2138 PyObject
*resultobj
;
2139 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2140 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2141 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2142 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2143 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2144 wxXmlProperty
*result
;
2145 bool temp1
= false ;
2146 bool temp2
= false ;
2147 PyObject
* obj0
= 0 ;
2148 PyObject
* obj1
= 0 ;
2149 PyObject
* obj2
= 0 ;
2151 (char *) "name",(char *) "value",(char *) "next", NULL
2154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2157 arg1
= wxString_in_helper(obj0
);
2158 if (arg1
== NULL
) SWIG_fail
;
2164 arg2
= wxString_in_helper(obj1
);
2165 if (arg2
== NULL
) SWIG_fail
;
2170 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2171 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2175 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2177 wxPyEndAllowThreads(__tstate
);
2178 if (PyErr_Occurred()) SWIG_fail
;
2180 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2203 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
*resultobj
;
2205 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2207 PyObject
* obj0
= 0 ;
2209 (char *) "self", NULL
2212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2213 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2214 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2217 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2219 wxPyEndAllowThreads(__tstate
);
2220 if (PyErr_Occurred()) SWIG_fail
;
2224 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2226 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2235 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2236 PyObject
*resultobj
;
2237 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2239 PyObject
* obj0
= 0 ;
2241 (char *) "self", NULL
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2245 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2246 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2248 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2249 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2251 wxPyEndAllowThreads(__tstate
);
2252 if (PyErr_Occurred()) SWIG_fail
;
2256 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2258 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2267 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2268 PyObject
*resultobj
;
2269 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2270 wxXmlProperty
*result
;
2271 PyObject
* obj0
= 0 ;
2273 (char *) "self", NULL
2276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2277 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2278 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2281 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2283 wxPyEndAllowThreads(__tstate
);
2284 if (PyErr_Occurred()) SWIG_fail
;
2286 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2293 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2294 PyObject
*resultobj
;
2295 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2296 wxString
*arg2
= 0 ;
2297 bool temp2
= false ;
2298 PyObject
* obj0
= 0 ;
2299 PyObject
* obj1
= 0 ;
2301 (char *) "self",(char *) "name", NULL
2304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2305 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2306 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2308 arg2
= wxString_in_helper(obj1
);
2309 if (arg2
== NULL
) SWIG_fail
;
2313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2314 (arg1
)->SetName((wxString
const &)*arg2
);
2316 wxPyEndAllowThreads(__tstate
);
2317 if (PyErr_Occurred()) SWIG_fail
;
2319 Py_INCREF(Py_None
); resultobj
= Py_None
;
2334 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2335 PyObject
*resultobj
;
2336 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2337 wxString
*arg2
= 0 ;
2338 bool temp2
= false ;
2339 PyObject
* obj0
= 0 ;
2340 PyObject
* obj1
= 0 ;
2342 (char *) "self",(char *) "value", NULL
2345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2346 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2347 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2349 arg2
= wxString_in_helper(obj1
);
2350 if (arg2
== NULL
) SWIG_fail
;
2354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2355 (arg1
)->SetValue((wxString
const &)*arg2
);
2357 wxPyEndAllowThreads(__tstate
);
2358 if (PyErr_Occurred()) SWIG_fail
;
2360 Py_INCREF(Py_None
); resultobj
= Py_None
;
2375 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2376 PyObject
*resultobj
;
2377 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2378 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2379 PyObject
* obj0
= 0 ;
2380 PyObject
* obj1
= 0 ;
2382 (char *) "self",(char *) "next", NULL
2385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2386 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2387 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2388 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2389 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2392 (arg1
)->SetNext(arg2
);
2394 wxPyEndAllowThreads(__tstate
);
2395 if (PyErr_Occurred()) SWIG_fail
;
2397 Py_INCREF(Py_None
); resultobj
= Py_None
;
2404 static PyObject
* XmlProperty_swigregister(PyObject
*, PyObject
*args
) {
2406 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2407 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2409 return Py_BuildValue((char *)"");
2411 static PyObject
*_wrap_new_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2412 PyObject
*resultobj
;
2413 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2414 int arg2
= (int) 0 ;
2415 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2416 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2417 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2418 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2419 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2420 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2422 bool temp3
= false ;
2423 bool temp4
= false ;
2424 PyObject
* obj0
= 0 ;
2425 PyObject
* obj1
= 0 ;
2426 PyObject
* obj2
= 0 ;
2427 PyObject
* obj3
= 0 ;
2428 PyObject
* obj4
= 0 ;
2429 PyObject
* obj5
= 0 ;
2431 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2436 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2437 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2440 arg2
= (int)SWIG_As_int(obj1
);
2441 if (PyErr_Occurred()) SWIG_fail
;
2445 arg3
= wxString_in_helper(obj2
);
2446 if (arg3
== NULL
) SWIG_fail
;
2452 arg4
= wxString_in_helper(obj3
);
2453 if (arg4
== NULL
) SWIG_fail
;
2458 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2459 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2462 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2463 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2467 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2469 wxPyEndAllowThreads(__tstate
);
2470 if (PyErr_Occurred()) SWIG_fail
;
2472 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2495 static PyObject
*_wrap_delete_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2496 PyObject
*resultobj
;
2497 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2498 PyObject
* obj0
= 0 ;
2500 (char *) "self", NULL
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2504 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2505 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2510 wxPyEndAllowThreads(__tstate
);
2511 if (PyErr_Occurred()) SWIG_fail
;
2513 Py_INCREF(Py_None
); resultobj
= Py_None
;
2520 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2521 PyObject
*resultobj
;
2523 wxString
*arg2
= 0 ;
2524 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2525 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2527 bool temp2
= false ;
2528 bool temp3
= false ;
2529 PyObject
* obj0
= 0 ;
2530 PyObject
* obj1
= 0 ;
2531 PyObject
* obj2
= 0 ;
2533 (char *) "type",(char *) "name",(char *) "content", NULL
2536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2537 arg1
= (int)SWIG_As_int(obj0
);
2538 if (PyErr_Occurred()) SWIG_fail
;
2540 arg2
= wxString_in_helper(obj1
);
2541 if (arg2
== NULL
) SWIG_fail
;
2546 arg3
= wxString_in_helper(obj2
);
2547 if (arg3
== NULL
) SWIG_fail
;
2552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2553 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2555 wxPyEndAllowThreads(__tstate
);
2556 if (PyErr_Occurred()) SWIG_fail
;
2558 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2581 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
*resultobj
;
2583 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2584 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2585 PyObject
* obj0
= 0 ;
2586 PyObject
* obj1
= 0 ;
2588 (char *) "self",(char *) "child", NULL
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2592 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2593 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2594 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2595 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2598 (arg1
)->AddChild(arg2
);
2600 wxPyEndAllowThreads(__tstate
);
2601 if (PyErr_Occurred()) SWIG_fail
;
2603 Py_INCREF(Py_None
); resultobj
= Py_None
;
2610 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
*resultobj
;
2612 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2613 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2614 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2615 PyObject
* obj0
= 0 ;
2616 PyObject
* obj1
= 0 ;
2617 PyObject
* obj2
= 0 ;
2619 (char *) "self",(char *) "child",(char *) "before_node", NULL
2622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2623 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2624 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2625 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2626 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2627 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2628 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 (arg1
)->InsertChild(arg2
,arg3
);
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) SWIG_fail
;
2636 Py_INCREF(Py_None
); resultobj
= Py_None
;
2643 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
*resultobj
;
2645 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2646 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2648 PyObject
* obj0
= 0 ;
2649 PyObject
* obj1
= 0 ;
2651 (char *) "self",(char *) "child", NULL
2654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2655 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2656 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2657 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2658 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2661 result
= (bool)(arg1
)->RemoveChild(arg2
);
2663 wxPyEndAllowThreads(__tstate
);
2664 if (PyErr_Occurred()) SWIG_fail
;
2667 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2675 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2676 PyObject
*resultobj
;
2677 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2678 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2679 PyObject
* obj0
= 0 ;
2680 PyObject
* obj1
= 0 ;
2682 (char *) "self",(char *) "prop", NULL
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2686 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2687 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2688 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2689 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2692 (arg1
)->AddProperty(arg2
);
2694 wxPyEndAllowThreads(__tstate
);
2695 if (PyErr_Occurred()) SWIG_fail
;
2697 Py_INCREF(Py_None
); resultobj
= Py_None
;
2704 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
*resultobj
;
2706 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2707 wxString
*arg2
= 0 ;
2708 wxString
*arg3
= 0 ;
2709 bool temp2
= false ;
2710 bool temp3
= false ;
2711 PyObject
* obj0
= 0 ;
2712 PyObject
* obj1
= 0 ;
2713 PyObject
* obj2
= 0 ;
2715 (char *) "self",(char *) "name",(char *) "value", NULL
2718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2719 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2720 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2722 arg2
= wxString_in_helper(obj1
);
2723 if (arg2
== NULL
) SWIG_fail
;
2727 arg3
= wxString_in_helper(obj2
);
2728 if (arg3
== NULL
) SWIG_fail
;
2732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2733 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2735 wxPyEndAllowThreads(__tstate
);
2736 if (PyErr_Occurred()) SWIG_fail
;
2738 Py_INCREF(Py_None
); resultobj
= Py_None
;
2761 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2762 PyObject
*resultobj
;
2763 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2764 wxString
*arg2
= 0 ;
2766 bool temp2
= false ;
2767 PyObject
* obj0
= 0 ;
2768 PyObject
* obj1
= 0 ;
2770 (char *) "self",(char *) "name", NULL
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2774 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2775 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2777 arg2
= wxString_in_helper(obj1
);
2778 if (arg2
== NULL
) SWIG_fail
;
2782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2783 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2785 wxPyEndAllowThreads(__tstate
);
2786 if (PyErr_Occurred()) SWIG_fail
;
2789 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2805 static PyObject
*_wrap_XmlNode_GetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2806 PyObject
*resultobj
;
2807 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2809 PyObject
* obj0
= 0 ;
2811 (char *) "self", NULL
2814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2815 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2816 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2819 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2821 wxPyEndAllowThreads(__tstate
);
2822 if (PyErr_Occurred()) SWIG_fail
;
2824 resultobj
= SWIG_From_int((int)result
);
2831 static PyObject
*_wrap_XmlNode_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2832 PyObject
*resultobj
;
2833 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2835 PyObject
* obj0
= 0 ;
2837 (char *) "self", NULL
2840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2841 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2842 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2845 result
= ((wxXmlNode
const *)arg1
)->GetName();
2847 wxPyEndAllowThreads(__tstate
);
2848 if (PyErr_Occurred()) SWIG_fail
;
2852 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2854 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2863 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2864 PyObject
*resultobj
;
2865 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2867 PyObject
* obj0
= 0 ;
2869 (char *) "self", NULL
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2873 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2874 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2877 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2879 wxPyEndAllowThreads(__tstate
);
2880 if (PyErr_Occurred()) SWIG_fail
;
2884 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2886 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2895 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2896 PyObject
*resultobj
;
2897 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2899 PyObject
* obj0
= 0 ;
2901 (char *) "self", NULL
2904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2905 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2906 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2909 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2911 wxPyEndAllowThreads(__tstate
);
2912 if (PyErr_Occurred()) SWIG_fail
;
2914 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2921 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2922 PyObject
*resultobj
;
2923 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2925 PyObject
* obj0
= 0 ;
2927 (char *) "self", NULL
2930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2931 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2932 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2935 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2937 wxPyEndAllowThreads(__tstate
);
2938 if (PyErr_Occurred()) SWIG_fail
;
2940 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2947 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2948 PyObject
*resultobj
;
2949 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2951 PyObject
* obj0
= 0 ;
2953 (char *) "self", NULL
2956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2957 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2958 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2961 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2963 wxPyEndAllowThreads(__tstate
);
2964 if (PyErr_Occurred()) SWIG_fail
;
2966 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2973 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2974 PyObject
*resultobj
;
2975 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2976 wxXmlProperty
*result
;
2977 PyObject
* obj0
= 0 ;
2979 (char *) "self", NULL
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2983 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2984 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2987 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2989 wxPyEndAllowThreads(__tstate
);
2990 if (PyErr_Occurred()) SWIG_fail
;
2992 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2999 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3000 PyObject
*resultobj
;
3001 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3002 wxString
*arg2
= 0 ;
3003 wxString
*arg3
= 0 ;
3005 bool temp2
= false ;
3006 bool temp3
= false ;
3007 PyObject
* obj0
= 0 ;
3008 PyObject
* obj1
= 0 ;
3009 PyObject
* obj2
= 0 ;
3011 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
3014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3015 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3016 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3018 arg2
= wxString_in_helper(obj1
);
3019 if (arg2
== NULL
) SWIG_fail
;
3023 arg3
= wxString_in_helper(obj2
);
3024 if (arg3
== NULL
) SWIG_fail
;
3028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3029 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3031 wxPyEndAllowThreads(__tstate
);
3032 if (PyErr_Occurred()) SWIG_fail
;
3036 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3038 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3063 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3064 PyObject
*resultobj
;
3065 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3066 wxString
*arg2
= 0 ;
3068 bool temp2
= false ;
3069 PyObject
* obj0
= 0 ;
3070 PyObject
* obj1
= 0 ;
3072 (char *) "self",(char *) "propName", NULL
3075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
3076 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3077 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3079 arg2
= wxString_in_helper(obj1
);
3080 if (arg2
== NULL
) SWIG_fail
;
3084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3085 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
3087 wxPyEndAllowThreads(__tstate
);
3088 if (PyErr_Occurred()) SWIG_fail
;
3091 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3107 static PyObject
*_wrap_XmlNode_SetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3108 PyObject
*resultobj
;
3109 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3111 PyObject
* obj0
= 0 ;
3112 PyObject
* obj1
= 0 ;
3114 (char *) "self",(char *) "type", NULL
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3118 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3119 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3120 arg2
= (int)SWIG_As_int(obj1
);
3121 if (PyErr_Occurred()) SWIG_fail
;
3123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3124 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3126 wxPyEndAllowThreads(__tstate
);
3127 if (PyErr_Occurred()) SWIG_fail
;
3129 Py_INCREF(Py_None
); resultobj
= Py_None
;
3136 static PyObject
*_wrap_XmlNode_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3137 PyObject
*resultobj
;
3138 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3139 wxString
*arg2
= 0 ;
3140 bool temp2
= false ;
3141 PyObject
* obj0
= 0 ;
3142 PyObject
* obj1
= 0 ;
3144 (char *) "self",(char *) "name", NULL
3147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3148 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3149 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3151 arg2
= wxString_in_helper(obj1
);
3152 if (arg2
== NULL
) SWIG_fail
;
3156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3157 (arg1
)->SetName((wxString
const &)*arg2
);
3159 wxPyEndAllowThreads(__tstate
);
3160 if (PyErr_Occurred()) SWIG_fail
;
3162 Py_INCREF(Py_None
); resultobj
= Py_None
;
3177 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3178 PyObject
*resultobj
;
3179 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3180 wxString
*arg2
= 0 ;
3181 bool temp2
= false ;
3182 PyObject
* obj0
= 0 ;
3183 PyObject
* obj1
= 0 ;
3185 (char *) "self",(char *) "con", NULL
3188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3189 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3190 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3192 arg2
= wxString_in_helper(obj1
);
3193 if (arg2
== NULL
) SWIG_fail
;
3197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3198 (arg1
)->SetContent((wxString
const &)*arg2
);
3200 wxPyEndAllowThreads(__tstate
);
3201 if (PyErr_Occurred()) SWIG_fail
;
3203 Py_INCREF(Py_None
); resultobj
= Py_None
;
3218 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3219 PyObject
*resultobj
;
3220 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3221 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3222 PyObject
* obj0
= 0 ;
3223 PyObject
* obj1
= 0 ;
3225 (char *) "self",(char *) "parent", NULL
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3229 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3230 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3231 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3232 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3235 (arg1
)->SetParent(arg2
);
3237 wxPyEndAllowThreads(__tstate
);
3238 if (PyErr_Occurred()) SWIG_fail
;
3240 Py_INCREF(Py_None
); resultobj
= Py_None
;
3247 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3248 PyObject
*resultobj
;
3249 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3250 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3251 PyObject
* obj0
= 0 ;
3252 PyObject
* obj1
= 0 ;
3254 (char *) "self",(char *) "next", NULL
3257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3258 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3259 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3260 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3261 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3264 (arg1
)->SetNext(arg2
);
3266 wxPyEndAllowThreads(__tstate
);
3267 if (PyErr_Occurred()) SWIG_fail
;
3269 Py_INCREF(Py_None
); resultobj
= Py_None
;
3276 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3277 PyObject
*resultobj
;
3278 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3279 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3280 PyObject
* obj0
= 0 ;
3281 PyObject
* obj1
= 0 ;
3283 (char *) "self",(char *) "child", NULL
3286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3287 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3288 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3289 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3290 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3293 (arg1
)->SetChildren(arg2
);
3295 wxPyEndAllowThreads(__tstate
);
3296 if (PyErr_Occurred()) SWIG_fail
;
3298 Py_INCREF(Py_None
); resultobj
= Py_None
;
3305 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3306 PyObject
*resultobj
;
3307 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3308 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3309 PyObject
* obj0
= 0 ;
3310 PyObject
* obj1
= 0 ;
3312 (char *) "self",(char *) "prop", NULL
3315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3316 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3317 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3318 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3319 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3322 (arg1
)->SetProperties(arg2
);
3324 wxPyEndAllowThreads(__tstate
);
3325 if (PyErr_Occurred()) SWIG_fail
;
3327 Py_INCREF(Py_None
); resultobj
= Py_None
;
3334 static PyObject
* XmlNode_swigregister(PyObject
*, PyObject
*args
) {
3336 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3337 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3339 return Py_BuildValue((char *)"");
3341 static PyObject
*_wrap_new_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3342 PyObject
*resultobj
;
3343 wxString
*arg1
= 0 ;
3344 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3345 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3346 wxXmlDocument
*result
;
3347 bool temp1
= false ;
3348 bool temp2
= false ;
3349 PyObject
* obj0
= 0 ;
3350 PyObject
* obj1
= 0 ;
3352 (char *) "filename",(char *) "encoding", NULL
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3357 arg1
= wxString_in_helper(obj0
);
3358 if (arg1
== NULL
) SWIG_fail
;
3363 arg2
= wxString_in_helper(obj1
);
3364 if (arg2
== NULL
) SWIG_fail
;
3369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3370 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3372 wxPyEndAllowThreads(__tstate
);
3373 if (PyErr_Occurred()) SWIG_fail
;
3375 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3398 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3399 PyObject
*resultobj
;
3400 wxInputStream
*arg1
= 0 ;
3401 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3402 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3403 wxXmlDocument
*result
;
3404 wxPyInputStream
*temp1
;
3406 bool temp2
= false ;
3407 PyObject
* obj0
= 0 ;
3408 PyObject
* obj1
= 0 ;
3410 (char *) "stream",(char *) "encoding", NULL
3413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3415 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3416 arg1
= temp1
->m_wxis
;
3419 PyErr_Clear(); // clear the failure of the wxPyConvert above
3420 arg1
= wxPyCBInputStream_create(obj0
, false);
3422 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3430 arg2
= wxString_in_helper(obj1
);
3431 if (arg2
== NULL
) SWIG_fail
;
3436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3437 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3439 wxPyEndAllowThreads(__tstate
);
3440 if (PyErr_Occurred()) SWIG_fail
;
3442 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3465 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3466 PyObject
*resultobj
;
3467 wxXmlDocument
*result
;
3472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3475 result
= (wxXmlDocument
*)new wxXmlDocument();
3477 wxPyEndAllowThreads(__tstate
);
3478 if (PyErr_Occurred()) SWIG_fail
;
3480 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3487 static PyObject
*_wrap_delete_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
*resultobj
;
3489 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3490 PyObject
* obj0
= 0 ;
3492 (char *) "self", NULL
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3496 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3497 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3502 wxPyEndAllowThreads(__tstate
);
3503 if (PyErr_Occurred()) SWIG_fail
;
3505 Py_INCREF(Py_None
); resultobj
= Py_None
;
3512 static PyObject
*_wrap_XmlDocument_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3513 PyObject
*resultobj
;
3514 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3515 wxString
*arg2
= 0 ;
3516 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3517 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3519 bool temp2
= false ;
3520 bool temp3
= false ;
3521 PyObject
* obj0
= 0 ;
3522 PyObject
* obj1
= 0 ;
3523 PyObject
* obj2
= 0 ;
3525 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3529 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3530 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3532 arg2
= wxString_in_helper(obj1
);
3533 if (arg2
== NULL
) SWIG_fail
;
3538 arg3
= wxString_in_helper(obj2
);
3539 if (arg3
== NULL
) SWIG_fail
;
3544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3545 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3547 wxPyEndAllowThreads(__tstate
);
3548 if (PyErr_Occurred()) SWIG_fail
;
3551 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3575 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3576 PyObject
*resultobj
;
3577 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3578 wxInputStream
*arg2
= 0 ;
3579 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3580 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3582 wxPyInputStream
*temp2
;
3584 bool temp3
= false ;
3585 PyObject
* obj0
= 0 ;
3586 PyObject
* obj1
= 0 ;
3587 PyObject
* obj2
= 0 ;
3589 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3593 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3594 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3596 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3597 arg2
= temp2
->m_wxis
;
3600 PyErr_Clear(); // clear the failure of the wxPyConvert above
3601 arg2
= wxPyCBInputStream_create(obj1
, false);
3603 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3611 arg3
= wxString_in_helper(obj2
);
3612 if (arg3
== NULL
) SWIG_fail
;
3617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3618 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3620 wxPyEndAllowThreads(__tstate
);
3621 if (PyErr_Occurred()) SWIG_fail
;
3624 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3648 static PyObject
*_wrap_XmlDocument_Save(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
*resultobj
;
3650 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3651 wxString
*arg2
= 0 ;
3653 bool temp2
= false ;
3654 PyObject
* obj0
= 0 ;
3655 PyObject
* obj1
= 0 ;
3657 (char *) "self",(char *) "filename", NULL
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3661 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3662 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3664 arg2
= wxString_in_helper(obj1
);
3665 if (arg2
== NULL
) SWIG_fail
;
3669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3670 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3672 wxPyEndAllowThreads(__tstate
);
3673 if (PyErr_Occurred()) SWIG_fail
;
3676 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3692 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3693 PyObject
*resultobj
;
3694 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3695 wxOutputStream
*arg2
= 0 ;
3697 PyObject
* obj0
= 0 ;
3698 PyObject
* obj1
= 0 ;
3700 (char *) "self",(char *) "stream", NULL
3703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3704 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3705 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3706 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3707 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3710 PyErr_SetString(PyExc_TypeError
,"null reference");
3714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3715 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3717 wxPyEndAllowThreads(__tstate
);
3718 if (PyErr_Occurred()) SWIG_fail
;
3721 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3729 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3730 PyObject
*resultobj
;
3731 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3733 PyObject
* obj0
= 0 ;
3735 (char *) "self", NULL
3738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3739 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3740 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3743 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3745 wxPyEndAllowThreads(__tstate
);
3746 if (PyErr_Occurred()) SWIG_fail
;
3749 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3757 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3758 PyObject
*resultobj
;
3759 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3761 PyObject
* obj0
= 0 ;
3763 (char *) "self", NULL
3766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3767 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3768 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3771 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3773 wxPyEndAllowThreads(__tstate
);
3774 if (PyErr_Occurred()) SWIG_fail
;
3776 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3783 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3784 PyObject
*resultobj
;
3785 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3787 PyObject
* obj0
= 0 ;
3789 (char *) "self", NULL
3792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3793 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3794 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3797 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3799 wxPyEndAllowThreads(__tstate
);
3800 if (PyErr_Occurred()) SWIG_fail
;
3804 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3806 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3815 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3816 PyObject
*resultobj
;
3817 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3819 PyObject
* obj0
= 0 ;
3821 (char *) "self", NULL
3824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3825 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3826 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3829 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3831 wxPyEndAllowThreads(__tstate
);
3832 if (PyErr_Occurred()) SWIG_fail
;
3836 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3838 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3847 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3848 PyObject
*resultobj
;
3849 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3850 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3851 PyObject
* obj0
= 0 ;
3852 PyObject
* obj1
= 0 ;
3854 (char *) "self",(char *) "node", NULL
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3858 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3859 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3860 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3861 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3864 (arg1
)->SetRoot(arg2
);
3866 wxPyEndAllowThreads(__tstate
);
3867 if (PyErr_Occurred()) SWIG_fail
;
3869 Py_INCREF(Py_None
); resultobj
= Py_None
;
3876 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
*resultobj
;
3878 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3879 wxString
*arg2
= 0 ;
3880 bool temp2
= false ;
3881 PyObject
* obj0
= 0 ;
3882 PyObject
* obj1
= 0 ;
3884 (char *) "self",(char *) "version", NULL
3887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3888 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3889 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3891 arg2
= wxString_in_helper(obj1
);
3892 if (arg2
== NULL
) SWIG_fail
;
3896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3897 (arg1
)->SetVersion((wxString
const &)*arg2
);
3899 wxPyEndAllowThreads(__tstate
);
3900 if (PyErr_Occurred()) SWIG_fail
;
3902 Py_INCREF(Py_None
); resultobj
= Py_None
;
3917 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3918 PyObject
*resultobj
;
3919 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3920 wxString
*arg2
= 0 ;
3921 bool temp2
= false ;
3922 PyObject
* obj0
= 0 ;
3923 PyObject
* obj1
= 0 ;
3925 (char *) "self",(char *) "encoding", NULL
3928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3929 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3930 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3932 arg2
= wxString_in_helper(obj1
);
3933 if (arg2
== NULL
) SWIG_fail
;
3937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3938 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3940 wxPyEndAllowThreads(__tstate
);
3941 if (PyErr_Occurred()) SWIG_fail
;
3943 Py_INCREF(Py_None
); resultobj
= Py_None
;
3958 static PyObject
* XmlDocument_swigregister(PyObject
*, PyObject
*args
) {
3960 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3961 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3963 return Py_BuildValue((char *)"");
3965 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3966 PyObject
*resultobj
;
3967 wxPyXmlResourceHandler
*result
;
3972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3975 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3977 wxPyEndAllowThreads(__tstate
);
3978 if (PyErr_Occurred()) SWIG_fail
;
3980 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3987 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3988 PyObject
*resultobj
;
3989 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3990 PyObject
*arg2
= (PyObject
*) 0 ;
3991 PyObject
*arg3
= (PyObject
*) 0 ;
3992 PyObject
* obj0
= 0 ;
3993 PyObject
* obj1
= 0 ;
3994 PyObject
* obj2
= 0 ;
3996 (char *) "self",(char *) "self",(char *) "_class", NULL
3999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4000 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4001 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4006 (arg1
)->_setCallbackInfo(arg2
,arg3
);
4008 wxPyEndAllowThreads(__tstate
);
4009 if (PyErr_Occurred()) SWIG_fail
;
4011 Py_INCREF(Py_None
); resultobj
= Py_None
;
4018 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4019 PyObject
*resultobj
;
4020 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4021 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4022 wxObject
*arg3
= (wxObject
*) 0 ;
4023 wxObject
*arg4
= (wxObject
*) 0 ;
4025 PyObject
* obj0
= 0 ;
4026 PyObject
* obj1
= 0 ;
4027 PyObject
* obj2
= 0 ;
4028 PyObject
* obj3
= 0 ;
4030 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
4033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4034 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4035 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4036 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4037 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4038 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
4039 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4040 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
4041 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4044 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
4046 wxPyEndAllowThreads(__tstate
);
4047 if (PyErr_Occurred()) SWIG_fail
;
4050 resultobj
= wxPyMake_wxObject(result
, 0);
4058 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4059 PyObject
*resultobj
;
4060 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4061 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
4062 PyObject
* obj0
= 0 ;
4063 PyObject
* obj1
= 0 ;
4065 (char *) "self",(char *) "res", NULL
4068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
4069 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4070 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4071 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
4072 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4075 (arg1
)->SetParentResource(arg2
);
4077 wxPyEndAllowThreads(__tstate
);
4078 if (PyErr_Occurred()) SWIG_fail
;
4080 Py_INCREF(Py_None
); resultobj
= Py_None
;
4087 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
*resultobj
;
4089 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4090 wxXmlResource
*result
;
4091 PyObject
* obj0
= 0 ;
4093 (char *) "self", NULL
4096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4097 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4098 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4101 result
= (wxXmlResource
*)(arg1
)->GetResource();
4103 wxPyEndAllowThreads(__tstate
);
4104 if (PyErr_Occurred()) SWIG_fail
;
4106 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4113 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4114 PyObject
*resultobj
;
4115 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4117 PyObject
* obj0
= 0 ;
4119 (char *) "self", NULL
4122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4123 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4124 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4127 result
= (wxXmlNode
*)(arg1
)->GetNode();
4129 wxPyEndAllowThreads(__tstate
);
4130 if (PyErr_Occurred()) SWIG_fail
;
4132 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4139 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4140 PyObject
*resultobj
;
4141 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4143 PyObject
* obj0
= 0 ;
4145 (char *) "self", NULL
4148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4149 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4150 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4153 result
= (arg1
)->GetClass();
4155 wxPyEndAllowThreads(__tstate
);
4156 if (PyErr_Occurred()) SWIG_fail
;
4160 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4162 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4171 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4172 PyObject
*resultobj
;
4173 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4175 PyObject
* obj0
= 0 ;
4177 (char *) "self", NULL
4180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4181 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4182 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4185 result
= (wxObject
*)(arg1
)->GetParent();
4187 wxPyEndAllowThreads(__tstate
);
4188 if (PyErr_Occurred()) SWIG_fail
;
4191 resultobj
= wxPyMake_wxObject(result
, 0);
4199 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
*resultobj
;
4201 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4203 PyObject
* obj0
= 0 ;
4205 (char *) "self", NULL
4208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4209 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4210 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4213 result
= (wxObject
*)(arg1
)->GetInstance();
4215 wxPyEndAllowThreads(__tstate
);
4216 if (PyErr_Occurred()) SWIG_fail
;
4219 resultobj
= wxPyMake_wxObject(result
, 0);
4227 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4228 PyObject
*resultobj
;
4229 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4231 PyObject
* obj0
= 0 ;
4233 (char *) "self", NULL
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4237 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4238 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4241 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4243 wxPyEndAllowThreads(__tstate
);
4244 if (PyErr_Occurred()) SWIG_fail
;
4247 resultobj
= wxPyMake_wxObject(result
, 0);
4255 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4256 PyObject
*resultobj
;
4257 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4259 PyObject
* obj0
= 0 ;
4261 (char *) "self", NULL
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4265 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4266 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4269 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4271 wxPyEndAllowThreads(__tstate
);
4272 if (PyErr_Occurred()) SWIG_fail
;
4275 resultobj
= wxPyMake_wxObject(result
, 0);
4283 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4284 PyObject
*resultobj
;
4285 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4286 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4287 wxString
*arg3
= 0 ;
4289 bool temp3
= false ;
4290 PyObject
* obj0
= 0 ;
4291 PyObject
* obj1
= 0 ;
4292 PyObject
* obj2
= 0 ;
4294 (char *) "self",(char *) "node",(char *) "classname", NULL
4297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4303 arg3
= wxString_in_helper(obj2
);
4304 if (arg3
== NULL
) SWIG_fail
;
4308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4309 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4311 wxPyEndAllowThreads(__tstate
);
4312 if (PyErr_Occurred()) SWIG_fail
;
4315 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4331 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4332 PyObject
*resultobj
;
4333 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4334 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4336 PyObject
* obj0
= 0 ;
4337 PyObject
* obj1
= 0 ;
4339 (char *) "self",(char *) "node", NULL
4342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4343 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4344 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4345 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4346 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4349 result
= (arg1
)->GetNodeContent(arg2
);
4351 wxPyEndAllowThreads(__tstate
);
4352 if (PyErr_Occurred()) SWIG_fail
;
4356 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4358 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4367 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4368 PyObject
*resultobj
;
4369 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4370 wxString
*arg2
= 0 ;
4372 bool temp2
= false ;
4373 PyObject
* obj0
= 0 ;
4374 PyObject
* obj1
= 0 ;
4376 (char *) "self",(char *) "param", NULL
4379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4380 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4381 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4383 arg2
= wxString_in_helper(obj1
);
4384 if (arg2
== NULL
) SWIG_fail
;
4388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4389 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4391 wxPyEndAllowThreads(__tstate
);
4392 if (PyErr_Occurred()) SWIG_fail
;
4395 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4411 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4412 PyObject
*resultobj
;
4413 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4414 wxString
*arg2
= 0 ;
4416 bool temp2
= false ;
4417 PyObject
* obj0
= 0 ;
4418 PyObject
* obj1
= 0 ;
4420 (char *) "self",(char *) "param", NULL
4423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4424 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4425 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4427 arg2
= wxString_in_helper(obj1
);
4428 if (arg2
== NULL
) SWIG_fail
;
4432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4433 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4435 wxPyEndAllowThreads(__tstate
);
4436 if (PyErr_Occurred()) SWIG_fail
;
4438 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4453 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4454 PyObject
*resultobj
;
4455 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4456 wxString
*arg2
= 0 ;
4458 bool temp2
= false ;
4459 PyObject
* obj0
= 0 ;
4460 PyObject
* obj1
= 0 ;
4462 (char *) "self",(char *) "param", NULL
4465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4466 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4467 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4469 arg2
= wxString_in_helper(obj1
);
4470 if (arg2
== NULL
) SWIG_fail
;
4474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4475 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4477 wxPyEndAllowThreads(__tstate
);
4478 if (PyErr_Occurred()) SWIG_fail
;
4482 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4484 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4501 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4502 PyObject
*resultobj
;
4503 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4504 wxString
*arg2
= 0 ;
4506 bool temp2
= false ;
4507 PyObject
* obj0
= 0 ;
4508 PyObject
* obj1
= 0 ;
4509 PyObject
* obj2
= 0 ;
4511 (char *) "self",(char *) "name",(char *) "value", NULL
4514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4515 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4516 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4518 arg2
= wxString_in_helper(obj1
);
4519 if (arg2
== NULL
) SWIG_fail
;
4522 arg3
= (int)SWIG_As_int(obj2
);
4523 if (PyErr_Occurred()) SWIG_fail
;
4525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4526 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4528 wxPyEndAllowThreads(__tstate
);
4529 if (PyErr_Occurred()) SWIG_fail
;
4531 Py_INCREF(Py_None
); resultobj
= Py_None
;
4546 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4547 PyObject
*resultobj
;
4548 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4549 PyObject
* obj0
= 0 ;
4551 (char *) "self", NULL
4554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4555 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4556 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4559 (arg1
)->AddWindowStyles();
4561 wxPyEndAllowThreads(__tstate
);
4562 if (PyErr_Occurred()) SWIG_fail
;
4564 Py_INCREF(Py_None
); resultobj
= Py_None
;
4571 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4572 PyObject
*resultobj
;
4573 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4574 wxString
const &arg2_defvalue
= wxPyStyleString
;
4575 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4576 int arg3
= (int) 0 ;
4578 bool temp2
= false ;
4579 PyObject
* obj0
= 0 ;
4580 PyObject
* obj1
= 0 ;
4581 PyObject
* obj2
= 0 ;
4583 (char *) "self",(char *) "param",(char *) "defaults", NULL
4586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4587 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4588 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4591 arg2
= wxString_in_helper(obj1
);
4592 if (arg2
== NULL
) SWIG_fail
;
4597 arg3
= (int)SWIG_As_int(obj2
);
4598 if (PyErr_Occurred()) SWIG_fail
;
4601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4602 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4604 wxPyEndAllowThreads(__tstate
);
4605 if (PyErr_Occurred()) SWIG_fail
;
4607 resultobj
= SWIG_From_int((int)result
);
4622 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4623 PyObject
*resultobj
;
4624 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4625 wxString
*arg2
= 0 ;
4626 bool arg3
= (bool) true ;
4628 bool temp2
= false ;
4629 PyObject
* obj0
= 0 ;
4630 PyObject
* obj1
= 0 ;
4631 PyObject
* obj2
= 0 ;
4633 (char *) "self",(char *) "param",(char *) "translate", NULL
4636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4637 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4638 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4640 arg2
= wxString_in_helper(obj1
);
4641 if (arg2
== NULL
) SWIG_fail
;
4645 arg3
= (bool)SWIG_As_bool(obj2
);
4646 if (PyErr_Occurred()) SWIG_fail
;
4649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4650 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4652 wxPyEndAllowThreads(__tstate
);
4653 if (PyErr_Occurred()) SWIG_fail
;
4657 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4659 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4676 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
*resultobj
;
4678 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4680 PyObject
* obj0
= 0 ;
4682 (char *) "self", NULL
4685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4686 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4687 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4690 result
= (int)(arg1
)->GetID();
4692 wxPyEndAllowThreads(__tstate
);
4693 if (PyErr_Occurred()) SWIG_fail
;
4695 resultobj
= SWIG_From_int((int)result
);
4702 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4703 PyObject
*resultobj
;
4704 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4706 PyObject
* obj0
= 0 ;
4708 (char *) "self", NULL
4711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4712 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4713 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4716 result
= (arg1
)->GetName();
4718 wxPyEndAllowThreads(__tstate
);
4719 if (PyErr_Occurred()) SWIG_fail
;
4723 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4725 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4734 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4735 PyObject
*resultobj
;
4736 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4737 wxString
*arg2
= 0 ;
4738 bool arg3
= (bool) false ;
4740 bool temp2
= false ;
4741 PyObject
* obj0
= 0 ;
4742 PyObject
* obj1
= 0 ;
4743 PyObject
* obj2
= 0 ;
4745 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4749 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4750 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4752 arg2
= wxString_in_helper(obj1
);
4753 if (arg2
== NULL
) SWIG_fail
;
4757 arg3
= (bool)SWIG_As_bool(obj2
);
4758 if (PyErr_Occurred()) SWIG_fail
;
4761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4762 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4764 wxPyEndAllowThreads(__tstate
);
4765 if (PyErr_Occurred()) SWIG_fail
;
4768 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4784 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4785 PyObject
*resultobj
;
4786 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4787 wxString
*arg2
= 0 ;
4788 long arg3
= (long) 0 ;
4790 bool temp2
= false ;
4791 PyObject
* obj0
= 0 ;
4792 PyObject
* obj1
= 0 ;
4793 PyObject
* obj2
= 0 ;
4795 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4799 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4800 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4802 arg2
= wxString_in_helper(obj1
);
4803 if (arg2
== NULL
) SWIG_fail
;
4807 arg3
= (long)SWIG_As_long(obj2
);
4808 if (PyErr_Occurred()) SWIG_fail
;
4811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4812 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4814 wxPyEndAllowThreads(__tstate
);
4815 if (PyErr_Occurred()) SWIG_fail
;
4817 resultobj
= SWIG_From_long((long)result
);
4832 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4833 PyObject
*resultobj
;
4834 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4835 wxString
*arg2
= 0 ;
4837 bool temp2
= false ;
4838 PyObject
* obj0
= 0 ;
4839 PyObject
* obj1
= 0 ;
4841 (char *) "self",(char *) "param", NULL
4844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4845 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4846 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4848 arg2
= wxString_in_helper(obj1
);
4849 if (arg2
== NULL
) SWIG_fail
;
4853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4854 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4856 wxPyEndAllowThreads(__tstate
);
4857 if (PyErr_Occurred()) SWIG_fail
;
4860 wxColour
* resultptr
;
4861 resultptr
= new wxColour((wxColour
&) result
);
4862 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4878 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4879 PyObject
*resultobj
;
4880 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4881 wxString
const &arg2_defvalue
= wxPySizeString
;
4882 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4884 bool temp2
= false ;
4885 PyObject
* obj0
= 0 ;
4886 PyObject
* obj1
= 0 ;
4888 (char *) "self",(char *) "param", NULL
4891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4892 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4893 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4896 arg2
= wxString_in_helper(obj1
);
4897 if (arg2
== NULL
) SWIG_fail
;
4902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4903 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4905 wxPyEndAllowThreads(__tstate
);
4906 if (PyErr_Occurred()) SWIG_fail
;
4910 resultptr
= new wxSize((wxSize
&) result
);
4911 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4927 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4928 PyObject
*resultobj
;
4929 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4930 wxString
const &arg2_defvalue
= wxPyPosString
;
4931 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4933 bool temp2
= false ;
4934 PyObject
* obj0
= 0 ;
4935 PyObject
* obj1
= 0 ;
4937 (char *) "self",(char *) "param", NULL
4940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4941 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4942 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4945 arg2
= wxString_in_helper(obj1
);
4946 if (arg2
== NULL
) SWIG_fail
;
4951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4952 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4954 wxPyEndAllowThreads(__tstate
);
4955 if (PyErr_Occurred()) SWIG_fail
;
4958 wxPoint
* resultptr
;
4959 resultptr
= new wxPoint((wxPoint
&) result
);
4960 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4976 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4977 PyObject
*resultobj
;
4978 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4979 wxString
*arg2
= 0 ;
4980 int arg3
= (int) 0 ;
4982 bool temp2
= false ;
4983 PyObject
* obj0
= 0 ;
4984 PyObject
* obj1
= 0 ;
4985 PyObject
* obj2
= 0 ;
4987 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4991 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4992 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4994 arg2
= wxString_in_helper(obj1
);
4995 if (arg2
== NULL
) SWIG_fail
;
4999 arg3
= (int)SWIG_As_int(obj2
);
5000 if (PyErr_Occurred()) SWIG_fail
;
5003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5004 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
5006 wxPyEndAllowThreads(__tstate
);
5007 if (PyErr_Occurred()) SWIG_fail
;
5009 resultobj
= SWIG_From_int((int)result
);
5024 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5025 PyObject
*resultobj
;
5026 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5027 wxString
const &arg2_defvalue
= wxPyBitmapString
;
5028 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5029 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5030 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5031 wxSize arg4
= (wxSize
) wxDefaultSize
;
5033 bool temp2
= false ;
5035 PyObject
* obj0
= 0 ;
5036 PyObject
* obj1
= 0 ;
5037 PyObject
* obj2
= 0 ;
5038 PyObject
* obj3
= 0 ;
5040 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5044 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5045 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5048 arg2
= wxString_in_helper(obj1
);
5049 if (arg2
== NULL
) SWIG_fail
;
5054 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5055 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5058 PyErr_SetString(PyExc_TypeError
,"null reference");
5063 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5064 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5069 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5071 wxPyEndAllowThreads(__tstate
);
5072 if (PyErr_Occurred()) SWIG_fail
;
5075 wxBitmap
* resultptr
;
5076 resultptr
= new wxBitmap((wxBitmap
&) result
);
5077 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
5093 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5094 PyObject
*resultobj
;
5095 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5096 wxString
const &arg2_defvalue
= wxPyIconString
;
5097 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5098 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5099 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5100 wxSize arg4
= (wxSize
) wxDefaultSize
;
5102 bool temp2
= false ;
5104 PyObject
* obj0
= 0 ;
5105 PyObject
* obj1
= 0 ;
5106 PyObject
* obj2
= 0 ;
5107 PyObject
* obj3
= 0 ;
5109 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5113 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5114 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5117 arg2
= wxString_in_helper(obj1
);
5118 if (arg2
== NULL
) SWIG_fail
;
5123 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5124 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5127 PyErr_SetString(PyExc_TypeError
,"null reference");
5132 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5133 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5138 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5140 wxPyEndAllowThreads(__tstate
);
5141 if (PyErr_Occurred()) SWIG_fail
;
5145 resultptr
= new wxIcon((wxIcon
&) result
);
5146 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5162 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5163 PyObject
*resultobj
;
5164 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5165 wxString
const &arg2_defvalue
= wxPyFontString
;
5166 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5168 bool temp2
= false ;
5169 PyObject
* obj0
= 0 ;
5170 PyObject
* obj1
= 0 ;
5172 (char *) "self",(char *) "param", NULL
5175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5176 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5177 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5180 arg2
= wxString_in_helper(obj1
);
5181 if (arg2
== NULL
) SWIG_fail
;
5186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5187 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5189 wxPyEndAllowThreads(__tstate
);
5190 if (PyErr_Occurred()) SWIG_fail
;
5194 resultptr
= new wxFont((wxFont
&) result
);
5195 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5211 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5212 PyObject
*resultobj
;
5213 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5214 wxWindow
*arg2
= (wxWindow
*) 0 ;
5215 PyObject
* obj0
= 0 ;
5216 PyObject
* obj1
= 0 ;
5218 (char *) "self",(char *) "wnd", NULL
5221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5222 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5223 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5224 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5225 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5228 (arg1
)->SetupWindow(arg2
);
5230 wxPyEndAllowThreads(__tstate
);
5231 if (PyErr_Occurred()) SWIG_fail
;
5233 Py_INCREF(Py_None
); resultobj
= Py_None
;
5240 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5241 PyObject
*resultobj
;
5242 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5243 wxObject
*arg2
= (wxObject
*) 0 ;
5244 bool arg3
= (bool) false ;
5245 PyObject
* obj0
= 0 ;
5246 PyObject
* obj1
= 0 ;
5247 PyObject
* obj2
= 0 ;
5249 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5253 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5254 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5255 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5256 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5258 arg3
= (bool)SWIG_As_bool(obj2
);
5259 if (PyErr_Occurred()) SWIG_fail
;
5262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5263 (arg1
)->CreateChildren(arg2
,arg3
);
5265 wxPyEndAllowThreads(__tstate
);
5266 if (PyErr_Occurred()) SWIG_fail
;
5268 Py_INCREF(Py_None
); resultobj
= Py_None
;
5275 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5276 PyObject
*resultobj
;
5277 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5278 wxObject
*arg2
= (wxObject
*) 0 ;
5279 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5280 PyObject
* obj0
= 0 ;
5281 PyObject
* obj1
= 0 ;
5282 PyObject
* obj2
= 0 ;
5284 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5288 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5289 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5290 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5291 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5293 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5294 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5298 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5300 wxPyEndAllowThreads(__tstate
);
5301 if (PyErr_Occurred()) SWIG_fail
;
5303 Py_INCREF(Py_None
); resultobj
= Py_None
;
5310 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5311 PyObject
*resultobj
;
5312 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5313 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5314 wxObject
*arg3
= (wxObject
*) 0 ;
5315 wxObject
*arg4
= (wxObject
*) NULL
;
5317 PyObject
* obj0
= 0 ;
5318 PyObject
* obj1
= 0 ;
5319 PyObject
* obj2
= 0 ;
5320 PyObject
* obj3
= 0 ;
5322 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5326 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5327 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5328 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5329 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5330 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5331 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5333 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5334 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5338 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5340 wxPyEndAllowThreads(__tstate
);
5341 if (PyErr_Occurred()) SWIG_fail
;
5344 resultobj
= wxPyMake_wxObject(result
, 0);
5352 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5353 PyObject
*resultobj
;
5354 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5355 wxFileSystem
*result
;
5356 PyObject
* obj0
= 0 ;
5358 (char *) "self", NULL
5361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5362 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5363 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5367 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5368 result
= (wxFileSystem
*) &_result_ref
;
5371 wxPyEndAllowThreads(__tstate
);
5372 if (PyErr_Occurred()) SWIG_fail
;
5374 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5381 static PyObject
* XmlResourceHandler_swigregister(PyObject
*, PyObject
*args
) {
5383 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5384 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5386 return Py_BuildValue((char *)"");
5388 static PyMethodDef SwigMethods
[] = {
5389 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5390 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5391 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5392 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5393 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5394 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5395 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5396 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5397 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5398 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5399 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5400 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5401 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5402 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5403 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5404 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5405 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5406 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5407 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5408 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5409 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5410 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5411 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5412 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5413 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5414 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5415 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5416 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5417 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5418 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5419 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5420 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5421 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
5422 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5423 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5424 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
5425 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5426 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5427 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5428 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5429 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5430 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5431 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5432 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
5433 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5434 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5435 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5436 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5437 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5438 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5439 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5440 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5441 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5442 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5443 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5444 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5445 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5446 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5447 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5448 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5449 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5450 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5451 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5452 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5453 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5454 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5455 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5456 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5457 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5458 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
5459 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5460 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5461 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5462 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5463 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5464 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5465 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5466 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5467 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5468 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5469 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5470 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5471 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5472 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5473 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5474 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
5475 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5476 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5477 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5478 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5479 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5480 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5481 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5482 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5483 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5484 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5485 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5486 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5487 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5488 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5489 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5490 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5491 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5492 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5493 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5494 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5495 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5496 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5497 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5498 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5499 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5500 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5501 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5502 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5503 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5504 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5505 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5506 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5507 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5508 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5509 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5510 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5511 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
5512 { NULL
, NULL
, 0, NULL
}
5516 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5518 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5519 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5521 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5522 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5524 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5525 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5527 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5528 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5530 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5531 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5533 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5534 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5536 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5537 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5539 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5540 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5542 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5543 return (void *)((wxObject
*) ((wxSizer
*) x
));
5545 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5546 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5548 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5549 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5551 static void *_p_wxEventTo_p_wxObject(void *x
) {
5552 return (void *)((wxObject
*) ((wxEvent
*) x
));
5554 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5555 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5557 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5558 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5560 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5561 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5563 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5564 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5566 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5567 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5569 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5570 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5572 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5573 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5575 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5576 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5578 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5579 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5581 static void *_p_wxControlTo_p_wxObject(void *x
) {
5582 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5584 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5585 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5587 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5588 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5590 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5591 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5593 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5594 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5596 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5597 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5599 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5600 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5602 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5603 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5605 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5606 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5608 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5609 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5611 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5612 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5614 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5615 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5617 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5618 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5620 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5621 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5623 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5624 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5626 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5627 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5629 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5630 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5632 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5633 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5635 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5636 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5638 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5639 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5641 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5642 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5644 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5645 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5647 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5648 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5650 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5651 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5653 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5654 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5656 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5657 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5659 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5660 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5662 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5663 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5665 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5666 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5668 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5669 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5671 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5672 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5674 static void *_p_wxImageTo_p_wxObject(void *x
) {
5675 return (void *)((wxObject
*) ((wxImage
*) x
));
5677 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5678 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5680 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5681 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5683 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5684 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5686 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5687 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5689 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5690 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5692 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5693 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5695 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5696 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5698 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5699 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5701 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5702 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5704 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5705 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5707 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5708 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5710 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5711 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5713 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5714 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5716 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5717 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5719 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5720 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5722 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5723 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5725 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5726 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5728 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5729 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5731 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5732 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5734 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5735 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5737 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5738 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5740 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5741 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5743 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5744 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5746 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5747 return (void *)((wxWindow
*) ((wxControl
*) x
));
5749 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5750 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5752 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5753 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5755 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5756 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5757 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5758 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5759 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5760 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5761 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0, 0, 0, 0},{"_p_wxArtClient", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5762 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5763 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0, 0, 0, 0},{"_p_wxPyXmlSubclassFactory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5764 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5765 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5766 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0, 0, 0, 0},{"_p_wxXmlNode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5767 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5768 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5769 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5770 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5771 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0, 0, 0, 0},{"_p_wxXmlProperty", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5772 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5773 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0, 0, 0, 0},{"_p_wxXmlResource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5774 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0, 0, 0, 0},{"_p_wxXmlDocument", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5775 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5776 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5778 static swig_type_info
*swig_types_initial
[] = {
5785 _swigt__p_wxArtClient
,
5787 _swigt__p_wxPyXmlSubclassFactory
,
5790 _swigt__p_wxXmlNode
,
5791 _swigt__p_wxInputStream
,
5792 _swigt__p_wxOutputStream
,
5793 _swigt__p_wxPyXmlResourceHandler
,
5794 _swigt__p_wxFileSystem
,
5795 _swigt__p_wxXmlProperty
,
5797 _swigt__p_wxXmlResource
,
5798 _swigt__p_wxXmlDocument
,
5805 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5807 static swig_const_info swig_const_table
[] = {
5808 {0, 0, 0, 0.0, 0, 0}};
5817 SWIGEXPORT(void) SWIG_init(void) {
5818 static PyObject
*SWIG_globals
= 0;
5819 static int typeinit
= 0;
5822 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5823 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5824 d
= PyModule_GetDict(m
);
5827 for (i
= 0; swig_types_initial
[i
]; i
++) {
5828 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5832 SWIG_InstallConstants(d
,swig_const_table
);
5834 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5835 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5836 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5837 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5838 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5839 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5840 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5841 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5842 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5843 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5844 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5845 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5846 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_From_int((int)wxXRC_USE_LOCALE
));
5847 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_From_int((int)wxXRC_NO_SUBCLASSING
));
5848 PyDict_SetItemString(d
,"XRC_NO_RELOADING", SWIG_From_int((int)wxXRC_NO_RELOADING
));
5849 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_From_int((int)wxXML_ELEMENT_NODE
));
5850 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_From_int((int)wxXML_ATTRIBUTE_NODE
));
5851 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_From_int((int)wxXML_TEXT_NODE
));
5852 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_From_int((int)wxXML_CDATA_SECTION_NODE
));
5853 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_From_int((int)wxXML_ENTITY_REF_NODE
));
5854 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_From_int((int)wxXML_ENTITY_NODE
));
5855 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_From_int((int)wxXML_PI_NODE
));
5856 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_From_int((int)wxXML_COMMENT_NODE
));
5857 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_DOCUMENT_NODE
));
5858 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int((int)wxXML_DOCUMENT_TYPE_NODE
));
5859 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int((int)wxXML_DOCUMENT_FRAG_NODE
));
5860 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_From_int((int)wxXML_NOTATION_NODE
));
5861 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_HTML_DOCUMENT_NODE
));
5864 wxXmlInitResourceModule();
5865 wxXmlResource::Get()->InitAllHandlers();