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
50 /***********************************************************************
51 * common.swg for wxPython
53 * Include only the function prototypes and such from SWIG's common.swg,
54 * but not the runtime functions themselves. This helps keep the
55 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 ************************************************************************/
62 #if defined(_WIN32) || defined(__WIN32__)
63 # if defined(_MSC_VER)
64 # if defined(STATIC_LINKED)
65 # define SWIGEXPORT(a) a
66 # define SWIGIMPORT(a) extern a
68 # define SWIGEXPORT(a) __declspec(dllexport) a
69 # define SWIGIMPORT(a) extern a
72 # if defined(__BORLANDC__)
73 # define SWIGEXPORT(a) a _export
74 # define SWIGIMPORT(a) a _export
76 # define SWIGEXPORT(a) a
77 # define SWIGIMPORT(a) a
81 # define SWIGEXPORT(a) a
82 # define SWIGIMPORT(a) a
86 #define SWIGRUNTIME(a) SWIGEXPORT(a)
88 #define SWIGRUNTIME(a) static a
96 typedef void *(*swig_converter_func
)(void *);
97 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
99 typedef struct swig_type_info
{
101 swig_converter_func converter
;
104 swig_dycast_func dcast
;
105 struct swig_type_info
*next
;
106 struct swig_type_info
*prev
;
110 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
112 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
113 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
114 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
115 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
116 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
124 /***********************************************************************
125 * pyrun.swg for wxPython
127 * Include only the function prototypes and such from SWIG's pyrun.swg,
128 * but not the runtime functions themselves. This helps keep the
129 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 ************************************************************************/
141 #define SWIG_PY_INT 1
142 #define SWIG_PY_FLOAT 2
143 #define SWIG_PY_STRING 3
144 #define SWIG_PY_POINTER 4
145 #define SWIG_PY_BINARY 5
147 /* Flags for pointer conversion */
149 #define SWIG_POINTER_EXCEPTION 0x1
150 #define SWIG_POINTER_DISOWN 0x2
152 /* Exception handling in wrappers */
153 #define SWIG_fail goto fail
155 /* Constant information structure */
156 typedef struct swig_const_info
{
162 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_PackData(c, ptr, sz) \
183 SWIG_Python_PackData(c, ptr, sz)
184 #define SWIG_UnpackData(c, ptr, sz) \
185 SWIG_Python_UnpackData(c, ptr, sz)
186 #define SWIG_NewPackedObj(ptr, sz, type) \
187 SWIG_Python_NewPackedObj(ptr, sz, type)
188 #define SWIG_InstallConstants(d, constants) \
189 SWIG_Python_InstallConstants(d, constants)
192 SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
193 SWIGEXPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
194 SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
196 SWIGEXPORT(PyObject
*) SWIG_Python_newvarlink(void);
197 SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
198 SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
199 SWIGEXPORT(char *) SWIG_Python_PackData(char *c
, void *, int);
200 SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c
, void *, int);
201 SWIGEXPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
202 SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
205 /* Contract support */
207 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
216 /* -------- TYPES TABLE (BEGIN) -------- */
218 #define SWIGTYPE_p_wxFrame swig_types[0]
219 #define SWIGTYPE_p_wxIcon swig_types[1]
220 #define SWIGTYPE_p_wxObject swig_types[2]
221 #define SWIGTYPE_p_wxDialog swig_types[3]
222 #define SWIGTYPE_p_wxColour swig_types[4]
223 #define SWIGTYPE_p_wxWindow swig_types[5]
224 #define SWIGTYPE_p_wxArtClient swig_types[6]
225 #define SWIGTYPE_p_wxBitmap swig_types[7]
226 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
227 #define SWIGTYPE_p_wxPoint swig_types[9]
228 #define SWIGTYPE_p_wxXmlNode swig_types[10]
229 #define SWIGTYPE_p_wxInputStream swig_types[11]
230 #define SWIGTYPE_p_wxOutputStream swig_types[12]
231 #define SWIGTYPE_p_wxString swig_types[13]
232 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
233 #define SWIGTYPE_p_wxFileSystem swig_types[15]
234 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
235 #define SWIGTYPE_p_wxFont swig_types[17]
236 #define SWIGTYPE_p_wxXmlResource swig_types[18]
237 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
238 #define SWIGTYPE_p_wxPanel swig_types[20]
239 #define SWIGTYPE_p_wxSize swig_types[21]
240 static swig_type_info
*swig_types
[23];
242 /* -------- TYPES TABLE (END) -------- */
245 /*-----------------------------------------------
247 ------------------------------------------------*/
248 #define SWIG_init init_xrc
250 #define SWIG_name "_xrc"
252 #include "wx/wxPython/wxPython.h"
253 #include "wx/wxPython/pyclasses.h"
254 #include "wx/wxPython/pyistream.h"
256 #include <wx/xml/xml.h>
257 #include <wx/xrc/xmlres.h>
259 static const wxString
wxPyEmptyString(wxT(""));
260 static const wxString
wxPyUTF8String(wxT("UTF-8"));
261 static const wxString
wxPyStyleString(wxT("style"));
262 static const wxString
wxPySizeString(wxT("size"));
263 static const wxString
wxPyPosString(wxT("pos"));
264 static const wxString
wxPyBitmapString(wxT("bitmap"));
265 static const wxString
wxPyIconString(wxT("icon"));
266 static const wxString
wxPyFontString(wxT("font"));
268 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
269 static int s_memFileIdx
= 0;
271 // Check for memory FS. If not present, load the handler:
272 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
275 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
276 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
280 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
282 // Now put the resource data into the memory FS
283 wxString
filename(wxT("XRC_resource/data_string_"));
284 filename
<< s_memFileIdx
;
286 wxMemoryFSHandler::AddFile(filename
, data
);
288 // Load the "file" into the resource object
289 bool retval
= self
->Load(wxT("memory:") + filename
);
294 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
297 wxPyXmlSubclassFactory() {}
298 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
302 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
304 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
305 // callbacks, as well as to make some protected things public so they can
307 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
309 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
310 //~wxPyXmlResourceHandler();
312 // Base class virtuals
314 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
315 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
318 // accessors for protected members
320 wxXmlResource
* GetResource() { return m_resource
; }
321 wxXmlNode
* GetNode() { return m_node
; }
322 wxString
GetClass() { return m_class
; }
323 wxObject
* GetParent() { return m_parent
; }
324 wxObject
* GetInstance() { return m_instance
; }
325 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
326 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
329 // turn some protected methods into public via delegation
331 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
332 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
334 wxString
GetNodeContent(wxXmlNode
*node
)
335 { return wxXmlResourceHandler::GetNodeContent(node
); }
337 bool HasParam(const wxString
& param
)
338 { return wxXmlResourceHandler::HasParam(param
); }
340 wxXmlNode
*GetParamNode(const wxString
& param
)
341 { return wxXmlResourceHandler::GetParamNode(param
); }
343 wxString
GetParamValue(const wxString
& param
)
344 { return wxXmlResourceHandler::GetParamValue(param
); }
346 void AddStyle(const wxString
& name
, int value
)
347 { wxXmlResourceHandler::AddStyle(name
, value
); }
349 void AddWindowStyles()
350 { wxXmlResourceHandler::AddWindowStyles(); }
352 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
353 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
355 wxString
GetText(const wxString
& param
, bool translate
= True
)
356 { return wxXmlResourceHandler::GetText(param
, translate
); }
359 { return wxXmlResourceHandler::GetID(); }
362 { return wxXmlResourceHandler::GetName(); }
364 bool GetBool(const wxString
& param
, bool defaultv
= False
)
365 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
367 long GetLong( const wxString
& param
, long defaultv
= 0 )
368 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
370 wxColour
GetColour(const wxString
& param
)
371 { return wxXmlResourceHandler::GetColour(param
); }
373 wxSize
GetSize(const wxString
& param
= wxT("size"))
374 { return wxXmlResourceHandler::GetSize(param
); }
376 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
377 { return wxXmlResourceHandler::GetPosition(param
); }
379 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
380 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
382 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
383 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
384 wxSize size
= wxDefaultSize
)
385 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
387 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
388 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
389 wxSize size
= wxDefaultSize
)
390 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
392 wxFont
GetFont(const wxString
& param
= wxT("font"))
393 { return wxXmlResourceHandler::GetFont(param
); }
395 void SetupWindow(wxWindow
*wnd
)
396 { wxXmlResourceHandler::SetupWindow(wnd
); }
398 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
399 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
401 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
402 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
404 wxObject
*CreateResFromNode(wxXmlNode
*node
,
405 wxObject
*parent
, wxObject
*instance
= NULL
)
406 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
408 wxFileSystem
& GetCurFileSystem()
409 { return wxXmlResourceHandler::GetCurFileSystem(); }
415 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
416 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
422 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
425 int arg2
= (int) wxXRC_USE_LOCALE
;
426 wxXmlResource
*result
;
428 PyObject
* obj0
= 0 ;
430 (char *) "filemask",(char *) "flags", NULL
433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|i:new_XmlResource",kwnames
,&obj0
,&arg2
)) goto fail
;
435 arg1
= wxString_in_helper(obj0
);
436 if (arg1
== NULL
) SWIG_fail
;
440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
441 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
443 wxPyEndAllowThreads(__tstate
);
444 if (PyErr_Occurred()) SWIG_fail
;
446 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
461 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
463 int arg1
= (int) wxXRC_USE_LOCALE
;
464 wxXmlResource
*result
;
466 (char *) "flags", NULL
469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|i:new_EmptyXmlResource",kwnames
,&arg1
)) goto fail
;
471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
472 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
474 wxPyEndAllowThreads(__tstate
);
475 if (PyErr_Occurred()) SWIG_fail
;
477 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
484 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
486 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
487 PyObject
* obj0
= 0 ;
489 (char *) "self", NULL
492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
493 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
498 wxPyEndAllowThreads(__tstate
);
499 if (PyErr_Occurred()) SWIG_fail
;
501 Py_INCREF(Py_None
); resultobj
= Py_None
;
508 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
510 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
514 PyObject
* obj0
= 0 ;
515 PyObject
* obj1
= 0 ;
517 (char *) "self",(char *) "filemask", NULL
520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
521 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
523 arg2
= wxString_in_helper(obj1
);
524 if (arg2
== NULL
) SWIG_fail
;
528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
529 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
531 wxPyEndAllowThreads(__tstate
);
532 if (PyErr_Occurred()) SWIG_fail
;
534 resultobj
= PyInt_FromLong((long)result
);
549 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
551 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
555 PyObject
* obj0
= 0 ;
556 PyObject
* obj1
= 0 ;
558 (char *) "self",(char *) "data", NULL
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
562 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
564 arg2
= wxString_in_helper(obj1
);
565 if (arg2
== NULL
) SWIG_fail
;
569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
570 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
572 wxPyEndAllowThreads(__tstate
);
573 if (PyErr_Occurred()) SWIG_fail
;
575 resultobj
= PyInt_FromLong((long)result
);
590 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
592 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
593 PyObject
* obj0
= 0 ;
595 (char *) "self", NULL
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
599 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
602 (arg1
)->InitAllHandlers();
604 wxPyEndAllowThreads(__tstate
);
605 if (PyErr_Occurred()) SWIG_fail
;
607 Py_INCREF(Py_None
); resultobj
= Py_None
;
614 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
616 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
617 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
618 PyObject
* obj0
= 0 ;
619 PyObject
* obj1
= 0 ;
621 (char *) "self",(char *) "handler", NULL
624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
625 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
626 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
629 (arg1
)->AddHandler(arg2
);
631 wxPyEndAllowThreads(__tstate
);
632 if (PyErr_Occurred()) SWIG_fail
;
634 Py_INCREF(Py_None
); resultobj
= Py_None
;
641 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
643 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
644 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
645 PyObject
* obj0
= 0 ;
646 PyObject
* obj1
= 0 ;
648 (char *) "self",(char *) "handler", NULL
651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
652 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
653 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
656 (arg1
)->InsertHandler(arg2
);
658 wxPyEndAllowThreads(__tstate
);
659 if (PyErr_Occurred()) SWIG_fail
;
661 Py_INCREF(Py_None
); resultobj
= Py_None
;
668 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
670 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
671 PyObject
* obj0
= 0 ;
673 (char *) "self", NULL
676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
677 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
680 (arg1
)->ClearHandlers();
682 wxPyEndAllowThreads(__tstate
);
683 if (PyErr_Occurred()) SWIG_fail
;
685 Py_INCREF(Py_None
); resultobj
= Py_None
;
692 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
694 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
695 PyObject
* obj0
= 0 ;
697 (char *) "factory", NULL
700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
701 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
704 wxXmlResource::AddSubclassFactory(arg1
);
706 wxPyEndAllowThreads(__tstate
);
707 if (PyErr_Occurred()) SWIG_fail
;
709 Py_INCREF(Py_None
); resultobj
= Py_None
;
716 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
718 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
722 PyObject
* obj0
= 0 ;
723 PyObject
* obj1
= 0 ;
725 (char *) "self",(char *) "name", NULL
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
729 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
731 arg2
= wxString_in_helper(obj1
);
732 if (arg2
== NULL
) SWIG_fail
;
736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
737 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
739 wxPyEndAllowThreads(__tstate
);
740 if (PyErr_Occurred()) SWIG_fail
;
743 resultobj
= wxPyMake_wxObject(result
);
759 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
761 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
765 PyObject
* obj0
= 0 ;
766 PyObject
* obj1
= 0 ;
768 (char *) "self",(char *) "name", NULL
771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
772 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
774 arg2
= wxString_in_helper(obj1
);
775 if (arg2
== NULL
) SWIG_fail
;
779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
780 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
782 wxPyEndAllowThreads(__tstate
);
783 if (PyErr_Occurred()) SWIG_fail
;
786 resultobj
= wxPyMake_wxObject(result
);
802 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
804 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
805 wxWindow
*arg2
= (wxWindow
*) 0 ;
809 PyObject
* obj0
= 0 ;
810 PyObject
* obj1
= 0 ;
811 PyObject
* obj2
= 0 ;
813 (char *) "self",(char *) "parent",(char *) "name", NULL
816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
817 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
818 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
820 arg3
= wxString_in_helper(obj2
);
821 if (arg3
== NULL
) SWIG_fail
;
825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
826 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
828 wxPyEndAllowThreads(__tstate
);
829 if (PyErr_Occurred()) SWIG_fail
;
832 resultobj
= wxPyMake_wxObject(result
);
848 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
850 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
851 wxWindow
*arg2
= (wxWindow
*) 0 ;
855 PyObject
* obj0
= 0 ;
856 PyObject
* obj1
= 0 ;
857 PyObject
* obj2
= 0 ;
859 (char *) "self",(char *) "parent",(char *) "name", NULL
862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
863 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
864 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
866 arg3
= wxString_in_helper(obj2
);
867 if (arg3
== NULL
) SWIG_fail
;
871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
872 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
874 wxPyEndAllowThreads(__tstate
);
875 if (PyErr_Occurred()) SWIG_fail
;
878 resultobj
= wxPyMake_wxObject(result
);
894 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
896 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
897 wxWindow
*arg2
= (wxWindow
*) 0 ;
901 PyObject
* obj0
= 0 ;
902 PyObject
* obj1
= 0 ;
903 PyObject
* obj2
= 0 ;
905 (char *) "self",(char *) "parent",(char *) "name", NULL
908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
909 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
910 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
912 arg3
= wxString_in_helper(obj2
);
913 if (arg3
== NULL
) SWIG_fail
;
917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
918 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
920 wxPyEndAllowThreads(__tstate
);
921 if (PyErr_Occurred()) SWIG_fail
;
923 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
938 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
940 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
941 wxDialog
*arg2
= (wxDialog
*) 0 ;
942 wxWindow
*arg3
= (wxWindow
*) 0 ;
946 PyObject
* obj0
= 0 ;
947 PyObject
* obj1
= 0 ;
948 PyObject
* obj2
= 0 ;
949 PyObject
* obj3
= 0 ;
951 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
955 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
956 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
957 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
959 arg4
= wxString_in_helper(obj3
);
960 if (arg4
== NULL
) SWIG_fail
;
964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
965 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
967 wxPyEndAllowThreads(__tstate
);
968 if (PyErr_Occurred()) SWIG_fail
;
970 resultobj
= PyInt_FromLong((long)result
);
985 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
987 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
988 wxWindow
*arg2
= (wxWindow
*) 0 ;
992 PyObject
* obj0
= 0 ;
993 PyObject
* obj1
= 0 ;
994 PyObject
* obj2
= 0 ;
996 (char *) "self",(char *) "parent",(char *) "name", NULL
999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1000 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1001 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1003 arg3
= wxString_in_helper(obj2
);
1004 if (arg3
== NULL
) SWIG_fail
;
1008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1009 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1011 wxPyEndAllowThreads(__tstate
);
1012 if (PyErr_Occurred()) SWIG_fail
;
1014 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1029 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1030 PyObject
*resultobj
;
1031 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1032 wxPanel
*arg2
= (wxPanel
*) 0 ;
1033 wxWindow
*arg3
= (wxWindow
*) 0 ;
1034 wxString
*arg4
= 0 ;
1036 bool temp4
= False
;
1037 PyObject
* obj0
= 0 ;
1038 PyObject
* obj1
= 0 ;
1039 PyObject
* obj2
= 0 ;
1040 PyObject
* obj3
= 0 ;
1042 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) 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_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1048 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1050 arg4
= wxString_in_helper(obj3
);
1051 if (arg4
== NULL
) SWIG_fail
;
1055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1056 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1058 wxPyEndAllowThreads(__tstate
);
1059 if (PyErr_Occurred()) SWIG_fail
;
1061 resultobj
= PyInt_FromLong((long)result
);
1076 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1077 PyObject
*resultobj
;
1078 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1079 wxWindow
*arg2
= (wxWindow
*) 0 ;
1080 wxString
*arg3
= 0 ;
1082 bool temp3
= False
;
1083 PyObject
* obj0
= 0 ;
1084 PyObject
* obj1
= 0 ;
1085 PyObject
* obj2
= 0 ;
1087 (char *) "self",(char *) "parent",(char *) "name", NULL
1090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1091 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1092 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1094 arg3
= wxString_in_helper(obj2
);
1095 if (arg3
== NULL
) SWIG_fail
;
1099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1100 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1102 wxPyEndAllowThreads(__tstate
);
1103 if (PyErr_Occurred()) SWIG_fail
;
1106 resultobj
= wxPyMake_wxObject(result
);
1122 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1123 PyObject
*resultobj
;
1124 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1125 wxFrame
*arg2
= (wxFrame
*) 0 ;
1126 wxWindow
*arg3
= (wxWindow
*) 0 ;
1127 wxString
*arg4
= 0 ;
1129 bool temp4
= False
;
1130 PyObject
* obj0
= 0 ;
1131 PyObject
* obj1
= 0 ;
1132 PyObject
* obj2
= 0 ;
1133 PyObject
* obj3
= 0 ;
1135 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1139 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1140 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1141 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1143 arg4
= wxString_in_helper(obj3
);
1144 if (arg4
== NULL
) SWIG_fail
;
1148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1149 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1151 wxPyEndAllowThreads(__tstate
);
1152 if (PyErr_Occurred()) SWIG_fail
;
1154 resultobj
= PyInt_FromLong((long)result
);
1169 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1170 PyObject
*resultobj
;
1171 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1172 wxWindow
*arg2
= (wxWindow
*) 0 ;
1173 wxString
*arg3
= 0 ;
1174 wxString
*arg4
= 0 ;
1176 bool temp3
= False
;
1177 bool temp4
= False
;
1178 PyObject
* obj0
= 0 ;
1179 PyObject
* obj1
= 0 ;
1180 PyObject
* obj2
= 0 ;
1181 PyObject
* obj3
= 0 ;
1183 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1187 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1188 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1190 arg3
= wxString_in_helper(obj2
);
1191 if (arg3
== NULL
) SWIG_fail
;
1195 arg4
= wxString_in_helper(obj3
);
1196 if (arg4
== NULL
) SWIG_fail
;
1200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1201 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1203 wxPyEndAllowThreads(__tstate
);
1204 if (PyErr_Occurred()) SWIG_fail
;
1207 resultobj
= wxPyMake_wxObject(result
);
1231 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1232 PyObject
*resultobj
;
1233 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1234 wxObject
*arg2
= (wxObject
*) 0 ;
1235 wxWindow
*arg3
= (wxWindow
*) 0 ;
1236 wxString
*arg4
= 0 ;
1237 wxString
*arg5
= 0 ;
1239 bool temp4
= False
;
1240 bool temp5
= False
;
1241 PyObject
* obj0
= 0 ;
1242 PyObject
* obj1
= 0 ;
1243 PyObject
* obj2
= 0 ;
1244 PyObject
* obj3
= 0 ;
1245 PyObject
* obj4
= 0 ;
1247 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1251 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1252 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1253 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1255 arg4
= wxString_in_helper(obj3
);
1256 if (arg4
== NULL
) SWIG_fail
;
1260 arg5
= wxString_in_helper(obj4
);
1261 if (arg5
== NULL
) SWIG_fail
;
1265 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1266 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1268 wxPyEndAllowThreads(__tstate
);
1269 if (PyErr_Occurred()) SWIG_fail
;
1271 resultobj
= PyInt_FromLong((long)result
);
1294 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1295 PyObject
*resultobj
;
1296 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1297 wxString
*arg2
= 0 ;
1299 bool temp2
= False
;
1300 PyObject
* obj0
= 0 ;
1301 PyObject
* obj1
= 0 ;
1303 (char *) "self",(char *) "name", NULL
1306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1307 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1309 arg2
= wxString_in_helper(obj1
);
1310 if (arg2
== NULL
) SWIG_fail
;
1314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1315 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1317 wxPyEndAllowThreads(__tstate
);
1318 if (PyErr_Occurred()) SWIG_fail
;
1321 wxBitmap
* resultptr
;
1322 resultptr
= new wxBitmap((wxBitmap
&) result
);
1323 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1339 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
*resultobj
;
1341 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1342 wxString
*arg2
= 0 ;
1344 bool temp2
= False
;
1345 PyObject
* obj0
= 0 ;
1346 PyObject
* obj1
= 0 ;
1348 (char *) "self",(char *) "name", NULL
1351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1352 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1354 arg2
= wxString_in_helper(obj1
);
1355 if (arg2
== NULL
) SWIG_fail
;
1359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1360 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1362 wxPyEndAllowThreads(__tstate
);
1363 if (PyErr_Occurred()) SWIG_fail
;
1367 resultptr
= new wxIcon((wxIcon
&) result
);
1368 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1384 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
*resultobj
;
1386 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1387 wxString
*arg2
= 0 ;
1388 wxWindow
*arg3
= (wxWindow
*) 0 ;
1389 wxWindow
*arg4
= (wxWindow
*) NULL
;
1391 bool temp2
= False
;
1392 PyObject
* obj0
= 0 ;
1393 PyObject
* obj1
= 0 ;
1394 PyObject
* obj2
= 0 ;
1395 PyObject
* obj3
= 0 ;
1397 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1401 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1403 arg2
= wxString_in_helper(obj1
);
1404 if (arg2
== NULL
) SWIG_fail
;
1407 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1409 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1413 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1415 wxPyEndAllowThreads(__tstate
);
1416 if (PyErr_Occurred()) SWIG_fail
;
1418 resultobj
= PyInt_FromLong((long)result
);
1433 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1434 PyObject
*resultobj
;
1435 wxString
*arg1
= 0 ;
1437 bool temp1
= False
;
1438 PyObject
* obj0
= 0 ;
1440 (char *) "str_id", NULL
1443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1445 arg1
= wxString_in_helper(obj0
);
1446 if (arg1
== NULL
) SWIG_fail
;
1450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1451 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1453 wxPyEndAllowThreads(__tstate
);
1454 if (PyErr_Occurred()) SWIG_fail
;
1456 resultobj
= PyInt_FromLong((long)result
);
1471 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
*resultobj
;
1473 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1475 PyObject
* obj0
= 0 ;
1477 (char *) "self", NULL
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1481 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1484 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1486 wxPyEndAllowThreads(__tstate
);
1487 if (PyErr_Occurred()) SWIG_fail
;
1489 resultobj
= PyInt_FromLong((long)result
);
1496 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1497 PyObject
*resultobj
;
1498 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1504 PyObject
* obj0
= 0 ;
1506 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oiiii:XmlResource_CompareVersion",kwnames
,&obj0
,&arg2
,&arg3
,&arg4
,&arg5
)) goto fail
;
1510 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1513 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1515 wxPyEndAllowThreads(__tstate
);
1516 if (PyErr_Occurred()) SWIG_fail
;
1518 resultobj
= PyInt_FromLong((long)result
);
1525 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1526 PyObject
*resultobj
;
1527 wxXmlResource
*result
;
1532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1535 result
= (wxXmlResource
*)wxXmlResource::Get();
1537 wxPyEndAllowThreads(__tstate
);
1538 if (PyErr_Occurred()) SWIG_fail
;
1540 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1547 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1548 PyObject
*resultobj
;
1549 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1550 wxXmlResource
*result
;
1551 PyObject
* obj0
= 0 ;
1553 (char *) "res", NULL
1556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1557 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1560 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1562 wxPyEndAllowThreads(__tstate
);
1563 if (PyErr_Occurred()) SWIG_fail
;
1565 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1572 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1573 PyObject
*resultobj
;
1574 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1576 PyObject
* obj0
= 0 ;
1578 (char *) "self", NULL
1581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1582 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1585 result
= (int)(arg1
)->GetFlags();
1587 wxPyEndAllowThreads(__tstate
);
1588 if (PyErr_Occurred()) SWIG_fail
;
1590 resultobj
= PyInt_FromLong((long)result
);
1597 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1598 PyObject
*resultobj
;
1599 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1601 PyObject
* obj0
= 0 ;
1603 (char *) "self",(char *) "flags", NULL
1606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlResource_SetFlags",kwnames
,&obj0
,&arg2
)) goto fail
;
1607 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1610 (arg1
)->SetFlags(arg2
);
1612 wxPyEndAllowThreads(__tstate
);
1613 if (PyErr_Occurred()) SWIG_fail
;
1615 Py_INCREF(Py_None
); resultobj
= Py_None
;
1622 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1624 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1625 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1627 return Py_BuildValue((char *)"");
1629 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1630 PyObject
*resultobj
;
1631 wxPyXmlSubclassFactory
*result
;
1636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1639 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1641 wxPyEndAllowThreads(__tstate
);
1642 if (PyErr_Occurred()) SWIG_fail
;
1644 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1651 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1652 PyObject
*resultobj
;
1653 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1654 PyObject
*arg2
= (PyObject
*) 0 ;
1655 PyObject
*arg3
= (PyObject
*) 0 ;
1656 PyObject
* obj0
= 0 ;
1657 PyObject
* obj1
= 0 ;
1658 PyObject
* obj2
= 0 ;
1660 (char *) "self",(char *) "self",(char *) "_class", NULL
1663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1664 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1669 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1671 wxPyEndAllowThreads(__tstate
);
1672 if (PyErr_Occurred()) SWIG_fail
;
1674 Py_INCREF(Py_None
); resultobj
= Py_None
;
1681 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1683 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1684 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1686 return Py_BuildValue((char *)"");
1688 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1689 PyObject
*resultobj
;
1690 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1691 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1692 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1693 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
1694 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
1695 wxXmlProperty
*result
;
1696 bool temp1
= False
;
1697 bool temp2
= False
;
1698 PyObject
* obj0
= 0 ;
1699 PyObject
* obj1
= 0 ;
1700 PyObject
* obj2
= 0 ;
1702 (char *) "name",(char *) "value",(char *) "next", NULL
1705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1708 arg1
= wxString_in_helper(obj0
);
1709 if (arg1
== NULL
) SWIG_fail
;
1715 arg2
= wxString_in_helper(obj1
);
1716 if (arg2
== NULL
) SWIG_fail
;
1721 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1725 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
1727 wxPyEndAllowThreads(__tstate
);
1728 if (PyErr_Occurred()) SWIG_fail
;
1730 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
1753 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1754 PyObject
*resultobj
;
1755 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1757 PyObject
* obj0
= 0 ;
1759 (char *) "self", NULL
1762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
1763 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1766 result
= ((wxXmlProperty
const *)arg1
)->GetName();
1768 wxPyEndAllowThreads(__tstate
);
1769 if (PyErr_Occurred()) SWIG_fail
;
1773 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1775 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1784 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1785 PyObject
*resultobj
;
1786 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1788 PyObject
* obj0
= 0 ;
1790 (char *) "self", NULL
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
1794 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1797 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
1799 wxPyEndAllowThreads(__tstate
);
1800 if (PyErr_Occurred()) SWIG_fail
;
1804 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1806 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1815 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1816 PyObject
*resultobj
;
1817 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1818 wxXmlProperty
*result
;
1819 PyObject
* obj0
= 0 ;
1821 (char *) "self", NULL
1824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
1825 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1828 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
1830 wxPyEndAllowThreads(__tstate
);
1831 if (PyErr_Occurred()) SWIG_fail
;
1833 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
1840 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1841 PyObject
*resultobj
;
1842 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1843 wxString
*arg2
= 0 ;
1844 bool temp2
= False
;
1845 PyObject
* obj0
= 0 ;
1846 PyObject
* obj1
= 0 ;
1848 (char *) "self",(char *) "name", NULL
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
1852 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1854 arg2
= wxString_in_helper(obj1
);
1855 if (arg2
== NULL
) SWIG_fail
;
1859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1860 (arg1
)->SetName((wxString
const &)*arg2
);
1862 wxPyEndAllowThreads(__tstate
);
1863 if (PyErr_Occurred()) SWIG_fail
;
1865 Py_INCREF(Py_None
); resultobj
= Py_None
;
1880 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1881 PyObject
*resultobj
;
1882 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1883 wxString
*arg2
= 0 ;
1884 bool temp2
= False
;
1885 PyObject
* obj0
= 0 ;
1886 PyObject
* obj1
= 0 ;
1888 (char *) "self",(char *) "value", NULL
1891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
1892 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1894 arg2
= wxString_in_helper(obj1
);
1895 if (arg2
== NULL
) SWIG_fail
;
1899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1900 (arg1
)->SetValue((wxString
const &)*arg2
);
1902 wxPyEndAllowThreads(__tstate
);
1903 if (PyErr_Occurred()) SWIG_fail
;
1905 Py_INCREF(Py_None
); resultobj
= Py_None
;
1920 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1921 PyObject
*resultobj
;
1922 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1923 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
1924 PyObject
* obj0
= 0 ;
1925 PyObject
* obj1
= 0 ;
1927 (char *) "self",(char *) "next", NULL
1930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
1931 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1932 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1935 (arg1
)->SetNext(arg2
);
1937 wxPyEndAllowThreads(__tstate
);
1938 if (PyErr_Occurred()) SWIG_fail
;
1940 Py_INCREF(Py_None
); resultobj
= Py_None
;
1947 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
1949 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1950 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
1952 return Py_BuildValue((char *)"");
1954 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1955 PyObject
*resultobj
;
1956 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
1957 int arg2
= (int) 0 ;
1958 wxString
const &arg3_defvalue
= wxPyEmptyString
;
1959 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
1960 wxString
const &arg4_defvalue
= wxPyEmptyString
;
1961 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
1962 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
1963 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
1965 bool temp3
= False
;
1966 bool temp4
= False
;
1967 PyObject
* obj0
= 0 ;
1968 PyObject
* obj2
= 0 ;
1969 PyObject
* obj3
= 0 ;
1970 PyObject
* obj4
= 0 ;
1971 PyObject
* obj5
= 0 ;
1973 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
1976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OiOOOO:new_XmlNode",kwnames
,&obj0
,&arg2
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
1978 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1982 arg3
= wxString_in_helper(obj2
);
1983 if (arg3
== NULL
) SWIG_fail
;
1989 arg4
= wxString_in_helper(obj3
);
1990 if (arg4
== NULL
) SWIG_fail
;
1995 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1998 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2002 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2004 wxPyEndAllowThreads(__tstate
);
2005 if (PyErr_Occurred()) SWIG_fail
;
2007 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2030 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2031 PyObject
*resultobj
;
2032 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2033 PyObject
* obj0
= 0 ;
2035 (char *) "self", NULL
2038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2039 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2044 wxPyEndAllowThreads(__tstate
);
2045 if (PyErr_Occurred()) SWIG_fail
;
2047 Py_INCREF(Py_None
); resultobj
= Py_None
;
2054 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2055 PyObject
*resultobj
;
2057 wxString
*arg2
= 0 ;
2058 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2059 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2061 bool temp2
= False
;
2062 bool temp3
= False
;
2063 PyObject
* obj1
= 0 ;
2064 PyObject
* obj2
= 0 ;
2066 (char *) "type",(char *) "name",(char *) "content", NULL
2069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"iO|O:new_XmlNodeEasy",kwnames
,&arg1
,&obj1
,&obj2
)) goto fail
;
2071 arg2
= wxString_in_helper(obj1
);
2072 if (arg2
== NULL
) SWIG_fail
;
2077 arg3
= wxString_in_helper(obj2
);
2078 if (arg3
== NULL
) SWIG_fail
;
2083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2084 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2086 wxPyEndAllowThreads(__tstate
);
2087 if (PyErr_Occurred()) SWIG_fail
;
2089 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2112 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2113 PyObject
*resultobj
;
2114 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2115 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2116 PyObject
* obj0
= 0 ;
2117 PyObject
* obj1
= 0 ;
2119 (char *) "self",(char *) "child", NULL
2122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2123 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2124 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2127 (arg1
)->AddChild(arg2
);
2129 wxPyEndAllowThreads(__tstate
);
2130 if (PyErr_Occurred()) SWIG_fail
;
2132 Py_INCREF(Py_None
); resultobj
= Py_None
;
2139 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2140 PyObject
*resultobj
;
2141 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2142 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2143 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2144 PyObject
* obj0
= 0 ;
2145 PyObject
* obj1
= 0 ;
2146 PyObject
* obj2
= 0 ;
2148 (char *) "self",(char *) "child",(char *) "before_node", NULL
2151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2152 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2153 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2154 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2157 (arg1
)->InsertChild(arg2
,arg3
);
2159 wxPyEndAllowThreads(__tstate
);
2160 if (PyErr_Occurred()) SWIG_fail
;
2162 Py_INCREF(Py_None
); resultobj
= Py_None
;
2169 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
*resultobj
;
2171 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2172 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2174 PyObject
* obj0
= 0 ;
2175 PyObject
* obj1
= 0 ;
2177 (char *) "self",(char *) "child", NULL
2180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2181 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2182 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2185 result
= (bool)(arg1
)->RemoveChild(arg2
);
2187 wxPyEndAllowThreads(__tstate
);
2188 if (PyErr_Occurred()) SWIG_fail
;
2190 resultobj
= PyInt_FromLong((long)result
);
2197 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
*resultobj
;
2199 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2200 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2201 PyObject
* obj0
= 0 ;
2202 PyObject
* obj1
= 0 ;
2204 (char *) "self",(char *) "prop", NULL
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2208 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2209 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2212 (arg1
)->AddProperty(arg2
);
2214 wxPyEndAllowThreads(__tstate
);
2215 if (PyErr_Occurred()) SWIG_fail
;
2217 Py_INCREF(Py_None
); resultobj
= Py_None
;
2224 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2225 PyObject
*resultobj
;
2226 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2227 wxString
*arg2
= 0 ;
2228 wxString
*arg3
= 0 ;
2229 bool temp2
= False
;
2230 bool temp3
= False
;
2231 PyObject
* obj0
= 0 ;
2232 PyObject
* obj1
= 0 ;
2233 PyObject
* obj2
= 0 ;
2235 (char *) "self",(char *) "name",(char *) "value", NULL
2238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2239 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2241 arg2
= wxString_in_helper(obj1
);
2242 if (arg2
== NULL
) SWIG_fail
;
2246 arg3
= wxString_in_helper(obj2
);
2247 if (arg3
== NULL
) SWIG_fail
;
2251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2252 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2254 wxPyEndAllowThreads(__tstate
);
2255 if (PyErr_Occurred()) SWIG_fail
;
2257 Py_INCREF(Py_None
); resultobj
= Py_None
;
2280 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2281 PyObject
*resultobj
;
2282 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2283 wxString
*arg2
= 0 ;
2285 bool temp2
= False
;
2286 PyObject
* obj0
= 0 ;
2287 PyObject
* obj1
= 0 ;
2289 (char *) "self",(char *) "name", NULL
2292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2293 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2295 arg2
= wxString_in_helper(obj1
);
2296 if (arg2
== NULL
) SWIG_fail
;
2300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2301 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2303 wxPyEndAllowThreads(__tstate
);
2304 if (PyErr_Occurred()) SWIG_fail
;
2306 resultobj
= PyInt_FromLong((long)result
);
2321 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2322 PyObject
*resultobj
;
2323 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2325 PyObject
* obj0
= 0 ;
2327 (char *) "self", NULL
2330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2331 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2334 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2336 wxPyEndAllowThreads(__tstate
);
2337 if (PyErr_Occurred()) SWIG_fail
;
2339 resultobj
= PyInt_FromLong((long)result
);
2346 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2347 PyObject
*resultobj
;
2348 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2350 PyObject
* obj0
= 0 ;
2352 (char *) "self", NULL
2355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2356 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2359 result
= ((wxXmlNode
const *)arg1
)->GetName();
2361 wxPyEndAllowThreads(__tstate
);
2362 if (PyErr_Occurred()) SWIG_fail
;
2366 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2368 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2377 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
*resultobj
;
2379 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2381 PyObject
* obj0
= 0 ;
2383 (char *) "self", NULL
2386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2387 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2390 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2392 wxPyEndAllowThreads(__tstate
);
2393 if (PyErr_Occurred()) SWIG_fail
;
2397 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2399 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2408 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2409 PyObject
*resultobj
;
2410 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2412 PyObject
* obj0
= 0 ;
2414 (char *) "self", NULL
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2418 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2421 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2423 wxPyEndAllowThreads(__tstate
);
2424 if (PyErr_Occurred()) SWIG_fail
;
2426 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2433 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2434 PyObject
*resultobj
;
2435 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2437 PyObject
* obj0
= 0 ;
2439 (char *) "self", NULL
2442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2443 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2446 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2448 wxPyEndAllowThreads(__tstate
);
2449 if (PyErr_Occurred()) SWIG_fail
;
2451 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2458 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
*resultobj
;
2460 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2462 PyObject
* obj0
= 0 ;
2464 (char *) "self", NULL
2467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2468 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2471 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2473 wxPyEndAllowThreads(__tstate
);
2474 if (PyErr_Occurred()) SWIG_fail
;
2476 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2483 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2484 PyObject
*resultobj
;
2485 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2486 wxXmlProperty
*result
;
2487 PyObject
* obj0
= 0 ;
2489 (char *) "self", NULL
2492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2493 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2496 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2498 wxPyEndAllowThreads(__tstate
);
2499 if (PyErr_Occurred()) SWIG_fail
;
2501 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2508 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2509 PyObject
*resultobj
;
2510 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2511 wxString
*arg2
= 0 ;
2512 wxString
*arg3
= 0 ;
2514 bool temp2
= False
;
2515 bool temp3
= False
;
2516 PyObject
* obj0
= 0 ;
2517 PyObject
* obj1
= 0 ;
2518 PyObject
* obj2
= 0 ;
2520 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2524 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2526 arg2
= wxString_in_helper(obj1
);
2527 if (arg2
== NULL
) SWIG_fail
;
2531 arg3
= wxString_in_helper(obj2
);
2532 if (arg3
== NULL
) SWIG_fail
;
2536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2537 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2539 wxPyEndAllowThreads(__tstate
);
2540 if (PyErr_Occurred()) SWIG_fail
;
2544 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2546 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2571 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2572 PyObject
*resultobj
;
2573 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2574 wxString
*arg2
= 0 ;
2576 bool temp2
= False
;
2577 PyObject
* obj0
= 0 ;
2578 PyObject
* obj1
= 0 ;
2580 (char *) "self",(char *) "propName", NULL
2583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2584 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2586 arg2
= wxString_in_helper(obj1
);
2587 if (arg2
== NULL
) SWIG_fail
;
2591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2592 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2594 wxPyEndAllowThreads(__tstate
);
2595 if (PyErr_Occurred()) SWIG_fail
;
2597 resultobj
= PyInt_FromLong((long)result
);
2612 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2613 PyObject
*resultobj
;
2614 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2616 PyObject
* obj0
= 0 ;
2618 (char *) "self",(char *) "type", NULL
2621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlNode_SetType",kwnames
,&obj0
,&arg2
)) goto fail
;
2622 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2625 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2627 wxPyEndAllowThreads(__tstate
);
2628 if (PyErr_Occurred()) SWIG_fail
;
2630 Py_INCREF(Py_None
); resultobj
= Py_None
;
2637 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2638 PyObject
*resultobj
;
2639 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2640 wxString
*arg2
= 0 ;
2641 bool temp2
= False
;
2642 PyObject
* obj0
= 0 ;
2643 PyObject
* obj1
= 0 ;
2645 (char *) "self",(char *) "name", NULL
2648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2649 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2651 arg2
= wxString_in_helper(obj1
);
2652 if (arg2
== NULL
) SWIG_fail
;
2656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2657 (arg1
)->SetName((wxString
const &)*arg2
);
2659 wxPyEndAllowThreads(__tstate
);
2660 if (PyErr_Occurred()) SWIG_fail
;
2662 Py_INCREF(Py_None
); resultobj
= Py_None
;
2677 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2678 PyObject
*resultobj
;
2679 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2680 wxString
*arg2
= 0 ;
2681 bool temp2
= False
;
2682 PyObject
* obj0
= 0 ;
2683 PyObject
* obj1
= 0 ;
2685 (char *) "self",(char *) "con", NULL
2688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2689 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2691 arg2
= wxString_in_helper(obj1
);
2692 if (arg2
== NULL
) SWIG_fail
;
2696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2697 (arg1
)->SetContent((wxString
const &)*arg2
);
2699 wxPyEndAllowThreads(__tstate
);
2700 if (PyErr_Occurred()) SWIG_fail
;
2702 Py_INCREF(Py_None
); resultobj
= Py_None
;
2717 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
*resultobj
;
2719 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2720 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2721 PyObject
* obj0
= 0 ;
2722 PyObject
* obj1
= 0 ;
2724 (char *) "self",(char *) "parent", NULL
2727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
2728 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2729 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2732 (arg1
)->SetParent(arg2
);
2734 wxPyEndAllowThreads(__tstate
);
2735 if (PyErr_Occurred()) SWIG_fail
;
2737 Py_INCREF(Py_None
); resultobj
= Py_None
;
2744 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2745 PyObject
*resultobj
;
2746 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2747 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2748 PyObject
* obj0
= 0 ;
2749 PyObject
* obj1
= 0 ;
2751 (char *) "self",(char *) "next", NULL
2754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2755 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2756 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2759 (arg1
)->SetNext(arg2
);
2761 wxPyEndAllowThreads(__tstate
);
2762 if (PyErr_Occurred()) SWIG_fail
;
2764 Py_INCREF(Py_None
); resultobj
= Py_None
;
2771 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2772 PyObject
*resultobj
;
2773 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2774 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2775 PyObject
* obj0
= 0 ;
2776 PyObject
* obj1
= 0 ;
2778 (char *) "self",(char *) "child", NULL
2781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
2782 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2783 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2786 (arg1
)->SetChildren(arg2
);
2788 wxPyEndAllowThreads(__tstate
);
2789 if (PyErr_Occurred()) SWIG_fail
;
2791 Py_INCREF(Py_None
); resultobj
= Py_None
;
2798 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2799 PyObject
*resultobj
;
2800 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2801 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2802 PyObject
* obj0
= 0 ;
2803 PyObject
* obj1
= 0 ;
2805 (char *) "self",(char *) "prop", NULL
2808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
2809 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2810 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2813 (arg1
)->SetProperties(arg2
);
2815 wxPyEndAllowThreads(__tstate
);
2816 if (PyErr_Occurred()) SWIG_fail
;
2818 Py_INCREF(Py_None
); resultobj
= Py_None
;
2825 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
2827 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2828 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
2830 return Py_BuildValue((char *)"");
2832 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2833 PyObject
*resultobj
;
2834 wxString
*arg1
= 0 ;
2835 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2836 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2837 wxXmlDocument
*result
;
2838 bool temp1
= False
;
2839 bool temp2
= False
;
2840 PyObject
* obj0
= 0 ;
2841 PyObject
* obj1
= 0 ;
2843 (char *) "filename",(char *) "encoding", NULL
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
2848 arg1
= wxString_in_helper(obj0
);
2849 if (arg1
== NULL
) SWIG_fail
;
2854 arg2
= wxString_in_helper(obj1
);
2855 if (arg2
== NULL
) SWIG_fail
;
2860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2861 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
2863 wxPyEndAllowThreads(__tstate
);
2864 if (PyErr_Occurred()) SWIG_fail
;
2866 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2889 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2890 PyObject
*resultobj
;
2891 wxInputStream
*arg1
= 0 ;
2892 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2893 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2894 wxXmlDocument
*result
;
2895 wxPyInputStream
*temp1
;
2897 bool temp2
= False
;
2898 PyObject
* obj0
= 0 ;
2899 PyObject
* obj1
= 0 ;
2901 (char *) "stream",(char *) "encoding", NULL
2904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
2906 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
2907 arg1
= temp1
->m_wxis
;
2910 PyErr_Clear(); // clear the failure of the wxPyConvert above
2911 arg1
= wxPyCBInputStream_create(obj0
, False
);
2913 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
2921 arg2
= wxString_in_helper(obj1
);
2922 if (arg2
== NULL
) SWIG_fail
;
2927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2928 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
2930 wxPyEndAllowThreads(__tstate
);
2931 if (PyErr_Occurred()) SWIG_fail
;
2933 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2956 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2957 PyObject
*resultobj
;
2958 wxXmlDocument
*result
;
2963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
2965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2966 result
= (wxXmlDocument
*)new wxXmlDocument();
2968 wxPyEndAllowThreads(__tstate
);
2969 if (PyErr_Occurred()) SWIG_fail
;
2971 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2978 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2979 PyObject
*resultobj
;
2980 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
2981 PyObject
* obj0
= 0 ;
2983 (char *) "self", NULL
2986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
2987 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2992 wxPyEndAllowThreads(__tstate
);
2993 if (PyErr_Occurred()) SWIG_fail
;
2995 Py_INCREF(Py_None
); resultobj
= Py_None
;
3002 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3003 PyObject
*resultobj
;
3004 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3005 wxString
*arg2
= 0 ;
3006 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3007 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3009 bool temp2
= False
;
3010 bool temp3
= False
;
3011 PyObject
* obj0
= 0 ;
3012 PyObject
* obj1
= 0 ;
3013 PyObject
* obj2
= 0 ;
3015 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3019 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3021 arg2
= wxString_in_helper(obj1
);
3022 if (arg2
== NULL
) SWIG_fail
;
3027 arg3
= wxString_in_helper(obj2
);
3028 if (arg3
== NULL
) SWIG_fail
;
3033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3034 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3036 wxPyEndAllowThreads(__tstate
);
3037 if (PyErr_Occurred()) SWIG_fail
;
3039 resultobj
= PyInt_FromLong((long)result
);
3062 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3063 PyObject
*resultobj
;
3064 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3065 wxInputStream
*arg2
= 0 ;
3066 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3067 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3069 wxPyInputStream
*temp2
;
3071 bool temp3
= False
;
3072 PyObject
* obj0
= 0 ;
3073 PyObject
* obj1
= 0 ;
3074 PyObject
* obj2
= 0 ;
3076 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3080 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3082 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3083 arg2
= temp2
->m_wxis
;
3086 PyErr_Clear(); // clear the failure of the wxPyConvert above
3087 arg2
= wxPyCBInputStream_create(obj1
, False
);
3089 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3097 arg3
= wxString_in_helper(obj2
);
3098 if (arg3
== NULL
) SWIG_fail
;
3103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3104 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3106 wxPyEndAllowThreads(__tstate
);
3107 if (PyErr_Occurred()) SWIG_fail
;
3109 resultobj
= PyInt_FromLong((long)result
);
3132 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3133 PyObject
*resultobj
;
3134 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3135 wxString
*arg2
= 0 ;
3137 bool temp2
= False
;
3138 PyObject
* obj0
= 0 ;
3139 PyObject
* obj1
= 0 ;
3141 (char *) "self",(char *) "filename", NULL
3144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3145 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3147 arg2
= wxString_in_helper(obj1
);
3148 if (arg2
== NULL
) SWIG_fail
;
3152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3153 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3155 wxPyEndAllowThreads(__tstate
);
3156 if (PyErr_Occurred()) SWIG_fail
;
3158 resultobj
= PyInt_FromLong((long)result
);
3173 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3174 PyObject
*resultobj
;
3175 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3176 wxOutputStream
*arg2
= 0 ;
3178 PyObject
* obj0
= 0 ;
3179 PyObject
* obj1
= 0 ;
3181 (char *) "self",(char *) "stream", NULL
3184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3185 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3186 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3188 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3192 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3194 wxPyEndAllowThreads(__tstate
);
3195 if (PyErr_Occurred()) SWIG_fail
;
3197 resultobj
= PyInt_FromLong((long)result
);
3204 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3205 PyObject
*resultobj
;
3206 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3208 PyObject
* obj0
= 0 ;
3210 (char *) "self", NULL
3213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3214 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3217 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3219 wxPyEndAllowThreads(__tstate
);
3220 if (PyErr_Occurred()) SWIG_fail
;
3222 resultobj
= PyInt_FromLong((long)result
);
3229 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3230 PyObject
*resultobj
;
3231 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3233 PyObject
* obj0
= 0 ;
3235 (char *) "self", NULL
3238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3239 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3242 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3244 wxPyEndAllowThreads(__tstate
);
3245 if (PyErr_Occurred()) SWIG_fail
;
3247 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3254 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3255 PyObject
*resultobj
;
3256 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3258 PyObject
* obj0
= 0 ;
3260 (char *) "self", NULL
3263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3264 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3267 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3269 wxPyEndAllowThreads(__tstate
);
3270 if (PyErr_Occurred()) SWIG_fail
;
3274 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3276 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3285 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3286 PyObject
*resultobj
;
3287 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3289 PyObject
* obj0
= 0 ;
3291 (char *) "self", NULL
3294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3295 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3298 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3300 wxPyEndAllowThreads(__tstate
);
3301 if (PyErr_Occurred()) SWIG_fail
;
3305 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3307 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3316 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
*resultobj
;
3318 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3319 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3320 PyObject
* obj0
= 0 ;
3321 PyObject
* obj1
= 0 ;
3323 (char *) "self",(char *) "node", NULL
3326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3327 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3328 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3331 (arg1
)->SetRoot(arg2
);
3333 wxPyEndAllowThreads(__tstate
);
3334 if (PyErr_Occurred()) SWIG_fail
;
3336 Py_INCREF(Py_None
); resultobj
= Py_None
;
3343 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3344 PyObject
*resultobj
;
3345 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3346 wxString
*arg2
= 0 ;
3347 bool temp2
= False
;
3348 PyObject
* obj0
= 0 ;
3349 PyObject
* obj1
= 0 ;
3351 (char *) "self",(char *) "version", NULL
3354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3355 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3357 arg2
= wxString_in_helper(obj1
);
3358 if (arg2
== NULL
) SWIG_fail
;
3362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3363 (arg1
)->SetVersion((wxString
const &)*arg2
);
3365 wxPyEndAllowThreads(__tstate
);
3366 if (PyErr_Occurred()) SWIG_fail
;
3368 Py_INCREF(Py_None
); resultobj
= Py_None
;
3383 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3384 PyObject
*resultobj
;
3385 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3386 wxString
*arg2
= 0 ;
3387 bool temp2
= False
;
3388 PyObject
* obj0
= 0 ;
3389 PyObject
* obj1
= 0 ;
3391 (char *) "self",(char *) "encoding", NULL
3394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3395 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3397 arg2
= wxString_in_helper(obj1
);
3398 if (arg2
== NULL
) SWIG_fail
;
3402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3403 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3405 wxPyEndAllowThreads(__tstate
);
3406 if (PyErr_Occurred()) SWIG_fail
;
3408 Py_INCREF(Py_None
); resultobj
= Py_None
;
3423 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3425 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3426 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3428 return Py_BuildValue((char *)"");
3430 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3431 PyObject
*resultobj
;
3432 wxPyXmlResourceHandler
*result
;
3437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3440 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3442 wxPyEndAllowThreads(__tstate
);
3443 if (PyErr_Occurred()) SWIG_fail
;
3445 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3452 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
*resultobj
;
3454 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3455 PyObject
*arg2
= (PyObject
*) 0 ;
3456 PyObject
*arg3
= (PyObject
*) 0 ;
3457 PyObject
* obj0
= 0 ;
3458 PyObject
* obj1
= 0 ;
3459 PyObject
* obj2
= 0 ;
3461 (char *) "self",(char *) "self",(char *) "_class", NULL
3464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3465 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3470 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3472 wxPyEndAllowThreads(__tstate
);
3473 if (PyErr_Occurred()) SWIG_fail
;
3475 Py_INCREF(Py_None
); resultobj
= Py_None
;
3482 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3483 PyObject
*resultobj
;
3484 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3485 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3486 wxObject
*arg3
= (wxObject
*) 0 ;
3487 wxObject
*arg4
= (wxObject
*) 0 ;
3489 PyObject
* obj0
= 0 ;
3490 PyObject
* obj1
= 0 ;
3491 PyObject
* obj2
= 0 ;
3492 PyObject
* obj3
= 0 ;
3494 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3498 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3499 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3500 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3501 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3504 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3506 wxPyEndAllowThreads(__tstate
);
3507 if (PyErr_Occurred()) SWIG_fail
;
3510 resultobj
= wxPyMake_wxObject(result
);
3518 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3519 PyObject
*resultobj
;
3520 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3521 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3522 PyObject
* obj0
= 0 ;
3523 PyObject
* obj1
= 0 ;
3525 (char *) "self",(char *) "res", NULL
3528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3529 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3530 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3533 (arg1
)->SetParentResource(arg2
);
3535 wxPyEndAllowThreads(__tstate
);
3536 if (PyErr_Occurred()) SWIG_fail
;
3538 Py_INCREF(Py_None
); resultobj
= Py_None
;
3545 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3546 PyObject
*resultobj
;
3547 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3548 wxXmlResource
*result
;
3549 PyObject
* obj0
= 0 ;
3551 (char *) "self", NULL
3554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3555 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3558 result
= (wxXmlResource
*)(arg1
)->GetResource();
3560 wxPyEndAllowThreads(__tstate
);
3561 if (PyErr_Occurred()) SWIG_fail
;
3563 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3570 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3571 PyObject
*resultobj
;
3572 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3574 PyObject
* obj0
= 0 ;
3576 (char *) "self", NULL
3579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3580 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3583 result
= (wxXmlNode
*)(arg1
)->GetNode();
3585 wxPyEndAllowThreads(__tstate
);
3586 if (PyErr_Occurred()) SWIG_fail
;
3588 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3595 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3596 PyObject
*resultobj
;
3597 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3599 PyObject
* obj0
= 0 ;
3601 (char *) "self", NULL
3604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3605 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3608 result
= (arg1
)->GetClass();
3610 wxPyEndAllowThreads(__tstate
);
3611 if (PyErr_Occurred()) SWIG_fail
;
3615 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3617 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3626 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3627 PyObject
*resultobj
;
3628 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3630 PyObject
* obj0
= 0 ;
3632 (char *) "self", NULL
3635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3636 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3639 result
= (wxObject
*)(arg1
)->GetParent();
3641 wxPyEndAllowThreads(__tstate
);
3642 if (PyErr_Occurred()) SWIG_fail
;
3645 resultobj
= wxPyMake_wxObject(result
);
3653 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3654 PyObject
*resultobj
;
3655 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3657 PyObject
* obj0
= 0 ;
3659 (char *) "self", NULL
3662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3663 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3666 result
= (wxObject
*)(arg1
)->GetInstance();
3668 wxPyEndAllowThreads(__tstate
);
3669 if (PyErr_Occurred()) SWIG_fail
;
3672 resultobj
= wxPyMake_wxObject(result
);
3680 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3681 PyObject
*resultobj
;
3682 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3684 PyObject
* obj0
= 0 ;
3686 (char *) "self", NULL
3689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3690 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3693 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
3695 wxPyEndAllowThreads(__tstate
);
3696 if (PyErr_Occurred()) SWIG_fail
;
3699 resultobj
= wxPyMake_wxObject(result
);
3707 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3708 PyObject
*resultobj
;
3709 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3711 PyObject
* obj0
= 0 ;
3713 (char *) "self", NULL
3716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
3717 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3720 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
3722 wxPyEndAllowThreads(__tstate
);
3723 if (PyErr_Occurred()) SWIG_fail
;
3726 resultobj
= wxPyMake_wxObject(result
);
3734 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3735 PyObject
*resultobj
;
3736 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3737 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3738 wxString
*arg3
= 0 ;
3740 bool temp3
= False
;
3741 PyObject
* obj0
= 0 ;
3742 PyObject
* obj1
= 0 ;
3743 PyObject
* obj2
= 0 ;
3745 (char *) "self",(char *) "node",(char *) "classname", NULL
3748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3749 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3750 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3752 arg3
= wxString_in_helper(obj2
);
3753 if (arg3
== NULL
) SWIG_fail
;
3757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3758 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
3760 wxPyEndAllowThreads(__tstate
);
3761 if (PyErr_Occurred()) SWIG_fail
;
3763 resultobj
= PyInt_FromLong((long)result
);
3778 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3779 PyObject
*resultobj
;
3780 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3781 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3783 PyObject
* obj0
= 0 ;
3784 PyObject
* obj1
= 0 ;
3786 (char *) "self",(char *) "node", NULL
3789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3790 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3791 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3794 result
= (arg1
)->GetNodeContent(arg2
);
3796 wxPyEndAllowThreads(__tstate
);
3797 if (PyErr_Occurred()) SWIG_fail
;
3801 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3803 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3812 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3813 PyObject
*resultobj
;
3814 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3815 wxString
*arg2
= 0 ;
3817 bool temp2
= False
;
3818 PyObject
* obj0
= 0 ;
3819 PyObject
* obj1
= 0 ;
3821 (char *) "self",(char *) "param", NULL
3824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
3825 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3827 arg2
= wxString_in_helper(obj1
);
3828 if (arg2
== NULL
) SWIG_fail
;
3832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3833 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
3835 wxPyEndAllowThreads(__tstate
);
3836 if (PyErr_Occurred()) SWIG_fail
;
3838 resultobj
= PyInt_FromLong((long)result
);
3853 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3854 PyObject
*resultobj
;
3855 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3856 wxString
*arg2
= 0 ;
3858 bool temp2
= False
;
3859 PyObject
* obj0
= 0 ;
3860 PyObject
* obj1
= 0 ;
3862 (char *) "self",(char *) "param", NULL
3865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
3866 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3868 arg2
= wxString_in_helper(obj1
);
3869 if (arg2
== NULL
) SWIG_fail
;
3873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3874 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
3876 wxPyEndAllowThreads(__tstate
);
3877 if (PyErr_Occurred()) SWIG_fail
;
3879 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3894 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3895 PyObject
*resultobj
;
3896 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3897 wxString
*arg2
= 0 ;
3899 bool temp2
= False
;
3900 PyObject
* obj0
= 0 ;
3901 PyObject
* obj1
= 0 ;
3903 (char *) "self",(char *) "param", NULL
3906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
3907 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3909 arg2
= wxString_in_helper(obj1
);
3910 if (arg2
== NULL
) SWIG_fail
;
3914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3915 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
3917 wxPyEndAllowThreads(__tstate
);
3918 if (PyErr_Occurred()) SWIG_fail
;
3922 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3924 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3941 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3942 PyObject
*resultobj
;
3943 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3944 wxString
*arg2
= 0 ;
3946 bool temp2
= False
;
3947 PyObject
* obj0
= 0 ;
3948 PyObject
* obj1
= 0 ;
3950 (char *) "self",(char *) "name",(char *) "value", NULL
3953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOi:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
3954 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3956 arg2
= wxString_in_helper(obj1
);
3957 if (arg2
== NULL
) SWIG_fail
;
3961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3962 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
3964 wxPyEndAllowThreads(__tstate
);
3965 if (PyErr_Occurred()) SWIG_fail
;
3967 Py_INCREF(Py_None
); resultobj
= Py_None
;
3982 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3983 PyObject
*resultobj
;
3984 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3985 PyObject
* obj0
= 0 ;
3987 (char *) "self", NULL
3990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
3991 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3994 (arg1
)->AddWindowStyles();
3996 wxPyEndAllowThreads(__tstate
);
3997 if (PyErr_Occurred()) SWIG_fail
;
3999 Py_INCREF(Py_None
); resultobj
= Py_None
;
4006 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4007 PyObject
*resultobj
;
4008 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4009 wxString
const &arg2_defvalue
= wxPyStyleString
;
4010 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4011 int arg3
= (int) 0 ;
4013 bool temp2
= False
;
4014 PyObject
* obj0
= 0 ;
4015 PyObject
* obj1
= 0 ;
4017 (char *) "self",(char *) "param",(char *) "defaults", NULL
4020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|Oi:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4021 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4024 arg2
= wxString_in_helper(obj1
);
4025 if (arg2
== NULL
) SWIG_fail
;
4030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4031 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4033 wxPyEndAllowThreads(__tstate
);
4034 if (PyErr_Occurred()) SWIG_fail
;
4036 resultobj
= PyInt_FromLong((long)result
);
4051 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4052 PyObject
*resultobj
;
4053 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4054 wxString
*arg2
= 0 ;
4055 bool arg3
= (bool) True
;
4057 bool temp2
= False
;
4058 PyObject
* obj0
= 0 ;
4059 PyObject
* obj1
= 0 ;
4060 PyObject
* obj2
= 0 ;
4062 (char *) "self",(char *) "param",(char *) "translate", NULL
4065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4066 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4068 arg2
= wxString_in_helper(obj1
);
4069 if (arg2
== NULL
) SWIG_fail
;
4073 arg3
= PyInt_AsLong(obj2
) ? true : false;
4074 if (PyErr_Occurred()) SWIG_fail
;
4077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4078 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4080 wxPyEndAllowThreads(__tstate
);
4081 if (PyErr_Occurred()) SWIG_fail
;
4085 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4087 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4104 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4105 PyObject
*resultobj
;
4106 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4108 PyObject
* obj0
= 0 ;
4110 (char *) "self", NULL
4113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4114 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4117 result
= (int)(arg1
)->GetID();
4119 wxPyEndAllowThreads(__tstate
);
4120 if (PyErr_Occurred()) SWIG_fail
;
4122 resultobj
= PyInt_FromLong((long)result
);
4129 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4130 PyObject
*resultobj
;
4131 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4133 PyObject
* obj0
= 0 ;
4135 (char *) "self", NULL
4138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4139 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4142 result
= (arg1
)->GetName();
4144 wxPyEndAllowThreads(__tstate
);
4145 if (PyErr_Occurred()) SWIG_fail
;
4149 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4151 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4160 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4161 PyObject
*resultobj
;
4162 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4163 wxString
*arg2
= 0 ;
4164 bool arg3
= (bool) False
;
4166 bool temp2
= False
;
4167 PyObject
* obj0
= 0 ;
4168 PyObject
* obj1
= 0 ;
4169 PyObject
* obj2
= 0 ;
4171 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4175 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4177 arg2
= wxString_in_helper(obj1
);
4178 if (arg2
== NULL
) SWIG_fail
;
4182 arg3
= PyInt_AsLong(obj2
) ? true : false;
4183 if (PyErr_Occurred()) SWIG_fail
;
4186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4187 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4189 wxPyEndAllowThreads(__tstate
);
4190 if (PyErr_Occurred()) SWIG_fail
;
4192 resultobj
= PyInt_FromLong((long)result
);
4207 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4208 PyObject
*resultobj
;
4209 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4210 wxString
*arg2
= 0 ;
4211 long arg3
= (long) 0 ;
4213 bool temp2
= False
;
4214 PyObject
* obj0
= 0 ;
4215 PyObject
* obj1
= 0 ;
4217 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|l:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4221 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4223 arg2
= wxString_in_helper(obj1
);
4224 if (arg2
== NULL
) SWIG_fail
;
4228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4229 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4231 wxPyEndAllowThreads(__tstate
);
4232 if (PyErr_Occurred()) SWIG_fail
;
4234 resultobj
= PyInt_FromLong((long)result
);
4249 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4250 PyObject
*resultobj
;
4251 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4252 wxString
*arg2
= 0 ;
4254 bool temp2
= False
;
4255 PyObject
* obj0
= 0 ;
4256 PyObject
* obj1
= 0 ;
4258 (char *) "self",(char *) "param", NULL
4261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4262 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4264 arg2
= wxString_in_helper(obj1
);
4265 if (arg2
== NULL
) SWIG_fail
;
4269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4270 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4272 wxPyEndAllowThreads(__tstate
);
4273 if (PyErr_Occurred()) SWIG_fail
;
4276 wxColour
* resultptr
;
4277 resultptr
= new wxColour((wxColour
&) result
);
4278 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4294 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4295 PyObject
*resultobj
;
4296 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4297 wxString
const &arg2_defvalue
= wxPySizeString
;
4298 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4300 bool temp2
= False
;
4301 PyObject
* obj0
= 0 ;
4302 PyObject
* obj1
= 0 ;
4304 (char *) "self",(char *) "param", NULL
4307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4308 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4311 arg2
= wxString_in_helper(obj1
);
4312 if (arg2
== NULL
) SWIG_fail
;
4317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4318 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4320 wxPyEndAllowThreads(__tstate
);
4321 if (PyErr_Occurred()) SWIG_fail
;
4325 resultptr
= new wxSize((wxSize
&) result
);
4326 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4342 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4343 PyObject
*resultobj
;
4344 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4345 wxString
const &arg2_defvalue
= wxPyPosString
;
4346 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4348 bool temp2
= False
;
4349 PyObject
* obj0
= 0 ;
4350 PyObject
* obj1
= 0 ;
4352 (char *) "self",(char *) "param", NULL
4355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4356 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4359 arg2
= wxString_in_helper(obj1
);
4360 if (arg2
== NULL
) SWIG_fail
;
4365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4366 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4368 wxPyEndAllowThreads(__tstate
);
4369 if (PyErr_Occurred()) SWIG_fail
;
4372 wxPoint
* resultptr
;
4373 resultptr
= new wxPoint((wxPoint
&) result
);
4374 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4390 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4391 PyObject
*resultobj
;
4392 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4393 wxString
*arg2
= 0 ;
4394 int arg3
= (int) 0 ;
4396 bool temp2
= False
;
4397 PyObject
* obj0
= 0 ;
4398 PyObject
* obj1
= 0 ;
4400 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|i:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4404 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4406 arg2
= wxString_in_helper(obj1
);
4407 if (arg2
== NULL
) SWIG_fail
;
4411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4412 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4414 wxPyEndAllowThreads(__tstate
);
4415 if (PyErr_Occurred()) SWIG_fail
;
4417 resultobj
= PyInt_FromLong((long)result
);
4432 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4433 PyObject
*resultobj
;
4434 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4435 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4436 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4437 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4438 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4439 wxSize arg4
= (wxSize
) wxDefaultSize
;
4441 bool temp2
= False
;
4443 PyObject
* obj0
= 0 ;
4444 PyObject
* obj1
= 0 ;
4445 PyObject
* obj2
= 0 ;
4446 PyObject
* obj3
= 0 ;
4448 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4452 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4455 arg2
= wxString_in_helper(obj1
);
4456 if (arg2
== NULL
) SWIG_fail
;
4461 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4463 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4467 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4472 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4474 wxPyEndAllowThreads(__tstate
);
4475 if (PyErr_Occurred()) SWIG_fail
;
4478 wxBitmap
* resultptr
;
4479 resultptr
= new wxBitmap((wxBitmap
&) result
);
4480 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4496 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4497 PyObject
*resultobj
;
4498 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4499 wxString
const &arg2_defvalue
= wxPyIconString
;
4500 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4501 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4502 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4503 wxSize arg4
= (wxSize
) wxDefaultSize
;
4505 bool temp2
= False
;
4507 PyObject
* obj0
= 0 ;
4508 PyObject
* obj1
= 0 ;
4509 PyObject
* obj2
= 0 ;
4510 PyObject
* obj3
= 0 ;
4512 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4516 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4519 arg2
= wxString_in_helper(obj1
);
4520 if (arg2
== NULL
) SWIG_fail
;
4525 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4527 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4531 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4536 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4538 wxPyEndAllowThreads(__tstate
);
4539 if (PyErr_Occurred()) SWIG_fail
;
4543 resultptr
= new wxIcon((wxIcon
&) result
);
4544 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4560 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4561 PyObject
*resultobj
;
4562 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4563 wxString
const &arg2_defvalue
= wxPyFontString
;
4564 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4566 bool temp2
= False
;
4567 PyObject
* obj0
= 0 ;
4568 PyObject
* obj1
= 0 ;
4570 (char *) "self",(char *) "param", NULL
4573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4574 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4577 arg2
= wxString_in_helper(obj1
);
4578 if (arg2
== NULL
) SWIG_fail
;
4583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4584 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4586 wxPyEndAllowThreads(__tstate
);
4587 if (PyErr_Occurred()) SWIG_fail
;
4591 resultptr
= new wxFont((wxFont
&) result
);
4592 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4608 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4609 PyObject
*resultobj
;
4610 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4611 wxWindow
*arg2
= (wxWindow
*) 0 ;
4612 PyObject
* obj0
= 0 ;
4613 PyObject
* obj1
= 0 ;
4615 (char *) "self",(char *) "wnd", NULL
4618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4619 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4620 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4623 (arg1
)->SetupWindow(arg2
);
4625 wxPyEndAllowThreads(__tstate
);
4626 if (PyErr_Occurred()) SWIG_fail
;
4628 Py_INCREF(Py_None
); resultobj
= Py_None
;
4635 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4636 PyObject
*resultobj
;
4637 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4638 wxObject
*arg2
= (wxObject
*) 0 ;
4639 bool arg3
= (bool) False
;
4640 PyObject
* obj0
= 0 ;
4641 PyObject
* obj1
= 0 ;
4642 PyObject
* obj2
= 0 ;
4644 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4648 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4649 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4651 arg3
= PyInt_AsLong(obj2
) ? true : false;
4652 if (PyErr_Occurred()) SWIG_fail
;
4655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4656 (arg1
)->CreateChildren(arg2
,arg3
);
4658 wxPyEndAllowThreads(__tstate
);
4659 if (PyErr_Occurred()) SWIG_fail
;
4661 Py_INCREF(Py_None
); resultobj
= Py_None
;
4668 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4669 PyObject
*resultobj
;
4670 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4671 wxObject
*arg2
= (wxObject
*) 0 ;
4672 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4673 PyObject
* obj0
= 0 ;
4674 PyObject
* obj1
= 0 ;
4675 PyObject
* obj2
= 0 ;
4677 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4681 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4682 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4684 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4688 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
4690 wxPyEndAllowThreads(__tstate
);
4691 if (PyErr_Occurred()) SWIG_fail
;
4693 Py_INCREF(Py_None
); resultobj
= Py_None
;
4700 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
*resultobj
;
4702 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4703 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4704 wxObject
*arg3
= (wxObject
*) 0 ;
4705 wxObject
*arg4
= (wxObject
*) NULL
;
4707 PyObject
* obj0
= 0 ;
4708 PyObject
* obj1
= 0 ;
4709 PyObject
* obj2
= 0 ;
4710 PyObject
* obj3
= 0 ;
4712 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
4715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4716 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4717 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4718 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4720 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4724 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
4726 wxPyEndAllowThreads(__tstate
);
4727 if (PyErr_Occurred()) SWIG_fail
;
4730 resultobj
= wxPyMake_wxObject(result
);
4738 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4739 PyObject
*resultobj
;
4740 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4741 wxFileSystem
*result
;
4742 PyObject
* obj0
= 0 ;
4744 (char *) "self", NULL
4747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
4748 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4752 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
4753 result
= (wxFileSystem
*) &_result_ref
;
4756 wxPyEndAllowThreads(__tstate
);
4757 if (PyErr_Occurred()) SWIG_fail
;
4759 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
4766 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
4768 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4769 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
4771 return Py_BuildValue((char *)"");
4773 static PyMethodDef SwigMethods
[] = {
4774 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4775 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4776 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4777 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
4778 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
4779 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4780 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
4781 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
4782 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4783 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4784 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
4785 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
4786 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4787 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
4788 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
4789 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
4790 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
4791 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
4792 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
4793 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4794 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
4795 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
4796 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4797 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
4798 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
4799 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
4800 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4801 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
4802 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
4803 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
4804 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4805 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4806 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
4807 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4808 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4809 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
4810 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
4811 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4812 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
4813 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4814 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4815 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
4816 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4817 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
4818 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4819 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4820 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
4821 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
4822 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
4823 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
4824 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
4825 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
4826 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
4827 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
4828 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4829 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
4830 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4831 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4832 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4833 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4834 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
4835 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
4836 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
4837 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4838 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
4839 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
4840 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4841 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4842 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4843 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
4844 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4845 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4846 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4847 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4848 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
4849 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4850 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
4851 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
4852 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
4853 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4854 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4855 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4856 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4857 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4858 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4859 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
4860 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
4861 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4862 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
4863 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
4864 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
4865 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
4866 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
4867 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4868 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
4869 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4870 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4871 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
4872 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
4873 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
4874 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
4875 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
4876 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
4877 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
4878 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
4879 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
4880 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
4881 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4882 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
4883 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
4884 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
4885 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
4886 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
4887 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
4888 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4889 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
4890 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
4891 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
4892 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
4893 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
4894 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
4895 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
4896 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
4901 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4903 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4904 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4906 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
4907 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
4909 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4910 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4912 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4913 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4915 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4916 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4918 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4919 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4921 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4922 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4924 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4925 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4927 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4928 return (void *)((wxObject
*) ((wxSizer
*) x
));
4930 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4931 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4933 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4934 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4936 static void *_p_wxEventTo_p_wxObject(void *x
) {
4937 return (void *)((wxObject
*) ((wxEvent
*) x
));
4939 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4940 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4942 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4943 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4945 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4946 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4948 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4949 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4951 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4952 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4954 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4955 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4957 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4958 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4960 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4961 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4963 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4964 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4966 static void *_p_wxControlTo_p_wxObject(void *x
) {
4967 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4969 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4970 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4972 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4973 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4975 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4976 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4978 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4979 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4981 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4982 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4984 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4985 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4987 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4988 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4990 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4991 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4993 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4994 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4996 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4997 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4999 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5000 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5002 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5003 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5005 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5006 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5008 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5009 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5011 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5012 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5014 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5015 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5017 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5018 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5020 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5021 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5023 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5024 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5026 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5027 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5029 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5030 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5032 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5033 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5035 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5036 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5038 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5039 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5041 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5042 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5044 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5045 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5047 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5048 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5050 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5051 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5053 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5054 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5056 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5057 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5059 static void *_p_wxImageTo_p_wxObject(void *x
) {
5060 return (void *)((wxObject
*) ((wxImage
*) x
));
5062 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5063 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5065 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5066 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5068 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5069 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5071 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5072 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5074 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5075 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5077 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5078 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5080 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5081 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5083 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5084 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5086 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5087 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5089 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5090 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5092 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5093 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5095 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5096 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5098 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5099 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5101 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5102 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5104 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5105 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5107 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5108 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5110 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5111 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5113 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5114 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5116 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5117 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5119 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5120 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5122 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5123 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5125 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5126 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5128 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5129 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5131 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5132 return (void *)((wxWindow
*) ((wxControl
*) x
));
5134 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5135 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5137 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5138 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5140 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5141 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5142 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}};
5143 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5144 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5145 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}};
5146 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5147 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5148 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5149 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5150 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5151 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5152 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5153 static swig_type_info _swigt__p_wxString
[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
5154 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5155 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5156 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5157 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5158 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5159 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5160 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5161 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5163 static swig_type_info
*swig_types_initial
[] = {
5170 _swigt__p_wxArtClient
,
5172 _swigt__p_wxPyXmlSubclassFactory
,
5174 _swigt__p_wxXmlNode
,
5175 _swigt__p_wxInputStream
,
5176 _swigt__p_wxOutputStream
,
5178 _swigt__p_wxPyXmlResourceHandler
,
5179 _swigt__p_wxFileSystem
,
5180 _swigt__p_wxXmlProperty
,
5182 _swigt__p_wxXmlResource
,
5183 _swigt__p_wxXmlDocument
,
5190 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5192 static swig_const_info swig_const_table
[] = {
5193 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MAJOR", (long) WX_XMLRES_CURRENT_VERSION_MAJOR
, 0, 0, 0},
5194 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MINOR", (long) WX_XMLRES_CURRENT_VERSION_MINOR
, 0, 0, 0},
5195 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_RELEASE", (long) WX_XMLRES_CURRENT_VERSION_RELEASE
, 0, 0, 0},
5196 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_REVISION", (long) WX_XMLRES_CURRENT_VERSION_REVISION
, 0, 0, 0},
5197 { SWIG_PY_INT
, (char *)"XRC_USE_LOCALE", (long) wxXRC_USE_LOCALE
, 0, 0, 0},
5198 { SWIG_PY_INT
, (char *)"XRC_NO_SUBCLASSING", (long) wxXRC_NO_SUBCLASSING
, 0, 0, 0},
5199 { SWIG_PY_INT
, (char *)"XML_ELEMENT_NODE", (long) wxXML_ELEMENT_NODE
, 0, 0, 0},
5200 { SWIG_PY_INT
, (char *)"XML_ATTRIBUTE_NODE", (long) wxXML_ATTRIBUTE_NODE
, 0, 0, 0},
5201 { SWIG_PY_INT
, (char *)"XML_TEXT_NODE", (long) wxXML_TEXT_NODE
, 0, 0, 0},
5202 { SWIG_PY_INT
, (char *)"XML_CDATA_SECTION_NODE", (long) wxXML_CDATA_SECTION_NODE
, 0, 0, 0},
5203 { SWIG_PY_INT
, (char *)"XML_ENTITY_REF_NODE", (long) wxXML_ENTITY_REF_NODE
, 0, 0, 0},
5204 { SWIG_PY_INT
, (char *)"XML_ENTITY_NODE", (long) wxXML_ENTITY_NODE
, 0, 0, 0},
5205 { SWIG_PY_INT
, (char *)"XML_PI_NODE", (long) wxXML_PI_NODE
, 0, 0, 0},
5206 { SWIG_PY_INT
, (char *)"XML_COMMENT_NODE", (long) wxXML_COMMENT_NODE
, 0, 0, 0},
5207 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_NODE", (long) wxXML_DOCUMENT_NODE
, 0, 0, 0},
5208 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_TYPE_NODE", (long) wxXML_DOCUMENT_TYPE_NODE
, 0, 0, 0},
5209 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_FRAG_NODE", (long) wxXML_DOCUMENT_FRAG_NODE
, 0, 0, 0},
5210 { SWIG_PY_INT
, (char *)"XML_NOTATION_NODE", (long) wxXML_NOTATION_NODE
, 0, 0, 0},
5211 { SWIG_PY_INT
, (char *)"XML_HTML_DOCUMENT_NODE", (long) wxXML_HTML_DOCUMENT_NODE
, 0, 0, 0},
5221 SWIGEXPORT(void) SWIG_init(void) {
5222 static PyObject
*SWIG_globals
= 0;
5223 static int typeinit
= 0;
5226 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5227 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5228 d
= PyModule_GetDict(m
);
5231 for (i
= 0; swig_types_initial
[i
]; i
++) {
5232 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5236 SWIG_InstallConstants(d
,swig_const_table
);
5240 wxXmlInitResourceModule();
5241 wxXmlResource::Get()->InitAllHandlers();