1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
52 /***********************************************************************
53 * common.swg for wxPython
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
60 ************************************************************************/
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
114 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
116 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
127 /***********************************************************************
128 * pyrun.swg for wxPython
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 ************************************************************************/
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
149 /* Flags for pointer conversion */
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
157 /* Constant information structure */
158 typedef struct swig_const_info
{
164 swig_type_info
**ptype
;
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
187 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
190 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
192 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
195 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject
*obj
, swig_type_info
* pchar_info
);
206 SWIGIMPORT(PyObject
*) SWIG_PyObj_FromCharPtr(const char* cptr
);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject
* obj
);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject
* obj
, const char* type
,
209 long min_value
, long max_value
);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject
*obj
, const char* type
,
211 unsigned long max_value
);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject
*obj
, swig_type_info
* pchar_info
);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject
*obj
, swig_type_info
* pchar_info
,
214 char** cptr
, size_t* size
);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject
*obj
, swig_type_info
* pchar_info
,
216 char* carray
, size_t size
);
217 SWIGIMPORT(PyObject
*) SWIG_PyObj_FromCharArray(const char* carray
, size_t size
);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject
*obj
, py_objasdbl_conv pyconv
);
221 /* Contract support */
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
231 /* -------- TYPES TABLE (BEGIN) -------- */
233 #define SWIGTYPE_p_wxFrame swig_types[0]
234 #define SWIGTYPE_p_wxIcon swig_types[1]
235 #define SWIGTYPE_p_wxObject swig_types[2]
236 #define SWIGTYPE_p_wxDialog swig_types[3]
237 #define SWIGTYPE_p_wxColour swig_types[4]
238 #define SWIGTYPE_p_wxWindow swig_types[5]
239 #define SWIGTYPE_p_wxArtClient swig_types[6]
240 #define SWIGTYPE_p_wxBitmap swig_types[7]
241 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
242 #define SWIGTYPE_p_char swig_types[9]
243 #define SWIGTYPE_p_wxPoint swig_types[10]
244 #define SWIGTYPE_p_wxXmlNode swig_types[11]
245 #define SWIGTYPE_p_wxInputStream swig_types[12]
246 #define SWIGTYPE_p_wxOutputStream swig_types[13]
247 #define SWIGTYPE_p_wxString swig_types[14]
248 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[15]
249 #define SWIGTYPE_p_wxFileSystem swig_types[16]
250 #define SWIGTYPE_p_wxXmlProperty swig_types[17]
251 #define SWIGTYPE_p_wxFont swig_types[18]
252 #define SWIGTYPE_p_wxXmlResource swig_types[19]
253 #define SWIGTYPE_p_wxPanel swig_types[20]
254 #define SWIGTYPE_p_wxXmlDocument swig_types[21]
255 #define SWIGTYPE_p_wxSize swig_types[22]
256 static swig_type_info
*swig_types
[24];
258 /* -------- TYPES TABLE (END) -------- */
261 /*-----------------------------------------------
263 ------------------------------------------------*/
264 #define SWIG_init init_xrc
266 #define SWIG_name "_xrc"
274 #define SWIGSTATIC(a) static inline a
276 #define SWIGSTATIC(a) static a
282 #ifdef HAVE_NUMERIC_CAST
283 #define numeric_cast(type,a) numeric_cast<type>(a)
285 #define numeric_cast(type,a) static_cast<type>(a)
288 #define numeric_cast(type,a) (type)(a)
294 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
295 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
296 #define SWIG_PyObj_FromShort PyInt_FromLong
297 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
298 #define SWIG_PyObj_FromInt PyInt_FromLong
299 #define SWIG_PyObj_FromLong PyInt_FromLong
300 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
301 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
302 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
303 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
306 #include "wx/wxPython/wxPython.h"
307 #include "wx/wxPython/pyclasses.h"
308 #include "wx/wxPython/pyistream.h"
310 #include <wx/xml/xml.h>
311 #include <wx/xrc/xmlres.h>
314 static const wxString
wxPyEmptyString(wxEmptyString
);
315 static const wxString
wxPyUTF8String(wxT("UTF-8"));
316 static const wxString
wxPyStyleString(wxT("style"));
317 static const wxString
wxPySizeString(wxT("size"));
318 static const wxString
wxPyPosString(wxT("pos"));
319 static const wxString
wxPyBitmapString(wxT("bitmap"));
320 static const wxString
wxPyIconString(wxT("icon"));
321 static const wxString
wxPyFontString(wxT("font"));
324 SWIG_PyObj_AsInt(PyObject
*obj
)
326 return numeric_cast(int,
327 SWIG_PyObj_AsLongInRange(obj
, "int", INT_MIN
, INT_MAX
));
331 SWIGSTATIC(PyObject
*)
332 SWIG_PyObj_FromBool(bool value
)
334 PyObject
*obj
= value
? Py_True
: Py_False
;
339 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
340 static int s_memFileIdx
= 0;
342 // Check for memory FS. If not present, load the handler:
343 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
346 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
347 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
351 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
353 // Now put the resource data into the memory FS
354 wxString
filename(wxT("XRC_resource/data_string_"));
355 filename
<< s_memFileIdx
;
357 wxMemoryFSHandler::AddFile(filename
, data
);
359 // Load the "file" into the resource object
360 bool retval
= self
->Load(wxT("memory:") + filename
);
365 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
368 wxPyXmlSubclassFactory() {}
369 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
373 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
375 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
376 // callbacks, as well as to make some protected things public so they can
378 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
380 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
381 //~wxPyXmlResourceHandler();
383 // Base class virtuals
385 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
386 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
389 // accessors for protected members
391 wxXmlResource
* GetResource() { return m_resource
; }
392 wxXmlNode
* GetNode() { return m_node
; }
393 wxString
GetClass() { return m_class
; }
394 wxObject
* GetParent() { return m_parent
; }
395 wxObject
* GetInstance() { return m_instance
; }
396 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
397 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
400 // turn some protected methods into public via delegation
402 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
403 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
405 wxString
GetNodeContent(wxXmlNode
*node
)
406 { return wxXmlResourceHandler::GetNodeContent(node
); }
408 bool HasParam(const wxString
& param
)
409 { return wxXmlResourceHandler::HasParam(param
); }
411 wxXmlNode
*GetParamNode(const wxString
& param
)
412 { return wxXmlResourceHandler::GetParamNode(param
); }
414 wxString
GetParamValue(const wxString
& param
)
415 { return wxXmlResourceHandler::GetParamValue(param
); }
417 void AddStyle(const wxString
& name
, int value
)
418 { wxXmlResourceHandler::AddStyle(name
, value
); }
420 void AddWindowStyles()
421 { wxXmlResourceHandler::AddWindowStyles(); }
423 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
424 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
426 wxString
GetText(const wxString
& param
, bool translate
= True
)
427 { return wxXmlResourceHandler::GetText(param
, translate
); }
430 { return wxXmlResourceHandler::GetID(); }
433 { return wxXmlResourceHandler::GetName(); }
435 bool GetBool(const wxString
& param
, bool defaultv
= False
)
436 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
438 long GetLong( const wxString
& param
, long defaultv
= 0 )
439 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
441 wxColour
GetColour(const wxString
& param
)
442 { return wxXmlResourceHandler::GetColour(param
); }
444 wxSize
GetSize(const wxString
& param
= wxT("size"))
445 { return wxXmlResourceHandler::GetSize(param
); }
447 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
448 { return wxXmlResourceHandler::GetPosition(param
); }
450 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
451 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
453 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
454 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
455 wxSize size
= wxDefaultSize
)
456 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
458 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
459 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
460 wxSize size
= wxDefaultSize
)
461 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
463 wxFont
GetFont(const wxString
& param
= wxT("font"))
464 { return wxXmlResourceHandler::GetFont(param
); }
466 void SetupWindow(wxWindow
*wnd
)
467 { wxXmlResourceHandler::SetupWindow(wnd
); }
469 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
470 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
472 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
473 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
475 wxObject
*CreateResFromNode(wxXmlNode
*node
,
476 wxObject
*parent
, wxObject
*instance
= NULL
)
477 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
479 wxFileSystem
& GetCurFileSystem()
480 { return wxXmlResourceHandler::GetCurFileSystem(); }
486 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
487 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
492 SWIG_PyObj_AsBool(PyObject
*obj
)
494 return PyObject_IsTrue(obj
) ? true : false;
499 SWIG_PyObj_AsLong(PyObject
* obj
)
501 return PyInt_Check(obj
) ? PyInt_AsLong(obj
) : PyLong_AsLong(obj
);
507 static int _wrap_UTF8String_set(PyObject
*) {
508 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
513 static PyObject
*_wrap_UTF8String_get() {
518 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
520 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
527 static int _wrap_StyleString_set(PyObject
*) {
528 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
533 static PyObject
*_wrap_StyleString_get() {
538 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
540 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
547 static int _wrap_SizeString_set(PyObject
*) {
548 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
553 static PyObject
*_wrap_SizeString_get() {
558 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
560 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
567 static int _wrap_PosString_set(PyObject
*) {
568 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
573 static PyObject
*_wrap_PosString_get() {
578 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
580 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
587 static int _wrap_BitmapString_set(PyObject
*) {
588 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
593 static PyObject
*_wrap_BitmapString_get() {
598 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
600 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
607 static int _wrap_IconString_set(PyObject
*) {
608 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
613 static PyObject
*_wrap_IconString_get() {
618 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
620 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
627 static int _wrap_FontString_set(PyObject
*) {
628 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
633 static PyObject
*_wrap_FontString_get() {
638 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
640 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
647 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
650 int arg2
= (int) wxXRC_USE_LOCALE
;
651 wxXmlResource
*result
;
653 PyObject
* obj0
= 0 ;
654 PyObject
* obj1
= 0 ;
656 (char *) "filemask",(char *) "flags", NULL
659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
661 arg1
= wxString_in_helper(obj0
);
662 if (arg1
== NULL
) SWIG_fail
;
667 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
668 if (PyErr_Occurred()) SWIG_fail
;
672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
673 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
675 wxPyEndAllowThreads(__tstate
);
676 if (PyErr_Occurred()) SWIG_fail
;
678 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
693 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
695 int arg1
= (int) wxXRC_USE_LOCALE
;
696 wxXmlResource
*result
;
697 PyObject
* obj0
= 0 ;
699 (char *) "flags", NULL
702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
705 arg1
= (int) SWIG_PyObj_AsInt(obj0
);
706 if (PyErr_Occurred()) SWIG_fail
;
710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
711 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
713 wxPyEndAllowThreads(__tstate
);
714 if (PyErr_Occurred()) SWIG_fail
;
716 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
723 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
725 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
726 PyObject
* obj0
= 0 ;
728 (char *) "self", NULL
731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
732 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
737 wxPyEndAllowThreads(__tstate
);
738 if (PyErr_Occurred()) SWIG_fail
;
740 Py_INCREF(Py_None
); resultobj
= Py_None
;
747 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
749 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
753 PyObject
* obj0
= 0 ;
754 PyObject
* obj1
= 0 ;
756 (char *) "self",(char *) "filemask", NULL
759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
760 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
762 arg2
= wxString_in_helper(obj1
);
763 if (arg2
== NULL
) SWIG_fail
;
767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
768 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
770 wxPyEndAllowThreads(__tstate
);
771 if (PyErr_Occurred()) SWIG_fail
;
773 resultobj
= SWIG_PyObj_FromBool((bool)result
);
788 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
790 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
794 PyObject
* obj0
= 0 ;
795 PyObject
* obj1
= 0 ;
797 (char *) "self",(char *) "data", NULL
800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
801 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
803 arg2
= wxString_in_helper(obj1
);
804 if (arg2
== NULL
) SWIG_fail
;
808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
809 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
811 wxPyEndAllowThreads(__tstate
);
812 if (PyErr_Occurred()) SWIG_fail
;
814 resultobj
= SWIG_PyObj_FromBool((bool)result
);
829 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
831 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
832 PyObject
* obj0
= 0 ;
834 (char *) "self", NULL
837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
838 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
841 (arg1
)->InitAllHandlers();
843 wxPyEndAllowThreads(__tstate
);
844 if (PyErr_Occurred()) SWIG_fail
;
846 Py_INCREF(Py_None
); resultobj
= Py_None
;
853 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
855 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
856 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
857 PyObject
* obj0
= 0 ;
858 PyObject
* obj1
= 0 ;
860 (char *) "self",(char *) "handler", NULL
863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
864 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
865 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
868 (arg1
)->AddHandler(arg2
);
870 wxPyEndAllowThreads(__tstate
);
871 if (PyErr_Occurred()) SWIG_fail
;
873 Py_INCREF(Py_None
); resultobj
= Py_None
;
880 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
882 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
883 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
884 PyObject
* obj0
= 0 ;
885 PyObject
* obj1
= 0 ;
887 (char *) "self",(char *) "handler", NULL
890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
891 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
892 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
895 (arg1
)->InsertHandler(arg2
);
897 wxPyEndAllowThreads(__tstate
);
898 if (PyErr_Occurred()) SWIG_fail
;
900 Py_INCREF(Py_None
); resultobj
= Py_None
;
907 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
909 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
910 PyObject
* obj0
= 0 ;
912 (char *) "self", NULL
915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
916 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
919 (arg1
)->ClearHandlers();
921 wxPyEndAllowThreads(__tstate
);
922 if (PyErr_Occurred()) SWIG_fail
;
924 Py_INCREF(Py_None
); resultobj
= Py_None
;
931 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
933 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
934 PyObject
* obj0
= 0 ;
936 (char *) "factory", NULL
939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
940 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
943 wxXmlResource::AddSubclassFactory(arg1
);
945 wxPyEndAllowThreads(__tstate
);
946 if (PyErr_Occurred()) SWIG_fail
;
948 Py_INCREF(Py_None
); resultobj
= Py_None
;
955 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
957 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
961 PyObject
* obj0
= 0 ;
962 PyObject
* obj1
= 0 ;
964 (char *) "self",(char *) "name", NULL
967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
968 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
970 arg2
= wxString_in_helper(obj1
);
971 if (arg2
== NULL
) SWIG_fail
;
975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
976 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
978 wxPyEndAllowThreads(__tstate
);
979 if (PyErr_Occurred()) SWIG_fail
;
982 resultobj
= wxPyMake_wxObject(result
);
998 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1001 wxString
*arg2
= 0 ;
1003 bool temp2
= False
;
1004 PyObject
* obj0
= 0 ;
1005 PyObject
* obj1
= 0 ;
1007 (char *) "self",(char *) "name", NULL
1010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1011 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1013 arg2
= wxString_in_helper(obj1
);
1014 if (arg2
== NULL
) SWIG_fail
;
1018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1019 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1021 wxPyEndAllowThreads(__tstate
);
1022 if (PyErr_Occurred()) SWIG_fail
;
1025 resultobj
= wxPyMake_wxObject(result
);
1041 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1042 PyObject
*resultobj
;
1043 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1044 wxWindow
*arg2
= (wxWindow
*) 0 ;
1045 wxString
*arg3
= 0 ;
1047 bool temp3
= False
;
1048 PyObject
* obj0
= 0 ;
1049 PyObject
* obj1
= 0 ;
1050 PyObject
* obj2
= 0 ;
1052 (char *) "self",(char *) "parent",(char *) "name", NULL
1055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1056 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1057 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1059 arg3
= wxString_in_helper(obj2
);
1060 if (arg3
== NULL
) SWIG_fail
;
1064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1065 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1067 wxPyEndAllowThreads(__tstate
);
1068 if (PyErr_Occurred()) SWIG_fail
;
1071 resultobj
= wxPyMake_wxObject(result
);
1087 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1088 PyObject
*resultobj
;
1089 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1090 wxWindow
*arg2
= (wxWindow
*) 0 ;
1091 wxString
*arg3
= 0 ;
1093 bool temp3
= False
;
1094 PyObject
* obj0
= 0 ;
1095 PyObject
* obj1
= 0 ;
1096 PyObject
* obj2
= 0 ;
1098 (char *) "self",(char *) "parent",(char *) "name", NULL
1101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1102 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1103 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1105 arg3
= wxString_in_helper(obj2
);
1106 if (arg3
== NULL
) SWIG_fail
;
1110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1111 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1113 wxPyEndAllowThreads(__tstate
);
1114 if (PyErr_Occurred()) SWIG_fail
;
1117 resultobj
= wxPyMake_wxObject(result
);
1133 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1134 PyObject
*resultobj
;
1135 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1136 wxWindow
*arg2
= (wxWindow
*) 0 ;
1137 wxString
*arg3
= 0 ;
1139 bool temp3
= False
;
1140 PyObject
* obj0
= 0 ;
1141 PyObject
* obj1
= 0 ;
1142 PyObject
* obj2
= 0 ;
1144 (char *) "self",(char *) "parent",(char *) "name", NULL
1147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1148 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1149 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1151 arg3
= wxString_in_helper(obj2
);
1152 if (arg3
== NULL
) SWIG_fail
;
1156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1157 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1159 wxPyEndAllowThreads(__tstate
);
1160 if (PyErr_Occurred()) SWIG_fail
;
1162 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
1177 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1178 PyObject
*resultobj
;
1179 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1180 wxDialog
*arg2
= (wxDialog
*) 0 ;
1181 wxWindow
*arg3
= (wxWindow
*) 0 ;
1182 wxString
*arg4
= 0 ;
1184 bool temp4
= False
;
1185 PyObject
* obj0
= 0 ;
1186 PyObject
* obj1
= 0 ;
1187 PyObject
* obj2
= 0 ;
1188 PyObject
* obj3
= 0 ;
1190 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1194 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1195 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1196 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1198 arg4
= wxString_in_helper(obj3
);
1199 if (arg4
== NULL
) SWIG_fail
;
1203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1204 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1206 wxPyEndAllowThreads(__tstate
);
1207 if (PyErr_Occurred()) SWIG_fail
;
1209 resultobj
= SWIG_PyObj_FromBool((bool)result
);
1224 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1225 PyObject
*resultobj
;
1226 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1227 wxWindow
*arg2
= (wxWindow
*) 0 ;
1228 wxString
*arg3
= 0 ;
1230 bool temp3
= False
;
1231 PyObject
* obj0
= 0 ;
1232 PyObject
* obj1
= 0 ;
1233 PyObject
* obj2
= 0 ;
1235 (char *) "self",(char *) "parent",(char *) "name", NULL
1238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1239 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1240 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1242 arg3
= wxString_in_helper(obj2
);
1243 if (arg3
== NULL
) SWIG_fail
;
1247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1248 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1250 wxPyEndAllowThreads(__tstate
);
1251 if (PyErr_Occurred()) SWIG_fail
;
1253 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1268 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1269 PyObject
*resultobj
;
1270 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1271 wxPanel
*arg2
= (wxPanel
*) 0 ;
1272 wxWindow
*arg3
= (wxWindow
*) 0 ;
1273 wxString
*arg4
= 0 ;
1275 bool temp4
= False
;
1276 PyObject
* obj0
= 0 ;
1277 PyObject
* obj1
= 0 ;
1278 PyObject
* obj2
= 0 ;
1279 PyObject
* obj3
= 0 ;
1281 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1285 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1286 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1287 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1289 arg4
= wxString_in_helper(obj3
);
1290 if (arg4
== NULL
) SWIG_fail
;
1294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1295 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1297 wxPyEndAllowThreads(__tstate
);
1298 if (PyErr_Occurred()) SWIG_fail
;
1300 resultobj
= SWIG_PyObj_FromBool((bool)result
);
1315 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1316 PyObject
*resultobj
;
1317 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1318 wxWindow
*arg2
= (wxWindow
*) 0 ;
1319 wxString
*arg3
= 0 ;
1321 bool temp3
= False
;
1322 PyObject
* obj0
= 0 ;
1323 PyObject
* obj1
= 0 ;
1324 PyObject
* obj2
= 0 ;
1326 (char *) "self",(char *) "parent",(char *) "name", NULL
1329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1330 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1331 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1333 arg3
= wxString_in_helper(obj2
);
1334 if (arg3
== NULL
) SWIG_fail
;
1338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1339 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1341 wxPyEndAllowThreads(__tstate
);
1342 if (PyErr_Occurred()) SWIG_fail
;
1345 resultobj
= wxPyMake_wxObject(result
);
1361 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1362 PyObject
*resultobj
;
1363 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1364 wxFrame
*arg2
= (wxFrame
*) 0 ;
1365 wxWindow
*arg3
= (wxWindow
*) 0 ;
1366 wxString
*arg4
= 0 ;
1368 bool temp4
= False
;
1369 PyObject
* obj0
= 0 ;
1370 PyObject
* obj1
= 0 ;
1371 PyObject
* obj2
= 0 ;
1372 PyObject
* obj3
= 0 ;
1374 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1378 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1379 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1380 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1382 arg4
= wxString_in_helper(obj3
);
1383 if (arg4
== NULL
) SWIG_fail
;
1387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1388 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1390 wxPyEndAllowThreads(__tstate
);
1391 if (PyErr_Occurred()) SWIG_fail
;
1393 resultobj
= SWIG_PyObj_FromBool((bool)result
);
1408 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1409 PyObject
*resultobj
;
1410 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1411 wxWindow
*arg2
= (wxWindow
*) 0 ;
1412 wxString
*arg3
= 0 ;
1413 wxString
*arg4
= 0 ;
1415 bool temp3
= False
;
1416 bool temp4
= False
;
1417 PyObject
* obj0
= 0 ;
1418 PyObject
* obj1
= 0 ;
1419 PyObject
* obj2
= 0 ;
1420 PyObject
* obj3
= 0 ;
1422 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1426 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1427 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1429 arg3
= wxString_in_helper(obj2
);
1430 if (arg3
== NULL
) SWIG_fail
;
1434 arg4
= wxString_in_helper(obj3
);
1435 if (arg4
== NULL
) SWIG_fail
;
1439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1440 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1442 wxPyEndAllowThreads(__tstate
);
1443 if (PyErr_Occurred()) SWIG_fail
;
1446 resultobj
= wxPyMake_wxObject(result
);
1470 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
*resultobj
;
1472 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1473 wxObject
*arg2
= (wxObject
*) 0 ;
1474 wxWindow
*arg3
= (wxWindow
*) 0 ;
1475 wxString
*arg4
= 0 ;
1476 wxString
*arg5
= 0 ;
1478 bool temp4
= False
;
1479 bool temp5
= False
;
1480 PyObject
* obj0
= 0 ;
1481 PyObject
* obj1
= 0 ;
1482 PyObject
* obj2
= 0 ;
1483 PyObject
* obj3
= 0 ;
1484 PyObject
* obj4
= 0 ;
1486 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1490 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1491 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1492 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1494 arg4
= wxString_in_helper(obj3
);
1495 if (arg4
== NULL
) SWIG_fail
;
1499 arg5
= wxString_in_helper(obj4
);
1500 if (arg5
== NULL
) SWIG_fail
;
1504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1505 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1507 wxPyEndAllowThreads(__tstate
);
1508 if (PyErr_Occurred()) SWIG_fail
;
1510 resultobj
= SWIG_PyObj_FromBool((bool)result
);
1533 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
*resultobj
;
1535 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1536 wxString
*arg2
= 0 ;
1538 bool temp2
= False
;
1539 PyObject
* obj0
= 0 ;
1540 PyObject
* obj1
= 0 ;
1542 (char *) "self",(char *) "name", NULL
1545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1546 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1548 arg2
= wxString_in_helper(obj1
);
1549 if (arg2
== NULL
) SWIG_fail
;
1553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1554 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1556 wxPyEndAllowThreads(__tstate
);
1557 if (PyErr_Occurred()) SWIG_fail
;
1560 wxBitmap
* resultptr
;
1561 resultptr
= new wxBitmap((wxBitmap
&) result
);
1562 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1578 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1579 PyObject
*resultobj
;
1580 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1581 wxString
*arg2
= 0 ;
1583 bool temp2
= False
;
1584 PyObject
* obj0
= 0 ;
1585 PyObject
* obj1
= 0 ;
1587 (char *) "self",(char *) "name", NULL
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1591 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1593 arg2
= wxString_in_helper(obj1
);
1594 if (arg2
== NULL
) SWIG_fail
;
1598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1599 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1601 wxPyEndAllowThreads(__tstate
);
1602 if (PyErr_Occurred()) SWIG_fail
;
1606 resultptr
= new wxIcon((wxIcon
&) result
);
1607 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1623 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1624 PyObject
*resultobj
;
1625 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1626 wxString
*arg2
= 0 ;
1627 wxWindow
*arg3
= (wxWindow
*) 0 ;
1628 wxWindow
*arg4
= (wxWindow
*) NULL
;
1630 bool temp2
= False
;
1631 PyObject
* obj0
= 0 ;
1632 PyObject
* obj1
= 0 ;
1633 PyObject
* obj2
= 0 ;
1634 PyObject
* obj3
= 0 ;
1636 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1640 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1642 arg2
= wxString_in_helper(obj1
);
1643 if (arg2
== NULL
) SWIG_fail
;
1646 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1648 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1652 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1654 wxPyEndAllowThreads(__tstate
);
1655 if (PyErr_Occurred()) SWIG_fail
;
1657 resultobj
= SWIG_PyObj_FromBool((bool)result
);
1672 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
*resultobj
;
1674 wxString
*arg1
= 0 ;
1676 bool temp1
= False
;
1677 PyObject
* obj0
= 0 ;
1679 (char *) "str_id", NULL
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1684 arg1
= wxString_in_helper(obj0
);
1685 if (arg1
== NULL
) SWIG_fail
;
1689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1690 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1692 wxPyEndAllowThreads(__tstate
);
1693 if (PyErr_Occurred()) SWIG_fail
;
1695 resultobj
= SWIG_PyObj_FromInt((int)result
);
1710 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1711 PyObject
*resultobj
;
1712 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1714 PyObject
* obj0
= 0 ;
1716 (char *) "self", NULL
1719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1720 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1723 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1725 wxPyEndAllowThreads(__tstate
);
1726 if (PyErr_Occurred()) SWIG_fail
;
1728 resultobj
= SWIG_PyObj_FromLong((long)result
);
1735 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1736 PyObject
*resultobj
;
1737 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1743 PyObject
* obj0
= 0 ;
1744 PyObject
* obj1
= 0 ;
1745 PyObject
* obj2
= 0 ;
1746 PyObject
* obj3
= 0 ;
1747 PyObject
* obj4
= 0 ;
1749 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1753 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1755 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
1756 if (PyErr_Occurred()) SWIG_fail
;
1759 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
1760 if (PyErr_Occurred()) SWIG_fail
;
1763 arg4
= (int) SWIG_PyObj_AsInt(obj3
);
1764 if (PyErr_Occurred()) SWIG_fail
;
1767 arg5
= (int) SWIG_PyObj_AsInt(obj4
);
1768 if (PyErr_Occurred()) SWIG_fail
;
1771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1772 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1774 wxPyEndAllowThreads(__tstate
);
1775 if (PyErr_Occurred()) SWIG_fail
;
1777 resultobj
= SWIG_PyObj_FromInt((int)result
);
1784 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1785 PyObject
*resultobj
;
1786 wxXmlResource
*result
;
1791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1794 result
= (wxXmlResource
*)wxXmlResource::Get();
1796 wxPyEndAllowThreads(__tstate
);
1797 if (PyErr_Occurred()) SWIG_fail
;
1799 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1806 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1807 PyObject
*resultobj
;
1808 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1809 wxXmlResource
*result
;
1810 PyObject
* obj0
= 0 ;
1812 (char *) "res", NULL
1815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1816 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1819 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1821 wxPyEndAllowThreads(__tstate
);
1822 if (PyErr_Occurred()) SWIG_fail
;
1824 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1831 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
*resultobj
;
1833 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1835 PyObject
* obj0
= 0 ;
1837 (char *) "self", NULL
1840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1841 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1843 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1844 result
= (int)(arg1
)->GetFlags();
1846 wxPyEndAllowThreads(__tstate
);
1847 if (PyErr_Occurred()) SWIG_fail
;
1849 resultobj
= SWIG_PyObj_FromInt((int)result
);
1856 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1857 PyObject
*resultobj
;
1858 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1860 PyObject
* obj0
= 0 ;
1861 PyObject
* obj1
= 0 ;
1863 (char *) "self",(char *) "flags", NULL
1866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1867 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1869 arg2
= (int) SWIG_PyObj_AsInt(obj1
);
1870 if (PyErr_Occurred()) SWIG_fail
;
1873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1874 (arg1
)->SetFlags(arg2
);
1876 wxPyEndAllowThreads(__tstate
);
1877 if (PyErr_Occurred()) SWIG_fail
;
1879 Py_INCREF(Py_None
); resultobj
= Py_None
;
1886 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1888 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1889 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1891 return Py_BuildValue((char *)"");
1893 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1894 PyObject
*resultobj
;
1895 wxPyXmlSubclassFactory
*result
;
1900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1903 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1905 wxPyEndAllowThreads(__tstate
);
1906 if (PyErr_Occurred()) SWIG_fail
;
1908 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1915 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1916 PyObject
*resultobj
;
1917 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1918 PyObject
*arg2
= (PyObject
*) 0 ;
1919 PyObject
*arg3
= (PyObject
*) 0 ;
1920 PyObject
* obj0
= 0 ;
1921 PyObject
* obj1
= 0 ;
1922 PyObject
* obj2
= 0 ;
1924 (char *) "self",(char *) "self",(char *) "_class", NULL
1927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1928 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1933 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1935 wxPyEndAllowThreads(__tstate
);
1936 if (PyErr_Occurred()) SWIG_fail
;
1938 Py_INCREF(Py_None
); resultobj
= Py_None
;
1945 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1947 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1948 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1950 return Py_BuildValue((char *)"");
1952 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1953 PyObject
*resultobj
;
1954 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1955 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1956 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1957 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
1958 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
1959 wxXmlProperty
*result
;
1960 bool temp1
= False
;
1961 bool temp2
= False
;
1962 PyObject
* obj0
= 0 ;
1963 PyObject
* obj1
= 0 ;
1964 PyObject
* obj2
= 0 ;
1966 (char *) "name",(char *) "value",(char *) "next", NULL
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1972 arg1
= wxString_in_helper(obj0
);
1973 if (arg1
== NULL
) SWIG_fail
;
1979 arg2
= wxString_in_helper(obj1
);
1980 if (arg2
== NULL
) SWIG_fail
;
1985 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1989 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
1991 wxPyEndAllowThreads(__tstate
);
1992 if (PyErr_Occurred()) SWIG_fail
;
1994 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
2017 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
*resultobj
;
2019 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2021 PyObject
* obj0
= 0 ;
2023 (char *) "self", NULL
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2027 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2030 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2032 wxPyEndAllowThreads(__tstate
);
2033 if (PyErr_Occurred()) SWIG_fail
;
2037 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2039 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2048 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2049 PyObject
*resultobj
;
2050 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2052 PyObject
* obj0
= 0 ;
2054 (char *) "self", NULL
2057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2058 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2061 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2063 wxPyEndAllowThreads(__tstate
);
2064 if (PyErr_Occurred()) SWIG_fail
;
2068 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2070 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2079 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2080 PyObject
*resultobj
;
2081 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2082 wxXmlProperty
*result
;
2083 PyObject
* obj0
= 0 ;
2085 (char *) "self", NULL
2088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2089 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) SWIG_fail
;
2097 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2104 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2105 PyObject
*resultobj
;
2106 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2107 wxString
*arg2
= 0 ;
2108 bool temp2
= False
;
2109 PyObject
* obj0
= 0 ;
2110 PyObject
* obj1
= 0 ;
2112 (char *) "self",(char *) "name", NULL
2115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2116 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2118 arg2
= wxString_in_helper(obj1
);
2119 if (arg2
== NULL
) SWIG_fail
;
2123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2124 (arg1
)->SetName((wxString
const &)*arg2
);
2126 wxPyEndAllowThreads(__tstate
);
2127 if (PyErr_Occurred()) SWIG_fail
;
2129 Py_INCREF(Py_None
); resultobj
= Py_None
;
2144 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2145 PyObject
*resultobj
;
2146 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2147 wxString
*arg2
= 0 ;
2148 bool temp2
= False
;
2149 PyObject
* obj0
= 0 ;
2150 PyObject
* obj1
= 0 ;
2152 (char *) "self",(char *) "value", NULL
2155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2156 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2158 arg2
= wxString_in_helper(obj1
);
2159 if (arg2
== NULL
) SWIG_fail
;
2163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2164 (arg1
)->SetValue((wxString
const &)*arg2
);
2166 wxPyEndAllowThreads(__tstate
);
2167 if (PyErr_Occurred()) SWIG_fail
;
2169 Py_INCREF(Py_None
); resultobj
= Py_None
;
2184 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
*resultobj
;
2186 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2187 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2188 PyObject
* obj0
= 0 ;
2189 PyObject
* obj1
= 0 ;
2191 (char *) "self",(char *) "next", NULL
2194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2195 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2196 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2199 (arg1
)->SetNext(arg2
);
2201 wxPyEndAllowThreads(__tstate
);
2202 if (PyErr_Occurred()) SWIG_fail
;
2204 Py_INCREF(Py_None
); resultobj
= Py_None
;
2211 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2213 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2214 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2216 return Py_BuildValue((char *)"");
2218 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2219 PyObject
*resultobj
;
2220 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2221 int arg2
= (int) 0 ;
2222 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2223 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2224 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2225 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2226 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2227 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2229 bool temp3
= False
;
2230 bool temp4
= False
;
2231 PyObject
* obj0
= 0 ;
2232 PyObject
* obj1
= 0 ;
2233 PyObject
* obj2
= 0 ;
2234 PyObject
* obj3
= 0 ;
2235 PyObject
* obj4
= 0 ;
2236 PyObject
* obj5
= 0 ;
2238 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2243 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2247 arg2
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj1
);
2248 if (PyErr_Occurred()) SWIG_fail
;
2253 arg3
= wxString_in_helper(obj2
);
2254 if (arg3
== NULL
) SWIG_fail
;
2260 arg4
= wxString_in_helper(obj3
);
2261 if (arg4
== NULL
) SWIG_fail
;
2266 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2269 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2273 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2275 wxPyEndAllowThreads(__tstate
);
2276 if (PyErr_Occurred()) SWIG_fail
;
2278 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2301 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
*resultobj
;
2303 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2304 PyObject
* obj0
= 0 ;
2306 (char *) "self", NULL
2309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2310 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2315 wxPyEndAllowThreads(__tstate
);
2316 if (PyErr_Occurred()) SWIG_fail
;
2318 Py_INCREF(Py_None
); resultobj
= Py_None
;
2325 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2326 PyObject
*resultobj
;
2328 wxString
*arg2
= 0 ;
2329 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2330 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2332 bool temp2
= False
;
2333 bool temp3
= False
;
2334 PyObject
* obj0
= 0 ;
2335 PyObject
* obj1
= 0 ;
2336 PyObject
* obj2
= 0 ;
2338 (char *) "type",(char *) "name",(char *) "content", NULL
2341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2343 arg1
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj0
);
2344 if (PyErr_Occurred()) SWIG_fail
;
2347 arg2
= wxString_in_helper(obj1
);
2348 if (arg2
== NULL
) SWIG_fail
;
2353 arg3
= wxString_in_helper(obj2
);
2354 if (arg3
== NULL
) SWIG_fail
;
2359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2360 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2362 wxPyEndAllowThreads(__tstate
);
2363 if (PyErr_Occurred()) SWIG_fail
;
2365 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2388 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2389 PyObject
*resultobj
;
2390 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2391 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2392 PyObject
* obj0
= 0 ;
2393 PyObject
* obj1
= 0 ;
2395 (char *) "self",(char *) "child", NULL
2398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2399 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2400 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2403 (arg1
)->AddChild(arg2
);
2405 wxPyEndAllowThreads(__tstate
);
2406 if (PyErr_Occurred()) SWIG_fail
;
2408 Py_INCREF(Py_None
); resultobj
= Py_None
;
2415 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2416 PyObject
*resultobj
;
2417 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2418 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2419 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2420 PyObject
* obj0
= 0 ;
2421 PyObject
* obj1
= 0 ;
2422 PyObject
* obj2
= 0 ;
2424 (char *) "self",(char *) "child",(char *) "before_node", NULL
2427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2428 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2429 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2430 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2433 (arg1
)->InsertChild(arg2
,arg3
);
2435 wxPyEndAllowThreads(__tstate
);
2436 if (PyErr_Occurred()) SWIG_fail
;
2438 Py_INCREF(Py_None
); resultobj
= Py_None
;
2445 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2446 PyObject
*resultobj
;
2447 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2448 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2450 PyObject
* obj0
= 0 ;
2451 PyObject
* obj1
= 0 ;
2453 (char *) "self",(char *) "child", NULL
2456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2457 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2458 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2461 result
= (bool)(arg1
)->RemoveChild(arg2
);
2463 wxPyEndAllowThreads(__tstate
);
2464 if (PyErr_Occurred()) SWIG_fail
;
2466 resultobj
= SWIG_PyObj_FromBool((bool)result
);
2473 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2474 PyObject
*resultobj
;
2475 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2476 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2477 PyObject
* obj0
= 0 ;
2478 PyObject
* obj1
= 0 ;
2480 (char *) "self",(char *) "prop", NULL
2483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2484 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2485 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2488 (arg1
)->AddProperty(arg2
);
2490 wxPyEndAllowThreads(__tstate
);
2491 if (PyErr_Occurred()) SWIG_fail
;
2493 Py_INCREF(Py_None
); resultobj
= Py_None
;
2500 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
*resultobj
;
2502 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2503 wxString
*arg2
= 0 ;
2504 wxString
*arg3
= 0 ;
2505 bool temp2
= False
;
2506 bool temp3
= False
;
2507 PyObject
* obj0
= 0 ;
2508 PyObject
* obj1
= 0 ;
2509 PyObject
* obj2
= 0 ;
2511 (char *) "self",(char *) "name",(char *) "value", NULL
2514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2515 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2517 arg2
= wxString_in_helper(obj1
);
2518 if (arg2
== NULL
) SWIG_fail
;
2522 arg3
= wxString_in_helper(obj2
);
2523 if (arg3
== NULL
) SWIG_fail
;
2527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2528 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2530 wxPyEndAllowThreads(__tstate
);
2531 if (PyErr_Occurred()) SWIG_fail
;
2533 Py_INCREF(Py_None
); resultobj
= Py_None
;
2556 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2557 PyObject
*resultobj
;
2558 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2559 wxString
*arg2
= 0 ;
2561 bool temp2
= False
;
2562 PyObject
* obj0
= 0 ;
2563 PyObject
* obj1
= 0 ;
2565 (char *) "self",(char *) "name", NULL
2568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2569 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2571 arg2
= wxString_in_helper(obj1
);
2572 if (arg2
== NULL
) SWIG_fail
;
2576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2577 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2579 wxPyEndAllowThreads(__tstate
);
2580 if (PyErr_Occurred()) SWIG_fail
;
2582 resultobj
= SWIG_PyObj_FromBool((bool)result
);
2597 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2598 PyObject
*resultobj
;
2599 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2601 PyObject
* obj0
= 0 ;
2603 (char *) "self", NULL
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2607 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2610 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2612 wxPyEndAllowThreads(__tstate
);
2613 if (PyErr_Occurred()) SWIG_fail
;
2615 resultobj
= SWIG_PyObj_FromInt((int)result
);
2622 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2623 PyObject
*resultobj
;
2624 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2626 PyObject
* obj0
= 0 ;
2628 (char *) "self", NULL
2631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2632 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2635 result
= ((wxXmlNode
const *)arg1
)->GetName();
2637 wxPyEndAllowThreads(__tstate
);
2638 if (PyErr_Occurred()) SWIG_fail
;
2642 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2644 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2653 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2654 PyObject
*resultobj
;
2655 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2657 PyObject
* obj0
= 0 ;
2659 (char *) "self", NULL
2662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2663 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2666 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2668 wxPyEndAllowThreads(__tstate
);
2669 if (PyErr_Occurred()) SWIG_fail
;
2673 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2675 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2684 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2685 PyObject
*resultobj
;
2686 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2688 PyObject
* obj0
= 0 ;
2690 (char *) "self", NULL
2693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2694 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2697 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2699 wxPyEndAllowThreads(__tstate
);
2700 if (PyErr_Occurred()) SWIG_fail
;
2702 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2709 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2710 PyObject
*resultobj
;
2711 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2713 PyObject
* obj0
= 0 ;
2715 (char *) "self", NULL
2718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2719 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2722 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2724 wxPyEndAllowThreads(__tstate
);
2725 if (PyErr_Occurred()) SWIG_fail
;
2727 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2734 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2735 PyObject
*resultobj
;
2736 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2738 PyObject
* obj0
= 0 ;
2740 (char *) "self", NULL
2743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2744 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2747 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2749 wxPyEndAllowThreads(__tstate
);
2750 if (PyErr_Occurred()) SWIG_fail
;
2752 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2759 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2760 PyObject
*resultobj
;
2761 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2762 wxXmlProperty
*result
;
2763 PyObject
* obj0
= 0 ;
2765 (char *) "self", NULL
2768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2769 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2772 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2774 wxPyEndAllowThreads(__tstate
);
2775 if (PyErr_Occurred()) SWIG_fail
;
2777 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2784 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2785 PyObject
*resultobj
;
2786 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2787 wxString
*arg2
= 0 ;
2788 wxString
*arg3
= 0 ;
2790 bool temp2
= False
;
2791 bool temp3
= False
;
2792 PyObject
* obj0
= 0 ;
2793 PyObject
* obj1
= 0 ;
2794 PyObject
* obj2
= 0 ;
2796 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2800 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2802 arg2
= wxString_in_helper(obj1
);
2803 if (arg2
== NULL
) SWIG_fail
;
2807 arg3
= wxString_in_helper(obj2
);
2808 if (arg3
== NULL
) SWIG_fail
;
2812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2813 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2815 wxPyEndAllowThreads(__tstate
);
2816 if (PyErr_Occurred()) SWIG_fail
;
2820 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2822 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2847 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2848 PyObject
*resultobj
;
2849 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2850 wxString
*arg2
= 0 ;
2852 bool temp2
= False
;
2853 PyObject
* obj0
= 0 ;
2854 PyObject
* obj1
= 0 ;
2856 (char *) "self",(char *) "propName", NULL
2859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2860 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2862 arg2
= wxString_in_helper(obj1
);
2863 if (arg2
== NULL
) SWIG_fail
;
2867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2868 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2870 wxPyEndAllowThreads(__tstate
);
2871 if (PyErr_Occurred()) SWIG_fail
;
2873 resultobj
= SWIG_PyObj_FromBool((bool)result
);
2888 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2889 PyObject
*resultobj
;
2890 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2892 PyObject
* obj0
= 0 ;
2893 PyObject
* obj1
= 0 ;
2895 (char *) "self",(char *) "type", NULL
2898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
2899 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2901 arg2
= (wxXmlNodeType
) SWIG_PyObj_AsInt(obj1
);
2902 if (PyErr_Occurred()) SWIG_fail
;
2905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2906 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2908 wxPyEndAllowThreads(__tstate
);
2909 if (PyErr_Occurred()) SWIG_fail
;
2911 Py_INCREF(Py_None
); resultobj
= Py_None
;
2918 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2919 PyObject
*resultobj
;
2920 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2921 wxString
*arg2
= 0 ;
2922 bool temp2
= False
;
2923 PyObject
* obj0
= 0 ;
2924 PyObject
* obj1
= 0 ;
2926 (char *) "self",(char *) "name", NULL
2929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2930 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2932 arg2
= wxString_in_helper(obj1
);
2933 if (arg2
== NULL
) SWIG_fail
;
2937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2938 (arg1
)->SetName((wxString
const &)*arg2
);
2940 wxPyEndAllowThreads(__tstate
);
2941 if (PyErr_Occurred()) SWIG_fail
;
2943 Py_INCREF(Py_None
); resultobj
= Py_None
;
2958 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2959 PyObject
*resultobj
;
2960 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2961 wxString
*arg2
= 0 ;
2962 bool temp2
= False
;
2963 PyObject
* obj0
= 0 ;
2964 PyObject
* obj1
= 0 ;
2966 (char *) "self",(char *) "con", NULL
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2970 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2972 arg2
= wxString_in_helper(obj1
);
2973 if (arg2
== NULL
) SWIG_fail
;
2977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2978 (arg1
)->SetContent((wxString
const &)*arg2
);
2980 wxPyEndAllowThreads(__tstate
);
2981 if (PyErr_Occurred()) SWIG_fail
;
2983 Py_INCREF(Py_None
); resultobj
= Py_None
;
2998 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2999 PyObject
*resultobj
;
3000 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3001 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3002 PyObject
* obj0
= 0 ;
3003 PyObject
* obj1
= 0 ;
3005 (char *) "self",(char *) "parent", NULL
3008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3009 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3010 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3013 (arg1
)->SetParent(arg2
);
3015 wxPyEndAllowThreads(__tstate
);
3016 if (PyErr_Occurred()) SWIG_fail
;
3018 Py_INCREF(Py_None
); resultobj
= Py_None
;
3025 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
*resultobj
;
3027 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3028 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3029 PyObject
* obj0
= 0 ;
3030 PyObject
* obj1
= 0 ;
3032 (char *) "self",(char *) "next", NULL
3035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3036 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3037 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3040 (arg1
)->SetNext(arg2
);
3042 wxPyEndAllowThreads(__tstate
);
3043 if (PyErr_Occurred()) SWIG_fail
;
3045 Py_INCREF(Py_None
); resultobj
= Py_None
;
3052 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3053 PyObject
*resultobj
;
3054 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3055 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3056 PyObject
* obj0
= 0 ;
3057 PyObject
* obj1
= 0 ;
3059 (char *) "self",(char *) "child", NULL
3062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3063 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3064 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3067 (arg1
)->SetChildren(arg2
);
3069 wxPyEndAllowThreads(__tstate
);
3070 if (PyErr_Occurred()) SWIG_fail
;
3072 Py_INCREF(Py_None
); resultobj
= Py_None
;
3079 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3080 PyObject
*resultobj
;
3081 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3082 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3083 PyObject
* obj0
= 0 ;
3084 PyObject
* obj1
= 0 ;
3086 (char *) "self",(char *) "prop", NULL
3089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3090 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3091 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3094 (arg1
)->SetProperties(arg2
);
3096 wxPyEndAllowThreads(__tstate
);
3097 if (PyErr_Occurred()) SWIG_fail
;
3099 Py_INCREF(Py_None
); resultobj
= Py_None
;
3106 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3108 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3109 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3111 return Py_BuildValue((char *)"");
3113 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3114 PyObject
*resultobj
;
3115 wxString
*arg1
= 0 ;
3116 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3117 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3118 wxXmlDocument
*result
;
3119 bool temp1
= False
;
3120 bool temp2
= False
;
3121 PyObject
* obj0
= 0 ;
3122 PyObject
* obj1
= 0 ;
3124 (char *) "filename",(char *) "encoding", NULL
3127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3129 arg1
= wxString_in_helper(obj0
);
3130 if (arg1
== NULL
) SWIG_fail
;
3135 arg2
= wxString_in_helper(obj1
);
3136 if (arg2
== NULL
) SWIG_fail
;
3141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3142 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3144 wxPyEndAllowThreads(__tstate
);
3145 if (PyErr_Occurred()) SWIG_fail
;
3147 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3170 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3171 PyObject
*resultobj
;
3172 wxInputStream
*arg1
= 0 ;
3173 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3174 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3175 wxXmlDocument
*result
;
3176 wxPyInputStream
*temp1
;
3178 bool temp2
= False
;
3179 PyObject
* obj0
= 0 ;
3180 PyObject
* obj1
= 0 ;
3182 (char *) "stream",(char *) "encoding", NULL
3185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3187 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3188 arg1
= temp1
->m_wxis
;
3191 PyErr_Clear(); // clear the failure of the wxPyConvert above
3192 arg1
= wxPyCBInputStream_create(obj0
, False
);
3194 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3202 arg2
= wxString_in_helper(obj1
);
3203 if (arg2
== NULL
) SWIG_fail
;
3208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3209 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3211 wxPyEndAllowThreads(__tstate
);
3212 if (PyErr_Occurred()) SWIG_fail
;
3214 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3237 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3238 PyObject
*resultobj
;
3239 wxXmlDocument
*result
;
3244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3247 result
= (wxXmlDocument
*)new wxXmlDocument();
3249 wxPyEndAllowThreads(__tstate
);
3250 if (PyErr_Occurred()) SWIG_fail
;
3252 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3259 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3260 PyObject
*resultobj
;
3261 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3262 PyObject
* obj0
= 0 ;
3264 (char *) "self", NULL
3267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3268 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3273 wxPyEndAllowThreads(__tstate
);
3274 if (PyErr_Occurred()) SWIG_fail
;
3276 Py_INCREF(Py_None
); resultobj
= Py_None
;
3283 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3284 PyObject
*resultobj
;
3285 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3286 wxString
*arg2
= 0 ;
3287 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3288 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3290 bool temp2
= False
;
3291 bool temp3
= False
;
3292 PyObject
* obj0
= 0 ;
3293 PyObject
* obj1
= 0 ;
3294 PyObject
* obj2
= 0 ;
3296 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3300 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3302 arg2
= wxString_in_helper(obj1
);
3303 if (arg2
== NULL
) SWIG_fail
;
3308 arg3
= wxString_in_helper(obj2
);
3309 if (arg3
== NULL
) SWIG_fail
;
3314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3315 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3317 wxPyEndAllowThreads(__tstate
);
3318 if (PyErr_Occurred()) SWIG_fail
;
3320 resultobj
= SWIG_PyObj_FromBool((bool)result
);
3343 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3344 PyObject
*resultobj
;
3345 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3346 wxInputStream
*arg2
= 0 ;
3347 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3348 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3350 wxPyInputStream
*temp2
;
3352 bool temp3
= False
;
3353 PyObject
* obj0
= 0 ;
3354 PyObject
* obj1
= 0 ;
3355 PyObject
* obj2
= 0 ;
3357 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3361 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3363 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3364 arg2
= temp2
->m_wxis
;
3367 PyErr_Clear(); // clear the failure of the wxPyConvert above
3368 arg2
= wxPyCBInputStream_create(obj1
, False
);
3370 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3378 arg3
= wxString_in_helper(obj2
);
3379 if (arg3
== NULL
) SWIG_fail
;
3384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3385 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3387 wxPyEndAllowThreads(__tstate
);
3388 if (PyErr_Occurred()) SWIG_fail
;
3390 resultobj
= SWIG_PyObj_FromBool((bool)result
);
3413 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3414 PyObject
*resultobj
;
3415 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3416 wxString
*arg2
= 0 ;
3418 bool temp2
= False
;
3419 PyObject
* obj0
= 0 ;
3420 PyObject
* obj1
= 0 ;
3422 (char *) "self",(char *) "filename", NULL
3425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3426 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3428 arg2
= wxString_in_helper(obj1
);
3429 if (arg2
== NULL
) SWIG_fail
;
3433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3434 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3436 wxPyEndAllowThreads(__tstate
);
3437 if (PyErr_Occurred()) SWIG_fail
;
3439 resultobj
= SWIG_PyObj_FromBool((bool)result
);
3454 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3455 PyObject
*resultobj
;
3456 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3457 wxOutputStream
*arg2
= 0 ;
3459 PyObject
* obj0
= 0 ;
3460 PyObject
* obj1
= 0 ;
3462 (char *) "self",(char *) "stream", NULL
3465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3466 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3467 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3469 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3473 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3475 wxPyEndAllowThreads(__tstate
);
3476 if (PyErr_Occurred()) SWIG_fail
;
3478 resultobj
= SWIG_PyObj_FromBool((bool)result
);
3485 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3486 PyObject
*resultobj
;
3487 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3489 PyObject
* obj0
= 0 ;
3491 (char *) "self", NULL
3494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3495 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3498 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3500 wxPyEndAllowThreads(__tstate
);
3501 if (PyErr_Occurred()) SWIG_fail
;
3503 resultobj
= SWIG_PyObj_FromBool((bool)result
);
3510 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
*resultobj
;
3512 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3514 PyObject
* obj0
= 0 ;
3516 (char *) "self", NULL
3519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3520 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3523 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3525 wxPyEndAllowThreads(__tstate
);
3526 if (PyErr_Occurred()) SWIG_fail
;
3528 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3535 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3536 PyObject
*resultobj
;
3537 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3539 PyObject
* obj0
= 0 ;
3541 (char *) "self", NULL
3544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3545 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3548 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3550 wxPyEndAllowThreads(__tstate
);
3551 if (PyErr_Occurred()) SWIG_fail
;
3555 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3557 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3566 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3567 PyObject
*resultobj
;
3568 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3570 PyObject
* obj0
= 0 ;
3572 (char *) "self", NULL
3575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3576 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3579 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3581 wxPyEndAllowThreads(__tstate
);
3582 if (PyErr_Occurred()) SWIG_fail
;
3586 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3588 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3597 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3598 PyObject
*resultobj
;
3599 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3600 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3601 PyObject
* obj0
= 0 ;
3602 PyObject
* obj1
= 0 ;
3604 (char *) "self",(char *) "node", NULL
3607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3608 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3609 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3612 (arg1
)->SetRoot(arg2
);
3614 wxPyEndAllowThreads(__tstate
);
3615 if (PyErr_Occurred()) SWIG_fail
;
3617 Py_INCREF(Py_None
); resultobj
= Py_None
;
3624 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
*resultobj
;
3626 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3627 wxString
*arg2
= 0 ;
3628 bool temp2
= False
;
3629 PyObject
* obj0
= 0 ;
3630 PyObject
* obj1
= 0 ;
3632 (char *) "self",(char *) "version", NULL
3635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3636 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3638 arg2
= wxString_in_helper(obj1
);
3639 if (arg2
== NULL
) SWIG_fail
;
3643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3644 (arg1
)->SetVersion((wxString
const &)*arg2
);
3646 wxPyEndAllowThreads(__tstate
);
3647 if (PyErr_Occurred()) SWIG_fail
;
3649 Py_INCREF(Py_None
); resultobj
= Py_None
;
3664 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3665 PyObject
*resultobj
;
3666 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3667 wxString
*arg2
= 0 ;
3668 bool temp2
= False
;
3669 PyObject
* obj0
= 0 ;
3670 PyObject
* obj1
= 0 ;
3672 (char *) "self",(char *) "encoding", NULL
3675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3676 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3678 arg2
= wxString_in_helper(obj1
);
3679 if (arg2
== NULL
) SWIG_fail
;
3683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3684 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3686 wxPyEndAllowThreads(__tstate
);
3687 if (PyErr_Occurred()) SWIG_fail
;
3689 Py_INCREF(Py_None
); resultobj
= Py_None
;
3704 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3706 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3707 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3709 return Py_BuildValue((char *)"");
3711 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
*resultobj
;
3713 wxPyXmlResourceHandler
*result
;
3718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3721 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3723 wxPyEndAllowThreads(__tstate
);
3724 if (PyErr_Occurred()) SWIG_fail
;
3726 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3733 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3734 PyObject
*resultobj
;
3735 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3736 PyObject
*arg2
= (PyObject
*) 0 ;
3737 PyObject
*arg3
= (PyObject
*) 0 ;
3738 PyObject
* obj0
= 0 ;
3739 PyObject
* obj1
= 0 ;
3740 PyObject
* obj2
= 0 ;
3742 (char *) "self",(char *) "self",(char *) "_class", NULL
3745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3746 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3751 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3753 wxPyEndAllowThreads(__tstate
);
3754 if (PyErr_Occurred()) SWIG_fail
;
3756 Py_INCREF(Py_None
); resultobj
= Py_None
;
3763 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3764 PyObject
*resultobj
;
3765 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3766 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3767 wxObject
*arg3
= (wxObject
*) 0 ;
3768 wxObject
*arg4
= (wxObject
*) 0 ;
3770 PyObject
* obj0
= 0 ;
3771 PyObject
* obj1
= 0 ;
3772 PyObject
* obj2
= 0 ;
3773 PyObject
* obj3
= 0 ;
3775 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3779 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3780 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3781 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3782 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3785 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3787 wxPyEndAllowThreads(__tstate
);
3788 if (PyErr_Occurred()) SWIG_fail
;
3791 resultobj
= wxPyMake_wxObject(result
);
3799 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3800 PyObject
*resultobj
;
3801 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3802 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3803 PyObject
* obj0
= 0 ;
3804 PyObject
* obj1
= 0 ;
3806 (char *) "self",(char *) "res", NULL
3809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3810 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3811 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3814 (arg1
)->SetParentResource(arg2
);
3816 wxPyEndAllowThreads(__tstate
);
3817 if (PyErr_Occurred()) SWIG_fail
;
3819 Py_INCREF(Py_None
); resultobj
= Py_None
;
3826 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3827 PyObject
*resultobj
;
3828 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3829 wxXmlResource
*result
;
3830 PyObject
* obj0
= 0 ;
3832 (char *) "self", NULL
3835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3836 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3839 result
= (wxXmlResource
*)(arg1
)->GetResource();
3841 wxPyEndAllowThreads(__tstate
);
3842 if (PyErr_Occurred()) SWIG_fail
;
3844 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3851 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3852 PyObject
*resultobj
;
3853 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3855 PyObject
* obj0
= 0 ;
3857 (char *) "self", NULL
3860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3861 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3864 result
= (wxXmlNode
*)(arg1
)->GetNode();
3866 wxPyEndAllowThreads(__tstate
);
3867 if (PyErr_Occurred()) SWIG_fail
;
3869 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3876 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
*resultobj
;
3878 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3880 PyObject
* obj0
= 0 ;
3882 (char *) "self", NULL
3885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3886 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3889 result
= (arg1
)->GetClass();
3891 wxPyEndAllowThreads(__tstate
);
3892 if (PyErr_Occurred()) SWIG_fail
;
3896 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3898 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3907 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3908 PyObject
*resultobj
;
3909 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3911 PyObject
* obj0
= 0 ;
3913 (char *) "self", NULL
3916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3917 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3920 result
= (wxObject
*)(arg1
)->GetParent();
3922 wxPyEndAllowThreads(__tstate
);
3923 if (PyErr_Occurred()) SWIG_fail
;
3926 resultobj
= wxPyMake_wxObject(result
);
3934 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3935 PyObject
*resultobj
;
3936 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3938 PyObject
* obj0
= 0 ;
3940 (char *) "self", NULL
3943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3944 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3947 result
= (wxObject
*)(arg1
)->GetInstance();
3949 wxPyEndAllowThreads(__tstate
);
3950 if (PyErr_Occurred()) SWIG_fail
;
3953 resultobj
= wxPyMake_wxObject(result
);
3961 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3962 PyObject
*resultobj
;
3963 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3965 PyObject
* obj0
= 0 ;
3967 (char *) "self", NULL
3970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3971 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3974 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
3976 wxPyEndAllowThreads(__tstate
);
3977 if (PyErr_Occurred()) SWIG_fail
;
3980 resultobj
= wxPyMake_wxObject(result
);
3988 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3989 PyObject
*resultobj
;
3990 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3992 PyObject
* obj0
= 0 ;
3994 (char *) "self", NULL
3997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
3998 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4001 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4003 wxPyEndAllowThreads(__tstate
);
4004 if (PyErr_Occurred()) SWIG_fail
;
4007 resultobj
= wxPyMake_wxObject(result
);
4015 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4016 PyObject
*resultobj
;
4017 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4018 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4019 wxString
*arg3
= 0 ;
4021 bool temp3
= False
;
4022 PyObject
* obj0
= 0 ;
4023 PyObject
* obj1
= 0 ;
4024 PyObject
* obj2
= 0 ;
4026 (char *) "self",(char *) "node",(char *) "classname", NULL
4029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4030 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4031 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4033 arg3
= wxString_in_helper(obj2
);
4034 if (arg3
== NULL
) SWIG_fail
;
4038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4039 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4041 wxPyEndAllowThreads(__tstate
);
4042 if (PyErr_Occurred()) SWIG_fail
;
4044 resultobj
= SWIG_PyObj_FromBool((bool)result
);
4059 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
*resultobj
;
4061 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4062 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4064 PyObject
* obj0
= 0 ;
4065 PyObject
* obj1
= 0 ;
4067 (char *) "self",(char *) "node", NULL
4070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4071 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4072 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4075 result
= (arg1
)->GetNodeContent(arg2
);
4077 wxPyEndAllowThreads(__tstate
);
4078 if (PyErr_Occurred()) SWIG_fail
;
4082 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4084 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4093 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4094 PyObject
*resultobj
;
4095 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4096 wxString
*arg2
= 0 ;
4098 bool temp2
= False
;
4099 PyObject
* obj0
= 0 ;
4100 PyObject
* obj1
= 0 ;
4102 (char *) "self",(char *) "param", NULL
4105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4106 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4108 arg2
= wxString_in_helper(obj1
);
4109 if (arg2
== NULL
) SWIG_fail
;
4113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4114 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4116 wxPyEndAllowThreads(__tstate
);
4117 if (PyErr_Occurred()) SWIG_fail
;
4119 resultobj
= SWIG_PyObj_FromBool((bool)result
);
4134 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4135 PyObject
*resultobj
;
4136 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4137 wxString
*arg2
= 0 ;
4139 bool temp2
= False
;
4140 PyObject
* obj0
= 0 ;
4141 PyObject
* obj1
= 0 ;
4143 (char *) "self",(char *) "param", NULL
4146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4147 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4149 arg2
= wxString_in_helper(obj1
);
4150 if (arg2
== NULL
) SWIG_fail
;
4154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4155 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4157 wxPyEndAllowThreads(__tstate
);
4158 if (PyErr_Occurred()) SWIG_fail
;
4160 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
4175 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4176 PyObject
*resultobj
;
4177 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4178 wxString
*arg2
= 0 ;
4180 bool temp2
= False
;
4181 PyObject
* obj0
= 0 ;
4182 PyObject
* obj1
= 0 ;
4184 (char *) "self",(char *) "param", NULL
4187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4188 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4190 arg2
= wxString_in_helper(obj1
);
4191 if (arg2
== NULL
) SWIG_fail
;
4195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4196 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4198 wxPyEndAllowThreads(__tstate
);
4199 if (PyErr_Occurred()) SWIG_fail
;
4203 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4205 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4222 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4223 PyObject
*resultobj
;
4224 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4225 wxString
*arg2
= 0 ;
4227 bool temp2
= False
;
4228 PyObject
* obj0
= 0 ;
4229 PyObject
* obj1
= 0 ;
4230 PyObject
* obj2
= 0 ;
4232 (char *) "self",(char *) "name",(char *) "value", NULL
4235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4236 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4238 arg2
= wxString_in_helper(obj1
);
4239 if (arg2
== NULL
) SWIG_fail
;
4243 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4244 if (PyErr_Occurred()) SWIG_fail
;
4247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4248 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4250 wxPyEndAllowThreads(__tstate
);
4251 if (PyErr_Occurred()) SWIG_fail
;
4253 Py_INCREF(Py_None
); resultobj
= Py_None
;
4268 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4269 PyObject
*resultobj
;
4270 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4271 PyObject
* obj0
= 0 ;
4273 (char *) "self", NULL
4276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4277 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4280 (arg1
)->AddWindowStyles();
4282 wxPyEndAllowThreads(__tstate
);
4283 if (PyErr_Occurred()) SWIG_fail
;
4285 Py_INCREF(Py_None
); resultobj
= Py_None
;
4292 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4293 PyObject
*resultobj
;
4294 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4295 wxString
const &arg2_defvalue
= wxPyStyleString
;
4296 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4297 int arg3
= (int) 0 ;
4299 bool temp2
= False
;
4300 PyObject
* obj0
= 0 ;
4301 PyObject
* obj1
= 0 ;
4302 PyObject
* obj2
= 0 ;
4304 (char *) "self",(char *) "param",(char *) "defaults", NULL
4307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4308 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4311 arg2
= wxString_in_helper(obj1
);
4312 if (arg2
== NULL
) SWIG_fail
;
4318 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4319 if (PyErr_Occurred()) SWIG_fail
;
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4326 wxPyEndAllowThreads(__tstate
);
4327 if (PyErr_Occurred()) SWIG_fail
;
4329 resultobj
= SWIG_PyObj_FromInt((int)result
);
4344 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4345 PyObject
*resultobj
;
4346 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4347 wxString
*arg2
= 0 ;
4348 bool arg3
= (bool) True
;
4350 bool temp2
= False
;
4351 PyObject
* obj0
= 0 ;
4352 PyObject
* obj1
= 0 ;
4353 PyObject
* obj2
= 0 ;
4355 (char *) "self",(char *) "param",(char *) "translate", NULL
4358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4359 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4361 arg2
= wxString_in_helper(obj1
);
4362 if (arg2
== NULL
) SWIG_fail
;
4367 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4368 if (PyErr_Occurred()) SWIG_fail
;
4372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4373 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4375 wxPyEndAllowThreads(__tstate
);
4376 if (PyErr_Occurred()) SWIG_fail
;
4380 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4382 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4399 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4400 PyObject
*resultobj
;
4401 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4403 PyObject
* obj0
= 0 ;
4405 (char *) "self", NULL
4408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4409 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4412 result
= (int)(arg1
)->GetID();
4414 wxPyEndAllowThreads(__tstate
);
4415 if (PyErr_Occurred()) SWIG_fail
;
4417 resultobj
= SWIG_PyObj_FromInt((int)result
);
4424 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4425 PyObject
*resultobj
;
4426 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4428 PyObject
* obj0
= 0 ;
4430 (char *) "self", NULL
4433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4434 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4437 result
= (arg1
)->GetName();
4439 wxPyEndAllowThreads(__tstate
);
4440 if (PyErr_Occurred()) SWIG_fail
;
4444 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4446 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4455 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4456 PyObject
*resultobj
;
4457 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4458 wxString
*arg2
= 0 ;
4459 bool arg3
= (bool) False
;
4461 bool temp2
= False
;
4462 PyObject
* obj0
= 0 ;
4463 PyObject
* obj1
= 0 ;
4464 PyObject
* obj2
= 0 ;
4466 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4470 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4472 arg2
= wxString_in_helper(obj1
);
4473 if (arg2
== NULL
) SWIG_fail
;
4478 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4479 if (PyErr_Occurred()) SWIG_fail
;
4483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4484 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4486 wxPyEndAllowThreads(__tstate
);
4487 if (PyErr_Occurred()) SWIG_fail
;
4489 resultobj
= SWIG_PyObj_FromBool((bool)result
);
4504 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4505 PyObject
*resultobj
;
4506 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4507 wxString
*arg2
= 0 ;
4508 long arg3
= (long) 0 ;
4510 bool temp2
= False
;
4511 PyObject
* obj0
= 0 ;
4512 PyObject
* obj1
= 0 ;
4513 PyObject
* obj2
= 0 ;
4515 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4519 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4521 arg2
= wxString_in_helper(obj1
);
4522 if (arg2
== NULL
) SWIG_fail
;
4527 arg3
= (long) SWIG_PyObj_AsLong(obj2
);
4528 if (PyErr_Occurred()) SWIG_fail
;
4532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4533 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4535 wxPyEndAllowThreads(__tstate
);
4536 if (PyErr_Occurred()) SWIG_fail
;
4538 resultobj
= SWIG_PyObj_FromLong((long)result
);
4553 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4554 PyObject
*resultobj
;
4555 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4556 wxString
*arg2
= 0 ;
4558 bool temp2
= False
;
4559 PyObject
* obj0
= 0 ;
4560 PyObject
* obj1
= 0 ;
4562 (char *) "self",(char *) "param", NULL
4565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4566 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4568 arg2
= wxString_in_helper(obj1
);
4569 if (arg2
== NULL
) SWIG_fail
;
4573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4574 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4576 wxPyEndAllowThreads(__tstate
);
4577 if (PyErr_Occurred()) SWIG_fail
;
4580 wxColour
* resultptr
;
4581 resultptr
= new wxColour((wxColour
&) result
);
4582 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4598 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4599 PyObject
*resultobj
;
4600 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4601 wxString
const &arg2_defvalue
= wxPySizeString
;
4602 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4604 bool temp2
= False
;
4605 PyObject
* obj0
= 0 ;
4606 PyObject
* obj1
= 0 ;
4608 (char *) "self",(char *) "param", NULL
4611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4612 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4615 arg2
= wxString_in_helper(obj1
);
4616 if (arg2
== NULL
) SWIG_fail
;
4621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4622 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4624 wxPyEndAllowThreads(__tstate
);
4625 if (PyErr_Occurred()) SWIG_fail
;
4629 resultptr
= new wxSize((wxSize
&) result
);
4630 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4646 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4647 PyObject
*resultobj
;
4648 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4649 wxString
const &arg2_defvalue
= wxPyPosString
;
4650 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4652 bool temp2
= False
;
4653 PyObject
* obj0
= 0 ;
4654 PyObject
* obj1
= 0 ;
4656 (char *) "self",(char *) "param", NULL
4659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4660 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4663 arg2
= wxString_in_helper(obj1
);
4664 if (arg2
== NULL
) SWIG_fail
;
4669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4670 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4672 wxPyEndAllowThreads(__tstate
);
4673 if (PyErr_Occurred()) SWIG_fail
;
4676 wxPoint
* resultptr
;
4677 resultptr
= new wxPoint((wxPoint
&) result
);
4678 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4694 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4695 PyObject
*resultobj
;
4696 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4697 wxString
*arg2
= 0 ;
4698 int arg3
= (int) 0 ;
4700 bool temp2
= False
;
4701 PyObject
* obj0
= 0 ;
4702 PyObject
* obj1
= 0 ;
4703 PyObject
* obj2
= 0 ;
4705 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4709 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4711 arg2
= wxString_in_helper(obj1
);
4712 if (arg2
== NULL
) SWIG_fail
;
4717 arg3
= (int) SWIG_PyObj_AsInt(obj2
);
4718 if (PyErr_Occurred()) SWIG_fail
;
4722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4723 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4725 wxPyEndAllowThreads(__tstate
);
4726 if (PyErr_Occurred()) SWIG_fail
;
4728 resultobj
= SWIG_PyObj_FromInt((int)result
);
4743 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4744 PyObject
*resultobj
;
4745 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4746 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4747 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4748 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4749 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4750 wxSize arg4
= (wxSize
) wxDefaultSize
;
4752 bool temp2
= False
;
4754 PyObject
* obj0
= 0 ;
4755 PyObject
* obj1
= 0 ;
4756 PyObject
* obj2
= 0 ;
4757 PyObject
* obj3
= 0 ;
4759 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4763 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4766 arg2
= wxString_in_helper(obj1
);
4767 if (arg2
== NULL
) SWIG_fail
;
4772 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4774 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4778 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4783 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4785 wxPyEndAllowThreads(__tstate
);
4786 if (PyErr_Occurred()) SWIG_fail
;
4789 wxBitmap
* resultptr
;
4790 resultptr
= new wxBitmap((wxBitmap
&) result
);
4791 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4807 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4808 PyObject
*resultobj
;
4809 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4810 wxString
const &arg2_defvalue
= wxPyIconString
;
4811 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4812 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4813 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4814 wxSize arg4
= (wxSize
) wxDefaultSize
;
4816 bool temp2
= False
;
4818 PyObject
* obj0
= 0 ;
4819 PyObject
* obj1
= 0 ;
4820 PyObject
* obj2
= 0 ;
4821 PyObject
* obj3
= 0 ;
4823 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4827 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4830 arg2
= wxString_in_helper(obj1
);
4831 if (arg2
== NULL
) SWIG_fail
;
4836 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4838 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4842 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4847 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4849 wxPyEndAllowThreads(__tstate
);
4850 if (PyErr_Occurred()) SWIG_fail
;
4854 resultptr
= new wxIcon((wxIcon
&) result
);
4855 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4871 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4872 PyObject
*resultobj
;
4873 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4874 wxString
const &arg2_defvalue
= wxPyFontString
;
4875 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4877 bool temp2
= False
;
4878 PyObject
* obj0
= 0 ;
4879 PyObject
* obj1
= 0 ;
4881 (char *) "self",(char *) "param", NULL
4884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4885 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4888 arg2
= wxString_in_helper(obj1
);
4889 if (arg2
== NULL
) SWIG_fail
;
4894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4895 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4897 wxPyEndAllowThreads(__tstate
);
4898 if (PyErr_Occurred()) SWIG_fail
;
4902 resultptr
= new wxFont((wxFont
&) result
);
4903 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4919 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4920 PyObject
*resultobj
;
4921 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4922 wxWindow
*arg2
= (wxWindow
*) 0 ;
4923 PyObject
* obj0
= 0 ;
4924 PyObject
* obj1
= 0 ;
4926 (char *) "self",(char *) "wnd", NULL
4929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4930 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4931 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4934 (arg1
)->SetupWindow(arg2
);
4936 wxPyEndAllowThreads(__tstate
);
4937 if (PyErr_Occurred()) SWIG_fail
;
4939 Py_INCREF(Py_None
); resultobj
= Py_None
;
4946 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4947 PyObject
*resultobj
;
4948 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4949 wxObject
*arg2
= (wxObject
*) 0 ;
4950 bool arg3
= (bool) False
;
4951 PyObject
* obj0
= 0 ;
4952 PyObject
* obj1
= 0 ;
4953 PyObject
* obj2
= 0 ;
4955 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4959 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4960 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4963 arg3
= (bool) SWIG_PyObj_AsBool(obj2
);
4964 if (PyErr_Occurred()) SWIG_fail
;
4968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4969 (arg1
)->CreateChildren(arg2
,arg3
);
4971 wxPyEndAllowThreads(__tstate
);
4972 if (PyErr_Occurred()) SWIG_fail
;
4974 Py_INCREF(Py_None
); resultobj
= Py_None
;
4981 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4982 PyObject
*resultobj
;
4983 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4984 wxObject
*arg2
= (wxObject
*) 0 ;
4985 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4986 PyObject
* obj0
= 0 ;
4987 PyObject
* obj1
= 0 ;
4988 PyObject
* obj2
= 0 ;
4990 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4994 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4995 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4997 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5001 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5003 wxPyEndAllowThreads(__tstate
);
5004 if (PyErr_Occurred()) SWIG_fail
;
5006 Py_INCREF(Py_None
); resultobj
= Py_None
;
5013 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5014 PyObject
*resultobj
;
5015 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5016 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5017 wxObject
*arg3
= (wxObject
*) 0 ;
5018 wxObject
*arg4
= (wxObject
*) NULL
;
5020 PyObject
* obj0
= 0 ;
5021 PyObject
* obj1
= 0 ;
5022 PyObject
* obj2
= 0 ;
5023 PyObject
* obj3
= 0 ;
5025 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5029 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5030 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5031 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5033 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5037 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5039 wxPyEndAllowThreads(__tstate
);
5040 if (PyErr_Occurred()) SWIG_fail
;
5043 resultobj
= wxPyMake_wxObject(result
);
5051 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5052 PyObject
*resultobj
;
5053 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5054 wxFileSystem
*result
;
5055 PyObject
* obj0
= 0 ;
5057 (char *) "self", NULL
5060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5061 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5065 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5066 result
= (wxFileSystem
*) &_result_ref
;
5069 wxPyEndAllowThreads(__tstate
);
5070 if (PyErr_Occurred()) SWIG_fail
;
5072 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
5079 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5081 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5082 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5084 return Py_BuildValue((char *)"");
5086 static PyMethodDef SwigMethods
[] = {
5087 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5088 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5089 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5090 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5091 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5092 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5093 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5094 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5095 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5096 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5097 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5098 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5099 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5100 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5101 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5102 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5103 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5104 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5105 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5106 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5107 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5108 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5109 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5110 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5111 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5112 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5113 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5114 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5115 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5116 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5117 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5118 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5119 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5120 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5121 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5122 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5123 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5124 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5125 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5126 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5127 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5128 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5129 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5130 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5131 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5132 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5133 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5134 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5135 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5136 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5137 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5138 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5139 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5140 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5141 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5142 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5143 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5144 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5145 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5146 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5147 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5148 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5149 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5150 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5151 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5152 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5153 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5154 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5155 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5156 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5157 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5158 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5159 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5160 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5161 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5162 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5163 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5164 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5165 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5166 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5167 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5168 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5169 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5170 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5171 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5172 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5173 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5174 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5175 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5176 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5177 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5178 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5179 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5180 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5181 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5182 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5183 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5184 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5185 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5186 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5187 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5188 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5189 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5190 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5191 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5192 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5193 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5194 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5195 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5196 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5197 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5198 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5199 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5200 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5201 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5202 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5203 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5204 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5205 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5206 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5207 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5208 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5209 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5214 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5216 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5217 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5219 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5220 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5222 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5223 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5225 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5226 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5228 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5229 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5231 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5232 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5234 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5235 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5237 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5238 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5240 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5241 return (void *)((wxObject
*) ((wxSizer
*) x
));
5243 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5244 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5246 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5247 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5249 static void *_p_wxEventTo_p_wxObject(void *x
) {
5250 return (void *)((wxObject
*) ((wxEvent
*) x
));
5252 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5253 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5255 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5256 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5258 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5259 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5261 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5262 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5264 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5265 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5267 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5268 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5270 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5271 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5273 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5274 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5276 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5277 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5279 static void *_p_wxControlTo_p_wxObject(void *x
) {
5280 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5282 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5283 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5285 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5286 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5288 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5289 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5291 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5292 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5294 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5295 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5297 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5298 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5300 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5301 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5303 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5304 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5306 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5307 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5309 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5310 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5312 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5313 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5315 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5316 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5318 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5319 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5321 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5322 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5324 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5325 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5327 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5328 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5330 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5331 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5333 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5334 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5336 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5337 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5339 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5340 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5342 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5343 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5345 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5346 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5348 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5349 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5351 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5352 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5354 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5355 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5357 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5358 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5360 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5361 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5363 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5364 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5366 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5367 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5369 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5370 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5372 static void *_p_wxImageTo_p_wxObject(void *x
) {
5373 return (void *)((wxObject
*) ((wxImage
*) x
));
5375 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5376 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5378 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5379 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5381 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5382 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5384 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5385 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5387 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5388 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5390 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5391 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5393 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5394 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5396 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5397 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5399 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5400 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5402 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5403 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5405 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5406 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5408 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5409 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5411 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5412 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5414 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5415 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5417 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5418 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5420 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5421 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5423 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5424 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5426 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5427 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5429 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5430 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5432 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5433 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5435 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5436 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5438 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5439 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5441 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5442 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5444 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5445 return (void *)((wxWindow
*) ((wxControl
*) x
));
5447 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5448 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5450 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5451 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5453 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5454 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5455 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
},{"_p_wxEvent", _p_wxEventTo_p_wxObject
},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
},{"_p_wxControl", _p_wxControlTo_p_wxObject
},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
},{"_p_wxImage", _p_wxImageTo_p_wxObject
},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
},{"_p_wxObject"},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
},{0}};
5456 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5457 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5458 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}};
5459 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5460 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5461 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5462 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
5463 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5464 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5465 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5466 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5467 static swig_type_info _swigt__p_wxString
[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
5468 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5469 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5470 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5471 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5472 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5473 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5474 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5475 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5477 static swig_type_info
*swig_types_initial
[] = {
5484 _swigt__p_wxArtClient
,
5486 _swigt__p_wxPyXmlSubclassFactory
,
5489 _swigt__p_wxXmlNode
,
5490 _swigt__p_wxInputStream
,
5491 _swigt__p_wxOutputStream
,
5493 _swigt__p_wxPyXmlResourceHandler
,
5494 _swigt__p_wxFileSystem
,
5495 _swigt__p_wxXmlProperty
,
5497 _swigt__p_wxXmlResource
,
5499 _swigt__p_wxXmlDocument
,
5505 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5507 static swig_const_info swig_const_table
[] = {
5517 SWIGEXPORT(void) SWIG_init(void) {
5518 static PyObject
*SWIG_globals
= 0;
5519 static int typeinit
= 0;
5522 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5523 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5524 d
= PyModule_GetDict(m
);
5527 for (i
= 0; swig_types_initial
[i
]; i
++) {
5528 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5532 SWIG_InstallConstants(d
,swig_const_table
);
5534 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5535 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5536 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5537 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5538 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5539 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5540 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5541 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5542 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5543 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5544 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5545 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_PyObj_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5546 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_PyObj_FromInt((int)wxXRC_USE_LOCALE
));
5547 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_PyObj_FromInt((int)wxXRC_NO_SUBCLASSING
));
5548 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_ELEMENT_NODE
));
5549 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_PyObj_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5550 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_PyObj_FromInt((int)wxXML_TEXT_NODE
));
5551 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_PyObj_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5552 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_PyObj_FromInt((int)wxXML_ENTITY_REF_NODE
));
5553 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_PyObj_FromInt((int)wxXML_ENTITY_NODE
));
5554 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_PyObj_FromInt((int)wxXML_PI_NODE
));
5555 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_COMMENT_NODE
));
5556 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_NODE
));
5557 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5558 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_PyObj_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5559 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_PyObj_FromInt((int)wxXML_NOTATION_NODE
));
5560 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_PyObj_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5563 wxXmlInitResourceModule();
5564 wxXmlResource::Get()->InitAllHandlers();