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_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
52 /***********************************************************************
53 * common.swg for wxPython
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
60 ************************************************************************/
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
114 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
116 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
127 /***********************************************************************
128 * pyrun.swg for wxPython
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 ************************************************************************/
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
[]);
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject
*obj
, swig_type_info
* pchar_info
);
206 SWIGIMPORT(PyObject
*) SWIG_PyObj_FromCharPtr(const char* cptr
);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject
* obj
);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject
* obj
, const char* type
,
209 long min_value
, long max_value
);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject
*obj
, const char* type
,
211 unsigned long max_value
);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject
*obj
, swig_type_info
* pchar_info
);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject
*obj
, swig_type_info
* pchar_info
,
214 char** cptr
, size_t* size
);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject
*obj
, swig_type_info
* pchar_info
,
216 char* carray
, size_t size
);
217 SWIGIMPORT(PyObject
*) SWIG_PyObj_FromCharArray(const char* carray
, size_t size
);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject
*obj
, py_objasdbl_conv pyconv
);
221 /* Contract support */
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
231 /* -------- TYPES TABLE (BEGIN) -------- */
233 #define SWIGTYPE_p_wxFrame swig_types[0]
234 #define SWIGTYPE_p_wxIcon swig_types[1]
235 #define SWIGTYPE_p_wxObject swig_types[2]
236 #define SWIGTYPE_p_wxDialog swig_types[3]
237 #define SWIGTYPE_p_wxColour swig_types[4]
238 #define SWIGTYPE_p_wxWindow swig_types[5]
239 #define SWIGTYPE_p_wxArtClient swig_types[6]
240 #define SWIGTYPE_p_wxBitmap swig_types[7]
241 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
242 #define SWIGTYPE_p_char swig_types[9]
243 #define SWIGTYPE_p_wxPoint swig_types[10]
244 #define SWIGTYPE_p_wxXmlNode swig_types[11]
245 #define SWIGTYPE_p_wxInputStream swig_types[12]
246 #define SWIGTYPE_p_wxOutputStream swig_types[13]
247 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
248 #define SWIGTYPE_p_wxFileSystem swig_types[15]
249 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
250 #define SWIGTYPE_p_wxFont swig_types[17]
251 #define SWIGTYPE_p_wxXmlResource swig_types[18]
252 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
253 #define SWIGTYPE_p_wxPanel swig_types[20]
254 #define SWIGTYPE_p_wxSize swig_types[21]
255 static swig_type_info
*swig_types
[23];
257 /* -------- TYPES TABLE (END) -------- */
260 /*-----------------------------------------------
262 ------------------------------------------------*/
263 #define SWIG_init init_xrc
265 #define SWIG_name "_xrc"
273 #define SWIGSTATIC(a) static inline a
275 #define SWIGSTATIC(a) static a
281 #ifdef HAVE_NUMERIC_CAST
282 #define numeric_cast(type,a) numeric_cast<type>(a)
284 #define numeric_cast(type,a) static_cast<type>(a)
287 #define numeric_cast(type,a) (type)(a)
293 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
294 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
295 #define SWIG_PyObj_FromShort PyInt_FromLong
296 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
297 #define SWIG_PyObj_FromInt PyInt_FromLong
298 #define SWIG_PyObj_FromLong PyInt_FromLong
299 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
300 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
301 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
302 #define SWIG_PyObj_FromDouble 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>
313 static const wxString
wxPyEmptyString(wxEmptyString
);
314 static const wxString
wxPyUTF8String(wxT("UTF-8"));
315 static const wxString
wxPyStyleString(wxT("style"));
316 static const wxString
wxPySizeString(wxT("size"));
317 static const wxString
wxPyPosString(wxT("pos"));
318 static const wxString
wxPyBitmapString(wxT("bitmap"));
319 static const wxString
wxPyIconString(wxT("icon"));
320 static const wxString
wxPyFontString(wxT("font"));
323 SWIG_PyObj_AsInt(PyObject
*obj
)
325 return numeric_cast(int,
326 SWIG_PyObj_AsLongInRange(obj
, "int", INT_MIN
, INT_MAX
));
329 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
330 static int s_memFileIdx
= 0;
332 // Check for memory FS. If not present, load the handler:
333 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
336 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
337 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
341 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
343 // Now put the resource data into the memory FS
344 wxString
filename(wxT("XRC_resource/data_string_"));
345 filename
<< s_memFileIdx
;
347 wxMemoryFSHandler::AddFile(filename
, data
);
349 // Load the "file" into the resource object
350 bool retval
= self
->Load(wxT("memory:") + filename
);
355 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
358 wxPyXmlSubclassFactory() {}
359 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
363 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
365 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
366 // callbacks, as well as to make some protected things public so they can
368 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
370 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
371 //~wxPyXmlResourceHandler();
373 // Base class virtuals
375 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
376 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
379 // accessors for protected members
381 wxXmlResource
* GetResource() { return m_resource
; }
382 wxXmlNode
* GetNode() { return m_node
; }
383 wxString
GetClass() { return m_class
; }
384 wxObject
* GetParent() { return m_parent
; }
385 wxObject
* GetInstance() { return m_instance
; }
386 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
387 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
390 // turn some protected methods into public via delegation
392 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
393 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
395 wxString
GetNodeContent(wxXmlNode
*node
)
396 { return wxXmlResourceHandler::GetNodeContent(node
); }
398 bool HasParam(const wxString
& param
)
399 { return wxXmlResourceHandler::HasParam(param
); }
401 wxXmlNode
*GetParamNode(const wxString
& param
)
402 { return wxXmlResourceHandler::GetParamNode(param
); }
404 wxString
GetParamValue(const wxString
& param
)
405 { return wxXmlResourceHandler::GetParamValue(param
); }
407 void AddStyle(const wxString
& name
, int value
)
408 { wxXmlResourceHandler::AddStyle(name
, value
); }
410 void AddWindowStyles()
411 { wxXmlResourceHandler::AddWindowStyles(); }
413 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
414 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
416 wxString
GetText(const wxString
& param
, bool translate
= True
)
417 { return wxXmlResourceHandler::GetText(param
, translate
); }
420 { return wxXmlResourceHandler::GetID(); }
423 { return wxXmlResourceHandler::GetName(); }
425 bool GetBool(const wxString
& param
, bool defaultv
= False
)
426 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
428 long GetLong( const wxString
& param
, long defaultv
= 0 )
429 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
431 wxColour
GetColour(const wxString
& param
)
432 { return wxXmlResourceHandler::GetColour(param
); }
434 wxSize
GetSize(const wxString
& param
= wxT("size"))
435 { return wxXmlResourceHandler::GetSize(param
); }
437 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
438 { return wxXmlResourceHandler::GetPosition(param
); }
440 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
441 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
443 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
444 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
445 wxSize size
= wxDefaultSize
)
446 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
448 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
449 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
450 wxSize size
= wxDefaultSize
)
451 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
453 wxFont
GetFont(const wxString
& param
= wxT("font"))
454 { return wxXmlResourceHandler::GetFont(param
); }
456 void SetupWindow(wxWindow
*wnd
)
457 { wxXmlResourceHandler::SetupWindow(wnd
); }
459 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
460 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
462 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
463 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
465 wxObject
*CreateResFromNode(wxXmlNode
*node
,
466 wxObject
*parent
, wxObject
*instance
= NULL
)
467 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
469 wxFileSystem
& GetCurFileSystem()
470 { return wxXmlResourceHandler::GetCurFileSystem(); }
476 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
477 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
482 SWIG_PyObj_AsBool(PyObject
*obj
)
484 return PyObject_IsTrue(obj
) ? true : false;
489 SWIG_PyObj_AsLong(PyObject
* obj
)
491 return PyInt_Check(obj
) ? PyInt_AsLong(obj
) : PyLong_AsLong(obj
);
497 static int _wrap_UTF8String_set(PyObject
*) {
498 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
503 static PyObject
*_wrap_UTF8String_get() {
508 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
510 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
517 static int _wrap_StyleString_set(PyObject
*) {
518 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
523 static PyObject
*_wrap_StyleString_get() {
528 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
530 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
537 static int _wrap_SizeString_set(PyObject
*) {
538 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
543 static PyObject
*_wrap_SizeString_get() {
548 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
550 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
557 static int _wrap_PosString_set(PyObject
*) {
558 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
563 static PyObject
*_wrap_PosString_get() {
568 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
570 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
577 static int _wrap_BitmapString_set(PyObject
*) {
578 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
583 static PyObject
*_wrap_BitmapString_get() {
588 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
590 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
597 static int _wrap_IconString_set(PyObject
*) {
598 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
603 static PyObject
*_wrap_IconString_get() {
608 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
610 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
617 static int _wrap_FontString_set(PyObject
*) {
618 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
623 static PyObject
*_wrap_FontString_get() {
628 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
630 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
637 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
640 int arg2
= (int) wxXRC_USE_LOCALE
;
641 wxXmlResource
*result
;
643 PyObject
* obj0
= 0 ;
644 PyObject
* obj1
= 0 ;
646 (char *) "filemask",(char *) "flags", NULL
649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
651 arg1
= wxString_in_helper(obj0
);
652 if (arg1
== NULL
) SWIG_fail
;
657 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
658 if (PyErr_Occurred()) SWIG_fail
;
662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
663 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
665 wxPyEndAllowThreads(__tstate
);
666 if (PyErr_Occurred()) SWIG_fail
;
668 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
683 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
685 int arg1
= (int) wxXRC_USE_LOCALE
;
686 wxXmlResource
*result
;
687 PyObject
* obj0
= 0 ;
689 (char *) "flags", NULL
692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
695 arg1
= (int) SWIG_PyObj_AsInt(obj0
);
696 if (PyErr_Occurred()) SWIG_fail
;
700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
701 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
703 wxPyEndAllowThreads(__tstate
);
704 if (PyErr_Occurred()) SWIG_fail
;
706 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
713 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
716 PyObject
* obj0
= 0 ;
718 (char *) "self", NULL
721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
722 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
727 wxPyEndAllowThreads(__tstate
);
728 if (PyErr_Occurred()) SWIG_fail
;
730 Py_INCREF(Py_None
); resultobj
= Py_None
;
737 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
739 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
743 PyObject
* obj0
= 0 ;
744 PyObject
* obj1
= 0 ;
746 (char *) "self",(char *) "filemask", NULL
749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
750 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
752 arg2
= wxString_in_helper(obj1
);
753 if (arg2
== NULL
) SWIG_fail
;
757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
758 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
760 wxPyEndAllowThreads(__tstate
);
761 if (PyErr_Occurred()) SWIG_fail
;
763 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
778 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
780 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
784 PyObject
* obj0
= 0 ;
785 PyObject
* obj1
= 0 ;
787 (char *) "self",(char *) "data", NULL
790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
791 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
793 arg2
= wxString_in_helper(obj1
);
794 if (arg2
== NULL
) SWIG_fail
;
798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
799 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
801 wxPyEndAllowThreads(__tstate
);
802 if (PyErr_Occurred()) SWIG_fail
;
804 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
819 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
821 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
822 PyObject
* obj0
= 0 ;
824 (char *) "self", NULL
827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
828 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
831 (arg1
)->InitAllHandlers();
833 wxPyEndAllowThreads(__tstate
);
834 if (PyErr_Occurred()) SWIG_fail
;
836 Py_INCREF(Py_None
); resultobj
= Py_None
;
843 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
845 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
846 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
847 PyObject
* obj0
= 0 ;
848 PyObject
* obj1
= 0 ;
850 (char *) "self",(char *) "handler", NULL
853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
854 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
855 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
858 (arg1
)->AddHandler(arg2
);
860 wxPyEndAllowThreads(__tstate
);
861 if (PyErr_Occurred()) SWIG_fail
;
863 Py_INCREF(Py_None
); resultobj
= Py_None
;
870 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
872 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
873 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
874 PyObject
* obj0
= 0 ;
875 PyObject
* obj1
= 0 ;
877 (char *) "self",(char *) "handler", NULL
880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
881 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
882 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
885 (arg1
)->InsertHandler(arg2
);
887 wxPyEndAllowThreads(__tstate
);
888 if (PyErr_Occurred()) SWIG_fail
;
890 Py_INCREF(Py_None
); resultobj
= Py_None
;
897 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
899 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
900 PyObject
* obj0
= 0 ;
902 (char *) "self", NULL
905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
906 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
909 (arg1
)->ClearHandlers();
911 wxPyEndAllowThreads(__tstate
);
912 if (PyErr_Occurred()) SWIG_fail
;
914 Py_INCREF(Py_None
); resultobj
= Py_None
;
921 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
923 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
924 PyObject
* obj0
= 0 ;
926 (char *) "factory", NULL
929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
930 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
933 wxXmlResource::AddSubclassFactory(arg1
);
935 wxPyEndAllowThreads(__tstate
);
936 if (PyErr_Occurred()) SWIG_fail
;
938 Py_INCREF(Py_None
); resultobj
= Py_None
;
945 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
947 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
951 PyObject
* obj0
= 0 ;
952 PyObject
* obj1
= 0 ;
954 (char *) "self",(char *) "name", NULL
957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
958 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
960 arg2
= wxString_in_helper(obj1
);
961 if (arg2
== NULL
) SWIG_fail
;
965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
966 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
968 wxPyEndAllowThreads(__tstate
);
969 if (PyErr_Occurred()) SWIG_fail
;
972 resultobj
= wxPyMake_wxObject(result
);
988 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
990 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
994 PyObject
* obj0
= 0 ;
995 PyObject
* obj1
= 0 ;
997 (char *) "self",(char *) "name", NULL
1000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1001 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1003 arg2
= wxString_in_helper(obj1
);
1004 if (arg2
== NULL
) SWIG_fail
;
1008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1009 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1011 wxPyEndAllowThreads(__tstate
);
1012 if (PyErr_Occurred()) SWIG_fail
;
1015 resultobj
= wxPyMake_wxObject(result
);
1031 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1032 PyObject
*resultobj
;
1033 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1034 wxWindow
*arg2
= (wxWindow
*) 0 ;
1035 wxString
*arg3
= 0 ;
1037 bool temp3
= False
;
1038 PyObject
* obj0
= 0 ;
1039 PyObject
* obj1
= 0 ;
1040 PyObject
* obj2
= 0 ;
1042 (char *) "self",(char *) "parent",(char *) "name", NULL
1045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1046 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1047 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1049 arg3
= wxString_in_helper(obj2
);
1050 if (arg3
== NULL
) SWIG_fail
;
1054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1055 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1057 wxPyEndAllowThreads(__tstate
);
1058 if (PyErr_Occurred()) SWIG_fail
;
1061 resultobj
= wxPyMake_wxObject(result
);
1077 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1078 PyObject
*resultobj
;
1079 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1080 wxWindow
*arg2
= (wxWindow
*) 0 ;
1081 wxString
*arg3
= 0 ;
1083 bool temp3
= False
;
1084 PyObject
* obj0
= 0 ;
1085 PyObject
* obj1
= 0 ;
1086 PyObject
* obj2
= 0 ;
1088 (char *) "self",(char *) "parent",(char *) "name", NULL
1091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1092 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1093 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1095 arg3
= wxString_in_helper(obj2
);
1096 if (arg3
== NULL
) SWIG_fail
;
1100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1101 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1103 wxPyEndAllowThreads(__tstate
);
1104 if (PyErr_Occurred()) SWIG_fail
;
1107 resultobj
= wxPyMake_wxObject(result
);
1123 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1124 PyObject
*resultobj
;
1125 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1126 wxWindow
*arg2
= (wxWindow
*) 0 ;
1127 wxString
*arg3
= 0 ;
1129 bool temp3
= False
;
1130 PyObject
* obj0
= 0 ;
1131 PyObject
* obj1
= 0 ;
1132 PyObject
* obj2
= 0 ;
1134 (char *) "self",(char *) "parent",(char *) "name", NULL
1137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1138 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1139 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1141 arg3
= wxString_in_helper(obj2
);
1142 if (arg3
== NULL
) SWIG_fail
;
1146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1147 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1149 wxPyEndAllowThreads(__tstate
);
1150 if (PyErr_Occurred()) SWIG_fail
;
1152 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
1167 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1168 PyObject
*resultobj
;
1169 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1170 wxDialog
*arg2
= (wxDialog
*) 0 ;
1171 wxWindow
*arg3
= (wxWindow
*) 0 ;
1172 wxString
*arg4
= 0 ;
1174 bool temp4
= False
;
1175 PyObject
* obj0
= 0 ;
1176 PyObject
* obj1
= 0 ;
1177 PyObject
* obj2
= 0 ;
1178 PyObject
* obj3
= 0 ;
1180 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1184 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1185 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1186 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1188 arg4
= wxString_in_helper(obj3
);
1189 if (arg4
== NULL
) SWIG_fail
;
1193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1194 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1196 wxPyEndAllowThreads(__tstate
);
1197 if (PyErr_Occurred()) SWIG_fail
;
1199 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1214 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1215 PyObject
*resultobj
;
1216 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1217 wxWindow
*arg2
= (wxWindow
*) 0 ;
1218 wxString
*arg3
= 0 ;
1220 bool temp3
= False
;
1221 PyObject
* obj0
= 0 ;
1222 PyObject
* obj1
= 0 ;
1223 PyObject
* obj2
= 0 ;
1225 (char *) "self",(char *) "parent",(char *) "name", NULL
1228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1229 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1230 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1232 arg3
= wxString_in_helper(obj2
);
1233 if (arg3
== NULL
) SWIG_fail
;
1237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1238 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1240 wxPyEndAllowThreads(__tstate
);
1241 if (PyErr_Occurred()) SWIG_fail
;
1243 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1258 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1259 PyObject
*resultobj
;
1260 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1261 wxPanel
*arg2
= (wxPanel
*) 0 ;
1262 wxWindow
*arg3
= (wxWindow
*) 0 ;
1263 wxString
*arg4
= 0 ;
1265 bool temp4
= False
;
1266 PyObject
* obj0
= 0 ;
1267 PyObject
* obj1
= 0 ;
1268 PyObject
* obj2
= 0 ;
1269 PyObject
* obj3
= 0 ;
1271 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1275 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1276 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1277 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1279 arg4
= wxString_in_helper(obj3
);
1280 if (arg4
== NULL
) SWIG_fail
;
1284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1285 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1287 wxPyEndAllowThreads(__tstate
);
1288 if (PyErr_Occurred()) SWIG_fail
;
1290 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1305 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1306 PyObject
*resultobj
;
1307 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1308 wxWindow
*arg2
= (wxWindow
*) 0 ;
1309 wxString
*arg3
= 0 ;
1311 bool temp3
= False
;
1312 PyObject
* obj0
= 0 ;
1313 PyObject
* obj1
= 0 ;
1314 PyObject
* obj2
= 0 ;
1316 (char *) "self",(char *) "parent",(char *) "name", NULL
1319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1320 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1321 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1323 arg3
= wxString_in_helper(obj2
);
1324 if (arg3
== NULL
) SWIG_fail
;
1328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1329 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1331 wxPyEndAllowThreads(__tstate
);
1332 if (PyErr_Occurred()) SWIG_fail
;
1335 resultobj
= wxPyMake_wxObject(result
);
1351 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1352 PyObject
*resultobj
;
1353 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1354 wxFrame
*arg2
= (wxFrame
*) 0 ;
1355 wxWindow
*arg3
= (wxWindow
*) 0 ;
1356 wxString
*arg4
= 0 ;
1358 bool temp4
= False
;
1359 PyObject
* obj0
= 0 ;
1360 PyObject
* obj1
= 0 ;
1361 PyObject
* obj2
= 0 ;
1362 PyObject
* obj3
= 0 ;
1364 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1368 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1369 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1370 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1372 arg4
= wxString_in_helper(obj3
);
1373 if (arg4
== NULL
) SWIG_fail
;
1377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1378 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1380 wxPyEndAllowThreads(__tstate
);
1381 if (PyErr_Occurred()) SWIG_fail
;
1383 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1398 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1399 PyObject
*resultobj
;
1400 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1401 wxWindow
*arg2
= (wxWindow
*) 0 ;
1402 wxString
*arg3
= 0 ;
1403 wxString
*arg4
= 0 ;
1405 bool temp3
= False
;
1406 bool temp4
= False
;
1407 PyObject
* obj0
= 0 ;
1408 PyObject
* obj1
= 0 ;
1409 PyObject
* obj2
= 0 ;
1410 PyObject
* obj3
= 0 ;
1412 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1416 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1417 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1419 arg3
= wxString_in_helper(obj2
);
1420 if (arg3
== NULL
) SWIG_fail
;
1424 arg4
= wxString_in_helper(obj3
);
1425 if (arg4
== NULL
) SWIG_fail
;
1429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1430 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1432 wxPyEndAllowThreads(__tstate
);
1433 if (PyErr_Occurred()) SWIG_fail
;
1436 resultobj
= wxPyMake_wxObject(result
);
1460 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1461 PyObject
*resultobj
;
1462 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1463 wxObject
*arg2
= (wxObject
*) 0 ;
1464 wxWindow
*arg3
= (wxWindow
*) 0 ;
1465 wxString
*arg4
= 0 ;
1466 wxString
*arg5
= 0 ;
1468 bool temp4
= False
;
1469 bool temp5
= False
;
1470 PyObject
* obj0
= 0 ;
1471 PyObject
* obj1
= 0 ;
1472 PyObject
* obj2
= 0 ;
1473 PyObject
* obj3
= 0 ;
1474 PyObject
* obj4
= 0 ;
1476 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1480 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1481 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1482 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1484 arg4
= wxString_in_helper(obj3
);
1485 if (arg4
== NULL
) SWIG_fail
;
1489 arg5
= wxString_in_helper(obj4
);
1490 if (arg5
== NULL
) SWIG_fail
;
1494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1495 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1497 wxPyEndAllowThreads(__tstate
);
1498 if (PyErr_Occurred()) SWIG_fail
;
1500 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1523 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1524 PyObject
*resultobj
;
1525 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1526 wxString
*arg2
= 0 ;
1528 bool temp2
= False
;
1529 PyObject
* obj0
= 0 ;
1530 PyObject
* obj1
= 0 ;
1532 (char *) "self",(char *) "name", NULL
1535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1536 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1538 arg2
= wxString_in_helper(obj1
);
1539 if (arg2
== NULL
) SWIG_fail
;
1543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1544 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1546 wxPyEndAllowThreads(__tstate
);
1547 if (PyErr_Occurred()) SWIG_fail
;
1550 wxBitmap
* resultptr
;
1551 resultptr
= new wxBitmap((wxBitmap
&) result
);
1552 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1568 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1569 PyObject
*resultobj
;
1570 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1571 wxString
*arg2
= 0 ;
1573 bool temp2
= False
;
1574 PyObject
* obj0
= 0 ;
1575 PyObject
* obj1
= 0 ;
1577 (char *) "self",(char *) "name", NULL
1580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1581 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1583 arg2
= wxString_in_helper(obj1
);
1584 if (arg2
== NULL
) SWIG_fail
;
1588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1589 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1591 wxPyEndAllowThreads(__tstate
);
1592 if (PyErr_Occurred()) SWIG_fail
;
1596 resultptr
= new wxIcon((wxIcon
&) result
);
1597 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1613 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1614 PyObject
*resultobj
;
1615 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1616 wxString
*arg2
= 0 ;
1617 wxWindow
*arg3
= (wxWindow
*) 0 ;
1618 wxWindow
*arg4
= (wxWindow
*) NULL
;
1620 bool temp2
= False
;
1621 PyObject
* obj0
= 0 ;
1622 PyObject
* obj1
= 0 ;
1623 PyObject
* obj2
= 0 ;
1624 PyObject
* obj3
= 0 ;
1626 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1630 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1632 arg2
= wxString_in_helper(obj1
);
1633 if (arg2
== NULL
) SWIG_fail
;
1636 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1638 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1642 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1644 wxPyEndAllowThreads(__tstate
);
1645 if (PyErr_Occurred()) SWIG_fail
;
1647 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1662 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1663 PyObject
*resultobj
;
1664 wxString
*arg1
= 0 ;
1666 bool temp1
= False
;
1667 PyObject
* obj0
= 0 ;
1669 (char *) "str_id", NULL
1672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1674 arg1
= wxString_in_helper(obj0
);
1675 if (arg1
== NULL
) SWIG_fail
;
1679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1680 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1682 wxPyEndAllowThreads(__tstate
);
1683 if (PyErr_Occurred()) SWIG_fail
;
1685 resultobj
= SWIG_PyObj_FromInt((int)result
);
1700 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1701 PyObject
*resultobj
;
1702 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1704 PyObject
* obj0
= 0 ;
1706 (char *) "self", NULL
1709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1710 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1713 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1715 wxPyEndAllowThreads(__tstate
);
1716 if (PyErr_Occurred()) SWIG_fail
;
1718 resultobj
= SWIG_PyObj_FromLong((long)result
);
1725 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1726 PyObject
*resultobj
;
1727 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1733 PyObject
* obj0
= 0 ;
1734 PyObject
* obj1
= 0 ;
1735 PyObject
* obj2
= 0 ;
1736 PyObject
* obj3
= 0 ;
1737 PyObject
* obj4
= 0 ;
1739 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1743 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1745 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
1746 if (PyErr_Occurred()) SWIG_fail
;
1749 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
1750 if (PyErr_Occurred()) SWIG_fail
;
1753 arg4
= (int) SWIG_PyObj_AsInt(obj3
);
1754 if (PyErr_Occurred()) SWIG_fail
;
1757 arg5
= (int) SWIG_PyObj_AsInt(obj4
);
1758 if (PyErr_Occurred()) SWIG_fail
;
1761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1762 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1764 wxPyEndAllowThreads(__tstate
);
1765 if (PyErr_Occurred()) SWIG_fail
;
1767 resultobj
= SWIG_PyObj_FromInt((int)result
);
1774 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1775 PyObject
*resultobj
;
1776 wxXmlResource
*result
;
1781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1784 result
= (wxXmlResource
*)wxXmlResource::Get();
1786 wxPyEndAllowThreads(__tstate
);
1787 if (PyErr_Occurred()) SWIG_fail
;
1789 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1796 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1797 PyObject
*resultobj
;
1798 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1799 wxXmlResource
*result
;
1800 PyObject
* obj0
= 0 ;
1802 (char *) "res", NULL
1805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1806 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1809 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1811 wxPyEndAllowThreads(__tstate
);
1812 if (PyErr_Occurred()) SWIG_fail
;
1814 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1821 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
*resultobj
;
1823 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1825 PyObject
* obj0
= 0 ;
1827 (char *) "self", NULL
1830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1831 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1834 result
= (int)(arg1
)->GetFlags();
1836 wxPyEndAllowThreads(__tstate
);
1837 if (PyErr_Occurred()) SWIG_fail
;
1839 resultobj
= SWIG_PyObj_FromInt((int)result
);
1846 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1847 PyObject
*resultobj
;
1848 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1850 PyObject
* obj0
= 0 ;
1851 PyObject
* obj1
= 0 ;
1853 (char *) "self",(char *) "flags", NULL
1856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1857 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1859 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
1860 if (PyErr_Occurred()) SWIG_fail
;
1863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1864 (arg1
)->SetFlags(arg2
);
1866 wxPyEndAllowThreads(__tstate
);
1867 if (PyErr_Occurred()) SWIG_fail
;
1869 Py_INCREF(Py_None
); resultobj
= Py_None
;
1876 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1878 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1879 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1881 return Py_BuildValue((char *)"");
1883 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1884 PyObject
*resultobj
;
1885 wxPyXmlSubclassFactory
*result
;
1890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1893 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1895 wxPyEndAllowThreads(__tstate
);
1896 if (PyErr_Occurred()) SWIG_fail
;
1898 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1905 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1906 PyObject
*resultobj
;
1907 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1908 PyObject
*arg2
= (PyObject
*) 0 ;
1909 PyObject
*arg3
= (PyObject
*) 0 ;
1910 PyObject
* obj0
= 0 ;
1911 PyObject
* obj1
= 0 ;
1912 PyObject
* obj2
= 0 ;
1914 (char *) "self",(char *) "self",(char *) "_class", NULL
1917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1918 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1923 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1925 wxPyEndAllowThreads(__tstate
);
1926 if (PyErr_Occurred()) SWIG_fail
;
1928 Py_INCREF(Py_None
); resultobj
= Py_None
;
1935 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1937 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1938 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1940 return Py_BuildValue((char *)"");
1942 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1943 PyObject
*resultobj
;
1944 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1945 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1946 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1947 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
1948 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
1949 wxXmlProperty
*result
;
1950 bool temp1
= False
;
1951 bool temp2
= False
;
1952 PyObject
* obj0
= 0 ;
1953 PyObject
* obj1
= 0 ;
1954 PyObject
* obj2
= 0 ;
1956 (char *) "name",(char *) "value",(char *) "next", NULL
1959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1962 arg1
= wxString_in_helper(obj0
);
1963 if (arg1
== NULL
) SWIG_fail
;
1969 arg2
= wxString_in_helper(obj1
);
1970 if (arg2
== NULL
) SWIG_fail
;
1975 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1979 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
1981 wxPyEndAllowThreads(__tstate
);
1982 if (PyErr_Occurred()) SWIG_fail
;
1984 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
2007 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2008 PyObject
*resultobj
;
2009 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2011 PyObject
* obj0
= 0 ;
2013 (char *) "self", NULL
2016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2017 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2020 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2022 wxPyEndAllowThreads(__tstate
);
2023 if (PyErr_Occurred()) SWIG_fail
;
2027 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2029 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2038 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2039 PyObject
*resultobj
;
2040 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2042 PyObject
* obj0
= 0 ;
2044 (char *) "self", NULL
2047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2048 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2051 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2053 wxPyEndAllowThreads(__tstate
);
2054 if (PyErr_Occurred()) SWIG_fail
;
2058 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2060 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2069 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2070 PyObject
*resultobj
;
2071 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2072 wxXmlProperty
*result
;
2073 PyObject
* obj0
= 0 ;
2075 (char *) "self", NULL
2078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2079 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2082 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2084 wxPyEndAllowThreads(__tstate
);
2085 if (PyErr_Occurred()) SWIG_fail
;
2087 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2094 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2095 PyObject
*resultobj
;
2096 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2097 wxString
*arg2
= 0 ;
2098 bool temp2
= False
;
2099 PyObject
* obj0
= 0 ;
2100 PyObject
* obj1
= 0 ;
2102 (char *) "self",(char *) "name", NULL
2105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2106 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2108 arg2
= wxString_in_helper(obj1
);
2109 if (arg2
== NULL
) SWIG_fail
;
2113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2114 (arg1
)->SetName((wxString
const &)*arg2
);
2116 wxPyEndAllowThreads(__tstate
);
2117 if (PyErr_Occurred()) SWIG_fail
;
2119 Py_INCREF(Py_None
); resultobj
= Py_None
;
2134 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2135 PyObject
*resultobj
;
2136 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2137 wxString
*arg2
= 0 ;
2138 bool temp2
= False
;
2139 PyObject
* obj0
= 0 ;
2140 PyObject
* obj1
= 0 ;
2142 (char *) "self",(char *) "value", NULL
2145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2146 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2148 arg2
= wxString_in_helper(obj1
);
2149 if (arg2
== NULL
) SWIG_fail
;
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 (arg1
)->SetValue((wxString
const &)*arg2
);
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) SWIG_fail
;
2159 Py_INCREF(Py_None
); resultobj
= Py_None
;
2174 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2175 PyObject
*resultobj
;
2176 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2177 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2178 PyObject
* obj0
= 0 ;
2179 PyObject
* obj1
= 0 ;
2181 (char *) "self",(char *) "next", NULL
2184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2185 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2186 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 (arg1
)->SetNext(arg2
);
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) SWIG_fail
;
2194 Py_INCREF(Py_None
); resultobj
= Py_None
;
2201 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2203 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2204 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2206 return Py_BuildValue((char *)"");
2208 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2209 PyObject
*resultobj
;
2210 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2211 int arg2
= (int) 0 ;
2212 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2213 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2214 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2215 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2216 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2217 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2219 bool temp3
= False
;
2220 bool temp4
= False
;
2221 PyObject
* obj0
= 0 ;
2222 PyObject
* obj1
= 0 ;
2223 PyObject
* obj2
= 0 ;
2224 PyObject
* obj3
= 0 ;
2225 PyObject
* obj4
= 0 ;
2226 PyObject
* obj5
= 0 ;
2228 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2233 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2237 arg2
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj1
);
2238 if (PyErr_Occurred()) SWIG_fail
;
2243 arg3
= wxString_in_helper(obj2
);
2244 if (arg3
== NULL
) SWIG_fail
;
2250 arg4
= wxString_in_helper(obj3
);
2251 if (arg4
== NULL
) SWIG_fail
;
2256 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2259 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2263 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2265 wxPyEndAllowThreads(__tstate
);
2266 if (PyErr_Occurred()) SWIG_fail
;
2268 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2291 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2292 PyObject
*resultobj
;
2293 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2294 PyObject
* obj0
= 0 ;
2296 (char *) "self", NULL
2299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2300 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2305 wxPyEndAllowThreads(__tstate
);
2306 if (PyErr_Occurred()) SWIG_fail
;
2308 Py_INCREF(Py_None
); resultobj
= Py_None
;
2315 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
*resultobj
;
2318 wxString
*arg2
= 0 ;
2319 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2320 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2322 bool temp2
= False
;
2323 bool temp3
= False
;
2324 PyObject
* obj0
= 0 ;
2325 PyObject
* obj1
= 0 ;
2326 PyObject
* obj2
= 0 ;
2328 (char *) "type",(char *) "name",(char *) "content", NULL
2331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2333 arg1
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj0
);
2334 if (PyErr_Occurred()) SWIG_fail
;
2337 arg2
= wxString_in_helper(obj1
);
2338 if (arg2
== NULL
) SWIG_fail
;
2343 arg3
= wxString_in_helper(obj2
);
2344 if (arg3
== NULL
) SWIG_fail
;
2349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2350 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2352 wxPyEndAllowThreads(__tstate
);
2353 if (PyErr_Occurred()) SWIG_fail
;
2355 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2378 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2379 PyObject
*resultobj
;
2380 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2381 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2382 PyObject
* obj0
= 0 ;
2383 PyObject
* obj1
= 0 ;
2385 (char *) "self",(char *) "child", NULL
2388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2389 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2390 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2393 (arg1
)->AddChild(arg2
);
2395 wxPyEndAllowThreads(__tstate
);
2396 if (PyErr_Occurred()) SWIG_fail
;
2398 Py_INCREF(Py_None
); resultobj
= Py_None
;
2405 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2406 PyObject
*resultobj
;
2407 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2408 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2409 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2410 PyObject
* obj0
= 0 ;
2411 PyObject
* obj1
= 0 ;
2412 PyObject
* obj2
= 0 ;
2414 (char *) "self",(char *) "child",(char *) "before_node", NULL
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2418 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2419 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2420 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2423 (arg1
)->InsertChild(arg2
,arg3
);
2425 wxPyEndAllowThreads(__tstate
);
2426 if (PyErr_Occurred()) SWIG_fail
;
2428 Py_INCREF(Py_None
); resultobj
= Py_None
;
2435 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2436 PyObject
*resultobj
;
2437 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2438 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2440 PyObject
* obj0
= 0 ;
2441 PyObject
* obj1
= 0 ;
2443 (char *) "self",(char *) "child", NULL
2446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2447 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2448 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2451 result
= (bool)(arg1
)->RemoveChild(arg2
);
2453 wxPyEndAllowThreads(__tstate
);
2454 if (PyErr_Occurred()) SWIG_fail
;
2456 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2463 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2464 PyObject
*resultobj
;
2465 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2466 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2467 PyObject
* obj0
= 0 ;
2468 PyObject
* obj1
= 0 ;
2470 (char *) "self",(char *) "prop", NULL
2473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2474 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2475 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2478 (arg1
)->AddProperty(arg2
);
2480 wxPyEndAllowThreads(__tstate
);
2481 if (PyErr_Occurred()) SWIG_fail
;
2483 Py_INCREF(Py_None
); resultobj
= Py_None
;
2490 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2491 PyObject
*resultobj
;
2492 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2493 wxString
*arg2
= 0 ;
2494 wxString
*arg3
= 0 ;
2495 bool temp2
= False
;
2496 bool temp3
= False
;
2497 PyObject
* obj0
= 0 ;
2498 PyObject
* obj1
= 0 ;
2499 PyObject
* obj2
= 0 ;
2501 (char *) "self",(char *) "name",(char *) "value", NULL
2504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2505 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2507 arg2
= wxString_in_helper(obj1
);
2508 if (arg2
== NULL
) SWIG_fail
;
2512 arg3
= wxString_in_helper(obj2
);
2513 if (arg3
== NULL
) SWIG_fail
;
2517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2518 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2520 wxPyEndAllowThreads(__tstate
);
2521 if (PyErr_Occurred()) SWIG_fail
;
2523 Py_INCREF(Py_None
); resultobj
= Py_None
;
2546 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2547 PyObject
*resultobj
;
2548 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2549 wxString
*arg2
= 0 ;
2551 bool temp2
= False
;
2552 PyObject
* obj0
= 0 ;
2553 PyObject
* obj1
= 0 ;
2555 (char *) "self",(char *) "name", NULL
2558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2559 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2561 arg2
= wxString_in_helper(obj1
);
2562 if (arg2
== NULL
) SWIG_fail
;
2566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2567 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2569 wxPyEndAllowThreads(__tstate
);
2570 if (PyErr_Occurred()) SWIG_fail
;
2572 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2587 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2588 PyObject
*resultobj
;
2589 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2591 PyObject
* obj0
= 0 ;
2593 (char *) "self", NULL
2596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2597 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2600 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2602 wxPyEndAllowThreads(__tstate
);
2603 if (PyErr_Occurred()) SWIG_fail
;
2605 resultobj
= SWIG_PyObj_FromInt((int)result
);
2612 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2613 PyObject
*resultobj
;
2614 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2616 PyObject
* obj0
= 0 ;
2618 (char *) "self", NULL
2621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2622 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2625 result
= ((wxXmlNode
const *)arg1
)->GetName();
2627 wxPyEndAllowThreads(__tstate
);
2628 if (PyErr_Occurred()) SWIG_fail
;
2632 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2634 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2643 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
*resultobj
;
2645 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2647 PyObject
* obj0
= 0 ;
2649 (char *) "self", NULL
2652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2653 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2656 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2658 wxPyEndAllowThreads(__tstate
);
2659 if (PyErr_Occurred()) SWIG_fail
;
2663 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2665 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2674 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2675 PyObject
*resultobj
;
2676 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2678 PyObject
* obj0
= 0 ;
2680 (char *) "self", NULL
2683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2684 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2687 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2689 wxPyEndAllowThreads(__tstate
);
2690 if (PyErr_Occurred()) SWIG_fail
;
2692 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2699 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2700 PyObject
*resultobj
;
2701 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2703 PyObject
* obj0
= 0 ;
2705 (char *) "self", NULL
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2709 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2712 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2714 wxPyEndAllowThreads(__tstate
);
2715 if (PyErr_Occurred()) SWIG_fail
;
2717 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2724 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2725 PyObject
*resultobj
;
2726 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2728 PyObject
* obj0
= 0 ;
2730 (char *) "self", NULL
2733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2734 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2737 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2739 wxPyEndAllowThreads(__tstate
);
2740 if (PyErr_Occurred()) SWIG_fail
;
2742 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2749 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2750 PyObject
*resultobj
;
2751 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2752 wxXmlProperty
*result
;
2753 PyObject
* obj0
= 0 ;
2755 (char *) "self", NULL
2758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2759 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2762 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2764 wxPyEndAllowThreads(__tstate
);
2765 if (PyErr_Occurred()) SWIG_fail
;
2767 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2774 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2775 PyObject
*resultobj
;
2776 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2777 wxString
*arg2
= 0 ;
2778 wxString
*arg3
= 0 ;
2780 bool temp2
= False
;
2781 bool temp3
= False
;
2782 PyObject
* obj0
= 0 ;
2783 PyObject
* obj1
= 0 ;
2784 PyObject
* obj2
= 0 ;
2786 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2790 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2792 arg2
= wxString_in_helper(obj1
);
2793 if (arg2
== NULL
) SWIG_fail
;
2797 arg3
= wxString_in_helper(obj2
);
2798 if (arg3
== NULL
) SWIG_fail
;
2802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2803 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2805 wxPyEndAllowThreads(__tstate
);
2806 if (PyErr_Occurred()) SWIG_fail
;
2810 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2812 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2837 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
*resultobj
;
2839 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2840 wxString
*arg2
= 0 ;
2842 bool temp2
= False
;
2843 PyObject
* obj0
= 0 ;
2844 PyObject
* obj1
= 0 ;
2846 (char *) "self",(char *) "propName", NULL
2849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2850 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2852 arg2
= wxString_in_helper(obj1
);
2853 if (arg2
== NULL
) SWIG_fail
;
2857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2858 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2860 wxPyEndAllowThreads(__tstate
);
2861 if (PyErr_Occurred()) SWIG_fail
;
2863 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2878 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2879 PyObject
*resultobj
;
2880 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2882 PyObject
* obj0
= 0 ;
2883 PyObject
* obj1
= 0 ;
2885 (char *) "self",(char *) "type", NULL
2888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
2889 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2891 arg2
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj1
);
2892 if (PyErr_Occurred()) SWIG_fail
;
2895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2896 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2898 wxPyEndAllowThreads(__tstate
);
2899 if (PyErr_Occurred()) SWIG_fail
;
2901 Py_INCREF(Py_None
); resultobj
= Py_None
;
2908 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2909 PyObject
*resultobj
;
2910 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2911 wxString
*arg2
= 0 ;
2912 bool temp2
= False
;
2913 PyObject
* obj0
= 0 ;
2914 PyObject
* obj1
= 0 ;
2916 (char *) "self",(char *) "name", NULL
2919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2920 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2922 arg2
= wxString_in_helper(obj1
);
2923 if (arg2
== NULL
) SWIG_fail
;
2927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2928 (arg1
)->SetName((wxString
const &)*arg2
);
2930 wxPyEndAllowThreads(__tstate
);
2931 if (PyErr_Occurred()) SWIG_fail
;
2933 Py_INCREF(Py_None
); resultobj
= Py_None
;
2948 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2949 PyObject
*resultobj
;
2950 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2951 wxString
*arg2
= 0 ;
2952 bool temp2
= False
;
2953 PyObject
* obj0
= 0 ;
2954 PyObject
* obj1
= 0 ;
2956 (char *) "self",(char *) "con", NULL
2959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2960 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2962 arg2
= wxString_in_helper(obj1
);
2963 if (arg2
== NULL
) SWIG_fail
;
2967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2968 (arg1
)->SetContent((wxString
const &)*arg2
);
2970 wxPyEndAllowThreads(__tstate
);
2971 if (PyErr_Occurred()) SWIG_fail
;
2973 Py_INCREF(Py_None
); resultobj
= Py_None
;
2988 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2989 PyObject
*resultobj
;
2990 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2991 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2992 PyObject
* obj0
= 0 ;
2993 PyObject
* obj1
= 0 ;
2995 (char *) "self",(char *) "parent", NULL
2998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
2999 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3000 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3003 (arg1
)->SetParent(arg2
);
3005 wxPyEndAllowThreads(__tstate
);
3006 if (PyErr_Occurred()) SWIG_fail
;
3008 Py_INCREF(Py_None
); resultobj
= Py_None
;
3015 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3016 PyObject
*resultobj
;
3017 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3018 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3019 PyObject
* obj0
= 0 ;
3020 PyObject
* obj1
= 0 ;
3022 (char *) "self",(char *) "next", NULL
3025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3026 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3027 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3030 (arg1
)->SetNext(arg2
);
3032 wxPyEndAllowThreads(__tstate
);
3033 if (PyErr_Occurred()) SWIG_fail
;
3035 Py_INCREF(Py_None
); resultobj
= Py_None
;
3042 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
*resultobj
;
3044 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3045 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3046 PyObject
* obj0
= 0 ;
3047 PyObject
* obj1
= 0 ;
3049 (char *) "self",(char *) "child", NULL
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3053 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3054 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3057 (arg1
)->SetChildren(arg2
);
3059 wxPyEndAllowThreads(__tstate
);
3060 if (PyErr_Occurred()) SWIG_fail
;
3062 Py_INCREF(Py_None
); resultobj
= Py_None
;
3069 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3070 PyObject
*resultobj
;
3071 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3072 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3073 PyObject
* obj0
= 0 ;
3074 PyObject
* obj1
= 0 ;
3076 (char *) "self",(char *) "prop", NULL
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3080 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3081 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3084 (arg1
)->SetProperties(arg2
);
3086 wxPyEndAllowThreads(__tstate
);
3087 if (PyErr_Occurred()) SWIG_fail
;
3089 Py_INCREF(Py_None
); resultobj
= Py_None
;
3096 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3098 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3099 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3101 return Py_BuildValue((char *)"");
3103 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3104 PyObject
*resultobj
;
3105 wxString
*arg1
= 0 ;
3106 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3107 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3108 wxXmlDocument
*result
;
3109 bool temp1
= False
;
3110 bool temp2
= False
;
3111 PyObject
* obj0
= 0 ;
3112 PyObject
* obj1
= 0 ;
3114 (char *) "filename",(char *) "encoding", NULL
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3119 arg1
= wxString_in_helper(obj0
);
3120 if (arg1
== NULL
) SWIG_fail
;
3125 arg2
= wxString_in_helper(obj1
);
3126 if (arg2
== NULL
) SWIG_fail
;
3131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3132 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3134 wxPyEndAllowThreads(__tstate
);
3135 if (PyErr_Occurred()) SWIG_fail
;
3137 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3160 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
*resultobj
;
3162 wxInputStream
*arg1
= 0 ;
3163 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3164 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3165 wxXmlDocument
*result
;
3166 wxPyInputStream
*temp1
;
3168 bool temp2
= False
;
3169 PyObject
* obj0
= 0 ;
3170 PyObject
* obj1
= 0 ;
3172 (char *) "stream",(char *) "encoding", NULL
3175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3177 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3178 arg1
= temp1
->m_wxis
;
3181 PyErr_Clear(); // clear the failure of the wxPyConvert above
3182 arg1
= wxPyCBInputStream_create(obj0
, False
);
3184 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3192 arg2
= wxString_in_helper(obj1
);
3193 if (arg2
== NULL
) SWIG_fail
;
3198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3199 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3201 wxPyEndAllowThreads(__tstate
);
3202 if (PyErr_Occurred()) SWIG_fail
;
3204 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3227 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3228 PyObject
*resultobj
;
3229 wxXmlDocument
*result
;
3234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3237 result
= (wxXmlDocument
*)new wxXmlDocument();
3239 wxPyEndAllowThreads(__tstate
);
3240 if (PyErr_Occurred()) SWIG_fail
;
3242 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3249 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3250 PyObject
*resultobj
;
3251 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3252 PyObject
* obj0
= 0 ;
3254 (char *) "self", NULL
3257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3258 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3263 wxPyEndAllowThreads(__tstate
);
3264 if (PyErr_Occurred()) SWIG_fail
;
3266 Py_INCREF(Py_None
); resultobj
= Py_None
;
3273 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3274 PyObject
*resultobj
;
3275 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3276 wxString
*arg2
= 0 ;
3277 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3278 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3280 bool temp2
= False
;
3281 bool temp3
= False
;
3282 PyObject
* obj0
= 0 ;
3283 PyObject
* obj1
= 0 ;
3284 PyObject
* obj2
= 0 ;
3286 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3290 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3292 arg2
= wxString_in_helper(obj1
);
3293 if (arg2
== NULL
) SWIG_fail
;
3298 arg3
= wxString_in_helper(obj2
);
3299 if (arg3
== NULL
) SWIG_fail
;
3304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3305 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3307 wxPyEndAllowThreads(__tstate
);
3308 if (PyErr_Occurred()) SWIG_fail
;
3310 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3333 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3334 PyObject
*resultobj
;
3335 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3336 wxInputStream
*arg2
= 0 ;
3337 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3338 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3340 wxPyInputStream
*temp2
;
3342 bool temp3
= False
;
3343 PyObject
* obj0
= 0 ;
3344 PyObject
* obj1
= 0 ;
3345 PyObject
* obj2
= 0 ;
3347 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3351 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3353 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3354 arg2
= temp2
->m_wxis
;
3357 PyErr_Clear(); // clear the failure of the wxPyConvert above
3358 arg2
= wxPyCBInputStream_create(obj1
, False
);
3360 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3368 arg3
= wxString_in_helper(obj2
);
3369 if (arg3
== NULL
) SWIG_fail
;
3374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3375 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3377 wxPyEndAllowThreads(__tstate
);
3378 if (PyErr_Occurred()) SWIG_fail
;
3380 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3403 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
*resultobj
;
3405 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3406 wxString
*arg2
= 0 ;
3408 bool temp2
= False
;
3409 PyObject
* obj0
= 0 ;
3410 PyObject
* obj1
= 0 ;
3412 (char *) "self",(char *) "filename", NULL
3415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3416 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3418 arg2
= wxString_in_helper(obj1
);
3419 if (arg2
== NULL
) SWIG_fail
;
3423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3424 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3426 wxPyEndAllowThreads(__tstate
);
3427 if (PyErr_Occurred()) SWIG_fail
;
3429 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3444 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3445 PyObject
*resultobj
;
3446 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3447 wxOutputStream
*arg2
= 0 ;
3449 PyObject
* obj0
= 0 ;
3450 PyObject
* obj1
= 0 ;
3452 (char *) "self",(char *) "stream", NULL
3455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3456 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3457 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3459 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3463 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3465 wxPyEndAllowThreads(__tstate
);
3466 if (PyErr_Occurred()) SWIG_fail
;
3468 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3475 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3476 PyObject
*resultobj
;
3477 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3479 PyObject
* obj0
= 0 ;
3481 (char *) "self", NULL
3484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3485 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3488 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3490 wxPyEndAllowThreads(__tstate
);
3491 if (PyErr_Occurred()) SWIG_fail
;
3493 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3500 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3501 PyObject
*resultobj
;
3502 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3504 PyObject
* obj0
= 0 ;
3506 (char *) "self", NULL
3509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3510 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3513 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3515 wxPyEndAllowThreads(__tstate
);
3516 if (PyErr_Occurred()) SWIG_fail
;
3518 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3525 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3526 PyObject
*resultobj
;
3527 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3529 PyObject
* obj0
= 0 ;
3531 (char *) "self", NULL
3534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3535 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3538 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3540 wxPyEndAllowThreads(__tstate
);
3541 if (PyErr_Occurred()) SWIG_fail
;
3545 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3547 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3556 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3557 PyObject
*resultobj
;
3558 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3560 PyObject
* obj0
= 0 ;
3562 (char *) "self", NULL
3565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3566 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3569 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3571 wxPyEndAllowThreads(__tstate
);
3572 if (PyErr_Occurred()) SWIG_fail
;
3576 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3578 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3587 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3588 PyObject
*resultobj
;
3589 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3590 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3591 PyObject
* obj0
= 0 ;
3592 PyObject
* obj1
= 0 ;
3594 (char *) "self",(char *) "node", NULL
3597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3598 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3599 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3602 (arg1
)->SetRoot(arg2
);
3604 wxPyEndAllowThreads(__tstate
);
3605 if (PyErr_Occurred()) SWIG_fail
;
3607 Py_INCREF(Py_None
); resultobj
= Py_None
;
3614 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3615 PyObject
*resultobj
;
3616 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3617 wxString
*arg2
= 0 ;
3618 bool temp2
= False
;
3619 PyObject
* obj0
= 0 ;
3620 PyObject
* obj1
= 0 ;
3622 (char *) "self",(char *) "version", NULL
3625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3626 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3628 arg2
= wxString_in_helper(obj1
);
3629 if (arg2
== NULL
) SWIG_fail
;
3633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3634 (arg1
)->SetVersion((wxString
const &)*arg2
);
3636 wxPyEndAllowThreads(__tstate
);
3637 if (PyErr_Occurred()) SWIG_fail
;
3639 Py_INCREF(Py_None
); resultobj
= Py_None
;
3654 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3655 PyObject
*resultobj
;
3656 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3657 wxString
*arg2
= 0 ;
3658 bool temp2
= False
;
3659 PyObject
* obj0
= 0 ;
3660 PyObject
* obj1
= 0 ;
3662 (char *) "self",(char *) "encoding", NULL
3665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3666 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3668 arg2
= wxString_in_helper(obj1
);
3669 if (arg2
== NULL
) SWIG_fail
;
3673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3674 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3676 wxPyEndAllowThreads(__tstate
);
3677 if (PyErr_Occurred()) SWIG_fail
;
3679 Py_INCREF(Py_None
); resultobj
= Py_None
;
3694 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3696 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3697 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3699 return Py_BuildValue((char *)"");
3701 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3702 PyObject
*resultobj
;
3703 wxPyXmlResourceHandler
*result
;
3708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3711 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3713 wxPyEndAllowThreads(__tstate
);
3714 if (PyErr_Occurred()) SWIG_fail
;
3716 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3723 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3724 PyObject
*resultobj
;
3725 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3726 PyObject
*arg2
= (PyObject
*) 0 ;
3727 PyObject
*arg3
= (PyObject
*) 0 ;
3728 PyObject
* obj0
= 0 ;
3729 PyObject
* obj1
= 0 ;
3730 PyObject
* obj2
= 0 ;
3732 (char *) "self",(char *) "self",(char *) "_class", NULL
3735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3736 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3741 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3743 wxPyEndAllowThreads(__tstate
);
3744 if (PyErr_Occurred()) SWIG_fail
;
3746 Py_INCREF(Py_None
); resultobj
= Py_None
;
3753 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3754 PyObject
*resultobj
;
3755 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3756 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3757 wxObject
*arg3
= (wxObject
*) 0 ;
3758 wxObject
*arg4
= (wxObject
*) 0 ;
3760 PyObject
* obj0
= 0 ;
3761 PyObject
* obj1
= 0 ;
3762 PyObject
* obj2
= 0 ;
3763 PyObject
* obj3
= 0 ;
3765 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3769 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3770 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3771 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3772 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3775 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3777 wxPyEndAllowThreads(__tstate
);
3778 if (PyErr_Occurred()) SWIG_fail
;
3781 resultobj
= wxPyMake_wxObject(result
);
3789 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3790 PyObject
*resultobj
;
3791 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3792 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3793 PyObject
* obj0
= 0 ;
3794 PyObject
* obj1
= 0 ;
3796 (char *) "self",(char *) "res", NULL
3799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3800 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3801 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3804 (arg1
)->SetParentResource(arg2
);
3806 wxPyEndAllowThreads(__tstate
);
3807 if (PyErr_Occurred()) SWIG_fail
;
3809 Py_INCREF(Py_None
); resultobj
= Py_None
;
3816 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3817 PyObject
*resultobj
;
3818 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3819 wxXmlResource
*result
;
3820 PyObject
* obj0
= 0 ;
3822 (char *) "self", NULL
3825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3826 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3829 result
= (wxXmlResource
*)(arg1
)->GetResource();
3831 wxPyEndAllowThreads(__tstate
);
3832 if (PyErr_Occurred()) SWIG_fail
;
3834 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3841 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3842 PyObject
*resultobj
;
3843 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3845 PyObject
* obj0
= 0 ;
3847 (char *) "self", NULL
3850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3851 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3854 result
= (wxXmlNode
*)(arg1
)->GetNode();
3856 wxPyEndAllowThreads(__tstate
);
3857 if (PyErr_Occurred()) SWIG_fail
;
3859 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3866 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3867 PyObject
*resultobj
;
3868 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3870 PyObject
* obj0
= 0 ;
3872 (char *) "self", NULL
3875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3876 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3879 result
= (arg1
)->GetClass();
3881 wxPyEndAllowThreads(__tstate
);
3882 if (PyErr_Occurred()) SWIG_fail
;
3886 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3888 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3897 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3898 PyObject
*resultobj
;
3899 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3901 PyObject
* obj0
= 0 ;
3903 (char *) "self", NULL
3906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3907 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3910 result
= (wxObject
*)(arg1
)->GetParent();
3912 wxPyEndAllowThreads(__tstate
);
3913 if (PyErr_Occurred()) SWIG_fail
;
3916 resultobj
= wxPyMake_wxObject(result
);
3924 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3925 PyObject
*resultobj
;
3926 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3928 PyObject
* obj0
= 0 ;
3930 (char *) "self", NULL
3933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3934 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3937 result
= (wxObject
*)(arg1
)->GetInstance();
3939 wxPyEndAllowThreads(__tstate
);
3940 if (PyErr_Occurred()) SWIG_fail
;
3943 resultobj
= wxPyMake_wxObject(result
);
3951 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3952 PyObject
*resultobj
;
3953 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3955 PyObject
* obj0
= 0 ;
3957 (char *) "self", NULL
3960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3961 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3964 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
3966 wxPyEndAllowThreads(__tstate
);
3967 if (PyErr_Occurred()) SWIG_fail
;
3970 resultobj
= wxPyMake_wxObject(result
);
3978 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3979 PyObject
*resultobj
;
3980 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3982 PyObject
* obj0
= 0 ;
3984 (char *) "self", NULL
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
3988 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3991 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
3993 wxPyEndAllowThreads(__tstate
);
3994 if (PyErr_Occurred()) SWIG_fail
;
3997 resultobj
= wxPyMake_wxObject(result
);
4005 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4006 PyObject
*resultobj
;
4007 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4008 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4009 wxString
*arg3
= 0 ;
4011 bool temp3
= False
;
4012 PyObject
* obj0
= 0 ;
4013 PyObject
* obj1
= 0 ;
4014 PyObject
* obj2
= 0 ;
4016 (char *) "self",(char *) "node",(char *) "classname", NULL
4019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4020 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4021 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4023 arg3
= wxString_in_helper(obj2
);
4024 if (arg3
== NULL
) SWIG_fail
;
4028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4029 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4031 wxPyEndAllowThreads(__tstate
);
4032 if (PyErr_Occurred()) SWIG_fail
;
4034 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4049 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4050 PyObject
*resultobj
;
4051 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4052 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4054 PyObject
* obj0
= 0 ;
4055 PyObject
* obj1
= 0 ;
4057 (char *) "self",(char *) "node", NULL
4060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4061 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4062 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4065 result
= (arg1
)->GetNodeContent(arg2
);
4067 wxPyEndAllowThreads(__tstate
);
4068 if (PyErr_Occurred()) SWIG_fail
;
4072 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4074 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4083 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4084 PyObject
*resultobj
;
4085 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4086 wxString
*arg2
= 0 ;
4088 bool temp2
= False
;
4089 PyObject
* obj0
= 0 ;
4090 PyObject
* obj1
= 0 ;
4092 (char *) "self",(char *) "param", NULL
4095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4096 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4098 arg2
= wxString_in_helper(obj1
);
4099 if (arg2
== NULL
) SWIG_fail
;
4103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4104 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4106 wxPyEndAllowThreads(__tstate
);
4107 if (PyErr_Occurred()) SWIG_fail
;
4109 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4124 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4125 PyObject
*resultobj
;
4126 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4127 wxString
*arg2
= 0 ;
4129 bool temp2
= False
;
4130 PyObject
* obj0
= 0 ;
4131 PyObject
* obj1
= 0 ;
4133 (char *) "self",(char *) "param", NULL
4136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4137 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4139 arg2
= wxString_in_helper(obj1
);
4140 if (arg2
== NULL
) SWIG_fail
;
4144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4145 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4147 wxPyEndAllowThreads(__tstate
);
4148 if (PyErr_Occurred()) SWIG_fail
;
4150 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
4165 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4166 PyObject
*resultobj
;
4167 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4168 wxString
*arg2
= 0 ;
4170 bool temp2
= False
;
4171 PyObject
* obj0
= 0 ;
4172 PyObject
* obj1
= 0 ;
4174 (char *) "self",(char *) "param", NULL
4177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4178 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4180 arg2
= wxString_in_helper(obj1
);
4181 if (arg2
== NULL
) SWIG_fail
;
4185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4186 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4188 wxPyEndAllowThreads(__tstate
);
4189 if (PyErr_Occurred()) SWIG_fail
;
4193 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4195 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4212 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4213 PyObject
*resultobj
;
4214 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4215 wxString
*arg2
= 0 ;
4217 bool temp2
= False
;
4218 PyObject
* obj0
= 0 ;
4219 PyObject
* obj1
= 0 ;
4220 PyObject
* obj2
= 0 ;
4222 (char *) "self",(char *) "name",(char *) "value", NULL
4225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4226 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4228 arg2
= wxString_in_helper(obj1
);
4229 if (arg2
== NULL
) SWIG_fail
;
4233 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4234 if (PyErr_Occurred()) SWIG_fail
;
4237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4238 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4240 wxPyEndAllowThreads(__tstate
);
4241 if (PyErr_Occurred()) SWIG_fail
;
4243 Py_INCREF(Py_None
); resultobj
= Py_None
;
4258 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4259 PyObject
*resultobj
;
4260 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4261 PyObject
* obj0
= 0 ;
4263 (char *) "self", NULL
4266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4267 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4270 (arg1
)->AddWindowStyles();
4272 wxPyEndAllowThreads(__tstate
);
4273 if (PyErr_Occurred()) SWIG_fail
;
4275 Py_INCREF(Py_None
); resultobj
= Py_None
;
4282 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4283 PyObject
*resultobj
;
4284 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4285 wxString
const &arg2_defvalue
= wxPyStyleString
;
4286 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4287 int arg3
= (int) 0 ;
4289 bool temp2
= False
;
4290 PyObject
* obj0
= 0 ;
4291 PyObject
* obj1
= 0 ;
4292 PyObject
* obj2
= 0 ;
4294 (char *) "self",(char *) "param",(char *) "defaults", NULL
4297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4298 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4301 arg2
= wxString_in_helper(obj1
);
4302 if (arg2
== NULL
) SWIG_fail
;
4308 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4309 if (PyErr_Occurred()) SWIG_fail
;
4313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4314 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4316 wxPyEndAllowThreads(__tstate
);
4317 if (PyErr_Occurred()) SWIG_fail
;
4319 resultobj
= SWIG_PyObj_FromInt((int)result
);
4334 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4335 PyObject
*resultobj
;
4336 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4337 wxString
*arg2
= 0 ;
4338 bool arg3
= (bool) True
;
4340 bool temp2
= False
;
4341 PyObject
* obj0
= 0 ;
4342 PyObject
* obj1
= 0 ;
4343 PyObject
* obj2
= 0 ;
4345 (char *) "self",(char *) "param",(char *) "translate", NULL
4348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4349 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4351 arg2
= wxString_in_helper(obj1
);
4352 if (arg2
== NULL
) SWIG_fail
;
4357 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4358 if (PyErr_Occurred()) SWIG_fail
;
4362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4363 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4365 wxPyEndAllowThreads(__tstate
);
4366 if (PyErr_Occurred()) SWIG_fail
;
4370 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4372 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4389 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4390 PyObject
*resultobj
;
4391 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4393 PyObject
* obj0
= 0 ;
4395 (char *) "self", NULL
4398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4399 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4402 result
= (int)(arg1
)->GetID();
4404 wxPyEndAllowThreads(__tstate
);
4405 if (PyErr_Occurred()) SWIG_fail
;
4407 resultobj
= SWIG_PyObj_FromInt((int)result
);
4414 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4415 PyObject
*resultobj
;
4416 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4418 PyObject
* obj0
= 0 ;
4420 (char *) "self", NULL
4423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4424 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4427 result
= (arg1
)->GetName();
4429 wxPyEndAllowThreads(__tstate
);
4430 if (PyErr_Occurred()) SWIG_fail
;
4434 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4436 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4445 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4446 PyObject
*resultobj
;
4447 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4448 wxString
*arg2
= 0 ;
4449 bool arg3
= (bool) False
;
4451 bool temp2
= False
;
4452 PyObject
* obj0
= 0 ;
4453 PyObject
* obj1
= 0 ;
4454 PyObject
* obj2
= 0 ;
4456 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4460 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4462 arg2
= wxString_in_helper(obj1
);
4463 if (arg2
== NULL
) SWIG_fail
;
4468 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4469 if (PyErr_Occurred()) SWIG_fail
;
4473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4474 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4476 wxPyEndAllowThreads(__tstate
);
4477 if (PyErr_Occurred()) SWIG_fail
;
4479 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4494 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4495 PyObject
*resultobj
;
4496 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4497 wxString
*arg2
= 0 ;
4498 long arg3
= (long) 0 ;
4500 bool temp2
= False
;
4501 PyObject
* obj0
= 0 ;
4502 PyObject
* obj1
= 0 ;
4503 PyObject
* obj2
= 0 ;
4505 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4509 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4511 arg2
= wxString_in_helper(obj1
);
4512 if (arg2
== NULL
) SWIG_fail
;
4517 arg3
= (long) SWIG_PyObj_AsLong(obj2
);
4518 if (PyErr_Occurred()) SWIG_fail
;
4522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4523 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4525 wxPyEndAllowThreads(__tstate
);
4526 if (PyErr_Occurred()) SWIG_fail
;
4528 resultobj
= SWIG_PyObj_FromLong((long)result
);
4543 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4544 PyObject
*resultobj
;
4545 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4546 wxString
*arg2
= 0 ;
4548 bool temp2
= False
;
4549 PyObject
* obj0
= 0 ;
4550 PyObject
* obj1
= 0 ;
4552 (char *) "self",(char *) "param", NULL
4555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4556 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4558 arg2
= wxString_in_helper(obj1
);
4559 if (arg2
== NULL
) SWIG_fail
;
4563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4564 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4566 wxPyEndAllowThreads(__tstate
);
4567 if (PyErr_Occurred()) SWIG_fail
;
4570 wxColour
* resultptr
;
4571 resultptr
= new wxColour((wxColour
&) result
);
4572 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4588 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4589 PyObject
*resultobj
;
4590 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4591 wxString
const &arg2_defvalue
= wxPySizeString
;
4592 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4594 bool temp2
= False
;
4595 PyObject
* obj0
= 0 ;
4596 PyObject
* obj1
= 0 ;
4598 (char *) "self",(char *) "param", NULL
4601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4602 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4605 arg2
= wxString_in_helper(obj1
);
4606 if (arg2
== NULL
) SWIG_fail
;
4611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4612 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4614 wxPyEndAllowThreads(__tstate
);
4615 if (PyErr_Occurred()) SWIG_fail
;
4619 resultptr
= new wxSize((wxSize
&) result
);
4620 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4636 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4637 PyObject
*resultobj
;
4638 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4639 wxString
const &arg2_defvalue
= wxPyPosString
;
4640 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4642 bool temp2
= False
;
4643 PyObject
* obj0
= 0 ;
4644 PyObject
* obj1
= 0 ;
4646 (char *) "self",(char *) "param", NULL
4649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4650 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4653 arg2
= wxString_in_helper(obj1
);
4654 if (arg2
== NULL
) SWIG_fail
;
4659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4660 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4662 wxPyEndAllowThreads(__tstate
);
4663 if (PyErr_Occurred()) SWIG_fail
;
4666 wxPoint
* resultptr
;
4667 resultptr
= new wxPoint((wxPoint
&) result
);
4668 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4684 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4685 PyObject
*resultobj
;
4686 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4687 wxString
*arg2
= 0 ;
4688 int arg3
= (int) 0 ;
4690 bool temp2
= False
;
4691 PyObject
* obj0
= 0 ;
4692 PyObject
* obj1
= 0 ;
4693 PyObject
* obj2
= 0 ;
4695 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4699 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4701 arg2
= wxString_in_helper(obj1
);
4702 if (arg2
== NULL
) SWIG_fail
;
4707 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4708 if (PyErr_Occurred()) SWIG_fail
;
4712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4713 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4715 wxPyEndAllowThreads(__tstate
);
4716 if (PyErr_Occurred()) SWIG_fail
;
4718 resultobj
= SWIG_PyObj_FromInt((int)result
);
4733 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4734 PyObject
*resultobj
;
4735 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4736 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4737 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4738 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4739 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4740 wxSize arg4
= (wxSize
) wxDefaultSize
;
4742 bool temp2
= False
;
4744 PyObject
* obj0
= 0 ;
4745 PyObject
* obj1
= 0 ;
4746 PyObject
* obj2
= 0 ;
4747 PyObject
* obj3
= 0 ;
4749 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4753 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4756 arg2
= wxString_in_helper(obj1
);
4757 if (arg2
== NULL
) SWIG_fail
;
4762 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4764 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4768 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4773 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4775 wxPyEndAllowThreads(__tstate
);
4776 if (PyErr_Occurred()) SWIG_fail
;
4779 wxBitmap
* resultptr
;
4780 resultptr
= new wxBitmap((wxBitmap
&) result
);
4781 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4797 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4798 PyObject
*resultobj
;
4799 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4800 wxString
const &arg2_defvalue
= wxPyIconString
;
4801 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4802 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4803 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4804 wxSize arg4
= (wxSize
) wxDefaultSize
;
4806 bool temp2
= False
;
4808 PyObject
* obj0
= 0 ;
4809 PyObject
* obj1
= 0 ;
4810 PyObject
* obj2
= 0 ;
4811 PyObject
* obj3
= 0 ;
4813 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4817 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4820 arg2
= wxString_in_helper(obj1
);
4821 if (arg2
== NULL
) SWIG_fail
;
4826 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4828 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4832 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4837 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4839 wxPyEndAllowThreads(__tstate
);
4840 if (PyErr_Occurred()) SWIG_fail
;
4844 resultptr
= new wxIcon((wxIcon
&) result
);
4845 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4861 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4862 PyObject
*resultobj
;
4863 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4864 wxString
const &arg2_defvalue
= wxPyFontString
;
4865 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4867 bool temp2
= False
;
4868 PyObject
* obj0
= 0 ;
4869 PyObject
* obj1
= 0 ;
4871 (char *) "self",(char *) "param", NULL
4874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4875 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4878 arg2
= wxString_in_helper(obj1
);
4879 if (arg2
== NULL
) SWIG_fail
;
4884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4885 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4887 wxPyEndAllowThreads(__tstate
);
4888 if (PyErr_Occurred()) SWIG_fail
;
4892 resultptr
= new wxFont((wxFont
&) result
);
4893 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4909 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4910 PyObject
*resultobj
;
4911 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4912 wxWindow
*arg2
= (wxWindow
*) 0 ;
4913 PyObject
* obj0
= 0 ;
4914 PyObject
* obj1
= 0 ;
4916 (char *) "self",(char *) "wnd", NULL
4919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4920 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4921 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4924 (arg1
)->SetupWindow(arg2
);
4926 wxPyEndAllowThreads(__tstate
);
4927 if (PyErr_Occurred()) SWIG_fail
;
4929 Py_INCREF(Py_None
); resultobj
= Py_None
;
4936 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4937 PyObject
*resultobj
;
4938 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4939 wxObject
*arg2
= (wxObject
*) 0 ;
4940 bool arg3
= (bool) False
;
4941 PyObject
* obj0
= 0 ;
4942 PyObject
* obj1
= 0 ;
4943 PyObject
* obj2
= 0 ;
4945 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4949 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4950 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4953 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4954 if (PyErr_Occurred()) SWIG_fail
;
4958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4959 (arg1
)->CreateChildren(arg2
,arg3
);
4961 wxPyEndAllowThreads(__tstate
);
4962 if (PyErr_Occurred()) SWIG_fail
;
4964 Py_INCREF(Py_None
); resultobj
= Py_None
;
4971 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4972 PyObject
*resultobj
;
4973 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4974 wxObject
*arg2
= (wxObject
*) 0 ;
4975 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4976 PyObject
* obj0
= 0 ;
4977 PyObject
* obj1
= 0 ;
4978 PyObject
* obj2
= 0 ;
4980 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4984 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4985 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4987 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4991 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
4993 wxPyEndAllowThreads(__tstate
);
4994 if (PyErr_Occurred()) SWIG_fail
;
4996 Py_INCREF(Py_None
); resultobj
= Py_None
;
5003 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5004 PyObject
*resultobj
;
5005 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5006 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5007 wxObject
*arg3
= (wxObject
*) 0 ;
5008 wxObject
*arg4
= (wxObject
*) NULL
;
5010 PyObject
* obj0
= 0 ;
5011 PyObject
* obj1
= 0 ;
5012 PyObject
* obj2
= 0 ;
5013 PyObject
* obj3
= 0 ;
5015 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5019 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5020 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5021 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5023 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5027 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5029 wxPyEndAllowThreads(__tstate
);
5030 if (PyErr_Occurred()) SWIG_fail
;
5033 resultobj
= wxPyMake_wxObject(result
);
5041 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5042 PyObject
*resultobj
;
5043 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5044 wxFileSystem
*result
;
5045 PyObject
* obj0
= 0 ;
5047 (char *) "self", NULL
5050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5051 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5055 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5056 result
= (wxFileSystem
*) &_result_ref
;
5059 wxPyEndAllowThreads(__tstate
);
5060 if (PyErr_Occurred()) SWIG_fail
;
5062 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
5069 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5071 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5072 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5074 return Py_BuildValue((char *)"");
5076 static PyMethodDef SwigMethods
[] = {
5077 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5078 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5079 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5080 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5081 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5082 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5083 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5084 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5085 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5086 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5087 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5088 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5089 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5090 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5091 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5092 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5093 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5094 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5095 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5096 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5097 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5098 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5099 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5100 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5101 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5102 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5103 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5104 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5105 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5106 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5107 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5108 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5109 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5110 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5111 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5112 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5113 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5114 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5115 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5116 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5117 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5118 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5119 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5120 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5121 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5122 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5123 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5124 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5125 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5126 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5127 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5128 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5129 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5130 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5131 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5132 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5133 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5134 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5135 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5136 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5137 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5138 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5139 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5140 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5141 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5142 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5143 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5144 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5145 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5146 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5147 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5148 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5149 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5150 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5151 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5152 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5153 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5154 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5155 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5156 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5157 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5158 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5159 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5160 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5161 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5162 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5163 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5164 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5165 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5166 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5167 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5168 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5169 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5170 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5171 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5172 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5173 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5174 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5175 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5176 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5177 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5178 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5179 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5180 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5181 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5182 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5183 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5184 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5185 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5186 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5187 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5188 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5189 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5190 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5191 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5192 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5193 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5194 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5195 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5196 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5197 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5198 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5199 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5204 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5206 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5207 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5209 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5210 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5212 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5213 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5215 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5216 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5218 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5219 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5221 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5222 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5224 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5225 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5227 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5228 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5230 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5231 return (void *)((wxObject
*) ((wxSizer
*) x
));
5233 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5234 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5236 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5237 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5239 static void *_p_wxEventTo_p_wxObject(void *x
) {
5240 return (void *)((wxObject
*) ((wxEvent
*) x
));
5242 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5243 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5245 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5246 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5248 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5249 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5251 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5252 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5254 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5255 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5257 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5258 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5260 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5261 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5263 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5264 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5266 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5267 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5269 static void *_p_wxControlTo_p_wxObject(void *x
) {
5270 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5272 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5273 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5275 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5276 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5278 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5279 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5281 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5282 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5284 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5285 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5287 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5288 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5290 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5291 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5293 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5294 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5296 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5297 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5299 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5300 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5302 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5303 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5305 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5306 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5308 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5309 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5311 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5312 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5314 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5315 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5317 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5318 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5320 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5321 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5323 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5324 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5326 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5327 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5329 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5330 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5332 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5333 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5335 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5336 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5338 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5339 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5341 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5342 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5344 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5345 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5347 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5348 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5350 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5351 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5353 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5354 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5356 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5357 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5359 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5360 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5362 static void *_p_wxImageTo_p_wxObject(void *x
) {
5363 return (void *)((wxObject
*) ((wxImage
*) x
));
5365 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5366 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5368 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5369 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5371 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5372 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5374 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5375 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5377 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5378 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5380 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5381 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5383 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5384 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5386 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5387 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5389 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5390 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5392 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5393 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5395 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5396 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5398 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5399 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5401 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5402 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5404 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5405 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5407 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5408 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5410 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5411 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5413 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5414 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5416 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5417 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5419 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5420 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5422 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5423 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5425 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5426 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5428 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5429 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5431 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5432 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5434 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5435 return (void *)((wxWindow
*) ((wxControl
*) x
));
5437 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5438 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5440 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5441 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5443 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5444 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5445 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
},{"_p_wxEvent", _p_wxEventTo_p_wxObject
},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
},{"_p_wxControl", _p_wxControlTo_p_wxObject
},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
},{"_p_wxImage", _p_wxImageTo_p_wxObject
},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
},{"_p_wxObject"},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
},{0}};
5446 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5447 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5448 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
},{0}};
5449 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5450 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5451 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5452 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
5453 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5454 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5455 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5456 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5457 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5458 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5459 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5460 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5461 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5462 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5463 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5464 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5466 static swig_type_info
*swig_types_initial
[] = {
5473 _swigt__p_wxArtClient
,
5475 _swigt__p_wxPyXmlSubclassFactory
,
5478 _swigt__p_wxXmlNode
,
5479 _swigt__p_wxInputStream
,
5480 _swigt__p_wxOutputStream
,
5481 _swigt__p_wxPyXmlResourceHandler
,
5482 _swigt__p_wxFileSystem
,
5483 _swigt__p_wxXmlProperty
,
5485 _swigt__p_wxXmlResource
,
5486 _swigt__p_wxXmlDocument
,
5493 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5495 static swig_const_info swig_const_table
[] = {
5505 SWIGEXPORT(void) SWIG_init(void) {
5506 static PyObject
*SWIG_globals
= 0;
5507 static int typeinit
= 0;
5510 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5511 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5512 d
= PyModule_GetDict(m
);
5515 for (i
= 0; swig_types_initial
[i
]; i
++) {
5516 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5520 SWIG_InstallConstants(d
,swig_const_table
);
5522 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5523 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5524 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5525 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5526 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5527 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5528 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5529 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5530 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5531 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5532 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5533 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5534 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_PyObj_FromInt((int)wxXRC_USE_LOCALE
));
5535 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_PyObj_FromInt((int)wxXRC_NO_SUBCLASSING
));
5536 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_ELEMENT_NODE
));
5537 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_PyObj_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5538 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_PyObj_FromInt((int)wxXML_TEXT_NODE
));
5539 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_PyObj_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5540 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_PyObj_FromInt((int)wxXML_ENTITY_REF_NODE
));
5541 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_PyObj_FromInt((int)wxXML_ENTITY_NODE
));
5542 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_PyObj_FromInt((int)wxXML_PI_NODE
));
5543 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_COMMENT_NODE
));
5544 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_NODE
));
5545 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5546 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5547 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_PyObj_FromInt((int)wxXML_NOTATION_NODE
));
5548 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5551 wxXmlInitResourceModule();
5552 wxXmlResource::Get()->InitAllHandlers();