1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
50 /***********************************************************************
51 * common.swg for wxPython
53 * Include only the function prototypes and such from SWIG's common.swg,
54 * but not the runtime functions themselves. This helps keep the
55 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 ************************************************************************/
62 #if defined(_WIN32) || defined(__WIN32__)
63 # if defined(_MSC_VER)
64 # if defined(STATIC_LINKED)
65 # define SWIGEXPORT(a) a
66 # define SWIGIMPORT(a) extern a
68 # define SWIGEXPORT(a) __declspec(dllexport) a
69 # define SWIGIMPORT(a) extern a
72 # if defined(__BORLANDC__)
73 # define SWIGEXPORT(a) a _export
74 # define SWIGIMPORT(a) a _export
76 # define SWIGEXPORT(a) a
77 # define SWIGIMPORT(a) a
81 # define SWIGEXPORT(a) a
82 # define SWIGIMPORT(a) a
86 #define SWIGRUNTIME(a) SWIGEXPORT(a)
88 #define SWIGRUNTIME(a) static a
96 typedef void *(*swig_converter_func
)(void *);
97 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
99 typedef struct swig_type_info
{
101 swig_converter_func converter
;
104 swig_dycast_func dcast
;
105 struct swig_type_info
*next
;
106 struct swig_type_info
*prev
;
110 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
112 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
113 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
114 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
115 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
116 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
123 /***********************************************************************
124 * pyrun.swg for wxPython
126 * Include only the function prototypes and such from SWIG's pyrun.swg,
127 * but not the runtime functions themselves. This helps keep the
128 * wrapper files clean of unnecessary stuff that is in the libpy.c file
131 ************************************************************************/
140 #define SWIG_PY_INT 1
141 #define SWIG_PY_FLOAT 2
142 #define SWIG_PY_STRING 3
143 #define SWIG_PY_POINTER 4
144 #define SWIG_PY_BINARY 5
146 /* Flags for pointer conversion */
148 #define SWIG_POINTER_EXCEPTION 0x1
149 #define SWIG_POINTER_DISOWN 0x2
151 /* Exception handling in wrappers */
152 #define SWIG_fail goto fail
154 /* Constant information structure */
155 typedef struct swig_const_info
{
161 swig_type_info
**ptype
;
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_PackData(c, ptr, sz) \
182 SWIG_Python_PackData(c, ptr, sz)
183 #define SWIG_UnpackData(c, ptr, sz) \
184 SWIG_Python_UnpackData(c, ptr, sz)
185 #define SWIG_NewPackedObj(ptr, sz, type) \
186 SWIG_Python_NewPackedObj(ptr, sz, type)
187 #define SWIG_InstallConstants(d, constants) \
188 SWIG_Python_InstallConstants(d, constants)
191 SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
192 SWIGEXPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
193 SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
195 SWIGEXPORT(PyObject
*) SWIG_Python_newvarlink(void);
196 SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
197 SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
198 SWIGEXPORT(char *) SWIG_Python_PackData(char *c
, void *, int);
199 SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c
, void *, int);
200 SWIGEXPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
201 SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
204 /* Contract support */
206 #define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
207 #define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
209 #define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
210 #define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
212 #define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
213 #define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
214 #define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
222 /* -------- TYPES TABLE (BEGIN) -------- */
224 #define SWIGTYPE_p_wxFrame swig_types[0]
225 #define SWIGTYPE_p_wxIcon swig_types[1]
226 #define SWIGTYPE_p_wxObject swig_types[2]
227 #define SWIGTYPE_p_wxDialog swig_types[3]
228 #define SWIGTYPE_p_wxColour swig_types[4]
229 #define SWIGTYPE_p_wxWindow swig_types[5]
230 #define SWIGTYPE_p_wxArtClient swig_types[6]
231 #define SWIGTYPE_p_wxBitmap swig_types[7]
232 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
233 #define SWIGTYPE_p_wxPoint swig_types[9]
234 #define SWIGTYPE_p_wxXmlNode swig_types[10]
235 #define SWIGTYPE_p_wxInputStream swig_types[11]
236 #define SWIGTYPE_p_wxOutputStream swig_types[12]
237 #define SWIGTYPE_p_wxString swig_types[13]
238 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
239 #define SWIGTYPE_p_wxFileSystem swig_types[15]
240 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
241 #define SWIGTYPE_p_wxFont swig_types[17]
242 #define SWIGTYPE_p_wxXmlResource swig_types[18]
243 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
244 #define SWIGTYPE_p_wxPanel swig_types[20]
245 #define SWIGTYPE_p_wxSize swig_types[21]
246 static swig_type_info
*swig_types
[23];
248 /* -------- TYPES TABLE (END) -------- */
251 /*-----------------------------------------------
253 ------------------------------------------------*/
254 #define SWIG_init init_xrc
256 #define SWIG_name "_xrc"
258 #include "wx/wxPython/wxPython.h"
259 #include "wx/wxPython/pyclasses.h"
260 #include "wx/wxPython/pyistream.h"
262 #include <wx/xml/xml.h>
263 #include <wx/xrc/xmlres.h>
265 static const wxString
wxPyEmptyString(wxT(""));
266 static const wxString
wxPyUTF8String(wxT("UTF-8"));
267 static const wxString
wxPyStyleString(wxT("style"));
268 static const wxString
wxPySizeString(wxT("size"));
269 static const wxString
wxPyPosString(wxT("pos"));
270 static const wxString
wxPyBitmapString(wxT("bitmap"));
271 static const wxString
wxPyIconString(wxT("icon"));
272 static const wxString
wxPyFontString(wxT("font"));
274 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
275 static int s_memFileIdx
= 0;
277 // Check for memory FS. If not present, load the handler:
278 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
281 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
282 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
286 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
288 // Now put the resource data into the memory FS
289 wxString
filename(wxT("XRC_resource/data_string_"));
290 filename
<< s_memFileIdx
;
292 wxMemoryFSHandler::AddFile(filename
, data
);
294 // Load the "file" into the resource object
295 bool retval
= self
->Load(wxT("memory:") + filename
);
300 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
303 wxPyXmlSubclassFactory() {}
304 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
308 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
310 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
311 // callbacks, as well as to make some protected things public so they can
313 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
315 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
316 //~wxPyXmlResourceHandler();
318 // Base class virtuals
320 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
321 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
324 // accessors for protected members
326 wxXmlResource
* GetResource() { return m_resource
; }
327 wxXmlNode
* GetNode() { return m_node
; }
328 wxString
GetClass() { return m_class
; }
329 wxObject
* GetParent() { return m_parent
; }
330 wxObject
* GetInstance() { return m_instance
; }
331 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
332 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
335 // turn some protected methods into public via delegation
337 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
338 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
340 wxString
GetNodeContent(wxXmlNode
*node
)
341 { return wxXmlResourceHandler::GetNodeContent(node
); }
343 bool HasParam(const wxString
& param
)
344 { return wxXmlResourceHandler::HasParam(param
); }
346 wxXmlNode
*GetParamNode(const wxString
& param
)
347 { return wxXmlResourceHandler::GetParamNode(param
); }
349 wxString
GetParamValue(const wxString
& param
)
350 { return wxXmlResourceHandler::GetParamValue(param
); }
352 void AddStyle(const wxString
& name
, int value
)
353 { wxXmlResourceHandler::AddStyle(name
, value
); }
355 void AddWindowStyles()
356 { wxXmlResourceHandler::AddWindowStyles(); }
358 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
359 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
361 wxString
GetText(const wxString
& param
, bool translate
= True
)
362 { return wxXmlResourceHandler::GetText(param
, translate
); }
365 { return wxXmlResourceHandler::GetID(); }
368 { return wxXmlResourceHandler::GetName(); }
370 bool GetBool(const wxString
& param
, bool defaultv
= False
)
371 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
373 long GetLong( const wxString
& param
, long defaultv
= 0 )
374 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
376 wxColour
GetColour(const wxString
& param
)
377 { return wxXmlResourceHandler::GetColour(param
); }
379 wxSize
GetSize(const wxString
& param
= wxT("size"))
380 { return wxXmlResourceHandler::GetSize(param
); }
382 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
383 { return wxXmlResourceHandler::GetPosition(param
); }
385 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
386 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
388 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
389 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
390 wxSize size
= wxDefaultSize
)
391 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
393 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
394 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
395 wxSize size
= wxDefaultSize
)
396 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
398 wxFont
GetFont(const wxString
& param
= wxT("font"))
399 { return wxXmlResourceHandler::GetFont(param
); }
401 void SetupWindow(wxWindow
*wnd
)
402 { wxXmlResourceHandler::SetupWindow(wnd
); }
404 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
405 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
407 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
408 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
410 wxObject
*CreateResFromNode(wxXmlNode
*node
,
411 wxObject
*parent
, wxObject
*instance
= NULL
)
412 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
414 wxFileSystem
& GetCurFileSystem()
415 { return wxXmlResourceHandler::GetCurFileSystem(); }
421 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
422 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
428 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 int arg2
= (int) wxXRC_USE_LOCALE
;
432 wxXmlResource
*result
;
434 PyObject
* obj0
= 0 ;
436 (char *) "filemask",(char *) "flags", NULL
439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|i:new_XmlResource",kwnames
,&obj0
,&arg2
)) goto fail
;
441 arg1
= wxString_in_helper(obj0
);
442 if (arg1
== NULL
) SWIG_fail
;
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) SWIG_fail
;
452 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
467 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
469 int arg1
= (int) wxXRC_USE_LOCALE
;
470 wxXmlResource
*result
;
472 (char *) "flags", NULL
475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|i:new_EmptyXmlResource",kwnames
,&arg1
)) goto fail
;
477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
478 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
480 wxPyEndAllowThreads(__tstate
);
481 if (PyErr_Occurred()) SWIG_fail
;
483 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
490 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
492 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
493 PyObject
* obj0
= 0 ;
495 (char *) "self", NULL
498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
499 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) SWIG_fail
;
507 Py_INCREF(Py_None
); resultobj
= Py_None
;
514 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
520 PyObject
* obj0
= 0 ;
521 PyObject
* obj1
= 0 ;
523 (char *) "self",(char *) "filemask", NULL
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
527 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
529 arg2
= wxString_in_helper(obj1
);
530 if (arg2
== NULL
) SWIG_fail
;
534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
535 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
537 wxPyEndAllowThreads(__tstate
);
538 if (PyErr_Occurred()) SWIG_fail
;
540 resultobj
= PyInt_FromLong((long)result
);
555 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
557 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
561 PyObject
* obj0
= 0 ;
562 PyObject
* obj1
= 0 ;
564 (char *) "self",(char *) "data", NULL
567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
568 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
570 arg2
= wxString_in_helper(obj1
);
571 if (arg2
== NULL
) SWIG_fail
;
575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
576 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
578 wxPyEndAllowThreads(__tstate
);
579 if (PyErr_Occurred()) SWIG_fail
;
581 resultobj
= PyInt_FromLong((long)result
);
596 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
598 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
599 PyObject
* obj0
= 0 ;
601 (char *) "self", NULL
604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
605 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
608 (arg1
)->InitAllHandlers();
610 wxPyEndAllowThreads(__tstate
);
611 if (PyErr_Occurred()) SWIG_fail
;
613 Py_INCREF(Py_None
); resultobj
= Py_None
;
620 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
622 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
623 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
624 PyObject
* obj0
= 0 ;
625 PyObject
* obj1
= 0 ;
627 (char *) "self",(char *) "handler", NULL
630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
631 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
632 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
635 (arg1
)->AddHandler(arg2
);
637 wxPyEndAllowThreads(__tstate
);
638 if (PyErr_Occurred()) SWIG_fail
;
640 Py_INCREF(Py_None
); resultobj
= Py_None
;
647 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
650 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
651 PyObject
* obj0
= 0 ;
652 PyObject
* obj1
= 0 ;
654 (char *) "self",(char *) "handler", NULL
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
658 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
659 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
662 (arg1
)->InsertHandler(arg2
);
664 wxPyEndAllowThreads(__tstate
);
665 if (PyErr_Occurred()) SWIG_fail
;
667 Py_INCREF(Py_None
); resultobj
= Py_None
;
674 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
676 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
677 PyObject
* obj0
= 0 ;
679 (char *) "self", NULL
682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
683 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
686 (arg1
)->ClearHandlers();
688 wxPyEndAllowThreads(__tstate
);
689 if (PyErr_Occurred()) SWIG_fail
;
691 Py_INCREF(Py_None
); resultobj
= Py_None
;
698 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
700 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
701 PyObject
* obj0
= 0 ;
703 (char *) "factory", NULL
706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
707 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
710 wxXmlResource::AddSubclassFactory(arg1
);
712 wxPyEndAllowThreads(__tstate
);
713 if (PyErr_Occurred()) SWIG_fail
;
715 Py_INCREF(Py_None
); resultobj
= Py_None
;
722 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
724 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
728 PyObject
* obj0
= 0 ;
729 PyObject
* obj1
= 0 ;
731 (char *) "self",(char *) "name", NULL
734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
735 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
737 arg2
= wxString_in_helper(obj1
);
738 if (arg2
== NULL
) SWIG_fail
;
742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
743 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
745 wxPyEndAllowThreads(__tstate
);
746 if (PyErr_Occurred()) SWIG_fail
;
749 resultobj
= wxPyMake_wxObject(result
);
765 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
767 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
771 PyObject
* obj0
= 0 ;
772 PyObject
* obj1
= 0 ;
774 (char *) "self",(char *) "name", NULL
777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
778 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
780 arg2
= wxString_in_helper(obj1
);
781 if (arg2
== NULL
) SWIG_fail
;
785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
786 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
788 wxPyEndAllowThreads(__tstate
);
789 if (PyErr_Occurred()) SWIG_fail
;
792 resultobj
= wxPyMake_wxObject(result
);
808 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
810 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
811 wxWindow
*arg2
= (wxWindow
*) 0 ;
815 PyObject
* obj0
= 0 ;
816 PyObject
* obj1
= 0 ;
817 PyObject
* obj2
= 0 ;
819 (char *) "self",(char *) "parent",(char *) "name", NULL
822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
823 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
824 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
826 arg3
= wxString_in_helper(obj2
);
827 if (arg3
== NULL
) SWIG_fail
;
831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
832 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
834 wxPyEndAllowThreads(__tstate
);
835 if (PyErr_Occurred()) SWIG_fail
;
838 resultobj
= wxPyMake_wxObject(result
);
854 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
856 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
857 wxWindow
*arg2
= (wxWindow
*) 0 ;
861 PyObject
* obj0
= 0 ;
862 PyObject
* obj1
= 0 ;
863 PyObject
* obj2
= 0 ;
865 (char *) "self",(char *) "parent",(char *) "name", NULL
868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
869 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
870 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
872 arg3
= wxString_in_helper(obj2
);
873 if (arg3
== NULL
) SWIG_fail
;
877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
878 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
880 wxPyEndAllowThreads(__tstate
);
881 if (PyErr_Occurred()) SWIG_fail
;
884 resultobj
= wxPyMake_wxObject(result
);
900 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
902 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
903 wxWindow
*arg2
= (wxWindow
*) 0 ;
907 PyObject
* obj0
= 0 ;
908 PyObject
* obj1
= 0 ;
909 PyObject
* obj2
= 0 ;
911 (char *) "self",(char *) "parent",(char *) "name", NULL
914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
915 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
916 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
918 arg3
= wxString_in_helper(obj2
);
919 if (arg3
== NULL
) SWIG_fail
;
923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
924 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
926 wxPyEndAllowThreads(__tstate
);
927 if (PyErr_Occurred()) SWIG_fail
;
929 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
944 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
946 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
947 wxDialog
*arg2
= (wxDialog
*) 0 ;
948 wxWindow
*arg3
= (wxWindow
*) 0 ;
952 PyObject
* obj0
= 0 ;
953 PyObject
* obj1
= 0 ;
954 PyObject
* obj2
= 0 ;
955 PyObject
* obj3
= 0 ;
957 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
961 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
962 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
963 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
965 arg4
= wxString_in_helper(obj3
);
966 if (arg4
== NULL
) SWIG_fail
;
970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
971 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
973 wxPyEndAllowThreads(__tstate
);
974 if (PyErr_Occurred()) SWIG_fail
;
976 resultobj
= PyInt_FromLong((long)result
);
991 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
993 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
994 wxWindow
*arg2
= (wxWindow
*) 0 ;
998 PyObject
* obj0
= 0 ;
999 PyObject
* obj1
= 0 ;
1000 PyObject
* obj2
= 0 ;
1002 (char *) "self",(char *) "parent",(char *) "name", NULL
1005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1006 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1007 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1009 arg3
= wxString_in_helper(obj2
);
1010 if (arg3
== NULL
) SWIG_fail
;
1014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1015 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1017 wxPyEndAllowThreads(__tstate
);
1018 if (PyErr_Occurred()) SWIG_fail
;
1020 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1035 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1036 PyObject
*resultobj
;
1037 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1038 wxPanel
*arg2
= (wxPanel
*) 0 ;
1039 wxWindow
*arg3
= (wxWindow
*) 0 ;
1040 wxString
*arg4
= 0 ;
1042 bool temp4
= False
;
1043 PyObject
* obj0
= 0 ;
1044 PyObject
* obj1
= 0 ;
1045 PyObject
* obj2
= 0 ;
1046 PyObject
* obj3
= 0 ;
1048 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1052 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1053 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1054 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1056 arg4
= wxString_in_helper(obj3
);
1057 if (arg4
== NULL
) SWIG_fail
;
1061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1062 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1064 wxPyEndAllowThreads(__tstate
);
1065 if (PyErr_Occurred()) SWIG_fail
;
1067 resultobj
= PyInt_FromLong((long)result
);
1082 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1083 PyObject
*resultobj
;
1084 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1085 wxWindow
*arg2
= (wxWindow
*) 0 ;
1086 wxString
*arg3
= 0 ;
1088 bool temp3
= False
;
1089 PyObject
* obj0
= 0 ;
1090 PyObject
* obj1
= 0 ;
1091 PyObject
* obj2
= 0 ;
1093 (char *) "self",(char *) "parent",(char *) "name", NULL
1096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1097 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1098 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1100 arg3
= wxString_in_helper(obj2
);
1101 if (arg3
== NULL
) SWIG_fail
;
1105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1106 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1108 wxPyEndAllowThreads(__tstate
);
1109 if (PyErr_Occurred()) SWIG_fail
;
1112 resultobj
= wxPyMake_wxObject(result
);
1128 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1129 PyObject
*resultobj
;
1130 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1131 wxFrame
*arg2
= (wxFrame
*) 0 ;
1132 wxWindow
*arg3
= (wxWindow
*) 0 ;
1133 wxString
*arg4
= 0 ;
1135 bool temp4
= False
;
1136 PyObject
* obj0
= 0 ;
1137 PyObject
* obj1
= 0 ;
1138 PyObject
* obj2
= 0 ;
1139 PyObject
* obj3
= 0 ;
1141 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1145 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1146 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1147 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1149 arg4
= wxString_in_helper(obj3
);
1150 if (arg4
== NULL
) SWIG_fail
;
1154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1155 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1157 wxPyEndAllowThreads(__tstate
);
1158 if (PyErr_Occurred()) SWIG_fail
;
1160 resultobj
= PyInt_FromLong((long)result
);
1175 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1176 PyObject
*resultobj
;
1177 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1178 wxWindow
*arg2
= (wxWindow
*) 0 ;
1179 wxString
*arg3
= 0 ;
1180 wxString
*arg4
= 0 ;
1182 bool temp3
= False
;
1183 bool temp4
= False
;
1184 PyObject
* obj0
= 0 ;
1185 PyObject
* obj1
= 0 ;
1186 PyObject
* obj2
= 0 ;
1187 PyObject
* obj3
= 0 ;
1189 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1193 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1194 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1196 arg3
= wxString_in_helper(obj2
);
1197 if (arg3
== NULL
) SWIG_fail
;
1201 arg4
= wxString_in_helper(obj3
);
1202 if (arg4
== NULL
) SWIG_fail
;
1206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1207 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1209 wxPyEndAllowThreads(__tstate
);
1210 if (PyErr_Occurred()) SWIG_fail
;
1213 resultobj
= wxPyMake_wxObject(result
);
1237 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
*resultobj
;
1239 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1240 wxObject
*arg2
= (wxObject
*) 0 ;
1241 wxWindow
*arg3
= (wxWindow
*) 0 ;
1242 wxString
*arg4
= 0 ;
1243 wxString
*arg5
= 0 ;
1245 bool temp4
= False
;
1246 bool temp5
= False
;
1247 PyObject
* obj0
= 0 ;
1248 PyObject
* obj1
= 0 ;
1249 PyObject
* obj2
= 0 ;
1250 PyObject
* obj3
= 0 ;
1251 PyObject
* obj4
= 0 ;
1253 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1257 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1258 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1259 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1261 arg4
= wxString_in_helper(obj3
);
1262 if (arg4
== NULL
) SWIG_fail
;
1266 arg5
= wxString_in_helper(obj4
);
1267 if (arg5
== NULL
) SWIG_fail
;
1271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1272 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1274 wxPyEndAllowThreads(__tstate
);
1275 if (PyErr_Occurred()) SWIG_fail
;
1277 resultobj
= PyInt_FromLong((long)result
);
1300 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1301 PyObject
*resultobj
;
1302 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1303 wxString
*arg2
= 0 ;
1305 bool temp2
= False
;
1306 PyObject
* obj0
= 0 ;
1307 PyObject
* obj1
= 0 ;
1309 (char *) "self",(char *) "name", NULL
1312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1313 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1315 arg2
= wxString_in_helper(obj1
);
1316 if (arg2
== NULL
) SWIG_fail
;
1320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1321 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1323 wxPyEndAllowThreads(__tstate
);
1324 if (PyErr_Occurred()) SWIG_fail
;
1327 wxBitmap
* resultptr
;
1328 resultptr
= new wxBitmap((wxBitmap
&) result
);
1329 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1345 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1346 PyObject
*resultobj
;
1347 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1348 wxString
*arg2
= 0 ;
1350 bool temp2
= False
;
1351 PyObject
* obj0
= 0 ;
1352 PyObject
* obj1
= 0 ;
1354 (char *) "self",(char *) "name", NULL
1357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1358 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1360 arg2
= wxString_in_helper(obj1
);
1361 if (arg2
== NULL
) SWIG_fail
;
1365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1366 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1368 wxPyEndAllowThreads(__tstate
);
1369 if (PyErr_Occurred()) SWIG_fail
;
1373 resultptr
= new wxIcon((wxIcon
&) result
);
1374 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1390 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1391 PyObject
*resultobj
;
1392 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1393 wxString
*arg2
= 0 ;
1394 wxWindow
*arg3
= (wxWindow
*) 0 ;
1395 wxWindow
*arg4
= (wxWindow
*) NULL
;
1397 bool temp2
= False
;
1398 PyObject
* obj0
= 0 ;
1399 PyObject
* obj1
= 0 ;
1400 PyObject
* obj2
= 0 ;
1401 PyObject
* obj3
= 0 ;
1403 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1407 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1409 arg2
= wxString_in_helper(obj1
);
1410 if (arg2
== NULL
) SWIG_fail
;
1413 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1415 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1419 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1421 wxPyEndAllowThreads(__tstate
);
1422 if (PyErr_Occurred()) SWIG_fail
;
1424 resultobj
= PyInt_FromLong((long)result
);
1439 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1440 PyObject
*resultobj
;
1441 wxString
*arg1
= 0 ;
1443 bool temp1
= False
;
1444 PyObject
* obj0
= 0 ;
1446 (char *) "str_id", NULL
1449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1451 arg1
= wxString_in_helper(obj0
);
1452 if (arg1
== NULL
) SWIG_fail
;
1456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1457 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1459 wxPyEndAllowThreads(__tstate
);
1460 if (PyErr_Occurred()) SWIG_fail
;
1462 resultobj
= PyInt_FromLong((long)result
);
1477 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1478 PyObject
*resultobj
;
1479 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1481 PyObject
* obj0
= 0 ;
1483 (char *) "self", NULL
1486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1487 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) SWIG_fail
;
1495 resultobj
= PyInt_FromLong((long)result
);
1502 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
*resultobj
;
1504 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1510 PyObject
* obj0
= 0 ;
1512 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oiiii:XmlResource_CompareVersion",kwnames
,&obj0
,&arg2
,&arg3
,&arg4
,&arg5
)) goto fail
;
1516 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1519 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1521 wxPyEndAllowThreads(__tstate
);
1522 if (PyErr_Occurred()) SWIG_fail
;
1524 resultobj
= PyInt_FromLong((long)result
);
1531 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
*resultobj
;
1533 wxXmlResource
*result
;
1538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1541 result
= (wxXmlResource
*)wxXmlResource::Get();
1543 wxPyEndAllowThreads(__tstate
);
1544 if (PyErr_Occurred()) SWIG_fail
;
1546 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1553 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1554 PyObject
*resultobj
;
1555 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1556 wxXmlResource
*result
;
1557 PyObject
* obj0
= 0 ;
1559 (char *) "res", NULL
1562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1563 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1566 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1568 wxPyEndAllowThreads(__tstate
);
1569 if (PyErr_Occurred()) SWIG_fail
;
1571 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1578 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1579 PyObject
*resultobj
;
1580 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1582 PyObject
* obj0
= 0 ;
1584 (char *) "self", NULL
1587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1588 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1591 result
= (int)(arg1
)->GetFlags();
1593 wxPyEndAllowThreads(__tstate
);
1594 if (PyErr_Occurred()) SWIG_fail
;
1596 resultobj
= PyInt_FromLong((long)result
);
1603 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1604 PyObject
*resultobj
;
1605 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1607 PyObject
* obj0
= 0 ;
1609 (char *) "self",(char *) "flags", NULL
1612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlResource_SetFlags",kwnames
,&obj0
,&arg2
)) goto fail
;
1613 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1616 (arg1
)->SetFlags(arg2
);
1618 wxPyEndAllowThreads(__tstate
);
1619 if (PyErr_Occurred()) SWIG_fail
;
1621 Py_INCREF(Py_None
); resultobj
= Py_None
;
1628 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1630 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1631 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1633 return Py_BuildValue((char *)"");
1635 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1636 PyObject
*resultobj
;
1637 wxPyXmlSubclassFactory
*result
;
1642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) SWIG_fail
;
1650 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1657 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1658 PyObject
*resultobj
;
1659 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1660 PyObject
*arg2
= (PyObject
*) 0 ;
1661 PyObject
*arg3
= (PyObject
*) 0 ;
1662 PyObject
* obj0
= 0 ;
1663 PyObject
* obj1
= 0 ;
1664 PyObject
* obj2
= 0 ;
1666 (char *) "self",(char *) "self",(char *) "_class", NULL
1669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1670 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1675 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1677 wxPyEndAllowThreads(__tstate
);
1678 if (PyErr_Occurred()) SWIG_fail
;
1680 Py_INCREF(Py_None
); resultobj
= Py_None
;
1687 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1689 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1690 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1692 return Py_BuildValue((char *)"");
1694 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1695 PyObject
*resultobj
;
1696 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1697 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1698 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1699 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
1700 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
1701 wxXmlProperty
*result
;
1702 bool temp1
= False
;
1703 bool temp2
= False
;
1704 PyObject
* obj0
= 0 ;
1705 PyObject
* obj1
= 0 ;
1706 PyObject
* obj2
= 0 ;
1708 (char *) "name",(char *) "value",(char *) "next", NULL
1711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1714 arg1
= wxString_in_helper(obj0
);
1715 if (arg1
== NULL
) SWIG_fail
;
1721 arg2
= wxString_in_helper(obj1
);
1722 if (arg2
== NULL
) SWIG_fail
;
1727 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1731 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
1733 wxPyEndAllowThreads(__tstate
);
1734 if (PyErr_Occurred()) SWIG_fail
;
1736 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
1759 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1760 PyObject
*resultobj
;
1761 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1763 PyObject
* obj0
= 0 ;
1765 (char *) "self", NULL
1768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
1769 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1772 result
= ((wxXmlProperty
const *)arg1
)->GetName();
1774 wxPyEndAllowThreads(__tstate
);
1775 if (PyErr_Occurred()) SWIG_fail
;
1779 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1781 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1790 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1791 PyObject
*resultobj
;
1792 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1794 PyObject
* obj0
= 0 ;
1796 (char *) "self", NULL
1799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
1800 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1803 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
1805 wxPyEndAllowThreads(__tstate
);
1806 if (PyErr_Occurred()) SWIG_fail
;
1810 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1812 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1821 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
*resultobj
;
1823 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1824 wxXmlProperty
*result
;
1825 PyObject
* obj0
= 0 ;
1827 (char *) "self", NULL
1830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
1831 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1834 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
1836 wxPyEndAllowThreads(__tstate
);
1837 if (PyErr_Occurred()) SWIG_fail
;
1839 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
1846 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1847 PyObject
*resultobj
;
1848 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1849 wxString
*arg2
= 0 ;
1850 bool temp2
= False
;
1851 PyObject
* obj0
= 0 ;
1852 PyObject
* obj1
= 0 ;
1854 (char *) "self",(char *) "name", NULL
1857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
1858 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1860 arg2
= wxString_in_helper(obj1
);
1861 if (arg2
== NULL
) SWIG_fail
;
1865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1866 (arg1
)->SetName((wxString
const &)*arg2
);
1868 wxPyEndAllowThreads(__tstate
);
1869 if (PyErr_Occurred()) SWIG_fail
;
1871 Py_INCREF(Py_None
); resultobj
= Py_None
;
1886 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1887 PyObject
*resultobj
;
1888 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1889 wxString
*arg2
= 0 ;
1890 bool temp2
= False
;
1891 PyObject
* obj0
= 0 ;
1892 PyObject
* obj1
= 0 ;
1894 (char *) "self",(char *) "value", NULL
1897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
1898 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1900 arg2
= wxString_in_helper(obj1
);
1901 if (arg2
== NULL
) SWIG_fail
;
1905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1906 (arg1
)->SetValue((wxString
const &)*arg2
);
1908 wxPyEndAllowThreads(__tstate
);
1909 if (PyErr_Occurred()) SWIG_fail
;
1911 Py_INCREF(Py_None
); resultobj
= Py_None
;
1926 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1927 PyObject
*resultobj
;
1928 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
1929 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
1930 PyObject
* obj0
= 0 ;
1931 PyObject
* obj1
= 0 ;
1933 (char *) "self",(char *) "next", NULL
1936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
1937 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1938 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 (arg1
)->SetNext(arg2
);
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) SWIG_fail
;
1946 Py_INCREF(Py_None
); resultobj
= Py_None
;
1953 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
1955 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1956 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
1958 return Py_BuildValue((char *)"");
1960 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
*resultobj
;
1962 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
1963 int arg2
= (int) 0 ;
1964 wxString
const &arg3_defvalue
= wxPyEmptyString
;
1965 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
1966 wxString
const &arg4_defvalue
= wxPyEmptyString
;
1967 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
1968 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
1969 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
1971 bool temp3
= False
;
1972 bool temp4
= False
;
1973 PyObject
* obj0
= 0 ;
1974 PyObject
* obj2
= 0 ;
1975 PyObject
* obj3
= 0 ;
1976 PyObject
* obj4
= 0 ;
1977 PyObject
* obj5
= 0 ;
1979 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
1982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OiOOOO:new_XmlNode",kwnames
,&obj0
,&arg2
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
1984 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1988 arg3
= wxString_in_helper(obj2
);
1989 if (arg3
== NULL
) SWIG_fail
;
1995 arg4
= wxString_in_helper(obj3
);
1996 if (arg4
== NULL
) SWIG_fail
;
2001 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2004 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2008 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2010 wxPyEndAllowThreads(__tstate
);
2011 if (PyErr_Occurred()) SWIG_fail
;
2013 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2036 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2037 PyObject
*resultobj
;
2038 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2039 PyObject
* obj0
= 0 ;
2041 (char *) "self", NULL
2044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2045 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2050 wxPyEndAllowThreads(__tstate
);
2051 if (PyErr_Occurred()) SWIG_fail
;
2053 Py_INCREF(Py_None
); resultobj
= Py_None
;
2060 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2061 PyObject
*resultobj
;
2063 wxString
*arg2
= 0 ;
2064 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2065 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2067 bool temp2
= False
;
2068 bool temp3
= False
;
2069 PyObject
* obj1
= 0 ;
2070 PyObject
* obj2
= 0 ;
2072 (char *) "type",(char *) "name",(char *) "content", NULL
2075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"iO|O:new_XmlNodeEasy",kwnames
,&arg1
,&obj1
,&obj2
)) goto fail
;
2077 arg2
= wxString_in_helper(obj1
);
2078 if (arg2
== NULL
) SWIG_fail
;
2083 arg3
= wxString_in_helper(obj2
);
2084 if (arg3
== NULL
) SWIG_fail
;
2089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2090 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2092 wxPyEndAllowThreads(__tstate
);
2093 if (PyErr_Occurred()) SWIG_fail
;
2095 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2118 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
*resultobj
;
2120 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2121 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2122 PyObject
* obj0
= 0 ;
2123 PyObject
* obj1
= 0 ;
2125 (char *) "self",(char *) "child", NULL
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2129 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2130 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2133 (arg1
)->AddChild(arg2
);
2135 wxPyEndAllowThreads(__tstate
);
2136 if (PyErr_Occurred()) SWIG_fail
;
2138 Py_INCREF(Py_None
); resultobj
= Py_None
;
2145 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2146 PyObject
*resultobj
;
2147 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2148 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2149 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2150 PyObject
* obj0
= 0 ;
2151 PyObject
* obj1
= 0 ;
2152 PyObject
* obj2
= 0 ;
2154 (char *) "self",(char *) "child",(char *) "before_node", NULL
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2158 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2159 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2160 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2163 (arg1
)->InsertChild(arg2
,arg3
);
2165 wxPyEndAllowThreads(__tstate
);
2166 if (PyErr_Occurred()) SWIG_fail
;
2168 Py_INCREF(Py_None
); resultobj
= Py_None
;
2175 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2176 PyObject
*resultobj
;
2177 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2178 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2180 PyObject
* obj0
= 0 ;
2181 PyObject
* obj1
= 0 ;
2183 (char *) "self",(char *) "child", NULL
2186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2187 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2188 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2191 result
= (bool)(arg1
)->RemoveChild(arg2
);
2193 wxPyEndAllowThreads(__tstate
);
2194 if (PyErr_Occurred()) SWIG_fail
;
2196 resultobj
= PyInt_FromLong((long)result
);
2203 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
*resultobj
;
2205 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2206 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2207 PyObject
* obj0
= 0 ;
2208 PyObject
* obj1
= 0 ;
2210 (char *) "self",(char *) "prop", NULL
2213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2214 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2215 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2218 (arg1
)->AddProperty(arg2
);
2220 wxPyEndAllowThreads(__tstate
);
2221 if (PyErr_Occurred()) SWIG_fail
;
2223 Py_INCREF(Py_None
); resultobj
= Py_None
;
2230 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2231 PyObject
*resultobj
;
2232 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2233 wxString
*arg2
= 0 ;
2234 wxString
*arg3
= 0 ;
2235 bool temp2
= False
;
2236 bool temp3
= False
;
2237 PyObject
* obj0
= 0 ;
2238 PyObject
* obj1
= 0 ;
2239 PyObject
* obj2
= 0 ;
2241 (char *) "self",(char *) "name",(char *) "value", NULL
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2245 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2247 arg2
= wxString_in_helper(obj1
);
2248 if (arg2
== NULL
) SWIG_fail
;
2252 arg3
= wxString_in_helper(obj2
);
2253 if (arg3
== NULL
) SWIG_fail
;
2257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2258 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2260 wxPyEndAllowThreads(__tstate
);
2261 if (PyErr_Occurred()) SWIG_fail
;
2263 Py_INCREF(Py_None
); resultobj
= Py_None
;
2286 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2287 PyObject
*resultobj
;
2288 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2289 wxString
*arg2
= 0 ;
2291 bool temp2
= False
;
2292 PyObject
* obj0
= 0 ;
2293 PyObject
* obj1
= 0 ;
2295 (char *) "self",(char *) "name", NULL
2298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2299 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2301 arg2
= wxString_in_helper(obj1
);
2302 if (arg2
== NULL
) SWIG_fail
;
2306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2307 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2309 wxPyEndAllowThreads(__tstate
);
2310 if (PyErr_Occurred()) SWIG_fail
;
2312 resultobj
= PyInt_FromLong((long)result
);
2327 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2328 PyObject
*resultobj
;
2329 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2331 PyObject
* obj0
= 0 ;
2333 (char *) "self", NULL
2336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2337 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2340 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2342 wxPyEndAllowThreads(__tstate
);
2343 if (PyErr_Occurred()) SWIG_fail
;
2345 resultobj
= PyInt_FromLong((long)result
);
2352 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2353 PyObject
*resultobj
;
2354 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2356 PyObject
* obj0
= 0 ;
2358 (char *) "self", NULL
2361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2362 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2365 result
= ((wxXmlNode
const *)arg1
)->GetName();
2367 wxPyEndAllowThreads(__tstate
);
2368 if (PyErr_Occurred()) SWIG_fail
;
2372 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2374 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2383 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2384 PyObject
*resultobj
;
2385 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2387 PyObject
* obj0
= 0 ;
2389 (char *) "self", NULL
2392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2393 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2396 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2398 wxPyEndAllowThreads(__tstate
);
2399 if (PyErr_Occurred()) SWIG_fail
;
2403 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2405 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2414 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2415 PyObject
*resultobj
;
2416 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2418 PyObject
* obj0
= 0 ;
2420 (char *) "self", NULL
2423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2424 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2427 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2429 wxPyEndAllowThreads(__tstate
);
2430 if (PyErr_Occurred()) SWIG_fail
;
2432 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2439 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2440 PyObject
*resultobj
;
2441 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2443 PyObject
* obj0
= 0 ;
2445 (char *) "self", NULL
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2449 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2452 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2454 wxPyEndAllowThreads(__tstate
);
2455 if (PyErr_Occurred()) SWIG_fail
;
2457 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2464 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2465 PyObject
*resultobj
;
2466 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2468 PyObject
* obj0
= 0 ;
2470 (char *) "self", NULL
2473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2474 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2477 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2479 wxPyEndAllowThreads(__tstate
);
2480 if (PyErr_Occurred()) SWIG_fail
;
2482 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2489 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2490 PyObject
*resultobj
;
2491 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2492 wxXmlProperty
*result
;
2493 PyObject
* obj0
= 0 ;
2495 (char *) "self", NULL
2498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2499 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) SWIG_fail
;
2507 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2514 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2515 PyObject
*resultobj
;
2516 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2517 wxString
*arg2
= 0 ;
2518 wxString
*arg3
= 0 ;
2520 bool temp2
= False
;
2521 bool temp3
= False
;
2522 PyObject
* obj0
= 0 ;
2523 PyObject
* obj1
= 0 ;
2524 PyObject
* obj2
= 0 ;
2526 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2530 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2532 arg2
= wxString_in_helper(obj1
);
2533 if (arg2
== NULL
) SWIG_fail
;
2537 arg3
= wxString_in_helper(obj2
);
2538 if (arg3
== NULL
) SWIG_fail
;
2542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2543 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2545 wxPyEndAllowThreads(__tstate
);
2546 if (PyErr_Occurred()) SWIG_fail
;
2550 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2552 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2577 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2578 PyObject
*resultobj
;
2579 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2580 wxString
*arg2
= 0 ;
2582 bool temp2
= False
;
2583 PyObject
* obj0
= 0 ;
2584 PyObject
* obj1
= 0 ;
2586 (char *) "self",(char *) "propName", NULL
2589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2590 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2592 arg2
= wxString_in_helper(obj1
);
2593 if (arg2
== NULL
) SWIG_fail
;
2597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2598 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2600 wxPyEndAllowThreads(__tstate
);
2601 if (PyErr_Occurred()) SWIG_fail
;
2603 resultobj
= PyInt_FromLong((long)result
);
2618 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
*resultobj
;
2620 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2622 PyObject
* obj0
= 0 ;
2624 (char *) "self",(char *) "type", NULL
2627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlNode_SetType",kwnames
,&obj0
,&arg2
)) goto fail
;
2628 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) SWIG_fail
;
2636 Py_INCREF(Py_None
); resultobj
= Py_None
;
2643 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
*resultobj
;
2645 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2646 wxString
*arg2
= 0 ;
2647 bool temp2
= False
;
2648 PyObject
* obj0
= 0 ;
2649 PyObject
* obj1
= 0 ;
2651 (char *) "self",(char *) "name", NULL
2654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2655 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2657 arg2
= wxString_in_helper(obj1
);
2658 if (arg2
== NULL
) SWIG_fail
;
2662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2663 (arg1
)->SetName((wxString
const &)*arg2
);
2665 wxPyEndAllowThreads(__tstate
);
2666 if (PyErr_Occurred()) SWIG_fail
;
2668 Py_INCREF(Py_None
); resultobj
= Py_None
;
2683 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2684 PyObject
*resultobj
;
2685 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2686 wxString
*arg2
= 0 ;
2687 bool temp2
= False
;
2688 PyObject
* obj0
= 0 ;
2689 PyObject
* obj1
= 0 ;
2691 (char *) "self",(char *) "con", NULL
2694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2695 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2697 arg2
= wxString_in_helper(obj1
);
2698 if (arg2
== NULL
) SWIG_fail
;
2702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2703 (arg1
)->SetContent((wxString
const &)*arg2
);
2705 wxPyEndAllowThreads(__tstate
);
2706 if (PyErr_Occurred()) SWIG_fail
;
2708 Py_INCREF(Py_None
); resultobj
= Py_None
;
2723 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2724 PyObject
*resultobj
;
2725 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2726 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2727 PyObject
* obj0
= 0 ;
2728 PyObject
* obj1
= 0 ;
2730 (char *) "self",(char *) "parent", NULL
2733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
2734 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2735 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2738 (arg1
)->SetParent(arg2
);
2740 wxPyEndAllowThreads(__tstate
);
2741 if (PyErr_Occurred()) SWIG_fail
;
2743 Py_INCREF(Py_None
); resultobj
= Py_None
;
2750 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2751 PyObject
*resultobj
;
2752 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2753 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2754 PyObject
* obj0
= 0 ;
2755 PyObject
* obj1
= 0 ;
2757 (char *) "self",(char *) "next", NULL
2760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2761 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2762 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2765 (arg1
)->SetNext(arg2
);
2767 wxPyEndAllowThreads(__tstate
);
2768 if (PyErr_Occurred()) SWIG_fail
;
2770 Py_INCREF(Py_None
); resultobj
= Py_None
;
2777 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2778 PyObject
*resultobj
;
2779 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2780 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2781 PyObject
* obj0
= 0 ;
2782 PyObject
* obj1
= 0 ;
2784 (char *) "self",(char *) "child", NULL
2787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
2788 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2789 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2792 (arg1
)->SetChildren(arg2
);
2794 wxPyEndAllowThreads(__tstate
);
2795 if (PyErr_Occurred()) SWIG_fail
;
2797 Py_INCREF(Py_None
); resultobj
= Py_None
;
2804 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2805 PyObject
*resultobj
;
2806 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2807 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2808 PyObject
* obj0
= 0 ;
2809 PyObject
* obj1
= 0 ;
2811 (char *) "self",(char *) "prop", NULL
2814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
2815 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2816 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2819 (arg1
)->SetProperties(arg2
);
2821 wxPyEndAllowThreads(__tstate
);
2822 if (PyErr_Occurred()) SWIG_fail
;
2824 Py_INCREF(Py_None
); resultobj
= Py_None
;
2831 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
2833 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2834 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
2836 return Py_BuildValue((char *)"");
2838 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
*resultobj
;
2840 wxString
*arg1
= 0 ;
2841 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2842 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2843 wxXmlDocument
*result
;
2844 bool temp1
= False
;
2845 bool temp2
= False
;
2846 PyObject
* obj0
= 0 ;
2847 PyObject
* obj1
= 0 ;
2849 (char *) "filename",(char *) "encoding", NULL
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
2854 arg1
= wxString_in_helper(obj0
);
2855 if (arg1
== NULL
) SWIG_fail
;
2860 arg2
= wxString_in_helper(obj1
);
2861 if (arg2
== NULL
) SWIG_fail
;
2866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2867 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
2869 wxPyEndAllowThreads(__tstate
);
2870 if (PyErr_Occurred()) SWIG_fail
;
2872 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2895 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2896 PyObject
*resultobj
;
2897 wxInputStream
*arg1
= 0 ;
2898 wxString
const &arg2_defvalue
= wxPyUTF8String
;
2899 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2900 wxXmlDocument
*result
;
2901 wxPyInputStream
*temp1
;
2903 bool temp2
= False
;
2904 PyObject
* obj0
= 0 ;
2905 PyObject
* obj1
= 0 ;
2907 (char *) "stream",(char *) "encoding", NULL
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
2912 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
2913 arg1
= temp1
->m_wxis
;
2916 PyErr_Clear(); // clear the failure of the wxPyConvert above
2917 arg1
= wxPyCBInputStream_create(obj0
, False
);
2919 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
2927 arg2
= wxString_in_helper(obj1
);
2928 if (arg2
== NULL
) SWIG_fail
;
2933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2934 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
2936 wxPyEndAllowThreads(__tstate
);
2937 if (PyErr_Occurred()) SWIG_fail
;
2939 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2962 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2963 PyObject
*resultobj
;
2964 wxXmlDocument
*result
;
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
2971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2972 result
= (wxXmlDocument
*)new wxXmlDocument();
2974 wxPyEndAllowThreads(__tstate
);
2975 if (PyErr_Occurred()) SWIG_fail
;
2977 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
2984 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2985 PyObject
*resultobj
;
2986 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
2987 PyObject
* obj0
= 0 ;
2989 (char *) "self", NULL
2992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
2993 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2998 wxPyEndAllowThreads(__tstate
);
2999 if (PyErr_Occurred()) SWIG_fail
;
3001 Py_INCREF(Py_None
); resultobj
= Py_None
;
3008 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3009 PyObject
*resultobj
;
3010 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3011 wxString
*arg2
= 0 ;
3012 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3013 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3015 bool temp2
= False
;
3016 bool temp3
= False
;
3017 PyObject
* obj0
= 0 ;
3018 PyObject
* obj1
= 0 ;
3019 PyObject
* obj2
= 0 ;
3021 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3025 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3027 arg2
= wxString_in_helper(obj1
);
3028 if (arg2
== NULL
) SWIG_fail
;
3033 arg3
= wxString_in_helper(obj2
);
3034 if (arg3
== NULL
) SWIG_fail
;
3039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3040 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3042 wxPyEndAllowThreads(__tstate
);
3043 if (PyErr_Occurred()) SWIG_fail
;
3045 resultobj
= PyInt_FromLong((long)result
);
3068 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3069 PyObject
*resultobj
;
3070 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3071 wxInputStream
*arg2
= 0 ;
3072 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3073 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3075 wxPyInputStream
*temp2
;
3077 bool temp3
= False
;
3078 PyObject
* obj0
= 0 ;
3079 PyObject
* obj1
= 0 ;
3080 PyObject
* obj2
= 0 ;
3082 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3086 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3088 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3089 arg2
= temp2
->m_wxis
;
3092 PyErr_Clear(); // clear the failure of the wxPyConvert above
3093 arg2
= wxPyCBInputStream_create(obj1
, False
);
3095 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3103 arg3
= wxString_in_helper(obj2
);
3104 if (arg3
== NULL
) SWIG_fail
;
3109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3110 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3112 wxPyEndAllowThreads(__tstate
);
3113 if (PyErr_Occurred()) SWIG_fail
;
3115 resultobj
= PyInt_FromLong((long)result
);
3138 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3139 PyObject
*resultobj
;
3140 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3141 wxString
*arg2
= 0 ;
3143 bool temp2
= False
;
3144 PyObject
* obj0
= 0 ;
3145 PyObject
* obj1
= 0 ;
3147 (char *) "self",(char *) "filename", NULL
3150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3151 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3153 arg2
= wxString_in_helper(obj1
);
3154 if (arg2
== NULL
) SWIG_fail
;
3158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3159 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3161 wxPyEndAllowThreads(__tstate
);
3162 if (PyErr_Occurred()) SWIG_fail
;
3164 resultobj
= PyInt_FromLong((long)result
);
3179 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3180 PyObject
*resultobj
;
3181 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3182 wxOutputStream
*arg2
= 0 ;
3184 PyObject
* obj0
= 0 ;
3185 PyObject
* obj1
= 0 ;
3187 (char *) "self",(char *) "stream", NULL
3190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3191 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3192 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3194 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3198 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3200 wxPyEndAllowThreads(__tstate
);
3201 if (PyErr_Occurred()) SWIG_fail
;
3203 resultobj
= PyInt_FromLong((long)result
);
3210 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3211 PyObject
*resultobj
;
3212 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3214 PyObject
* obj0
= 0 ;
3216 (char *) "self", NULL
3219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3220 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3223 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3225 wxPyEndAllowThreads(__tstate
);
3226 if (PyErr_Occurred()) SWIG_fail
;
3228 resultobj
= PyInt_FromLong((long)result
);
3235 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3236 PyObject
*resultobj
;
3237 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3239 PyObject
* obj0
= 0 ;
3241 (char *) "self", NULL
3244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3245 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3248 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3250 wxPyEndAllowThreads(__tstate
);
3251 if (PyErr_Occurred()) SWIG_fail
;
3253 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3260 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3261 PyObject
*resultobj
;
3262 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3264 PyObject
* obj0
= 0 ;
3266 (char *) "self", NULL
3269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3270 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3273 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3275 wxPyEndAllowThreads(__tstate
);
3276 if (PyErr_Occurred()) SWIG_fail
;
3280 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3282 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3291 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3292 PyObject
*resultobj
;
3293 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3295 PyObject
* obj0
= 0 ;
3297 (char *) "self", NULL
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3301 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3304 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3306 wxPyEndAllowThreads(__tstate
);
3307 if (PyErr_Occurred()) SWIG_fail
;
3311 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3313 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3322 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3323 PyObject
*resultobj
;
3324 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3325 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3326 PyObject
* obj0
= 0 ;
3327 PyObject
* obj1
= 0 ;
3329 (char *) "self",(char *) "node", NULL
3332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3333 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3334 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3337 (arg1
)->SetRoot(arg2
);
3339 wxPyEndAllowThreads(__tstate
);
3340 if (PyErr_Occurred()) SWIG_fail
;
3342 Py_INCREF(Py_None
); resultobj
= Py_None
;
3349 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3350 PyObject
*resultobj
;
3351 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3352 wxString
*arg2
= 0 ;
3353 bool temp2
= False
;
3354 PyObject
* obj0
= 0 ;
3355 PyObject
* obj1
= 0 ;
3357 (char *) "self",(char *) "version", NULL
3360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3361 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3363 arg2
= wxString_in_helper(obj1
);
3364 if (arg2
== NULL
) SWIG_fail
;
3368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3369 (arg1
)->SetVersion((wxString
const &)*arg2
);
3371 wxPyEndAllowThreads(__tstate
);
3372 if (PyErr_Occurred()) SWIG_fail
;
3374 Py_INCREF(Py_None
); resultobj
= Py_None
;
3389 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3390 PyObject
*resultobj
;
3391 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3392 wxString
*arg2
= 0 ;
3393 bool temp2
= False
;
3394 PyObject
* obj0
= 0 ;
3395 PyObject
* obj1
= 0 ;
3397 (char *) "self",(char *) "encoding", NULL
3400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3401 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3403 arg2
= wxString_in_helper(obj1
);
3404 if (arg2
== NULL
) SWIG_fail
;
3408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3409 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3411 wxPyEndAllowThreads(__tstate
);
3412 if (PyErr_Occurred()) SWIG_fail
;
3414 Py_INCREF(Py_None
); resultobj
= Py_None
;
3429 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3431 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3432 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3434 return Py_BuildValue((char *)"");
3436 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3437 PyObject
*resultobj
;
3438 wxPyXmlResourceHandler
*result
;
3443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3446 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3448 wxPyEndAllowThreads(__tstate
);
3449 if (PyErr_Occurred()) SWIG_fail
;
3451 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3458 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3459 PyObject
*resultobj
;
3460 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3461 PyObject
*arg2
= (PyObject
*) 0 ;
3462 PyObject
*arg3
= (PyObject
*) 0 ;
3463 PyObject
* obj0
= 0 ;
3464 PyObject
* obj1
= 0 ;
3465 PyObject
* obj2
= 0 ;
3467 (char *) "self",(char *) "self",(char *) "_class", NULL
3470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3471 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3476 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3478 wxPyEndAllowThreads(__tstate
);
3479 if (PyErr_Occurred()) SWIG_fail
;
3481 Py_INCREF(Py_None
); resultobj
= Py_None
;
3488 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3489 PyObject
*resultobj
;
3490 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3491 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3492 wxObject
*arg3
= (wxObject
*) 0 ;
3493 wxObject
*arg4
= (wxObject
*) 0 ;
3495 PyObject
* obj0
= 0 ;
3496 PyObject
* obj1
= 0 ;
3497 PyObject
* obj2
= 0 ;
3498 PyObject
* obj3
= 0 ;
3500 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3504 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3505 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3506 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3507 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3510 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3512 wxPyEndAllowThreads(__tstate
);
3513 if (PyErr_Occurred()) SWIG_fail
;
3516 resultobj
= wxPyMake_wxObject(result
);
3524 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3525 PyObject
*resultobj
;
3526 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3527 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3528 PyObject
* obj0
= 0 ;
3529 PyObject
* obj1
= 0 ;
3531 (char *) "self",(char *) "res", NULL
3534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3535 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3536 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3538 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3539 (arg1
)->SetParentResource(arg2
);
3541 wxPyEndAllowThreads(__tstate
);
3542 if (PyErr_Occurred()) SWIG_fail
;
3544 Py_INCREF(Py_None
); resultobj
= Py_None
;
3551 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3552 PyObject
*resultobj
;
3553 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3554 wxXmlResource
*result
;
3555 PyObject
* obj0
= 0 ;
3557 (char *) "self", NULL
3560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3561 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3564 result
= (wxXmlResource
*)(arg1
)->GetResource();
3566 wxPyEndAllowThreads(__tstate
);
3567 if (PyErr_Occurred()) SWIG_fail
;
3569 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3576 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3577 PyObject
*resultobj
;
3578 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3580 PyObject
* obj0
= 0 ;
3582 (char *) "self", NULL
3585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3586 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3589 result
= (wxXmlNode
*)(arg1
)->GetNode();
3591 wxPyEndAllowThreads(__tstate
);
3592 if (PyErr_Occurred()) SWIG_fail
;
3594 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3601 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3602 PyObject
*resultobj
;
3603 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3605 PyObject
* obj0
= 0 ;
3607 (char *) "self", NULL
3610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3611 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3614 result
= (arg1
)->GetClass();
3616 wxPyEndAllowThreads(__tstate
);
3617 if (PyErr_Occurred()) SWIG_fail
;
3621 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3623 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3632 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3633 PyObject
*resultobj
;
3634 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3636 PyObject
* obj0
= 0 ;
3638 (char *) "self", NULL
3641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3642 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3645 result
= (wxObject
*)(arg1
)->GetParent();
3647 wxPyEndAllowThreads(__tstate
);
3648 if (PyErr_Occurred()) SWIG_fail
;
3651 resultobj
= wxPyMake_wxObject(result
);
3659 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3660 PyObject
*resultobj
;
3661 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3663 PyObject
* obj0
= 0 ;
3665 (char *) "self", NULL
3668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3669 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3672 result
= (wxObject
*)(arg1
)->GetInstance();
3674 wxPyEndAllowThreads(__tstate
);
3675 if (PyErr_Occurred()) SWIG_fail
;
3678 resultobj
= wxPyMake_wxObject(result
);
3686 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3687 PyObject
*resultobj
;
3688 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3690 PyObject
* obj0
= 0 ;
3692 (char *) "self", NULL
3695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3696 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3699 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
3701 wxPyEndAllowThreads(__tstate
);
3702 if (PyErr_Occurred()) SWIG_fail
;
3705 resultobj
= wxPyMake_wxObject(result
);
3713 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3714 PyObject
*resultobj
;
3715 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3717 PyObject
* obj0
= 0 ;
3719 (char *) "self", NULL
3722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
3723 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3726 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
3728 wxPyEndAllowThreads(__tstate
);
3729 if (PyErr_Occurred()) SWIG_fail
;
3732 resultobj
= wxPyMake_wxObject(result
);
3740 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3741 PyObject
*resultobj
;
3742 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3743 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3744 wxString
*arg3
= 0 ;
3746 bool temp3
= False
;
3747 PyObject
* obj0
= 0 ;
3748 PyObject
* obj1
= 0 ;
3749 PyObject
* obj2
= 0 ;
3751 (char *) "self",(char *) "node",(char *) "classname", NULL
3754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3755 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3756 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3758 arg3
= wxString_in_helper(obj2
);
3759 if (arg3
== NULL
) SWIG_fail
;
3763 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3764 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
3766 wxPyEndAllowThreads(__tstate
);
3767 if (PyErr_Occurred()) SWIG_fail
;
3769 resultobj
= PyInt_FromLong((long)result
);
3784 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3785 PyObject
*resultobj
;
3786 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3787 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3789 PyObject
* obj0
= 0 ;
3790 PyObject
* obj1
= 0 ;
3792 (char *) "self",(char *) "node", NULL
3795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3796 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3797 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3800 result
= (arg1
)->GetNodeContent(arg2
);
3802 wxPyEndAllowThreads(__tstate
);
3803 if (PyErr_Occurred()) SWIG_fail
;
3807 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3809 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3818 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3819 PyObject
*resultobj
;
3820 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3821 wxString
*arg2
= 0 ;
3823 bool temp2
= False
;
3824 PyObject
* obj0
= 0 ;
3825 PyObject
* obj1
= 0 ;
3827 (char *) "self",(char *) "param", NULL
3830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
3831 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3833 arg2
= wxString_in_helper(obj1
);
3834 if (arg2
== NULL
) SWIG_fail
;
3838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3839 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
3841 wxPyEndAllowThreads(__tstate
);
3842 if (PyErr_Occurred()) SWIG_fail
;
3844 resultobj
= PyInt_FromLong((long)result
);
3859 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3860 PyObject
*resultobj
;
3861 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3862 wxString
*arg2
= 0 ;
3864 bool temp2
= False
;
3865 PyObject
* obj0
= 0 ;
3866 PyObject
* obj1
= 0 ;
3868 (char *) "self",(char *) "param", NULL
3871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
3872 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3874 arg2
= wxString_in_helper(obj1
);
3875 if (arg2
== NULL
) SWIG_fail
;
3879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3880 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
3882 wxPyEndAllowThreads(__tstate
);
3883 if (PyErr_Occurred()) SWIG_fail
;
3885 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3900 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3901 PyObject
*resultobj
;
3902 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3903 wxString
*arg2
= 0 ;
3905 bool temp2
= False
;
3906 PyObject
* obj0
= 0 ;
3907 PyObject
* obj1
= 0 ;
3909 (char *) "self",(char *) "param", NULL
3912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
3913 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3915 arg2
= wxString_in_helper(obj1
);
3916 if (arg2
== NULL
) SWIG_fail
;
3920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3921 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
3923 wxPyEndAllowThreads(__tstate
);
3924 if (PyErr_Occurred()) SWIG_fail
;
3928 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3930 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3947 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3948 PyObject
*resultobj
;
3949 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3950 wxString
*arg2
= 0 ;
3952 bool temp2
= False
;
3953 PyObject
* obj0
= 0 ;
3954 PyObject
* obj1
= 0 ;
3956 (char *) "self",(char *) "name",(char *) "value", NULL
3959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOi:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
3960 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3962 arg2
= wxString_in_helper(obj1
);
3963 if (arg2
== NULL
) SWIG_fail
;
3967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3968 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
3970 wxPyEndAllowThreads(__tstate
);
3971 if (PyErr_Occurred()) SWIG_fail
;
3973 Py_INCREF(Py_None
); resultobj
= Py_None
;
3988 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3989 PyObject
*resultobj
;
3990 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3991 PyObject
* obj0
= 0 ;
3993 (char *) "self", NULL
3996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
3997 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4000 (arg1
)->AddWindowStyles();
4002 wxPyEndAllowThreads(__tstate
);
4003 if (PyErr_Occurred()) SWIG_fail
;
4005 Py_INCREF(Py_None
); resultobj
= Py_None
;
4012 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4013 PyObject
*resultobj
;
4014 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4015 wxString
const &arg2_defvalue
= wxPyStyleString
;
4016 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4017 int arg3
= (int) 0 ;
4019 bool temp2
= False
;
4020 PyObject
* obj0
= 0 ;
4021 PyObject
* obj1
= 0 ;
4023 (char *) "self",(char *) "param",(char *) "defaults", NULL
4026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|Oi:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4027 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4030 arg2
= wxString_in_helper(obj1
);
4031 if (arg2
== NULL
) SWIG_fail
;
4036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4037 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4039 wxPyEndAllowThreads(__tstate
);
4040 if (PyErr_Occurred()) SWIG_fail
;
4042 resultobj
= PyInt_FromLong((long)result
);
4057 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4058 PyObject
*resultobj
;
4059 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4060 wxString
*arg2
= 0 ;
4061 bool arg3
= (bool) True
;
4063 bool temp2
= False
;
4064 PyObject
* obj0
= 0 ;
4065 PyObject
* obj1
= 0 ;
4066 PyObject
* obj2
= 0 ;
4068 (char *) "self",(char *) "param",(char *) "translate", NULL
4071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4072 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4074 arg2
= wxString_in_helper(obj1
);
4075 if (arg2
== NULL
) SWIG_fail
;
4079 arg3
= PyInt_AsLong(obj2
) ? true : false;
4080 if (PyErr_Occurred()) SWIG_fail
;
4083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4084 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4086 wxPyEndAllowThreads(__tstate
);
4087 if (PyErr_Occurred()) SWIG_fail
;
4091 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4093 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4110 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4111 PyObject
*resultobj
;
4112 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4114 PyObject
* obj0
= 0 ;
4116 (char *) "self", NULL
4119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4120 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4123 result
= (int)(arg1
)->GetID();
4125 wxPyEndAllowThreads(__tstate
);
4126 if (PyErr_Occurred()) SWIG_fail
;
4128 resultobj
= PyInt_FromLong((long)result
);
4135 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4136 PyObject
*resultobj
;
4137 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4139 PyObject
* obj0
= 0 ;
4141 (char *) "self", NULL
4144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4145 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4148 result
= (arg1
)->GetName();
4150 wxPyEndAllowThreads(__tstate
);
4151 if (PyErr_Occurred()) SWIG_fail
;
4155 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4157 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4166 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4167 PyObject
*resultobj
;
4168 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4169 wxString
*arg2
= 0 ;
4170 bool arg3
= (bool) False
;
4172 bool temp2
= False
;
4173 PyObject
* obj0
= 0 ;
4174 PyObject
* obj1
= 0 ;
4175 PyObject
* obj2
= 0 ;
4177 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4181 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4183 arg2
= wxString_in_helper(obj1
);
4184 if (arg2
== NULL
) SWIG_fail
;
4188 arg3
= PyInt_AsLong(obj2
) ? true : false;
4189 if (PyErr_Occurred()) SWIG_fail
;
4192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4193 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4195 wxPyEndAllowThreads(__tstate
);
4196 if (PyErr_Occurred()) SWIG_fail
;
4198 resultobj
= PyInt_FromLong((long)result
);
4213 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4214 PyObject
*resultobj
;
4215 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4216 wxString
*arg2
= 0 ;
4217 long arg3
= (long) 0 ;
4219 bool temp2
= False
;
4220 PyObject
* obj0
= 0 ;
4221 PyObject
* obj1
= 0 ;
4223 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|l:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4227 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4229 arg2
= wxString_in_helper(obj1
);
4230 if (arg2
== NULL
) SWIG_fail
;
4234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4235 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4237 wxPyEndAllowThreads(__tstate
);
4238 if (PyErr_Occurred()) SWIG_fail
;
4240 resultobj
= PyInt_FromLong((long)result
);
4255 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4256 PyObject
*resultobj
;
4257 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4258 wxString
*arg2
= 0 ;
4260 bool temp2
= False
;
4261 PyObject
* obj0
= 0 ;
4262 PyObject
* obj1
= 0 ;
4264 (char *) "self",(char *) "param", NULL
4267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4268 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4270 arg2
= wxString_in_helper(obj1
);
4271 if (arg2
== NULL
) SWIG_fail
;
4275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4276 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4278 wxPyEndAllowThreads(__tstate
);
4279 if (PyErr_Occurred()) SWIG_fail
;
4282 wxColour
* resultptr
;
4283 resultptr
= new wxColour((wxColour
&) result
);
4284 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4300 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4301 PyObject
*resultobj
;
4302 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4303 wxString
const &arg2_defvalue
= wxPySizeString
;
4304 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4306 bool temp2
= False
;
4307 PyObject
* obj0
= 0 ;
4308 PyObject
* obj1
= 0 ;
4310 (char *) "self",(char *) "param", NULL
4313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4314 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4317 arg2
= wxString_in_helper(obj1
);
4318 if (arg2
== NULL
) SWIG_fail
;
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4326 wxPyEndAllowThreads(__tstate
);
4327 if (PyErr_Occurred()) SWIG_fail
;
4331 resultptr
= new wxSize((wxSize
&) result
);
4332 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4348 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4349 PyObject
*resultobj
;
4350 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4351 wxString
const &arg2_defvalue
= wxPyPosString
;
4352 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4354 bool temp2
= False
;
4355 PyObject
* obj0
= 0 ;
4356 PyObject
* obj1
= 0 ;
4358 (char *) "self",(char *) "param", NULL
4361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4362 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4365 arg2
= wxString_in_helper(obj1
);
4366 if (arg2
== NULL
) SWIG_fail
;
4371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4372 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4374 wxPyEndAllowThreads(__tstate
);
4375 if (PyErr_Occurred()) SWIG_fail
;
4378 wxPoint
* resultptr
;
4379 resultptr
= new wxPoint((wxPoint
&) result
);
4380 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4396 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4397 PyObject
*resultobj
;
4398 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4399 wxString
*arg2
= 0 ;
4400 int arg3
= (int) 0 ;
4402 bool temp2
= False
;
4403 PyObject
* obj0
= 0 ;
4404 PyObject
* obj1
= 0 ;
4406 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|i:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4410 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4412 arg2
= wxString_in_helper(obj1
);
4413 if (arg2
== NULL
) SWIG_fail
;
4417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4418 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4420 wxPyEndAllowThreads(__tstate
);
4421 if (PyErr_Occurred()) SWIG_fail
;
4423 resultobj
= PyInt_FromLong((long)result
);
4438 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4439 PyObject
*resultobj
;
4440 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4441 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4442 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4443 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4444 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4445 wxSize arg4
= (wxSize
) wxDefaultSize
;
4447 bool temp2
= False
;
4449 PyObject
* obj0
= 0 ;
4450 PyObject
* obj1
= 0 ;
4451 PyObject
* obj2
= 0 ;
4452 PyObject
* obj3
= 0 ;
4454 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4458 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4461 arg2
= wxString_in_helper(obj1
);
4462 if (arg2
== NULL
) SWIG_fail
;
4467 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4469 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4473 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4478 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4480 wxPyEndAllowThreads(__tstate
);
4481 if (PyErr_Occurred()) SWIG_fail
;
4484 wxBitmap
* resultptr
;
4485 resultptr
= new wxBitmap((wxBitmap
&) result
);
4486 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4502 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4503 PyObject
*resultobj
;
4504 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4505 wxString
const &arg2_defvalue
= wxPyIconString
;
4506 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4507 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4508 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4509 wxSize arg4
= (wxSize
) wxDefaultSize
;
4511 bool temp2
= False
;
4513 PyObject
* obj0
= 0 ;
4514 PyObject
* obj1
= 0 ;
4515 PyObject
* obj2
= 0 ;
4516 PyObject
* obj3
= 0 ;
4518 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4522 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4525 arg2
= wxString_in_helper(obj1
);
4526 if (arg2
== NULL
) SWIG_fail
;
4531 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4533 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4537 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4542 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4544 wxPyEndAllowThreads(__tstate
);
4545 if (PyErr_Occurred()) SWIG_fail
;
4549 resultptr
= new wxIcon((wxIcon
&) result
);
4550 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4566 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4567 PyObject
*resultobj
;
4568 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4569 wxString
const &arg2_defvalue
= wxPyFontString
;
4570 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4572 bool temp2
= False
;
4573 PyObject
* obj0
= 0 ;
4574 PyObject
* obj1
= 0 ;
4576 (char *) "self",(char *) "param", NULL
4579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4580 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4583 arg2
= wxString_in_helper(obj1
);
4584 if (arg2
== NULL
) SWIG_fail
;
4589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4590 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4592 wxPyEndAllowThreads(__tstate
);
4593 if (PyErr_Occurred()) SWIG_fail
;
4597 resultptr
= new wxFont((wxFont
&) result
);
4598 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4614 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4615 PyObject
*resultobj
;
4616 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4617 wxWindow
*arg2
= (wxWindow
*) 0 ;
4618 PyObject
* obj0
= 0 ;
4619 PyObject
* obj1
= 0 ;
4621 (char *) "self",(char *) "wnd", NULL
4624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4625 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4626 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4629 (arg1
)->SetupWindow(arg2
);
4631 wxPyEndAllowThreads(__tstate
);
4632 if (PyErr_Occurred()) SWIG_fail
;
4634 Py_INCREF(Py_None
); resultobj
= Py_None
;
4641 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4642 PyObject
*resultobj
;
4643 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4644 wxObject
*arg2
= (wxObject
*) 0 ;
4645 bool arg3
= (bool) False
;
4646 PyObject
* obj0
= 0 ;
4647 PyObject
* obj1
= 0 ;
4648 PyObject
* obj2
= 0 ;
4650 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4654 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4655 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4657 arg3
= PyInt_AsLong(obj2
) ? true : false;
4658 if (PyErr_Occurred()) SWIG_fail
;
4661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4662 (arg1
)->CreateChildren(arg2
,arg3
);
4664 wxPyEndAllowThreads(__tstate
);
4665 if (PyErr_Occurred()) SWIG_fail
;
4667 Py_INCREF(Py_None
); resultobj
= Py_None
;
4674 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4675 PyObject
*resultobj
;
4676 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4677 wxObject
*arg2
= (wxObject
*) 0 ;
4678 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4679 PyObject
* obj0
= 0 ;
4680 PyObject
* obj1
= 0 ;
4681 PyObject
* obj2
= 0 ;
4683 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4687 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4688 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4690 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4694 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
4696 wxPyEndAllowThreads(__tstate
);
4697 if (PyErr_Occurred()) SWIG_fail
;
4699 Py_INCREF(Py_None
); resultobj
= Py_None
;
4706 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4707 PyObject
*resultobj
;
4708 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4709 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4710 wxObject
*arg3
= (wxObject
*) 0 ;
4711 wxObject
*arg4
= (wxObject
*) NULL
;
4713 PyObject
* obj0
= 0 ;
4714 PyObject
* obj1
= 0 ;
4715 PyObject
* obj2
= 0 ;
4716 PyObject
* obj3
= 0 ;
4718 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
4721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4722 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4723 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4724 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4726 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4730 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
4732 wxPyEndAllowThreads(__tstate
);
4733 if (PyErr_Occurred()) SWIG_fail
;
4736 resultobj
= wxPyMake_wxObject(result
);
4744 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4745 PyObject
*resultobj
;
4746 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4747 wxFileSystem
*result
;
4748 PyObject
* obj0
= 0 ;
4750 (char *) "self", NULL
4753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
4754 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4758 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
4759 result
= (wxFileSystem
*) &_result_ref
;
4762 wxPyEndAllowThreads(__tstate
);
4763 if (PyErr_Occurred()) SWIG_fail
;
4765 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
4772 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
4774 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4775 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
4777 return Py_BuildValue((char *)"");
4779 static PyMethodDef SwigMethods
[] = {
4780 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4781 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4782 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
4783 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
4784 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
4785 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4786 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
4787 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
4788 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
4789 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4790 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
4791 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
4792 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4793 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
4794 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
4795 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
4796 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
4797 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
4798 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
4799 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
4800 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
4801 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
4802 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4803 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
4804 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
4805 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
4806 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4807 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
4808 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
4809 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
4810 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4811 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4812 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
4813 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
4814 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4815 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
4816 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
4817 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4818 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
4819 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4820 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4821 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
4822 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4823 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
4824 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4825 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4826 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
4827 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
4828 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
4829 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
4830 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
4831 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
4832 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
4833 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
4834 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4835 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
4836 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4837 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4838 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4839 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4840 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
4841 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
4842 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
4843 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4844 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
4845 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
4846 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4847 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4848 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4849 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
4850 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4851 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4852 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4853 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4854 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
4855 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4856 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
4857 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
4858 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
4859 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4860 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4861 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4862 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4863 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4864 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4865 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
4866 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
4867 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4868 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
4869 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
4870 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
4871 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
4872 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
4873 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4874 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
4875 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4876 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4877 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
4878 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
4879 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
4880 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
4881 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
4882 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
4883 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
4884 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
4885 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
4886 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
4887 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4888 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
4889 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
4890 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
4891 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
4892 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
4893 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
4894 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4895 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
4896 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
4897 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
4898 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
4899 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
4900 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
4901 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
4902 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
4907 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4909 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4910 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4912 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
4913 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
4915 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4916 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4918 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4919 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4921 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4922 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4924 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4925 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4927 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4928 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4930 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4931 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4933 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4934 return (void *)((wxObject
*) ((wxSizer
*) x
));
4936 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4937 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4939 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4940 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4942 static void *_p_wxEventTo_p_wxObject(void *x
) {
4943 return (void *)((wxObject
*) ((wxEvent
*) x
));
4945 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4946 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4948 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4949 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4951 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4952 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4954 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4955 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4957 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4958 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4960 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4961 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4963 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4964 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4966 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4967 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4969 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4970 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4972 static void *_p_wxControlTo_p_wxObject(void *x
) {
4973 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4975 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4976 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4978 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4979 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4981 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4982 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4984 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4985 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4987 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4988 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4990 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4991 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4993 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4994 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4996 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4997 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4999 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5000 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5002 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5003 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5005 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5006 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5008 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5009 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5011 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5012 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5014 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5015 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5017 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5018 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5020 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5021 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5023 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5024 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5026 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5027 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5029 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5030 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5032 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5033 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5035 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5036 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5038 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5039 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5041 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5042 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5044 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5045 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5047 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5048 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5050 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5051 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5053 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5054 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5056 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5057 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5059 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5060 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5062 static void *_p_wxImageTo_p_wxObject(void *x
) {
5063 return (void *)((wxObject
*) ((wxImage
*) x
));
5065 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5066 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5068 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5069 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5071 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5072 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5074 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5075 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5077 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5078 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5080 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5081 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5083 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5084 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5086 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5087 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5089 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5090 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5092 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5093 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5095 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5096 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5098 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5099 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5101 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5102 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5104 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5105 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5107 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5108 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5110 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5111 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5113 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5114 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5116 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5117 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5119 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5120 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5122 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5123 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5125 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5126 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5128 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5129 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5131 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5132 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5134 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5135 return (void *)((wxWindow
*) ((wxControl
*) x
));
5137 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5138 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5140 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5141 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5143 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5144 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5145 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_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_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
},{0}};
5146 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5147 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5148 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}};
5149 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5150 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5151 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5152 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5153 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5154 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5155 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5156 static swig_type_info _swigt__p_wxString
[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
5157 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5158 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5159 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5160 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5161 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5162 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5163 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5164 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5166 static swig_type_info
*swig_types_initial
[] = {
5173 _swigt__p_wxArtClient
,
5175 _swigt__p_wxPyXmlSubclassFactory
,
5177 _swigt__p_wxXmlNode
,
5178 _swigt__p_wxInputStream
,
5179 _swigt__p_wxOutputStream
,
5181 _swigt__p_wxPyXmlResourceHandler
,
5182 _swigt__p_wxFileSystem
,
5183 _swigt__p_wxXmlProperty
,
5185 _swigt__p_wxXmlResource
,
5186 _swigt__p_wxXmlDocument
,
5193 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5195 static swig_const_info swig_const_table
[] = {
5196 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MAJOR", (long) WX_XMLRES_CURRENT_VERSION_MAJOR
, 0, 0, 0},
5197 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MINOR", (long) WX_XMLRES_CURRENT_VERSION_MINOR
, 0, 0, 0},
5198 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_RELEASE", (long) WX_XMLRES_CURRENT_VERSION_RELEASE
, 0, 0, 0},
5199 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_REVISION", (long) WX_XMLRES_CURRENT_VERSION_REVISION
, 0, 0, 0},
5200 { SWIG_PY_INT
, (char *)"XRC_USE_LOCALE", (long) wxXRC_USE_LOCALE
, 0, 0, 0},
5201 { SWIG_PY_INT
, (char *)"XRC_NO_SUBCLASSING", (long) wxXRC_NO_SUBCLASSING
, 0, 0, 0},
5202 { SWIG_PY_INT
, (char *)"XML_ELEMENT_NODE", (long) wxXML_ELEMENT_NODE
, 0, 0, 0},
5203 { SWIG_PY_INT
, (char *)"XML_ATTRIBUTE_NODE", (long) wxXML_ATTRIBUTE_NODE
, 0, 0, 0},
5204 { SWIG_PY_INT
, (char *)"XML_TEXT_NODE", (long) wxXML_TEXT_NODE
, 0, 0, 0},
5205 { SWIG_PY_INT
, (char *)"XML_CDATA_SECTION_NODE", (long) wxXML_CDATA_SECTION_NODE
, 0, 0, 0},
5206 { SWIG_PY_INT
, (char *)"XML_ENTITY_REF_NODE", (long) wxXML_ENTITY_REF_NODE
, 0, 0, 0},
5207 { SWIG_PY_INT
, (char *)"XML_ENTITY_NODE", (long) wxXML_ENTITY_NODE
, 0, 0, 0},
5208 { SWIG_PY_INT
, (char *)"XML_PI_NODE", (long) wxXML_PI_NODE
, 0, 0, 0},
5209 { SWIG_PY_INT
, (char *)"XML_COMMENT_NODE", (long) wxXML_COMMENT_NODE
, 0, 0, 0},
5210 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_NODE", (long) wxXML_DOCUMENT_NODE
, 0, 0, 0},
5211 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_TYPE_NODE", (long) wxXML_DOCUMENT_TYPE_NODE
, 0, 0, 0},
5212 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_FRAG_NODE", (long) wxXML_DOCUMENT_FRAG_NODE
, 0, 0, 0},
5213 { SWIG_PY_INT
, (char *)"XML_NOTATION_NODE", (long) wxXML_NOTATION_NODE
, 0, 0, 0},
5214 { SWIG_PY_INT
, (char *)"XML_HTML_DOCUMENT_NODE", (long) wxXML_HTML_DOCUMENT_NODE
, 0, 0, 0},
5224 SWIGEXPORT(void) SWIG_init(void) {
5225 static PyObject
*SWIG_globals
= 0;
5226 static int typeinit
= 0;
5229 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5230 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5231 d
= PyModule_GetDict(m
);
5234 for (i
= 0; swig_types_initial
[i
]; i
++) {
5235 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5239 SWIG_InstallConstants(d
,swig_const_table
);
5243 wxXmlInitResourceModule();
5244 wxXmlResource::Get()->InitAllHandlers();