1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
52 /***********************************************************************
53 * common.swg for wxPython
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
60 ************************************************************************/
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
114 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
116 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
128 /***********************************************************************
129 * pyrun.swg for wxPython
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
136 ************************************************************************/
144 #define SWIG_PY_INT 1
145 #define SWIG_PY_FLOAT 2
146 #define SWIG_PY_STRING 3
147 #define SWIG_PY_POINTER 4
148 #define SWIG_PY_BINARY 5
150 /* Flags for pointer conversion */
152 #define SWIG_POINTER_EXCEPTION 0x1
153 #define SWIG_POINTER_DISOWN 0x2
155 /* Exception handling in wrappers */
156 #define SWIG_fail goto fail
158 /* Constant information structure */
159 typedef struct swig_const_info
{
165 swig_type_info
**ptype
;
168 /* Common SWIG API */
169 #define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171 #define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173 #define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
176 /* Python-specific SWIG API */
177 #define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
183 #define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185 #define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
190 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
192 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
195 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
200 /* Contract support */
202 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
210 /* -------- TYPES TABLE (BEGIN) -------- */
212 #define SWIGTYPE_p_wxFrame swig_types[0]
213 #define SWIGTYPE_p_wxIcon swig_types[1]
214 #define SWIGTYPE_p_wxObject swig_types[2]
215 #define SWIGTYPE_p_wxDialog swig_types[3]
216 #define SWIGTYPE_p_wxColour swig_types[4]
217 #define SWIGTYPE_p_wxWindow swig_types[5]
218 #define SWIGTYPE_p_wxArtClient swig_types[6]
219 #define SWIGTYPE_p_wxBitmap swig_types[7]
220 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
221 #define SWIGTYPE_p_wxPoint swig_types[9]
222 #define SWIGTYPE_p_wxXmlNode swig_types[10]
223 #define SWIGTYPE_p_wxInputStream swig_types[11]
224 #define SWIGTYPE_p_wxOutputStream swig_types[12]
225 #define SWIGTYPE_p_wxString swig_types[13]
226 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
227 #define SWIGTYPE_p_wxFileSystem swig_types[15]
228 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
229 #define SWIGTYPE_p_wxFont swig_types[17]
230 #define SWIGTYPE_p_wxXmlResource swig_types[18]
231 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
232 #define SWIGTYPE_p_wxPanel swig_types[20]
233 #define SWIGTYPE_p_wxSize swig_types[21]
234 static swig_type_info
*swig_types
[23];
236 /* -------- TYPES TABLE (END) -------- */
239 /*-----------------------------------------------
241 ------------------------------------------------*/
242 #define SWIG_init init_xrc
244 #define SWIG_name "_xrc"
246 #include "wx/wxPython/wxPython.h"
247 #include "wx/wxPython/pyclasses.h"
248 #include "wx/wxPython/pyistream.h"
250 #include <wx/xml/xml.h>
251 #include <wx/xrc/xmlres.h>
253 static const wxString
wxPyEmptyString(wxT(""));
254 static const wxString
wxPyUTF8String(wxT("UTF-8"));
255 static const wxString
wxPyStyleString(wxT("style"));
256 static const wxString
wxPySizeString(wxT("size"));
257 static const wxString
wxPyPosString(wxT("pos"));
258 static const wxString
wxPyBitmapString(wxT("bitmap"));
259 static const wxString
wxPyIconString(wxT("icon"));
260 static const wxString
wxPyFontString(wxT("font"));
262 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
263 static int s_memFileIdx
= 0;
265 // Check for memory FS. If not present, load the handler:
266 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
269 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
270 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
274 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
276 // Now put the resource data into the memory FS
277 wxString
filename(wxT("XRC_resource/data_string_"));
278 filename
<< s_memFileIdx
;
280 wxMemoryFSHandler::AddFile(filename
, data
);
282 // Load the "file" into the resource object
283 bool retval
= self
->Load(wxT("memory:") + filename
);
288 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
291 wxPyXmlSubclassFactory() {}
292 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
296 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
298 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
299 // callbacks, as well as to make some protected things public so they can
301 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
303 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
304 //~wxPyXmlResourceHandler();
306 // Base class virtuals
308 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
309 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
312 // accessors for protected members
314 wxXmlResource
* GetResource() { return m_resource
; }
315 wxXmlNode
* GetNode() { return m_node
; }
316 wxString
GetClass() { return m_class
; }
317 wxObject
* GetParent() { return m_parent
; }
318 wxObject
* GetInstance() { return m_instance
; }
319 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
320 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
323 // turn some protected methods into public via delegation
325 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
326 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
328 wxString
GetNodeContent(wxXmlNode
*node
)
329 { return wxXmlResourceHandler::GetNodeContent(node
); }
331 bool HasParam(const wxString
& param
)
332 { return wxXmlResourceHandler::HasParam(param
); }
334 wxXmlNode
*GetParamNode(const wxString
& param
)
335 { return wxXmlResourceHandler::GetParamNode(param
); }
337 wxString
GetParamValue(const wxString
& param
)
338 { return wxXmlResourceHandler::GetParamValue(param
); }
340 void AddStyle(const wxString
& name
, int value
)
341 { wxXmlResourceHandler::AddStyle(name
, value
); }
343 void AddWindowStyles()
344 { wxXmlResourceHandler::AddWindowStyles(); }
346 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
347 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
349 wxString
GetText(const wxString
& param
, bool translate
= True
)
350 { return wxXmlResourceHandler::GetText(param
, translate
); }
353 { return wxXmlResourceHandler::GetID(); }
356 { return wxXmlResourceHandler::GetName(); }
358 bool GetBool(const wxString
& param
, bool defaultv
= False
)
359 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
361 long GetLong( const wxString
& param
, long defaultv
= 0 )
362 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
364 wxColour
GetColour(const wxString
& param
)
365 { return wxXmlResourceHandler::GetColour(param
); }
367 wxSize
GetSize(const wxString
& param
= wxT("size"))
368 { return wxXmlResourceHandler::GetSize(param
); }
370 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
371 { return wxXmlResourceHandler::GetPosition(param
); }
373 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
374 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
376 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
377 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
378 wxSize size
= wxDefaultSize
)
379 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
381 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
382 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
383 wxSize size
= wxDefaultSize
)
384 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
386 wxFont
GetFont(const wxString
& param
= wxT("font"))
387 { return wxXmlResourceHandler::GetFont(param
); }
389 void SetupWindow(wxWindow
*wnd
)
390 { wxXmlResourceHandler::SetupWindow(wnd
); }
392 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
393 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
395 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
396 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
398 wxObject
*CreateResFromNode(wxXmlNode
*node
,
399 wxObject
*parent
, wxObject
*instance
= NULL
)
400 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
402 wxFileSystem
& GetCurFileSystem()
403 { return wxXmlResourceHandler::GetCurFileSystem(); }
409 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
410 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
416 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
419 int arg2
= (int) wxXRC_USE_LOCALE
;
420 wxXmlResource
*result
;
422 PyObject
* obj0
= 0 ;
424 (char *) "filemask",(char *) "flags", NULL
427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|i:new_XmlResource",kwnames
,&obj0
,&arg2
)) goto fail
;
429 arg1
= wxString_in_helper(obj0
);
430 if (arg1
== NULL
) SWIG_fail
;
434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
435 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
437 wxPyEndAllowThreads(__tstate
);
438 if (PyErr_Occurred()) SWIG_fail
;
440 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
455 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 int arg1
= (int) wxXRC_USE_LOCALE
;
458 wxXmlResource
*result
;
460 (char *) "flags", NULL
463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|i:new_EmptyXmlResource",kwnames
,&arg1
)) goto fail
;
465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
466 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
468 wxPyEndAllowThreads(__tstate
);
469 if (PyErr_Occurred()) SWIG_fail
;
471 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
478 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
480 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
481 PyObject
* obj0
= 0 ;
483 (char *) "self", NULL
486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
487 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
492 wxPyEndAllowThreads(__tstate
);
493 if (PyErr_Occurred()) SWIG_fail
;
495 Py_INCREF(Py_None
); resultobj
= Py_None
;
502 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
504 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
508 PyObject
* obj0
= 0 ;
509 PyObject
* obj1
= 0 ;
511 (char *) "self",(char *) "filemask", NULL
514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
515 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
517 arg2
= wxString_in_helper(obj1
);
518 if (arg2
== NULL
) SWIG_fail
;
522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
523 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
525 wxPyEndAllowThreads(__tstate
);
526 if (PyErr_Occurred()) SWIG_fail
;
528 resultobj
= PyInt_FromLong((long)result
);
543 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
545 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
549 PyObject
* obj0
= 0 ;
550 PyObject
* obj1
= 0 ;
552 (char *) "self",(char *) "data", NULL
555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
556 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
558 arg2
= wxString_in_helper(obj1
);
559 if (arg2
== NULL
) SWIG_fail
;
563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
564 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
566 wxPyEndAllowThreads(__tstate
);
567 if (PyErr_Occurred()) SWIG_fail
;
569 resultobj
= PyInt_FromLong((long)result
);
584 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
586 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
587 PyObject
* obj0
= 0 ;
589 (char *) "self", NULL
592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
593 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
596 (arg1
)->InitAllHandlers();
598 wxPyEndAllowThreads(__tstate
);
599 if (PyErr_Occurred()) SWIG_fail
;
601 Py_INCREF(Py_None
); resultobj
= Py_None
;
608 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
610 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
611 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
612 PyObject
* obj0
= 0 ;
613 PyObject
* obj1
= 0 ;
615 (char *) "self",(char *) "handler", NULL
618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
619 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
620 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
623 (arg1
)->AddHandler(arg2
);
625 wxPyEndAllowThreads(__tstate
);
626 if (PyErr_Occurred()) SWIG_fail
;
628 Py_INCREF(Py_None
); resultobj
= Py_None
;
635 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
637 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
638 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
639 PyObject
* obj0
= 0 ;
640 PyObject
* obj1
= 0 ;
642 (char *) "self",(char *) "handler", NULL
645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
646 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
647 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
650 (arg1
)->InsertHandler(arg2
);
652 wxPyEndAllowThreads(__tstate
);
653 if (PyErr_Occurred()) SWIG_fail
;
655 Py_INCREF(Py_None
); resultobj
= Py_None
;
662 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
664 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
665 PyObject
* obj0
= 0 ;
667 (char *) "self", NULL
670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
671 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
674 (arg1
)->ClearHandlers();
676 wxPyEndAllowThreads(__tstate
);
677 if (PyErr_Occurred()) SWIG_fail
;
679 Py_INCREF(Py_None
); resultobj
= Py_None
;
686 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
688 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
689 PyObject
* obj0
= 0 ;
691 (char *) "factory", NULL
694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
695 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
698 wxXmlResource::AddSubclassFactory(arg1
);
700 wxPyEndAllowThreads(__tstate
);
701 if (PyErr_Occurred()) SWIG_fail
;
703 Py_INCREF(Py_None
); resultobj
= Py_None
;
710 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
712 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
716 PyObject
* obj0
= 0 ;
717 PyObject
* obj1
= 0 ;
719 (char *) "self",(char *) "name", NULL
722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
723 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
725 arg2
= wxString_in_helper(obj1
);
726 if (arg2
== NULL
) SWIG_fail
;
730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
731 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
733 wxPyEndAllowThreads(__tstate
);
734 if (PyErr_Occurred()) SWIG_fail
;
737 resultobj
= wxPyMake_wxObject(result
);
753 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
755 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
759 PyObject
* obj0
= 0 ;
760 PyObject
* obj1
= 0 ;
762 (char *) "self",(char *) "name", NULL
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
766 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
768 arg2
= wxString_in_helper(obj1
);
769 if (arg2
== NULL
) SWIG_fail
;
773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
774 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
776 wxPyEndAllowThreads(__tstate
);
777 if (PyErr_Occurred()) SWIG_fail
;
780 resultobj
= wxPyMake_wxObject(result
);
796 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
798 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
799 wxWindow
*arg2
= (wxWindow
*) 0 ;
803 PyObject
* obj0
= 0 ;
804 PyObject
* obj1
= 0 ;
805 PyObject
* obj2
= 0 ;
807 (char *) "self",(char *) "parent",(char *) "name", NULL
810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
811 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
812 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
814 arg3
= wxString_in_helper(obj2
);
815 if (arg3
== NULL
) SWIG_fail
;
819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
820 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
822 wxPyEndAllowThreads(__tstate
);
823 if (PyErr_Occurred()) SWIG_fail
;
826 resultobj
= wxPyMake_wxObject(result
);
842 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
845 wxWindow
*arg2
= (wxWindow
*) 0 ;
849 PyObject
* obj0
= 0 ;
850 PyObject
* obj1
= 0 ;
851 PyObject
* obj2
= 0 ;
853 (char *) "self",(char *) "parent",(char *) "name", NULL
856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
857 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
858 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
860 arg3
= wxString_in_helper(obj2
);
861 if (arg3
== NULL
) SWIG_fail
;
865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
866 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
868 wxPyEndAllowThreads(__tstate
);
869 if (PyErr_Occurred()) SWIG_fail
;
872 resultobj
= wxPyMake_wxObject(result
);
888 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
890 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
891 wxWindow
*arg2
= (wxWindow
*) 0 ;
895 PyObject
* obj0
= 0 ;
896 PyObject
* obj1
= 0 ;
897 PyObject
* obj2
= 0 ;
899 (char *) "self",(char *) "parent",(char *) "name", NULL
902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
903 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
904 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
906 arg3
= wxString_in_helper(obj2
);
907 if (arg3
== NULL
) SWIG_fail
;
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) SWIG_fail
;
917 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
932 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
934 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
935 wxDialog
*arg2
= (wxDialog
*) 0 ;
936 wxWindow
*arg3
= (wxWindow
*) 0 ;
940 PyObject
* obj0
= 0 ;
941 PyObject
* obj1
= 0 ;
942 PyObject
* obj2
= 0 ;
943 PyObject
* obj3
= 0 ;
945 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
949 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
950 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
951 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
953 arg4
= wxString_in_helper(obj3
);
954 if (arg4
== NULL
) SWIG_fail
;
958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
959 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
961 wxPyEndAllowThreads(__tstate
);
962 if (PyErr_Occurred()) SWIG_fail
;
964 resultobj
= PyInt_FromLong((long)result
);
979 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
981 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
982 wxWindow
*arg2
= (wxWindow
*) 0 ;
986 PyObject
* obj0
= 0 ;
987 PyObject
* obj1
= 0 ;
988 PyObject
* obj2
= 0 ;
990 (char *) "self",(char *) "parent",(char *) "name", NULL
993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
994 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
995 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
997 arg3
= wxString_in_helper(obj2
);
998 if (arg3
== NULL
) SWIG_fail
;
1002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1003 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1005 wxPyEndAllowThreads(__tstate
);
1006 if (PyErr_Occurred()) SWIG_fail
;
1008 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1023 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1024 PyObject
*resultobj
;
1025 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1026 wxPanel
*arg2
= (wxPanel
*) 0 ;
1027 wxWindow
*arg3
= (wxWindow
*) 0 ;
1028 wxString
*arg4
= 0 ;
1030 bool temp4
= False
;
1031 PyObject
* obj0
= 0 ;
1032 PyObject
* obj1
= 0 ;
1033 PyObject
* obj2
= 0 ;
1034 PyObject
* obj3
= 0 ;
1036 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1040 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1041 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1042 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1044 arg4
= wxString_in_helper(obj3
);
1045 if (arg4
== NULL
) SWIG_fail
;
1049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1050 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1052 wxPyEndAllowThreads(__tstate
);
1053 if (PyErr_Occurred()) SWIG_fail
;
1055 resultobj
= PyInt_FromLong((long)result
);
1070 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1071 PyObject
*resultobj
;
1072 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1073 wxWindow
*arg2
= (wxWindow
*) 0 ;
1074 wxString
*arg3
= 0 ;
1076 bool temp3
= False
;
1077 PyObject
* obj0
= 0 ;
1078 PyObject
* obj1
= 0 ;
1079 PyObject
* obj2
= 0 ;
1081 (char *) "self",(char *) "parent",(char *) "name", NULL
1084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1085 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1086 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1088 arg3
= wxString_in_helper(obj2
);
1089 if (arg3
== NULL
) SWIG_fail
;
1093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1094 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1096 wxPyEndAllowThreads(__tstate
);
1097 if (PyErr_Occurred()) SWIG_fail
;
1100 resultobj
= wxPyMake_wxObject(result
);
1116 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1117 PyObject
*resultobj
;
1118 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1119 wxFrame
*arg2
= (wxFrame
*) 0 ;
1120 wxWindow
*arg3
= (wxWindow
*) 0 ;
1121 wxString
*arg4
= 0 ;
1123 bool temp4
= False
;
1124 PyObject
* obj0
= 0 ;
1125 PyObject
* obj1
= 0 ;
1126 PyObject
* obj2
= 0 ;
1127 PyObject
* obj3
= 0 ;
1129 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1133 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1134 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1135 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1137 arg4
= wxString_in_helper(obj3
);
1138 if (arg4
== NULL
) SWIG_fail
;
1142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1143 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1145 wxPyEndAllowThreads(__tstate
);
1146 if (PyErr_Occurred()) SWIG_fail
;
1148 resultobj
= PyInt_FromLong((long)result
);
1163 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1164 PyObject
*resultobj
;
1165 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1166 wxWindow
*arg2
= (wxWindow
*) 0 ;
1167 wxString
*arg3
= 0 ;
1168 wxString
*arg4
= 0 ;
1170 bool temp3
= False
;
1171 bool temp4
= False
;
1172 PyObject
* obj0
= 0 ;
1173 PyObject
* obj1
= 0 ;
1174 PyObject
* obj2
= 0 ;
1175 PyObject
* obj3
= 0 ;
1177 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1181 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1182 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1184 arg3
= wxString_in_helper(obj2
);
1185 if (arg3
== NULL
) SWIG_fail
;
1189 arg4
= wxString_in_helper(obj3
);
1190 if (arg4
== NULL
) SWIG_fail
;
1194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1195 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1197 wxPyEndAllowThreads(__tstate
);
1198 if (PyErr_Occurred()) SWIG_fail
;
1201 resultobj
= wxPyMake_wxObject(result
);
1225 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1226 PyObject
*resultobj
;
1227 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1228 wxObject
*arg2
= (wxObject
*) 0 ;
1229 wxWindow
*arg3
= (wxWindow
*) 0 ;
1230 wxString
*arg4
= 0 ;
1231 wxString
*arg5
= 0 ;
1233 bool temp4
= False
;
1234 bool temp5
= False
;
1235 PyObject
* obj0
= 0 ;
1236 PyObject
* obj1
= 0 ;
1237 PyObject
* obj2
= 0 ;
1238 PyObject
* obj3
= 0 ;
1239 PyObject
* obj4
= 0 ;
1241 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1245 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1246 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1247 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1249 arg4
= wxString_in_helper(obj3
);
1250 if (arg4
== NULL
) SWIG_fail
;
1254 arg5
= wxString_in_helper(obj4
);
1255 if (arg5
== NULL
) SWIG_fail
;
1259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1260 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1262 wxPyEndAllowThreads(__tstate
);
1263 if (PyErr_Occurred()) SWIG_fail
;
1265 resultobj
= PyInt_FromLong((long)result
);
1288 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1289 PyObject
*resultobj
;
1290 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1291 wxString
*arg2
= 0 ;
1293 bool temp2
= False
;
1294 PyObject
* obj0
= 0 ;
1295 PyObject
* obj1
= 0 ;
1297 (char *) "self",(char *) "name", NULL
1300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1301 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1303 arg2
= wxString_in_helper(obj1
);
1304 if (arg2
== NULL
) SWIG_fail
;
1308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1309 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1311 wxPyEndAllowThreads(__tstate
);
1312 if (PyErr_Occurred()) SWIG_fail
;
1315 wxBitmap
* resultptr
;
1316 resultptr
= new wxBitmap((wxBitmap
&) result
);
1317 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1333 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1334 PyObject
*resultobj
;
1335 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1336 wxString
*arg2
= 0 ;
1338 bool temp2
= False
;
1339 PyObject
* obj0
= 0 ;
1340 PyObject
* obj1
= 0 ;
1342 (char *) "self",(char *) "name", NULL
1345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1346 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1348 arg2
= wxString_in_helper(obj1
);
1349 if (arg2
== NULL
) SWIG_fail
;
1353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1354 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1356 wxPyEndAllowThreads(__tstate
);
1357 if (PyErr_Occurred()) SWIG_fail
;
1361 resultptr
= new wxIcon((wxIcon
&) result
);
1362 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1378 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1379 PyObject
*resultobj
;
1380 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1381 wxString
*arg2
= 0 ;
1382 wxWindow
*arg3
= (wxWindow
*) 0 ;
1383 wxWindow
*arg4
= (wxWindow
*) NULL
;
1385 bool temp2
= False
;
1386 PyObject
* obj0
= 0 ;
1387 PyObject
* obj1
= 0 ;
1388 PyObject
* obj2
= 0 ;
1389 PyObject
* obj3
= 0 ;
1391 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1395 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1397 arg2
= wxString_in_helper(obj1
);
1398 if (arg2
== NULL
) SWIG_fail
;
1401 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1403 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1407 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1409 wxPyEndAllowThreads(__tstate
);
1410 if (PyErr_Occurred()) SWIG_fail
;
1412 resultobj
= PyInt_FromLong((long)result
);
1427 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1428 PyObject
*resultobj
;
1429 wxString
*arg1
= 0 ;
1431 bool temp1
= False
;
1432 PyObject
* obj0
= 0 ;
1434 (char *) "str_id", NULL
1437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1439 arg1
= wxString_in_helper(obj0
);
1440 if (arg1
== NULL
) SWIG_fail
;
1444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1445 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1447 wxPyEndAllowThreads(__tstate
);
1448 if (PyErr_Occurred()) SWIG_fail
;
1450 resultobj
= PyInt_FromLong((long)result
);
1465 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1466 PyObject
*resultobj
;
1467 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1469 PyObject
* obj0
= 0 ;
1471 (char *) "self", NULL
1474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1475 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1478 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1480 wxPyEndAllowThreads(__tstate
);
1481 if (PyErr_Occurred()) SWIG_fail
;
1483 resultobj
= PyInt_FromLong((long)result
);
1490 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1491 PyObject
*resultobj
;
1492 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1498 PyObject
* obj0
= 0 ;
1500 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oiiii:XmlResource_CompareVersion",kwnames
,&obj0
,&arg2
,&arg3
,&arg4
,&arg5
)) goto fail
;
1504 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1507 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1509 wxPyEndAllowThreads(__tstate
);
1510 if (PyErr_Occurred()) SWIG_fail
;
1512 resultobj
= PyInt_FromLong((long)result
);
1519 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1520 PyObject
*resultobj
;
1521 wxXmlResource
*result
;
1526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1529 result
= (wxXmlResource
*)wxXmlResource::Get();
1531 wxPyEndAllowThreads(__tstate
);
1532 if (PyErr_Occurred()) SWIG_fail
;
1534 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1541 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1542 PyObject
*resultobj
;
1543 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1544 wxXmlResource
*result
;
1545 PyObject
* obj0
= 0 ;
1547 (char *) "res", NULL
1550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1551 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1554 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1556 wxPyEndAllowThreads(__tstate
);
1557 if (PyErr_Occurred()) SWIG_fail
;
1559 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1566 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1567 PyObject
*resultobj
;
1568 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1570 PyObject
* obj0
= 0 ;
1572 (char *) "self", NULL
1575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1576 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1579 result
= (int)(arg1
)->GetFlags();
1581 wxPyEndAllowThreads(__tstate
);
1582 if (PyErr_Occurred()) SWIG_fail
;
1584 resultobj
= PyInt_FromLong((long)result
);
1591 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1592 PyObject
*resultobj
;
1593 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1595 PyObject
* obj0
= 0 ;
1597 (char *) "self",(char *) "flags", NULL
1600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlResource_SetFlags",kwnames
,&obj0
,&arg2
)) goto fail
;
1601 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1604 (arg1
)->SetFlags(arg2
);
1606 wxPyEndAllowThreads(__tstate
);
1607 if (PyErr_Occurred()) SWIG_fail
;
1609 Py_INCREF(Py_None
); resultobj
= Py_None
;
1616 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1618 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1619 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1621 return Py_BuildValue((char *)"");
1623 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1624 PyObject
*resultobj
;
1625 wxPyXmlSubclassFactory
*result
;
1630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1633 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1635 wxPyEndAllowThreads(__tstate
);
1636 if (PyErr_Occurred()) SWIG_fail
;
1638 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1645 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1646 PyObject
*resultobj
;
1647 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1648 PyObject
*arg2
= (PyObject
*) 0 ;
1649 PyObject
*arg3
= (PyObject
*) 0 ;
1650 PyObject
* obj0
= 0 ;
1651 PyObject
* obj1
= 0 ;
1652 PyObject
* obj2
= 0 ;
1654 (char *) "self",(char *) "self",(char *) "_class", NULL
1657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1658 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1663 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1665 wxPyEndAllowThreads(__tstate
);
1666 if (PyErr_Occurred()) SWIG_fail
;
1668 Py_INCREF(Py_None
); resultobj
= Py_None
;
1675 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1677 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1678 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1680 return Py_BuildValue((char *)"");
1682 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1683 PyObject
*resultobj
;
1684 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1685 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1686 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1687 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
1688 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
1689 wxXmlProperty
*result
;
1690 bool temp1
= False
;
1691 bool temp2
= False
;
1692 PyObject
* obj0
= 0 ;
1693 PyObject
* obj1
= 0 ;
1694 PyObject
* obj2
= 0 ;
1696 (char *) "name",(char *) "value",(char *) "next", NULL
1699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1702 arg1
= wxString_in_helper(obj0
);
1703 if (arg1
== NULL
) SWIG_fail
;
1709 arg2
= wxString_in_helper(obj1
);
1710 if (arg2
== NULL
) SWIG_fail
;
1715 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1719 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
1721 wxPyEndAllowThreads(__tstate
);
1722 if (PyErr_Occurred()) SWIG_fail
;
1724 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
1747 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
*resultobj
;
1749 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1751 PyObject
* obj0
= 0 ;
1753 (char *) "self", NULL
1756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
1757 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1760 result
= ((wxXmlProperty
const *)arg1
)->GetName();
1762 wxPyEndAllowThreads(__tstate
);
1763 if (PyErr_Occurred()) SWIG_fail
;
1767 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1769 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1778 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
*resultobj
;
1780 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1782 PyObject
* obj0
= 0 ;
1784 (char *) "self", NULL
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
1788 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1791 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
1793 wxPyEndAllowThreads(__tstate
);
1794 if (PyErr_Occurred()) SWIG_fail
;
1798 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1800 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1809 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1810 PyObject
*resultobj
;
1811 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1812 wxXmlProperty
*result
;
1813 PyObject
* obj0
= 0 ;
1815 (char *) "self", NULL
1818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
1819 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1822 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
1824 wxPyEndAllowThreads(__tstate
);
1825 if (PyErr_Occurred()) SWIG_fail
;
1827 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
1834 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1835 PyObject
*resultobj
;
1836 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1837 wxString
*arg2
= 0 ;
1838 bool temp2
= False
;
1839 PyObject
* obj0
= 0 ;
1840 PyObject
* obj1
= 0 ;
1842 (char *) "self",(char *) "name", NULL
1845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
1846 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1848 arg2
= wxString_in_helper(obj1
);
1849 if (arg2
== NULL
) SWIG_fail
;
1853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1854 (arg1
)->SetName((wxString
const &)*arg2
);
1856 wxPyEndAllowThreads(__tstate
);
1857 if (PyErr_Occurred()) SWIG_fail
;
1859 Py_INCREF(Py_None
); resultobj
= Py_None
;
1874 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1875 PyObject
*resultobj
;
1876 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1877 wxString
*arg2
= 0 ;
1878 bool temp2
= False
;
1879 PyObject
* obj0
= 0 ;
1880 PyObject
* obj1
= 0 ;
1882 (char *) "self",(char *) "value", NULL
1885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
1886 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1888 arg2
= wxString_in_helper(obj1
);
1889 if (arg2
== NULL
) SWIG_fail
;
1893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1894 (arg1
)->SetValue((wxString
const &)*arg2
);
1896 wxPyEndAllowThreads(__tstate
);
1897 if (PyErr_Occurred()) SWIG_fail
;
1899 Py_INCREF(Py_None
); resultobj
= Py_None
;
1914 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1915 PyObject
*resultobj
;
1916 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1917 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
1918 PyObject
* obj0
= 0 ;
1919 PyObject
* obj1
= 0 ;
1921 (char *) "self",(char *) "next", NULL
1924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
1925 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1926 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1929 (arg1
)->SetNext(arg2
);
1931 wxPyEndAllowThreads(__tstate
);
1932 if (PyErr_Occurred()) SWIG_fail
;
1934 Py_INCREF(Py_None
); resultobj
= Py_None
;
1941 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
1943 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1944 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
1946 return Py_BuildValue((char *)"");
1948 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1949 PyObject
*resultobj
;
1950 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
1951 int arg2
= (int) 0 ;
1952 wxString
const &arg3_defvalue
= wxPyEmptyString
;
1953 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
1954 wxString
const &arg4_defvalue
= wxPyEmptyString
;
1955 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
1956 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
1957 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
1959 bool temp3
= False
;
1960 bool temp4
= False
;
1961 PyObject
* obj0
= 0 ;
1962 PyObject
* obj2
= 0 ;
1963 PyObject
* obj3
= 0 ;
1964 PyObject
* obj4
= 0 ;
1965 PyObject
* obj5
= 0 ;
1967 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
1970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OiOOOO:new_XmlNode",kwnames
,&obj0
,&arg2
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
1972 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1976 arg3
= wxString_in_helper(obj2
);
1977 if (arg3
== NULL
) SWIG_fail
;
1983 arg4
= wxString_in_helper(obj3
);
1984 if (arg4
== NULL
) SWIG_fail
;
1989 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1992 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1996 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
1998 wxPyEndAllowThreads(__tstate
);
1999 if (PyErr_Occurred()) SWIG_fail
;
2001 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2024 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2025 PyObject
*resultobj
;
2026 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2027 PyObject
* obj0
= 0 ;
2029 (char *) "self", NULL
2032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2033 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2038 wxPyEndAllowThreads(__tstate
);
2039 if (PyErr_Occurred()) SWIG_fail
;
2041 Py_INCREF(Py_None
); resultobj
= Py_None
;
2048 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2049 PyObject
*resultobj
;
2051 wxString
*arg2
= 0 ;
2052 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2053 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2055 bool temp2
= False
;
2056 bool temp3
= False
;
2057 PyObject
* obj1
= 0 ;
2058 PyObject
* obj2
= 0 ;
2060 (char *) "type",(char *) "name",(char *) "content", NULL
2063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"iO|O:new_XmlNodeEasy",kwnames
,&arg1
,&obj1
,&obj2
)) goto fail
;
2065 arg2
= wxString_in_helper(obj1
);
2066 if (arg2
== NULL
) SWIG_fail
;
2071 arg3
= wxString_in_helper(obj2
);
2072 if (arg3
== NULL
) SWIG_fail
;
2077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2078 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2080 wxPyEndAllowThreads(__tstate
);
2081 if (PyErr_Occurred()) SWIG_fail
;
2083 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2106 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2107 PyObject
*resultobj
;
2108 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2109 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2110 PyObject
* obj0
= 0 ;
2111 PyObject
* obj1
= 0 ;
2113 (char *) "self",(char *) "child", NULL
2116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2117 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2118 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 (arg1
)->AddChild(arg2
);
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) SWIG_fail
;
2126 Py_INCREF(Py_None
); resultobj
= Py_None
;
2133 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2134 PyObject
*resultobj
;
2135 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2136 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2137 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2138 PyObject
* obj0
= 0 ;
2139 PyObject
* obj1
= 0 ;
2140 PyObject
* obj2
= 0 ;
2142 (char *) "self",(char *) "child",(char *) "before_node", NULL
2145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2146 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2147 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2148 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2151 (arg1
)->InsertChild(arg2
,arg3
);
2153 wxPyEndAllowThreads(__tstate
);
2154 if (PyErr_Occurred()) SWIG_fail
;
2156 Py_INCREF(Py_None
); resultobj
= Py_None
;
2163 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2164 PyObject
*resultobj
;
2165 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2166 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2168 PyObject
* obj0
= 0 ;
2169 PyObject
* obj1
= 0 ;
2171 (char *) "self",(char *) "child", NULL
2174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2175 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2176 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2179 result
= (bool)(arg1
)->RemoveChild(arg2
);
2181 wxPyEndAllowThreads(__tstate
);
2182 if (PyErr_Occurred()) SWIG_fail
;
2184 resultobj
= PyInt_FromLong((long)result
);
2191 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2192 PyObject
*resultobj
;
2193 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2194 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2195 PyObject
* obj0
= 0 ;
2196 PyObject
* obj1
= 0 ;
2198 (char *) "self",(char *) "prop", NULL
2201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2202 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2203 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2206 (arg1
)->AddProperty(arg2
);
2208 wxPyEndAllowThreads(__tstate
);
2209 if (PyErr_Occurred()) SWIG_fail
;
2211 Py_INCREF(Py_None
); resultobj
= Py_None
;
2218 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2219 PyObject
*resultobj
;
2220 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2221 wxString
*arg2
= 0 ;
2222 wxString
*arg3
= 0 ;
2223 bool temp2
= False
;
2224 bool temp3
= False
;
2225 PyObject
* obj0
= 0 ;
2226 PyObject
* obj1
= 0 ;
2227 PyObject
* obj2
= 0 ;
2229 (char *) "self",(char *) "name",(char *) "value", NULL
2232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2233 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2235 arg2
= wxString_in_helper(obj1
);
2236 if (arg2
== NULL
) SWIG_fail
;
2240 arg3
= wxString_in_helper(obj2
);
2241 if (arg3
== NULL
) SWIG_fail
;
2245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2246 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2248 wxPyEndAllowThreads(__tstate
);
2249 if (PyErr_Occurred()) SWIG_fail
;
2251 Py_INCREF(Py_None
); resultobj
= Py_None
;
2274 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2275 PyObject
*resultobj
;
2276 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2277 wxString
*arg2
= 0 ;
2279 bool temp2
= False
;
2280 PyObject
* obj0
= 0 ;
2281 PyObject
* obj1
= 0 ;
2283 (char *) "self",(char *) "name", NULL
2286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2287 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2289 arg2
= wxString_in_helper(obj1
);
2290 if (arg2
== NULL
) SWIG_fail
;
2294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2295 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2297 wxPyEndAllowThreads(__tstate
);
2298 if (PyErr_Occurred()) SWIG_fail
;
2300 resultobj
= PyInt_FromLong((long)result
);
2315 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
*resultobj
;
2317 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2319 PyObject
* obj0
= 0 ;
2321 (char *) "self", NULL
2324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2325 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2328 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2330 wxPyEndAllowThreads(__tstate
);
2331 if (PyErr_Occurred()) SWIG_fail
;
2333 resultobj
= PyInt_FromLong((long)result
);
2340 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2341 PyObject
*resultobj
;
2342 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2344 PyObject
* obj0
= 0 ;
2346 (char *) "self", NULL
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2350 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2353 result
= ((wxXmlNode
const *)arg1
)->GetName();
2355 wxPyEndAllowThreads(__tstate
);
2356 if (PyErr_Occurred()) SWIG_fail
;
2360 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2362 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2371 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2372 PyObject
*resultobj
;
2373 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2375 PyObject
* obj0
= 0 ;
2377 (char *) "self", NULL
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2381 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2384 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2386 wxPyEndAllowThreads(__tstate
);
2387 if (PyErr_Occurred()) SWIG_fail
;
2391 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2393 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2402 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2403 PyObject
*resultobj
;
2404 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2406 PyObject
* obj0
= 0 ;
2408 (char *) "self", NULL
2411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2412 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2415 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2417 wxPyEndAllowThreads(__tstate
);
2418 if (PyErr_Occurred()) SWIG_fail
;
2420 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2427 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2428 PyObject
*resultobj
;
2429 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2431 PyObject
* obj0
= 0 ;
2433 (char *) "self", NULL
2436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2437 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2440 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2442 wxPyEndAllowThreads(__tstate
);
2443 if (PyErr_Occurred()) SWIG_fail
;
2445 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2452 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2453 PyObject
*resultobj
;
2454 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2456 PyObject
* obj0
= 0 ;
2458 (char *) "self", NULL
2461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2462 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2465 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2467 wxPyEndAllowThreads(__tstate
);
2468 if (PyErr_Occurred()) SWIG_fail
;
2470 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2477 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
*resultobj
;
2479 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2480 wxXmlProperty
*result
;
2481 PyObject
* obj0
= 0 ;
2483 (char *) "self", NULL
2486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2487 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2490 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2492 wxPyEndAllowThreads(__tstate
);
2493 if (PyErr_Occurred()) SWIG_fail
;
2495 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2502 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2503 PyObject
*resultobj
;
2504 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2505 wxString
*arg2
= 0 ;
2506 wxString
*arg3
= 0 ;
2508 bool temp2
= False
;
2509 bool temp3
= False
;
2510 PyObject
* obj0
= 0 ;
2511 PyObject
* obj1
= 0 ;
2512 PyObject
* obj2
= 0 ;
2514 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2518 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2520 arg2
= wxString_in_helper(obj1
);
2521 if (arg2
== NULL
) SWIG_fail
;
2525 arg3
= wxString_in_helper(obj2
);
2526 if (arg3
== NULL
) SWIG_fail
;
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) SWIG_fail
;
2538 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2540 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2565 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2566 PyObject
*resultobj
;
2567 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2568 wxString
*arg2
= 0 ;
2570 bool temp2
= False
;
2571 PyObject
* obj0
= 0 ;
2572 PyObject
* obj1
= 0 ;
2574 (char *) "self",(char *) "propName", NULL
2577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2578 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2580 arg2
= wxString_in_helper(obj1
);
2581 if (arg2
== NULL
) SWIG_fail
;
2585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2586 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2588 wxPyEndAllowThreads(__tstate
);
2589 if (PyErr_Occurred()) SWIG_fail
;
2591 resultobj
= PyInt_FromLong((long)result
);
2606 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2607 PyObject
*resultobj
;
2608 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2610 PyObject
* obj0
= 0 ;
2612 (char *) "self",(char *) "type", NULL
2615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlNode_SetType",kwnames
,&obj0
,&arg2
)) goto fail
;
2616 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2619 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2621 wxPyEndAllowThreads(__tstate
);
2622 if (PyErr_Occurred()) SWIG_fail
;
2624 Py_INCREF(Py_None
); resultobj
= Py_None
;
2631 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2632 PyObject
*resultobj
;
2633 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2634 wxString
*arg2
= 0 ;
2635 bool temp2
= False
;
2636 PyObject
* obj0
= 0 ;
2637 PyObject
* obj1
= 0 ;
2639 (char *) "self",(char *) "name", NULL
2642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2643 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2645 arg2
= wxString_in_helper(obj1
);
2646 if (arg2
== NULL
) SWIG_fail
;
2650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2651 (arg1
)->SetName((wxString
const &)*arg2
);
2653 wxPyEndAllowThreads(__tstate
);
2654 if (PyErr_Occurred()) SWIG_fail
;
2656 Py_INCREF(Py_None
); resultobj
= Py_None
;
2671 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
*resultobj
;
2673 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2674 wxString
*arg2
= 0 ;
2675 bool temp2
= False
;
2676 PyObject
* obj0
= 0 ;
2677 PyObject
* obj1
= 0 ;
2679 (char *) "self",(char *) "con", NULL
2682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2683 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2685 arg2
= wxString_in_helper(obj1
);
2686 if (arg2
== NULL
) SWIG_fail
;
2690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2691 (arg1
)->SetContent((wxString
const &)*arg2
);
2693 wxPyEndAllowThreads(__tstate
);
2694 if (PyErr_Occurred()) SWIG_fail
;
2696 Py_INCREF(Py_None
); resultobj
= Py_None
;
2711 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2712 PyObject
*resultobj
;
2713 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2714 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2715 PyObject
* obj0
= 0 ;
2716 PyObject
* obj1
= 0 ;
2718 (char *) "self",(char *) "parent", NULL
2721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
2722 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2723 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2726 (arg1
)->SetParent(arg2
);
2728 wxPyEndAllowThreads(__tstate
);
2729 if (PyErr_Occurred()) SWIG_fail
;
2731 Py_INCREF(Py_None
); resultobj
= Py_None
;
2738 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2739 PyObject
*resultobj
;
2740 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2741 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2742 PyObject
* obj0
= 0 ;
2743 PyObject
* obj1
= 0 ;
2745 (char *) "self",(char *) "next", NULL
2748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2749 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2750 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2753 (arg1
)->SetNext(arg2
);
2755 wxPyEndAllowThreads(__tstate
);
2756 if (PyErr_Occurred()) SWIG_fail
;
2758 Py_INCREF(Py_None
); resultobj
= Py_None
;
2765 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2766 PyObject
*resultobj
;
2767 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2768 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2769 PyObject
* obj0
= 0 ;
2770 PyObject
* obj1
= 0 ;
2772 (char *) "self",(char *) "child", NULL
2775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
2776 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2777 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2780 (arg1
)->SetChildren(arg2
);
2782 wxPyEndAllowThreads(__tstate
);
2783 if (PyErr_Occurred()) SWIG_fail
;
2785 Py_INCREF(Py_None
); resultobj
= Py_None
;
2792 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2793 PyObject
*resultobj
;
2794 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2795 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2796 PyObject
* obj0
= 0 ;
2797 PyObject
* obj1
= 0 ;
2799 (char *) "self",(char *) "prop", NULL
2802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
2803 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2804 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2807 (arg1
)->SetProperties(arg2
);
2809 wxPyEndAllowThreads(__tstate
);
2810 if (PyErr_Occurred()) SWIG_fail
;
2812 Py_INCREF(Py_None
); resultobj
= Py_None
;
2819 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
2821 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2822 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
2824 return Py_BuildValue((char *)"");
2826 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2827 PyObject
*resultobj
;
2828 wxString
*arg1
= 0 ;
2829 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2830 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2831 wxXmlDocument
*result
;
2832 bool temp1
= False
;
2833 bool temp2
= False
;
2834 PyObject
* obj0
= 0 ;
2835 PyObject
* obj1
= 0 ;
2837 (char *) "filename",(char *) "encoding", NULL
2840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
2842 arg1
= wxString_in_helper(obj0
);
2843 if (arg1
== NULL
) SWIG_fail
;
2848 arg2
= wxString_in_helper(obj1
);
2849 if (arg2
== NULL
) SWIG_fail
;
2854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2855 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
2857 wxPyEndAllowThreads(__tstate
);
2858 if (PyErr_Occurred()) SWIG_fail
;
2860 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2883 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2884 PyObject
*resultobj
;
2885 wxInputStream
*arg1
= 0 ;
2886 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2887 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2888 wxXmlDocument
*result
;
2889 wxPyInputStream
*temp1
;
2891 bool temp2
= False
;
2892 PyObject
* obj0
= 0 ;
2893 PyObject
* obj1
= 0 ;
2895 (char *) "stream",(char *) "encoding", NULL
2898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
2900 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
2901 arg1
= temp1
->m_wxis
;
2904 PyErr_Clear(); // clear the failure of the wxPyConvert above
2905 arg1
= wxPyCBInputStream_create(obj0
, False
);
2907 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
2915 arg2
= wxString_in_helper(obj1
);
2916 if (arg2
== NULL
) SWIG_fail
;
2921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2922 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
2924 wxPyEndAllowThreads(__tstate
);
2925 if (PyErr_Occurred()) SWIG_fail
;
2927 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2950 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2951 PyObject
*resultobj
;
2952 wxXmlDocument
*result
;
2957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
2959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2960 result
= (wxXmlDocument
*)new wxXmlDocument();
2962 wxPyEndAllowThreads(__tstate
);
2963 if (PyErr_Occurred()) SWIG_fail
;
2965 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2972 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2973 PyObject
*resultobj
;
2974 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
2975 PyObject
* obj0
= 0 ;
2977 (char *) "self", NULL
2980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
2981 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2986 wxPyEndAllowThreads(__tstate
);
2987 if (PyErr_Occurred()) SWIG_fail
;
2989 Py_INCREF(Py_None
); resultobj
= Py_None
;
2996 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2997 PyObject
*resultobj
;
2998 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
2999 wxString
*arg2
= 0 ;
3000 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3001 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3003 bool temp2
= False
;
3004 bool temp3
= False
;
3005 PyObject
* obj0
= 0 ;
3006 PyObject
* obj1
= 0 ;
3007 PyObject
* obj2
= 0 ;
3009 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3013 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3015 arg2
= wxString_in_helper(obj1
);
3016 if (arg2
== NULL
) SWIG_fail
;
3021 arg3
= wxString_in_helper(obj2
);
3022 if (arg3
== NULL
) SWIG_fail
;
3027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3028 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3030 wxPyEndAllowThreads(__tstate
);
3031 if (PyErr_Occurred()) SWIG_fail
;
3033 resultobj
= PyInt_FromLong((long)result
);
3056 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3057 PyObject
*resultobj
;
3058 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3059 wxInputStream
*arg2
= 0 ;
3060 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3061 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3063 wxPyInputStream
*temp2
;
3065 bool temp3
= False
;
3066 PyObject
* obj0
= 0 ;
3067 PyObject
* obj1
= 0 ;
3068 PyObject
* obj2
= 0 ;
3070 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3074 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3076 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3077 arg2
= temp2
->m_wxis
;
3080 PyErr_Clear(); // clear the failure of the wxPyConvert above
3081 arg2
= wxPyCBInputStream_create(obj1
, False
);
3083 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3091 arg3
= wxString_in_helper(obj2
);
3092 if (arg3
== NULL
) SWIG_fail
;
3097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3098 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3100 wxPyEndAllowThreads(__tstate
);
3101 if (PyErr_Occurred()) SWIG_fail
;
3103 resultobj
= PyInt_FromLong((long)result
);
3126 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
*resultobj
;
3128 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3129 wxString
*arg2
= 0 ;
3131 bool temp2
= False
;
3132 PyObject
* obj0
= 0 ;
3133 PyObject
* obj1
= 0 ;
3135 (char *) "self",(char *) "filename", NULL
3138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3139 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3141 arg2
= wxString_in_helper(obj1
);
3142 if (arg2
== NULL
) SWIG_fail
;
3146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3147 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3149 wxPyEndAllowThreads(__tstate
);
3150 if (PyErr_Occurred()) SWIG_fail
;
3152 resultobj
= PyInt_FromLong((long)result
);
3167 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3168 PyObject
*resultobj
;
3169 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3170 wxOutputStream
*arg2
= 0 ;
3172 PyObject
* obj0
= 0 ;
3173 PyObject
* obj1
= 0 ;
3175 (char *) "self",(char *) "stream", NULL
3178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3179 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3180 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3182 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3186 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3188 wxPyEndAllowThreads(__tstate
);
3189 if (PyErr_Occurred()) SWIG_fail
;
3191 resultobj
= PyInt_FromLong((long)result
);
3198 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3199 PyObject
*resultobj
;
3200 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3202 PyObject
* obj0
= 0 ;
3204 (char *) "self", NULL
3207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3208 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3211 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3213 wxPyEndAllowThreads(__tstate
);
3214 if (PyErr_Occurred()) SWIG_fail
;
3216 resultobj
= PyInt_FromLong((long)result
);
3223 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3224 PyObject
*resultobj
;
3225 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3227 PyObject
* obj0
= 0 ;
3229 (char *) "self", NULL
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3233 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3235 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3236 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3238 wxPyEndAllowThreads(__tstate
);
3239 if (PyErr_Occurred()) SWIG_fail
;
3241 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3248 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3249 PyObject
*resultobj
;
3250 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3252 PyObject
* obj0
= 0 ;
3254 (char *) "self", NULL
3257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3258 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3261 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3263 wxPyEndAllowThreads(__tstate
);
3264 if (PyErr_Occurred()) SWIG_fail
;
3268 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3270 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3279 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3280 PyObject
*resultobj
;
3281 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3283 PyObject
* obj0
= 0 ;
3285 (char *) "self", NULL
3288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3289 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3292 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3294 wxPyEndAllowThreads(__tstate
);
3295 if (PyErr_Occurred()) SWIG_fail
;
3299 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3301 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3310 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3311 PyObject
*resultobj
;
3312 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3313 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3314 PyObject
* obj0
= 0 ;
3315 PyObject
* obj1
= 0 ;
3317 (char *) "self",(char *) "node", NULL
3320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3321 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3322 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3325 (arg1
)->SetRoot(arg2
);
3327 wxPyEndAllowThreads(__tstate
);
3328 if (PyErr_Occurred()) SWIG_fail
;
3330 Py_INCREF(Py_None
); resultobj
= Py_None
;
3337 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
*resultobj
;
3339 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3340 wxString
*arg2
= 0 ;
3341 bool temp2
= False
;
3342 PyObject
* obj0
= 0 ;
3343 PyObject
* obj1
= 0 ;
3345 (char *) "self",(char *) "version", NULL
3348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3349 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3351 arg2
= wxString_in_helper(obj1
);
3352 if (arg2
== NULL
) SWIG_fail
;
3356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3357 (arg1
)->SetVersion((wxString
const &)*arg2
);
3359 wxPyEndAllowThreads(__tstate
);
3360 if (PyErr_Occurred()) SWIG_fail
;
3362 Py_INCREF(Py_None
); resultobj
= Py_None
;
3377 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3378 PyObject
*resultobj
;
3379 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3380 wxString
*arg2
= 0 ;
3381 bool temp2
= False
;
3382 PyObject
* obj0
= 0 ;
3383 PyObject
* obj1
= 0 ;
3385 (char *) "self",(char *) "encoding", NULL
3388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3389 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3391 arg2
= wxString_in_helper(obj1
);
3392 if (arg2
== NULL
) SWIG_fail
;
3396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3397 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3399 wxPyEndAllowThreads(__tstate
);
3400 if (PyErr_Occurred()) SWIG_fail
;
3402 Py_INCREF(Py_None
); resultobj
= Py_None
;
3417 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3419 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3420 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3422 return Py_BuildValue((char *)"");
3424 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3425 PyObject
*resultobj
;
3426 wxPyXmlResourceHandler
*result
;
3431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3434 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3436 wxPyEndAllowThreads(__tstate
);
3437 if (PyErr_Occurred()) SWIG_fail
;
3439 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3446 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3447 PyObject
*resultobj
;
3448 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3449 PyObject
*arg2
= (PyObject
*) 0 ;
3450 PyObject
*arg3
= (PyObject
*) 0 ;
3451 PyObject
* obj0
= 0 ;
3452 PyObject
* obj1
= 0 ;
3453 PyObject
* obj2
= 0 ;
3455 (char *) "self",(char *) "self",(char *) "_class", NULL
3458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3459 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3464 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3466 wxPyEndAllowThreads(__tstate
);
3467 if (PyErr_Occurred()) SWIG_fail
;
3469 Py_INCREF(Py_None
); resultobj
= Py_None
;
3476 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3477 PyObject
*resultobj
;
3478 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3479 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3480 wxObject
*arg3
= (wxObject
*) 0 ;
3481 wxObject
*arg4
= (wxObject
*) 0 ;
3483 PyObject
* obj0
= 0 ;
3484 PyObject
* obj1
= 0 ;
3485 PyObject
* obj2
= 0 ;
3486 PyObject
* obj3
= 0 ;
3488 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3492 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3493 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3494 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3495 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3498 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3500 wxPyEndAllowThreads(__tstate
);
3501 if (PyErr_Occurred()) SWIG_fail
;
3504 resultobj
= wxPyMake_wxObject(result
);
3512 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3513 PyObject
*resultobj
;
3514 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3515 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3516 PyObject
* obj0
= 0 ;
3517 PyObject
* obj1
= 0 ;
3519 (char *) "self",(char *) "res", NULL
3522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3523 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3524 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3527 (arg1
)->SetParentResource(arg2
);
3529 wxPyEndAllowThreads(__tstate
);
3530 if (PyErr_Occurred()) SWIG_fail
;
3532 Py_INCREF(Py_None
); resultobj
= Py_None
;
3539 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3540 PyObject
*resultobj
;
3541 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3542 wxXmlResource
*result
;
3543 PyObject
* obj0
= 0 ;
3545 (char *) "self", NULL
3548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3549 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3552 result
= (wxXmlResource
*)(arg1
)->GetResource();
3554 wxPyEndAllowThreads(__tstate
);
3555 if (PyErr_Occurred()) SWIG_fail
;
3557 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3564 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3565 PyObject
*resultobj
;
3566 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3568 PyObject
* obj0
= 0 ;
3570 (char *) "self", NULL
3573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3574 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3577 result
= (wxXmlNode
*)(arg1
)->GetNode();
3579 wxPyEndAllowThreads(__tstate
);
3580 if (PyErr_Occurred()) SWIG_fail
;
3582 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3589 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3590 PyObject
*resultobj
;
3591 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3593 PyObject
* obj0
= 0 ;
3595 (char *) "self", NULL
3598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3599 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3602 result
= (arg1
)->GetClass();
3604 wxPyEndAllowThreads(__tstate
);
3605 if (PyErr_Occurred()) SWIG_fail
;
3609 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3611 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3620 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3621 PyObject
*resultobj
;
3622 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3624 PyObject
* obj0
= 0 ;
3626 (char *) "self", NULL
3629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3630 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3633 result
= (wxObject
*)(arg1
)->GetParent();
3635 wxPyEndAllowThreads(__tstate
);
3636 if (PyErr_Occurred()) SWIG_fail
;
3639 resultobj
= wxPyMake_wxObject(result
);
3647 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3648 PyObject
*resultobj
;
3649 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3651 PyObject
* obj0
= 0 ;
3653 (char *) "self", NULL
3656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3657 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3660 result
= (wxObject
*)(arg1
)->GetInstance();
3662 wxPyEndAllowThreads(__tstate
);
3663 if (PyErr_Occurred()) SWIG_fail
;
3666 resultobj
= wxPyMake_wxObject(result
);
3674 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3675 PyObject
*resultobj
;
3676 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3678 PyObject
* obj0
= 0 ;
3680 (char *) "self", NULL
3683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3684 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3687 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
3689 wxPyEndAllowThreads(__tstate
);
3690 if (PyErr_Occurred()) SWIG_fail
;
3693 resultobj
= wxPyMake_wxObject(result
);
3701 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3702 PyObject
*resultobj
;
3703 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3705 PyObject
* obj0
= 0 ;
3707 (char *) "self", NULL
3710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
3711 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3714 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
3716 wxPyEndAllowThreads(__tstate
);
3717 if (PyErr_Occurred()) SWIG_fail
;
3720 resultobj
= wxPyMake_wxObject(result
);
3728 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3729 PyObject
*resultobj
;
3730 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3731 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3732 wxString
*arg3
= 0 ;
3734 bool temp3
= False
;
3735 PyObject
* obj0
= 0 ;
3736 PyObject
* obj1
= 0 ;
3737 PyObject
* obj2
= 0 ;
3739 (char *) "self",(char *) "node",(char *) "classname", NULL
3742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3743 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3744 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3746 arg3
= wxString_in_helper(obj2
);
3747 if (arg3
== NULL
) SWIG_fail
;
3751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3752 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
3754 wxPyEndAllowThreads(__tstate
);
3755 if (PyErr_Occurred()) SWIG_fail
;
3757 resultobj
= PyInt_FromLong((long)result
);
3772 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3773 PyObject
*resultobj
;
3774 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3775 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3777 PyObject
* obj0
= 0 ;
3778 PyObject
* obj1
= 0 ;
3780 (char *) "self",(char *) "node", NULL
3783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3784 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3785 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3788 result
= (arg1
)->GetNodeContent(arg2
);
3790 wxPyEndAllowThreads(__tstate
);
3791 if (PyErr_Occurred()) SWIG_fail
;
3795 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3797 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3806 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3807 PyObject
*resultobj
;
3808 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3809 wxString
*arg2
= 0 ;
3811 bool temp2
= False
;
3812 PyObject
* obj0
= 0 ;
3813 PyObject
* obj1
= 0 ;
3815 (char *) "self",(char *) "param", NULL
3818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
3819 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3821 arg2
= wxString_in_helper(obj1
);
3822 if (arg2
== NULL
) SWIG_fail
;
3826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3827 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
3829 wxPyEndAllowThreads(__tstate
);
3830 if (PyErr_Occurred()) SWIG_fail
;
3832 resultobj
= PyInt_FromLong((long)result
);
3847 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3848 PyObject
*resultobj
;
3849 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3850 wxString
*arg2
= 0 ;
3852 bool temp2
= False
;
3853 PyObject
* obj0
= 0 ;
3854 PyObject
* obj1
= 0 ;
3856 (char *) "self",(char *) "param", NULL
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
3860 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3862 arg2
= wxString_in_helper(obj1
);
3863 if (arg2
== NULL
) SWIG_fail
;
3867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3868 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
3870 wxPyEndAllowThreads(__tstate
);
3871 if (PyErr_Occurred()) SWIG_fail
;
3873 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3888 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3889 PyObject
*resultobj
;
3890 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3891 wxString
*arg2
= 0 ;
3893 bool temp2
= False
;
3894 PyObject
* obj0
= 0 ;
3895 PyObject
* obj1
= 0 ;
3897 (char *) "self",(char *) "param", NULL
3900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
3901 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3903 arg2
= wxString_in_helper(obj1
);
3904 if (arg2
== NULL
) SWIG_fail
;
3908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3909 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
3911 wxPyEndAllowThreads(__tstate
);
3912 if (PyErr_Occurred()) SWIG_fail
;
3916 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3918 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3935 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3936 PyObject
*resultobj
;
3937 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3938 wxString
*arg2
= 0 ;
3940 bool temp2
= False
;
3941 PyObject
* obj0
= 0 ;
3942 PyObject
* obj1
= 0 ;
3944 (char *) "self",(char *) "name",(char *) "value", NULL
3947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOi:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
3948 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3950 arg2
= wxString_in_helper(obj1
);
3951 if (arg2
== NULL
) SWIG_fail
;
3955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3956 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
3958 wxPyEndAllowThreads(__tstate
);
3959 if (PyErr_Occurred()) SWIG_fail
;
3961 Py_INCREF(Py_None
); resultobj
= Py_None
;
3976 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3977 PyObject
*resultobj
;
3978 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3979 PyObject
* obj0
= 0 ;
3981 (char *) "self", NULL
3984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
3985 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3988 (arg1
)->AddWindowStyles();
3990 wxPyEndAllowThreads(__tstate
);
3991 if (PyErr_Occurred()) SWIG_fail
;
3993 Py_INCREF(Py_None
); resultobj
= Py_None
;
4000 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4001 PyObject
*resultobj
;
4002 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4003 wxString
const &arg2_defvalue
= wxPyStyleString
;
4004 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4005 int arg3
= (int) 0 ;
4007 bool temp2
= False
;
4008 PyObject
* obj0
= 0 ;
4009 PyObject
* obj1
= 0 ;
4011 (char *) "self",(char *) "param",(char *) "defaults", NULL
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|Oi:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4015 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4018 arg2
= wxString_in_helper(obj1
);
4019 if (arg2
== NULL
) SWIG_fail
;
4024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4025 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4027 wxPyEndAllowThreads(__tstate
);
4028 if (PyErr_Occurred()) SWIG_fail
;
4030 resultobj
= PyInt_FromLong((long)result
);
4045 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4046 PyObject
*resultobj
;
4047 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4048 wxString
*arg2
= 0 ;
4049 bool arg3
= (bool) True
;
4051 bool temp2
= False
;
4052 PyObject
* obj0
= 0 ;
4053 PyObject
* obj1
= 0 ;
4054 PyObject
* obj2
= 0 ;
4056 (char *) "self",(char *) "param",(char *) "translate", NULL
4059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4060 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4062 arg2
= wxString_in_helper(obj1
);
4063 if (arg2
== NULL
) SWIG_fail
;
4067 arg3
= PyInt_AsLong(obj2
) ? true : false;
4068 if (PyErr_Occurred()) SWIG_fail
;
4071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4072 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4074 wxPyEndAllowThreads(__tstate
);
4075 if (PyErr_Occurred()) SWIG_fail
;
4079 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4081 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4098 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4099 PyObject
*resultobj
;
4100 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4102 PyObject
* obj0
= 0 ;
4104 (char *) "self", NULL
4107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4108 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4111 result
= (int)(arg1
)->GetID();
4113 wxPyEndAllowThreads(__tstate
);
4114 if (PyErr_Occurred()) SWIG_fail
;
4116 resultobj
= PyInt_FromLong((long)result
);
4123 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4124 PyObject
*resultobj
;
4125 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4127 PyObject
* obj0
= 0 ;
4129 (char *) "self", NULL
4132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4133 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4136 result
= (arg1
)->GetName();
4138 wxPyEndAllowThreads(__tstate
);
4139 if (PyErr_Occurred()) SWIG_fail
;
4143 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4145 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4154 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4155 PyObject
*resultobj
;
4156 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4157 wxString
*arg2
= 0 ;
4158 bool arg3
= (bool) False
;
4160 bool temp2
= False
;
4161 PyObject
* obj0
= 0 ;
4162 PyObject
* obj1
= 0 ;
4163 PyObject
* obj2
= 0 ;
4165 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4169 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4171 arg2
= wxString_in_helper(obj1
);
4172 if (arg2
== NULL
) SWIG_fail
;
4176 arg3
= PyInt_AsLong(obj2
) ? true : false;
4177 if (PyErr_Occurred()) SWIG_fail
;
4180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4181 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4183 wxPyEndAllowThreads(__tstate
);
4184 if (PyErr_Occurred()) SWIG_fail
;
4186 resultobj
= PyInt_FromLong((long)result
);
4201 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4202 PyObject
*resultobj
;
4203 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4204 wxString
*arg2
= 0 ;
4205 long arg3
= (long) 0 ;
4207 bool temp2
= False
;
4208 PyObject
* obj0
= 0 ;
4209 PyObject
* obj1
= 0 ;
4211 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|l:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4215 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4217 arg2
= wxString_in_helper(obj1
);
4218 if (arg2
== NULL
) SWIG_fail
;
4222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4223 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4225 wxPyEndAllowThreads(__tstate
);
4226 if (PyErr_Occurred()) SWIG_fail
;
4228 resultobj
= PyInt_FromLong((long)result
);
4243 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4244 PyObject
*resultobj
;
4245 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4246 wxString
*arg2
= 0 ;
4248 bool temp2
= False
;
4249 PyObject
* obj0
= 0 ;
4250 PyObject
* obj1
= 0 ;
4252 (char *) "self",(char *) "param", NULL
4255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4256 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4258 arg2
= wxString_in_helper(obj1
);
4259 if (arg2
== NULL
) SWIG_fail
;
4263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4264 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4266 wxPyEndAllowThreads(__tstate
);
4267 if (PyErr_Occurred()) SWIG_fail
;
4270 wxColour
* resultptr
;
4271 resultptr
= new wxColour((wxColour
&) result
);
4272 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4288 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4289 PyObject
*resultobj
;
4290 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4291 wxString
const &arg2_defvalue
= wxPySizeString
;
4292 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4294 bool temp2
= False
;
4295 PyObject
* obj0
= 0 ;
4296 PyObject
* obj1
= 0 ;
4298 (char *) "self",(char *) "param", NULL
4301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4302 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4305 arg2
= wxString_in_helper(obj1
);
4306 if (arg2
== NULL
) SWIG_fail
;
4311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4312 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4314 wxPyEndAllowThreads(__tstate
);
4315 if (PyErr_Occurred()) SWIG_fail
;
4319 resultptr
= new wxSize((wxSize
&) result
);
4320 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4336 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4337 PyObject
*resultobj
;
4338 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4339 wxString
const &arg2_defvalue
= wxPyPosString
;
4340 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4342 bool temp2
= False
;
4343 PyObject
* obj0
= 0 ;
4344 PyObject
* obj1
= 0 ;
4346 (char *) "self",(char *) "param", NULL
4349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4350 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4353 arg2
= wxString_in_helper(obj1
);
4354 if (arg2
== NULL
) SWIG_fail
;
4359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4360 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4362 wxPyEndAllowThreads(__tstate
);
4363 if (PyErr_Occurred()) SWIG_fail
;
4366 wxPoint
* resultptr
;
4367 resultptr
= new wxPoint((wxPoint
&) result
);
4368 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4384 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4385 PyObject
*resultobj
;
4386 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4387 wxString
*arg2
= 0 ;
4388 int arg3
= (int) 0 ;
4390 bool temp2
= False
;
4391 PyObject
* obj0
= 0 ;
4392 PyObject
* obj1
= 0 ;
4394 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|i:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4398 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4400 arg2
= wxString_in_helper(obj1
);
4401 if (arg2
== NULL
) SWIG_fail
;
4405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4406 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4408 wxPyEndAllowThreads(__tstate
);
4409 if (PyErr_Occurred()) SWIG_fail
;
4411 resultobj
= PyInt_FromLong((long)result
);
4426 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4427 PyObject
*resultobj
;
4428 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4429 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4430 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4431 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4432 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4433 wxSize arg4
= (wxSize
) wxDefaultSize
;
4435 bool temp2
= False
;
4437 PyObject
* obj0
= 0 ;
4438 PyObject
* obj1
= 0 ;
4439 PyObject
* obj2
= 0 ;
4440 PyObject
* obj3
= 0 ;
4442 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4446 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4449 arg2
= wxString_in_helper(obj1
);
4450 if (arg2
== NULL
) SWIG_fail
;
4455 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4457 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4461 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4466 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4468 wxPyEndAllowThreads(__tstate
);
4469 if (PyErr_Occurred()) SWIG_fail
;
4472 wxBitmap
* resultptr
;
4473 resultptr
= new wxBitmap((wxBitmap
&) result
);
4474 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4490 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4491 PyObject
*resultobj
;
4492 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4493 wxString
const &arg2_defvalue
= wxPyIconString
;
4494 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4495 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4496 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4497 wxSize arg4
= (wxSize
) wxDefaultSize
;
4499 bool temp2
= False
;
4501 PyObject
* obj0
= 0 ;
4502 PyObject
* obj1
= 0 ;
4503 PyObject
* obj2
= 0 ;
4504 PyObject
* obj3
= 0 ;
4506 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4510 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4513 arg2
= wxString_in_helper(obj1
);
4514 if (arg2
== NULL
) SWIG_fail
;
4519 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4521 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4525 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4530 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4532 wxPyEndAllowThreads(__tstate
);
4533 if (PyErr_Occurred()) SWIG_fail
;
4537 resultptr
= new wxIcon((wxIcon
&) result
);
4538 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4554 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4555 PyObject
*resultobj
;
4556 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4557 wxString
const &arg2_defvalue
= wxPyFontString
;
4558 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4560 bool temp2
= False
;
4561 PyObject
* obj0
= 0 ;
4562 PyObject
* obj1
= 0 ;
4564 (char *) "self",(char *) "param", NULL
4567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4568 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4571 arg2
= wxString_in_helper(obj1
);
4572 if (arg2
== NULL
) SWIG_fail
;
4577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4578 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4580 wxPyEndAllowThreads(__tstate
);
4581 if (PyErr_Occurred()) SWIG_fail
;
4585 resultptr
= new wxFont((wxFont
&) result
);
4586 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4602 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4603 PyObject
*resultobj
;
4604 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4605 wxWindow
*arg2
= (wxWindow
*) 0 ;
4606 PyObject
* obj0
= 0 ;
4607 PyObject
* obj1
= 0 ;
4609 (char *) "self",(char *) "wnd", NULL
4612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4613 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4614 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4617 (arg1
)->SetupWindow(arg2
);
4619 wxPyEndAllowThreads(__tstate
);
4620 if (PyErr_Occurred()) SWIG_fail
;
4622 Py_INCREF(Py_None
); resultobj
= Py_None
;
4629 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4630 PyObject
*resultobj
;
4631 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4632 wxObject
*arg2
= (wxObject
*) 0 ;
4633 bool arg3
= (bool) False
;
4634 PyObject
* obj0
= 0 ;
4635 PyObject
* obj1
= 0 ;
4636 PyObject
* obj2
= 0 ;
4638 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4642 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4643 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4645 arg3
= PyInt_AsLong(obj2
) ? true : false;
4646 if (PyErr_Occurred()) SWIG_fail
;
4649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4650 (arg1
)->CreateChildren(arg2
,arg3
);
4652 wxPyEndAllowThreads(__tstate
);
4653 if (PyErr_Occurred()) SWIG_fail
;
4655 Py_INCREF(Py_None
); resultobj
= Py_None
;
4662 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4663 PyObject
*resultobj
;
4664 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4665 wxObject
*arg2
= (wxObject
*) 0 ;
4666 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4667 PyObject
* obj0
= 0 ;
4668 PyObject
* obj1
= 0 ;
4669 PyObject
* obj2
= 0 ;
4671 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4675 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4676 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4678 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4682 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
4684 wxPyEndAllowThreads(__tstate
);
4685 if (PyErr_Occurred()) SWIG_fail
;
4687 Py_INCREF(Py_None
); resultobj
= Py_None
;
4694 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4695 PyObject
*resultobj
;
4696 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4697 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4698 wxObject
*arg3
= (wxObject
*) 0 ;
4699 wxObject
*arg4
= (wxObject
*) NULL
;
4701 PyObject
* obj0
= 0 ;
4702 PyObject
* obj1
= 0 ;
4703 PyObject
* obj2
= 0 ;
4704 PyObject
* obj3
= 0 ;
4706 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
4709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4710 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4711 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4712 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4714 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4718 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
4720 wxPyEndAllowThreads(__tstate
);
4721 if (PyErr_Occurred()) SWIG_fail
;
4724 resultobj
= wxPyMake_wxObject(result
);
4732 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4733 PyObject
*resultobj
;
4734 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4735 wxFileSystem
*result
;
4736 PyObject
* obj0
= 0 ;
4738 (char *) "self", NULL
4741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
4742 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4746 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
4747 result
= (wxFileSystem
*) &_result_ref
;
4750 wxPyEndAllowThreads(__tstate
);
4751 if (PyErr_Occurred()) SWIG_fail
;
4753 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
4760 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
4762 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4763 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
4765 return Py_BuildValue((char *)"");
4767 static PyMethodDef SwigMethods
[] = {
4768 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4769 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4770 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4771 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
4772 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
4773 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4774 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
4775 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
4776 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4777 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4778 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
4779 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
4780 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4781 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
4782 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
4783 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
4784 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
4785 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
4786 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
4787 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4788 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
4789 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
4790 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4791 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
4792 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
4793 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
4794 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4795 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
4796 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
4797 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
4798 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4799 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4800 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
4801 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4802 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4803 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
4804 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
4805 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4806 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
4807 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4808 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4809 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
4810 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4811 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
4812 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4813 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4814 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
4815 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
4816 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
4817 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
4818 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
4819 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
4820 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
4821 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
4822 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4823 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
4824 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4825 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4826 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4827 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4828 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
4829 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
4830 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
4831 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4832 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
4833 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
4834 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4835 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4836 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4837 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
4838 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4839 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4840 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4841 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4842 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
4843 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4844 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
4845 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
4846 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
4847 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4848 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4849 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4850 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4851 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4852 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4853 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
4854 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
4855 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4856 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
4857 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
4858 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
4859 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
4860 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
4861 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4862 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
4863 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4864 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4865 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
4866 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
4867 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
4868 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
4869 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
4870 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
4871 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
4872 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
4873 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
4874 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
4875 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4876 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
4877 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
4878 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
4879 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
4880 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
4881 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
4882 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4883 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
4884 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
4885 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
4886 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
4887 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
4888 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
4889 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
4890 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
4895 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4897 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4898 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4900 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
4901 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
4903 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4904 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4906 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4907 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4909 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4910 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4912 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4913 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4915 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4916 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4918 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4919 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4921 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4922 return (void *)((wxObject
*) ((wxSizer
*) x
));
4924 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4925 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4927 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4928 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4930 static void *_p_wxEventTo_p_wxObject(void *x
) {
4931 return (void *)((wxObject
*) ((wxEvent
*) x
));
4933 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4934 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4936 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4937 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4939 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4940 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4942 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4943 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4945 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4946 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4948 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4949 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4951 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4952 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4954 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4955 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4957 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4958 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4960 static void *_p_wxControlTo_p_wxObject(void *x
) {
4961 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4963 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4964 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4966 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4967 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4969 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4970 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4972 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4973 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4975 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4976 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4978 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4979 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4981 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4982 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4984 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4985 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4987 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4988 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4990 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4991 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4993 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4994 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4996 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4997 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4999 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5000 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5002 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5003 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5005 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5006 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5008 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5009 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5011 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5012 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5014 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5015 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5017 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5018 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5020 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5021 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5023 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5024 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5026 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5027 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5029 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5030 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5032 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5033 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5035 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5036 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5038 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5039 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5041 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5042 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5044 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5045 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5047 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5048 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5050 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5051 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5053 static void *_p_wxImageTo_p_wxObject(void *x
) {
5054 return (void *)((wxObject
*) ((wxImage
*) x
));
5056 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5057 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5059 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5060 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5062 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5063 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5065 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5066 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5068 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5069 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5071 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5072 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5074 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5075 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5077 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5078 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5080 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5081 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5083 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5084 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5086 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5087 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5089 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5090 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5092 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5093 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5095 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5096 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5098 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5099 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5101 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5102 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5104 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5105 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5107 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5108 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5110 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5111 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5113 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5114 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5116 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5117 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5119 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5120 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5122 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5123 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5125 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5126 return (void *)((wxWindow
*) ((wxControl
*) x
));
5128 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5129 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5131 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5132 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5134 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5135 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5136 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}};
5137 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5138 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5139 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}};
5140 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5141 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5142 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5143 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5144 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5145 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5146 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5147 static swig_type_info _swigt__p_wxString
[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
5148 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5149 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5150 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5151 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5152 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5153 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5154 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5155 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5157 static swig_type_info
*swig_types_initial
[] = {
5164 _swigt__p_wxArtClient
,
5166 _swigt__p_wxPyXmlSubclassFactory
,
5168 _swigt__p_wxXmlNode
,
5169 _swigt__p_wxInputStream
,
5170 _swigt__p_wxOutputStream
,
5172 _swigt__p_wxPyXmlResourceHandler
,
5173 _swigt__p_wxFileSystem
,
5174 _swigt__p_wxXmlProperty
,
5176 _swigt__p_wxXmlResource
,
5177 _swigt__p_wxXmlDocument
,
5184 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5186 static swig_const_info swig_const_table
[] = {
5187 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MAJOR", (long) WX_XMLRES_CURRENT_VERSION_MAJOR
, 0, 0, 0},
5188 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MINOR", (long) WX_XMLRES_CURRENT_VERSION_MINOR
, 0, 0, 0},
5189 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_RELEASE", (long) WX_XMLRES_CURRENT_VERSION_RELEASE
, 0, 0, 0},
5190 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_REVISION", (long) WX_XMLRES_CURRENT_VERSION_REVISION
, 0, 0, 0},
5191 { SWIG_PY_INT
, (char *)"XRC_USE_LOCALE", (long) wxXRC_USE_LOCALE
, 0, 0, 0},
5192 { SWIG_PY_INT
, (char *)"XRC_NO_SUBCLASSING", (long) wxXRC_NO_SUBCLASSING
, 0, 0, 0},
5193 { SWIG_PY_INT
, (char *)"XML_ELEMENT_NODE", (long) wxXML_ELEMENT_NODE
, 0, 0, 0},
5194 { SWIG_PY_INT
, (char *)"XML_ATTRIBUTE_NODE", (long) wxXML_ATTRIBUTE_NODE
, 0, 0, 0},
5195 { SWIG_PY_INT
, (char *)"XML_TEXT_NODE", (long) wxXML_TEXT_NODE
, 0, 0, 0},
5196 { SWIG_PY_INT
, (char *)"XML_CDATA_SECTION_NODE", (long) wxXML_CDATA_SECTION_NODE
, 0, 0, 0},
5197 { SWIG_PY_INT
, (char *)"XML_ENTITY_REF_NODE", (long) wxXML_ENTITY_REF_NODE
, 0, 0, 0},
5198 { SWIG_PY_INT
, (char *)"XML_ENTITY_NODE", (long) wxXML_ENTITY_NODE
, 0, 0, 0},
5199 { SWIG_PY_INT
, (char *)"XML_PI_NODE", (long) wxXML_PI_NODE
, 0, 0, 0},
5200 { SWIG_PY_INT
, (char *)"XML_COMMENT_NODE", (long) wxXML_COMMENT_NODE
, 0, 0, 0},
5201 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_NODE", (long) wxXML_DOCUMENT_NODE
, 0, 0, 0},
5202 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_TYPE_NODE", (long) wxXML_DOCUMENT_TYPE_NODE
, 0, 0, 0},
5203 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_FRAG_NODE", (long) wxXML_DOCUMENT_FRAG_NODE
, 0, 0, 0},
5204 { SWIG_PY_INT
, (char *)"XML_NOTATION_NODE", (long) wxXML_NOTATION_NODE
, 0, 0, 0},
5205 { SWIG_PY_INT
, (char *)"XML_HTML_DOCUMENT_NODE", (long) wxXML_HTML_DOCUMENT_NODE
, 0, 0, 0},
5215 SWIGEXPORT(void) SWIG_init(void) {
5216 static PyObject
*SWIG_globals
= 0;
5217 static int typeinit
= 0;
5220 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5221 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5222 d
= PyModule_GetDict(m
);
5225 for (i
= 0; swig_types_initial
[i
]; i
++) {
5226 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5230 SWIG_InstallConstants(d
,swig_const_table
);
5234 wxXmlInitResourceModule();
5235 wxXmlResource::Get()->InitAllHandlers();