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);
126 /***********************************************************************
127 * pyrun.swg for wxPython
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 ************************************************************************/
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
148 /* Flags for pointer conversion */
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
156 /* Constant information structure */
157 typedef struct swig_const_info
{
163 swig_type_info
**ptype
;
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
186 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
189 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
191 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
194 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
198 /* Contract support */
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
207 /* -------- TYPES TABLE (BEGIN) -------- */
209 #define SWIGTYPE_p_wxFrame swig_types[0]
210 #define SWIGTYPE_p_wxIcon swig_types[1]
211 #define SWIGTYPE_p_wxObject swig_types[2]
212 #define SWIGTYPE_p_wxDialog swig_types[3]
213 #define SWIGTYPE_p_wxColour swig_types[4]
214 #define SWIGTYPE_p_wxWindow swig_types[5]
215 #define SWIGTYPE_p_wxArtClient swig_types[6]
216 #define SWIGTYPE_p_wxBitmap swig_types[7]
217 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
218 #define SWIGTYPE_p_char swig_types[9]
219 #define SWIGTYPE_p_wxPoint swig_types[10]
220 #define SWIGTYPE_p_wxXmlNode swig_types[11]
221 #define SWIGTYPE_p_wxInputStream swig_types[12]
222 #define SWIGTYPE_p_wxOutputStream swig_types[13]
223 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
224 #define SWIGTYPE_p_wxFileSystem swig_types[15]
225 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxXmlResource swig_types[18]
228 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
229 #define SWIGTYPE_p_wxPanel swig_types[20]
230 #define SWIGTYPE_p_wxSize swig_types[21]
231 static swig_type_info
*swig_types
[23];
233 /* -------- TYPES TABLE (END) -------- */
236 /*-----------------------------------------------
238 ------------------------------------------------*/
239 #define SWIG_init init_xrc
241 #define SWIG_name "_xrc"
243 /* Auxiliar swig macros */
246 #define SWIGSTATICINLINE(a) static inline a
247 #define SWIGSTATIC(a) static a
248 #define swig_new_array(type, size) (new type[(size)])
249 #define swig_delete_array(cptr) delete[] cptr
250 #define swig_const_cast(type,a) const_cast<type>(a)
251 #define swig_static_cast(type,a) static_cast<type>(a)
252 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
254 #ifdef HAVE_NUMERIC_CAST
255 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
257 #define swig_numeric_cast(type,a) static_cast<type>(a)
262 #define SWIGSTATICINLINE(a) static a
263 #define SWIGSTATIC(a) static a
264 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
265 #define swig_delete_array(cptr) free((char*)cptr)
266 #define swig_const_cast(type,a) (type)(a)
267 #define swig_static_cast(type,a) (type)(a)
268 #define swig_reinterpret_cast(type,a) (type)(a)
269 #define swig_numeric_cast(type,a) (type)(a)
271 #endif /* __cplusplus */
274 #define SWIG_FromSignedChar PyInt_FromLong
275 #define SWIG_FromUnsignedChar PyInt_FromLong
276 #define SWIG_FromShort PyInt_FromLong
277 #define SWIG_FromUnsignedShort PyInt_FromLong
278 #define SWIG_FromInt PyInt_FromLong
279 #define SWIG_FromLong PyInt_FromLong
280 #define SWIG_FromFloat PyFloat_FromDouble
281 #define SWIG_FromDouble PyFloat_FromDouble
282 #define SWIG_FromFloat PyFloat_FromDouble
283 #define SWIG_FromDouble PyFloat_FromDouble
286 #include "wx/wxPython/wxPython.h"
287 #include "wx/wxPython/pyclasses.h"
288 #include "wx/wxPython/pyistream.h"
290 #include <wx/xml/xml.h>
291 #include <wx/xrc/xmlres.h>
294 static const wxString
wxPyEmptyString(wxEmptyString
);
295 static const wxString
wxPyUTF8String(wxT("UTF-8"));
296 static const wxString
wxPyStyleString(wxT("style"));
297 static const wxString
wxPySizeString(wxT("size"));
298 static const wxString
wxPyPosString(wxT("pos"));
299 static const wxString
wxPyBitmapString(wxT("bitmap"));
300 static const wxString
wxPyIconString(wxT("icon"));
301 static const wxString
wxPyFontString(wxT("font"));
306 SWIGSTATICINLINE(long)
307 SWIG_CheckLongInRange(long value
, const char* type
,
308 long min_value
, long max_value
)
310 if (!PyErr_Occurred()) {
311 if (value
< min_value
) {
313 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
314 value
, type
, min_value
);
316 PyErr_SetObject(PyExc_OverflowError
, err
);
318 } else if (value
> max_value
) {
320 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
321 value
, type
, max_value
);
322 PyErr_SetObject(PyExc_OverflowError
, err
);
330 SWIGSTATICINLINE(long)
331 SWIG_AsLong(PyObject
* obj
)
333 return PyInt_Check(obj
) ? PyInt_AsLong(obj
) : PyLong_AsLong(obj
);
337 #if INT_MAX != LONG_MAX
338 SWIGSTATICINLINE(int)
339 SWIG_AsInt(PyObject
*obj
)
341 return swig_numeric_cast(int,
342 SWIG_CheckLongInRange(SWIG_AsLong(obj
),
343 "int", INT_MIN
, INT_MAX
));
346 #define SWIG_AsInt SWIG_AsLong
350 SWIGSTATICINLINE(int)
351 SWIG_CheckInt(PyObject
* obj
)
354 if (PyErr_Occurred()) {
362 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
363 static int s_memFileIdx
= 0;
365 // Check for memory FS. If not present, load the handler:
366 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
369 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
370 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
374 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
376 // Now put the resource data into the memory FS
377 wxString
filename(wxT("XRC_resource/data_string_"));
378 filename
<< s_memFileIdx
;
380 wxMemoryFSHandler::AddFile(filename
, data
);
382 // Load the "file" into the resource object
383 bool retval
= self
->Load(wxT("memory:") + filename
);
388 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
391 wxPyXmlSubclassFactory() {}
392 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
396 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
398 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
399 // callbacks, as well as to make some protected things public so they can
401 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
403 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
404 //~wxPyXmlResourceHandler();
406 // Base class virtuals
408 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
409 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
412 // accessors for protected members
414 wxXmlResource
* GetResource() { return m_resource
; }
415 wxXmlNode
* GetNode() { return m_node
; }
416 wxString
GetClass() { return m_class
; }
417 wxObject
* GetParent() { return m_parent
; }
418 wxObject
* GetInstance() { return m_instance
; }
419 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
420 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
423 // turn some protected methods into public via delegation
425 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
426 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
428 wxString
GetNodeContent(wxXmlNode
*node
)
429 { return wxXmlResourceHandler::GetNodeContent(node
); }
431 bool HasParam(const wxString
& param
)
432 { return wxXmlResourceHandler::HasParam(param
); }
434 wxXmlNode
*GetParamNode(const wxString
& param
)
435 { return wxXmlResourceHandler::GetParamNode(param
); }
437 wxString
GetParamValue(const wxString
& param
)
438 { return wxXmlResourceHandler::GetParamValue(param
); }
440 void AddStyle(const wxString
& name
, int value
)
441 { wxXmlResourceHandler::AddStyle(name
, value
); }
443 void AddWindowStyles()
444 { wxXmlResourceHandler::AddWindowStyles(); }
446 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
447 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
449 wxString
GetText(const wxString
& param
, bool translate
= True
)
450 { return wxXmlResourceHandler::GetText(param
, translate
); }
453 { return wxXmlResourceHandler::GetID(); }
456 { return wxXmlResourceHandler::GetName(); }
458 bool GetBool(const wxString
& param
, bool defaultv
= False
)
459 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
461 long GetLong( const wxString
& param
, long defaultv
= 0 )
462 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
464 wxColour
GetColour(const wxString
& param
)
465 { return wxXmlResourceHandler::GetColour(param
); }
467 wxSize
GetSize(const wxString
& param
= wxT("size"))
468 { return wxXmlResourceHandler::GetSize(param
); }
470 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
471 { return wxXmlResourceHandler::GetPosition(param
); }
473 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
474 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
476 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
477 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
478 wxSize size
= wxDefaultSize
)
479 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
481 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
482 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
483 wxSize size
= wxDefaultSize
)
484 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
486 wxFont
GetFont(const wxString
& param
= wxT("font"))
487 { return wxXmlResourceHandler::GetFont(param
); }
489 void SetupWindow(wxWindow
*wnd
)
490 { wxXmlResourceHandler::SetupWindow(wnd
); }
492 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
493 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
495 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
496 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
498 wxObject
*CreateResFromNode(wxXmlNode
*node
,
499 wxObject
*parent
, wxObject
*instance
= NULL
)
500 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
502 wxFileSystem
& GetCurFileSystem()
503 { return wxXmlResourceHandler::GetCurFileSystem(); }
509 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
510 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
514 SWIGSTATICINLINE(bool)
515 SWIG_AsBool(PyObject
*obj
)
517 return PyObject_IsTrue(obj
) ? true : false;
521 SWIGSTATICINLINE(int)
522 SWIG_CheckBool(PyObject
* obj
)
525 if (PyErr_Occurred()) {
534 SWIGSTATICINLINE(int)
535 SWIG_CheckLong(PyObject
* obj
)
538 if (PyErr_Occurred()) {
549 static int _wrap_UTF8String_set(PyObject
*_val
) {
550 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
555 static PyObject
*_wrap_UTF8String_get() {
560 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
562 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
569 static int _wrap_StyleString_set(PyObject
*_val
) {
570 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
575 static PyObject
*_wrap_StyleString_get() {
580 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
582 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
589 static int _wrap_SizeString_set(PyObject
*_val
) {
590 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
595 static PyObject
*_wrap_SizeString_get() {
600 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
602 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
609 static int _wrap_PosString_set(PyObject
*_val
) {
610 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
615 static PyObject
*_wrap_PosString_get() {
620 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
622 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
629 static int _wrap_BitmapString_set(PyObject
*_val
) {
630 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
635 static PyObject
*_wrap_BitmapString_get() {
640 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
642 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
649 static int _wrap_IconString_set(PyObject
*_val
) {
650 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
655 static PyObject
*_wrap_IconString_get() {
660 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
662 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
669 static int _wrap_FontString_set(PyObject
*_val
) {
670 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
675 static PyObject
*_wrap_FontString_get() {
680 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
682 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
689 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
692 int arg2
= (int) wxXRC_USE_LOCALE
;
693 wxXmlResource
*result
;
695 PyObject
* obj0
= 0 ;
696 PyObject
* obj1
= 0 ;
698 (char *) "filemask",(char *) "flags", NULL
701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
703 arg1
= wxString_in_helper(obj0
);
704 if (arg1
== NULL
) SWIG_fail
;
708 arg2
= (int) SWIG_AsInt(obj1
);
709 if (PyErr_Occurred()) SWIG_fail
;
712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
713 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
715 wxPyEndAllowThreads(__tstate
);
716 if (PyErr_Occurred()) SWIG_fail
;
718 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
733 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
735 int arg1
= (int) wxXRC_USE_LOCALE
;
736 wxXmlResource
*result
;
737 PyObject
* obj0
= 0 ;
739 (char *) "flags", NULL
742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
744 arg1
= (int) SWIG_AsInt(obj0
);
745 if (PyErr_Occurred()) SWIG_fail
;
748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
749 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
751 wxPyEndAllowThreads(__tstate
);
752 if (PyErr_Occurred()) SWIG_fail
;
754 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
761 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
763 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
764 PyObject
* obj0
= 0 ;
766 (char *) "self", NULL
769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
770 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
771 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
776 wxPyEndAllowThreads(__tstate
);
777 if (PyErr_Occurred()) SWIG_fail
;
779 Py_INCREF(Py_None
); resultobj
= Py_None
;
786 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
788 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
792 PyObject
* obj0
= 0 ;
793 PyObject
* obj1
= 0 ;
795 (char *) "self",(char *) "filemask", NULL
798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
799 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
800 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
802 arg2
= wxString_in_helper(obj1
);
803 if (arg2
== NULL
) SWIG_fail
;
807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
808 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
810 wxPyEndAllowThreads(__tstate
);
811 if (PyErr_Occurred()) SWIG_fail
;
814 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
830 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
832 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
836 PyObject
* obj0
= 0 ;
837 PyObject
* obj1
= 0 ;
839 (char *) "self",(char *) "data", NULL
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
843 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
844 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
846 arg2
= wxString_in_helper(obj1
);
847 if (arg2
== NULL
) SWIG_fail
;
851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
852 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
854 wxPyEndAllowThreads(__tstate
);
855 if (PyErr_Occurred()) SWIG_fail
;
858 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
874 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
876 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
877 PyObject
* obj0
= 0 ;
879 (char *) "self", NULL
882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
883 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
884 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
887 (arg1
)->InitAllHandlers();
889 wxPyEndAllowThreads(__tstate
);
890 if (PyErr_Occurred()) SWIG_fail
;
892 Py_INCREF(Py_None
); resultobj
= Py_None
;
899 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
901 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
902 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
903 PyObject
* obj0
= 0 ;
904 PyObject
* obj1
= 0 ;
906 (char *) "self",(char *) "handler", NULL
909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
910 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
911 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
912 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
913 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
916 (arg1
)->AddHandler(arg2
);
918 wxPyEndAllowThreads(__tstate
);
919 if (PyErr_Occurred()) SWIG_fail
;
921 Py_INCREF(Py_None
); resultobj
= Py_None
;
928 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
930 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
931 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
932 PyObject
* obj0
= 0 ;
933 PyObject
* obj1
= 0 ;
935 (char *) "self",(char *) "handler", NULL
938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
939 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
940 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
941 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
942 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
945 (arg1
)->InsertHandler(arg2
);
947 wxPyEndAllowThreads(__tstate
);
948 if (PyErr_Occurred()) SWIG_fail
;
950 Py_INCREF(Py_None
); resultobj
= Py_None
;
957 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
959 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
960 PyObject
* obj0
= 0 ;
962 (char *) "self", NULL
965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
966 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
967 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
970 (arg1
)->ClearHandlers();
972 wxPyEndAllowThreads(__tstate
);
973 if (PyErr_Occurred()) SWIG_fail
;
975 Py_INCREF(Py_None
); resultobj
= Py_None
;
982 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
984 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
985 PyObject
* obj0
= 0 ;
987 (char *) "factory", NULL
990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
991 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
992 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
995 wxXmlResource::AddSubclassFactory(arg1
);
997 wxPyEndAllowThreads(__tstate
);
998 if (PyErr_Occurred()) SWIG_fail
;
1000 Py_INCREF(Py_None
); resultobj
= Py_None
;
1007 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
*resultobj
;
1009 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1010 wxString
*arg2
= 0 ;
1012 bool temp2
= False
;
1013 PyObject
* obj0
= 0 ;
1014 PyObject
* obj1
= 0 ;
1016 (char *) "self",(char *) "name", NULL
1019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1020 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1021 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1023 arg2
= wxString_in_helper(obj1
);
1024 if (arg2
== NULL
) SWIG_fail
;
1028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1029 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1031 wxPyEndAllowThreads(__tstate
);
1032 if (PyErr_Occurred()) SWIG_fail
;
1035 resultobj
= wxPyMake_wxObject(result
);
1051 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1052 PyObject
*resultobj
;
1053 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1054 wxString
*arg2
= 0 ;
1056 bool temp2
= False
;
1057 PyObject
* obj0
= 0 ;
1058 PyObject
* obj1
= 0 ;
1060 (char *) "self",(char *) "name", NULL
1063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1064 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1065 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1067 arg2
= wxString_in_helper(obj1
);
1068 if (arg2
== NULL
) SWIG_fail
;
1072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1073 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1075 wxPyEndAllowThreads(__tstate
);
1076 if (PyErr_Occurred()) SWIG_fail
;
1079 resultobj
= wxPyMake_wxObject(result
);
1095 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1096 PyObject
*resultobj
;
1097 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1098 wxWindow
*arg2
= (wxWindow
*) 0 ;
1099 wxString
*arg3
= 0 ;
1101 bool temp3
= False
;
1102 PyObject
* obj0
= 0 ;
1103 PyObject
* obj1
= 0 ;
1104 PyObject
* obj2
= 0 ;
1106 (char *) "self",(char *) "parent",(char *) "name", NULL
1109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1110 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1111 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1112 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1113 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1115 arg3
= wxString_in_helper(obj2
);
1116 if (arg3
== NULL
) SWIG_fail
;
1120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1121 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1123 wxPyEndAllowThreads(__tstate
);
1124 if (PyErr_Occurred()) SWIG_fail
;
1127 resultobj
= wxPyMake_wxObject(result
);
1143 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1144 PyObject
*resultobj
;
1145 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1146 wxWindow
*arg2
= (wxWindow
*) 0 ;
1147 wxString
*arg3
= 0 ;
1149 bool temp3
= False
;
1150 PyObject
* obj0
= 0 ;
1151 PyObject
* obj1
= 0 ;
1152 PyObject
* obj2
= 0 ;
1154 (char *) "self",(char *) "parent",(char *) "name", NULL
1157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1158 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1159 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1160 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1161 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1163 arg3
= wxString_in_helper(obj2
);
1164 if (arg3
== NULL
) SWIG_fail
;
1168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1169 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1171 wxPyEndAllowThreads(__tstate
);
1172 if (PyErr_Occurred()) SWIG_fail
;
1175 resultobj
= wxPyMake_wxObject(result
);
1191 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1192 PyObject
*resultobj
;
1193 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1194 wxWindow
*arg2
= (wxWindow
*) 0 ;
1195 wxString
*arg3
= 0 ;
1197 bool temp3
= False
;
1198 PyObject
* obj0
= 0 ;
1199 PyObject
* obj1
= 0 ;
1200 PyObject
* obj2
= 0 ;
1202 (char *) "self",(char *) "parent",(char *) "name", NULL
1205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1206 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1207 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1208 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1209 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1211 arg3
= wxString_in_helper(obj2
);
1212 if (arg3
== NULL
) SWIG_fail
;
1216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1217 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1219 wxPyEndAllowThreads(__tstate
);
1220 if (PyErr_Occurred()) SWIG_fail
;
1222 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDialog
, 0);
1237 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
*resultobj
;
1239 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1240 wxDialog
*arg2
= (wxDialog
*) 0 ;
1241 wxWindow
*arg3
= (wxWindow
*) 0 ;
1242 wxString
*arg4
= 0 ;
1244 bool temp4
= False
;
1245 PyObject
* obj0
= 0 ;
1246 PyObject
* obj1
= 0 ;
1247 PyObject
* obj2
= 0 ;
1248 PyObject
* obj3
= 0 ;
1250 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1254 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1255 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1256 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1257 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1258 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1259 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1261 arg4
= wxString_in_helper(obj3
);
1262 if (arg4
== NULL
) SWIG_fail
;
1266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1267 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1269 wxPyEndAllowThreads(__tstate
);
1270 if (PyErr_Occurred()) SWIG_fail
;
1273 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1289 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
*resultobj
;
1291 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1292 wxWindow
*arg2
= (wxWindow
*) 0 ;
1293 wxString
*arg3
= 0 ;
1295 bool temp3
= False
;
1296 PyObject
* obj0
= 0 ;
1297 PyObject
* obj1
= 0 ;
1298 PyObject
* obj2
= 0 ;
1300 (char *) "self",(char *) "parent",(char *) "name", NULL
1303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1304 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1305 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1306 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1307 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1309 arg3
= wxString_in_helper(obj2
);
1310 if (arg3
== NULL
) SWIG_fail
;
1314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1315 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1317 wxPyEndAllowThreads(__tstate
);
1318 if (PyErr_Occurred()) SWIG_fail
;
1320 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPanel
, 0);
1335 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
*resultobj
;
1337 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1338 wxPanel
*arg2
= (wxPanel
*) 0 ;
1339 wxWindow
*arg3
= (wxWindow
*) 0 ;
1340 wxString
*arg4
= 0 ;
1342 bool temp4
= False
;
1343 PyObject
* obj0
= 0 ;
1344 PyObject
* obj1
= 0 ;
1345 PyObject
* obj2
= 0 ;
1346 PyObject
* obj3
= 0 ;
1348 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1352 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1354 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1355 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1356 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1357 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1359 arg4
= wxString_in_helper(obj3
);
1360 if (arg4
== NULL
) SWIG_fail
;
1364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1365 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1367 wxPyEndAllowThreads(__tstate
);
1368 if (PyErr_Occurred()) SWIG_fail
;
1371 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1387 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1388 PyObject
*resultobj
;
1389 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1390 wxWindow
*arg2
= (wxWindow
*) 0 ;
1391 wxString
*arg3
= 0 ;
1393 bool temp3
= False
;
1394 PyObject
* obj0
= 0 ;
1395 PyObject
* obj1
= 0 ;
1396 PyObject
* obj2
= 0 ;
1398 (char *) "self",(char *) "parent",(char *) "name", NULL
1401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1402 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1403 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1404 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1405 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1407 arg3
= wxString_in_helper(obj2
);
1408 if (arg3
== NULL
) SWIG_fail
;
1412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1413 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1415 wxPyEndAllowThreads(__tstate
);
1416 if (PyErr_Occurred()) SWIG_fail
;
1419 resultobj
= wxPyMake_wxObject(result
);
1435 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1436 PyObject
*resultobj
;
1437 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1438 wxFrame
*arg2
= (wxFrame
*) 0 ;
1439 wxWindow
*arg3
= (wxWindow
*) 0 ;
1440 wxString
*arg4
= 0 ;
1442 bool temp4
= False
;
1443 PyObject
* obj0
= 0 ;
1444 PyObject
* obj1
= 0 ;
1445 PyObject
* obj2
= 0 ;
1446 PyObject
* obj3
= 0 ;
1448 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1452 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1453 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1454 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1455 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1456 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1457 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1459 arg4
= wxString_in_helper(obj3
);
1460 if (arg4
== NULL
) SWIG_fail
;
1464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1465 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1467 wxPyEndAllowThreads(__tstate
);
1468 if (PyErr_Occurred()) SWIG_fail
;
1471 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1487 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1488 PyObject
*resultobj
;
1489 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1490 wxWindow
*arg2
= (wxWindow
*) 0 ;
1491 wxString
*arg3
= 0 ;
1492 wxString
*arg4
= 0 ;
1494 bool temp3
= False
;
1495 bool temp4
= False
;
1496 PyObject
* obj0
= 0 ;
1497 PyObject
* obj1
= 0 ;
1498 PyObject
* obj2
= 0 ;
1499 PyObject
* obj3
= 0 ;
1501 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1505 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1506 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1507 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1508 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1510 arg3
= wxString_in_helper(obj2
);
1511 if (arg3
== NULL
) SWIG_fail
;
1515 arg4
= wxString_in_helper(obj3
);
1516 if (arg4
== NULL
) SWIG_fail
;
1520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1521 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1523 wxPyEndAllowThreads(__tstate
);
1524 if (PyErr_Occurred()) SWIG_fail
;
1527 resultobj
= wxPyMake_wxObject(result
);
1551 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1552 PyObject
*resultobj
;
1553 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1554 wxObject
*arg2
= (wxObject
*) 0 ;
1555 wxWindow
*arg3
= (wxWindow
*) 0 ;
1556 wxString
*arg4
= 0 ;
1557 wxString
*arg5
= 0 ;
1559 bool temp4
= False
;
1560 bool temp5
= False
;
1561 PyObject
* obj0
= 0 ;
1562 PyObject
* obj1
= 0 ;
1563 PyObject
* obj2
= 0 ;
1564 PyObject
* obj3
= 0 ;
1565 PyObject
* obj4
= 0 ;
1567 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1571 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1572 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1573 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1574 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1575 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1576 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1578 arg4
= wxString_in_helper(obj3
);
1579 if (arg4
== NULL
) SWIG_fail
;
1583 arg5
= wxString_in_helper(obj4
);
1584 if (arg5
== NULL
) SWIG_fail
;
1588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1589 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1591 wxPyEndAllowThreads(__tstate
);
1592 if (PyErr_Occurred()) SWIG_fail
;
1595 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1619 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1620 PyObject
*resultobj
;
1621 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1622 wxString
*arg2
= 0 ;
1624 bool temp2
= False
;
1625 PyObject
* obj0
= 0 ;
1626 PyObject
* obj1
= 0 ;
1628 (char *) "self",(char *) "name", NULL
1631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1632 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1633 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1635 arg2
= wxString_in_helper(obj1
);
1636 if (arg2
== NULL
) SWIG_fail
;
1640 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1641 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1643 wxPyEndAllowThreads(__tstate
);
1644 if (PyErr_Occurred()) SWIG_fail
;
1647 wxBitmap
* resultptr
;
1648 resultptr
= new wxBitmap((wxBitmap
&) result
);
1649 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1665 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
*resultobj
;
1667 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1668 wxString
*arg2
= 0 ;
1670 bool temp2
= False
;
1671 PyObject
* obj0
= 0 ;
1672 PyObject
* obj1
= 0 ;
1674 (char *) "self",(char *) "name", NULL
1677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1678 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1679 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1681 arg2
= wxString_in_helper(obj1
);
1682 if (arg2
== NULL
) SWIG_fail
;
1686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1687 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1689 wxPyEndAllowThreads(__tstate
);
1690 if (PyErr_Occurred()) SWIG_fail
;
1694 resultptr
= new wxIcon((wxIcon
&) result
);
1695 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1711 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1712 PyObject
*resultobj
;
1713 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1714 wxString
*arg2
= 0 ;
1715 wxWindow
*arg3
= (wxWindow
*) 0 ;
1716 wxWindow
*arg4
= (wxWindow
*) NULL
;
1718 bool temp2
= False
;
1719 PyObject
* obj0
= 0 ;
1720 PyObject
* obj1
= 0 ;
1721 PyObject
* obj2
= 0 ;
1722 PyObject
* obj3
= 0 ;
1724 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1728 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1729 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1731 arg2
= wxString_in_helper(obj1
);
1732 if (arg2
== NULL
) SWIG_fail
;
1735 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1736 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1738 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1739 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1743 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1745 wxPyEndAllowThreads(__tstate
);
1746 if (PyErr_Occurred()) SWIG_fail
;
1749 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1765 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1766 PyObject
*resultobj
;
1767 wxString
*arg1
= 0 ;
1769 bool temp1
= False
;
1770 PyObject
* obj0
= 0 ;
1772 (char *) "str_id", NULL
1775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1777 arg1
= wxString_in_helper(obj0
);
1778 if (arg1
== NULL
) SWIG_fail
;
1782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1783 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1785 wxPyEndAllowThreads(__tstate
);
1786 if (PyErr_Occurred()) SWIG_fail
;
1788 resultobj
= SWIG_FromInt((int)result
);
1803 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1804 PyObject
*resultobj
;
1805 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1807 PyObject
* obj0
= 0 ;
1809 (char *) "self", NULL
1812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1813 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1814 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1817 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1819 wxPyEndAllowThreads(__tstate
);
1820 if (PyErr_Occurred()) SWIG_fail
;
1822 resultobj
= SWIG_FromLong((long)result
);
1829 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1830 PyObject
*resultobj
;
1831 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1837 PyObject
* obj0
= 0 ;
1838 PyObject
* obj1
= 0 ;
1839 PyObject
* obj2
= 0 ;
1840 PyObject
* obj3
= 0 ;
1841 PyObject
* obj4
= 0 ;
1843 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1847 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1848 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1849 arg2
= (int) SWIG_AsInt(obj1
);
1850 if (PyErr_Occurred()) SWIG_fail
;
1851 arg3
= (int) SWIG_AsInt(obj2
);
1852 if (PyErr_Occurred()) SWIG_fail
;
1853 arg4
= (int) SWIG_AsInt(obj3
);
1854 if (PyErr_Occurred()) SWIG_fail
;
1855 arg5
= (int) SWIG_AsInt(obj4
);
1856 if (PyErr_Occurred()) SWIG_fail
;
1858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1859 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1861 wxPyEndAllowThreads(__tstate
);
1862 if (PyErr_Occurred()) SWIG_fail
;
1864 resultobj
= SWIG_FromInt((int)result
);
1871 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
*resultobj
;
1873 wxXmlResource
*result
;
1878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1881 result
= (wxXmlResource
*)wxXmlResource::Get();
1883 wxPyEndAllowThreads(__tstate
);
1884 if (PyErr_Occurred()) SWIG_fail
;
1886 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1893 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1894 PyObject
*resultobj
;
1895 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1896 wxXmlResource
*result
;
1897 PyObject
* obj0
= 0 ;
1899 (char *) "res", NULL
1902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1903 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1904 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1906 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1907 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1909 wxPyEndAllowThreads(__tstate
);
1910 if (PyErr_Occurred()) SWIG_fail
;
1912 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1919 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1920 PyObject
*resultobj
;
1921 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1923 PyObject
* obj0
= 0 ;
1925 (char *) "self", NULL
1928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1929 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1930 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1933 result
= (int)(arg1
)->GetFlags();
1935 wxPyEndAllowThreads(__tstate
);
1936 if (PyErr_Occurred()) SWIG_fail
;
1938 resultobj
= SWIG_FromInt((int)result
);
1945 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1946 PyObject
*resultobj
;
1947 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1949 PyObject
* obj0
= 0 ;
1950 PyObject
* obj1
= 0 ;
1952 (char *) "self",(char *) "flags", NULL
1955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1956 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1957 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1958 arg2
= (int) SWIG_AsInt(obj1
);
1959 if (PyErr_Occurred()) SWIG_fail
;
1961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1962 (arg1
)->SetFlags(arg2
);
1964 wxPyEndAllowThreads(__tstate
);
1965 if (PyErr_Occurred()) SWIG_fail
;
1967 Py_INCREF(Py_None
); resultobj
= Py_None
;
1974 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1976 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1977 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1979 return Py_BuildValue((char *)"");
1981 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1982 PyObject
*resultobj
;
1983 wxPyXmlSubclassFactory
*result
;
1988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1991 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1993 wxPyEndAllowThreads(__tstate
);
1994 if (PyErr_Occurred()) SWIG_fail
;
1996 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2003 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
*resultobj
;
2005 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2006 PyObject
*arg2
= (PyObject
*) 0 ;
2007 PyObject
*arg3
= (PyObject
*) 0 ;
2008 PyObject
* obj0
= 0 ;
2009 PyObject
* obj1
= 0 ;
2010 PyObject
* obj2
= 0 ;
2012 (char *) "self",(char *) "self",(char *) "_class", NULL
2015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2016 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2017 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) SWIG_fail
;
2027 Py_INCREF(Py_None
); resultobj
= Py_None
;
2034 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
2036 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2037 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2039 return Py_BuildValue((char *)"");
2041 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2042 PyObject
*resultobj
;
2043 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2044 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2045 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2046 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2047 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2048 wxXmlProperty
*result
;
2049 bool temp1
= False
;
2050 bool temp2
= False
;
2051 PyObject
* obj0
= 0 ;
2052 PyObject
* obj1
= 0 ;
2053 PyObject
* obj2
= 0 ;
2055 (char *) "name",(char *) "value",(char *) "next", NULL
2058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2061 arg1
= wxString_in_helper(obj0
);
2062 if (arg1
== NULL
) SWIG_fail
;
2068 arg2
= wxString_in_helper(obj1
);
2069 if (arg2
== NULL
) SWIG_fail
;
2074 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2075 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2079 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2081 wxPyEndAllowThreads(__tstate
);
2082 if (PyErr_Occurred()) SWIG_fail
;
2084 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2107 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2108 PyObject
*resultobj
;
2109 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2111 PyObject
* obj0
= 0 ;
2113 (char *) "self", NULL
2116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2117 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2118 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) SWIG_fail
;
2128 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2130 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2139 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2140 PyObject
*resultobj
;
2141 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2143 PyObject
* obj0
= 0 ;
2145 (char *) "self", NULL
2148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2149 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2150 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2153 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2155 wxPyEndAllowThreads(__tstate
);
2156 if (PyErr_Occurred()) SWIG_fail
;
2160 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2162 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2171 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
*resultobj
;
2173 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2174 wxXmlProperty
*result
;
2175 PyObject
* obj0
= 0 ;
2177 (char *) "self", NULL
2180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2181 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2182 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2185 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2187 wxPyEndAllowThreads(__tstate
);
2188 if (PyErr_Occurred()) SWIG_fail
;
2190 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2197 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
*resultobj
;
2199 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2200 wxString
*arg2
= 0 ;
2201 bool temp2
= False
;
2202 PyObject
* obj0
= 0 ;
2203 PyObject
* obj1
= 0 ;
2205 (char *) "self",(char *) "name", NULL
2208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2209 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2210 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2212 arg2
= wxString_in_helper(obj1
);
2213 if (arg2
== NULL
) SWIG_fail
;
2217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2218 (arg1
)->SetName((wxString
const &)*arg2
);
2220 wxPyEndAllowThreads(__tstate
);
2221 if (PyErr_Occurred()) SWIG_fail
;
2223 Py_INCREF(Py_None
); resultobj
= Py_None
;
2238 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
*resultobj
;
2240 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2241 wxString
*arg2
= 0 ;
2242 bool temp2
= False
;
2243 PyObject
* obj0
= 0 ;
2244 PyObject
* obj1
= 0 ;
2246 (char *) "self",(char *) "value", NULL
2249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2250 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2251 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2253 arg2
= wxString_in_helper(obj1
);
2254 if (arg2
== NULL
) SWIG_fail
;
2258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2259 (arg1
)->SetValue((wxString
const &)*arg2
);
2261 wxPyEndAllowThreads(__tstate
);
2262 if (PyErr_Occurred()) SWIG_fail
;
2264 Py_INCREF(Py_None
); resultobj
= Py_None
;
2279 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2280 PyObject
*resultobj
;
2281 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2282 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2283 PyObject
* obj0
= 0 ;
2284 PyObject
* obj1
= 0 ;
2286 (char *) "self",(char *) "next", NULL
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2290 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2291 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2292 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2293 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2296 (arg1
)->SetNext(arg2
);
2298 wxPyEndAllowThreads(__tstate
);
2299 if (PyErr_Occurred()) SWIG_fail
;
2301 Py_INCREF(Py_None
); resultobj
= Py_None
;
2308 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2310 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2311 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2313 return Py_BuildValue((char *)"");
2315 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
*resultobj
;
2317 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2318 int arg2
= (int) 0 ;
2319 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2320 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2321 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2322 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2323 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2324 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2326 bool temp3
= False
;
2327 bool temp4
= False
;
2328 PyObject
* obj0
= 0 ;
2329 PyObject
* obj1
= 0 ;
2330 PyObject
* obj2
= 0 ;
2331 PyObject
* obj3
= 0 ;
2332 PyObject
* obj4
= 0 ;
2333 PyObject
* obj5
= 0 ;
2335 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2340 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2341 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2344 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
2345 if (PyErr_Occurred()) SWIG_fail
;
2349 arg3
= wxString_in_helper(obj2
);
2350 if (arg3
== NULL
) SWIG_fail
;
2356 arg4
= wxString_in_helper(obj3
);
2357 if (arg4
== NULL
) SWIG_fail
;
2362 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2363 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2366 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2367 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2371 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2373 wxPyEndAllowThreads(__tstate
);
2374 if (PyErr_Occurred()) SWIG_fail
;
2376 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2399 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2400 PyObject
*resultobj
;
2401 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2402 PyObject
* obj0
= 0 ;
2404 (char *) "self", NULL
2407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2408 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2409 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2414 wxPyEndAllowThreads(__tstate
);
2415 if (PyErr_Occurred()) SWIG_fail
;
2417 Py_INCREF(Py_None
); resultobj
= Py_None
;
2424 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2425 PyObject
*resultobj
;
2427 wxString
*arg2
= 0 ;
2428 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2429 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2431 bool temp2
= False
;
2432 bool temp3
= False
;
2433 PyObject
* obj0
= 0 ;
2434 PyObject
* obj1
= 0 ;
2435 PyObject
* obj2
= 0 ;
2437 (char *) "type",(char *) "name",(char *) "content", NULL
2440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2441 arg1
= (wxXmlNodeType
) SWIG_AsInt(obj0
);
2442 if (PyErr_Occurred()) SWIG_fail
;
2444 arg2
= wxString_in_helper(obj1
);
2445 if (arg2
== NULL
) SWIG_fail
;
2450 arg3
= wxString_in_helper(obj2
);
2451 if (arg3
== NULL
) SWIG_fail
;
2456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2457 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2459 wxPyEndAllowThreads(__tstate
);
2460 if (PyErr_Occurred()) SWIG_fail
;
2462 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2485 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2486 PyObject
*resultobj
;
2487 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2488 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2489 PyObject
* obj0
= 0 ;
2490 PyObject
* obj1
= 0 ;
2492 (char *) "self",(char *) "child", NULL
2495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2496 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2497 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2498 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2499 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 (arg1
)->AddChild(arg2
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) SWIG_fail
;
2507 Py_INCREF(Py_None
); resultobj
= Py_None
;
2514 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2515 PyObject
*resultobj
;
2516 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2517 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2518 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2519 PyObject
* obj0
= 0 ;
2520 PyObject
* obj1
= 0 ;
2521 PyObject
* obj2
= 0 ;
2523 (char *) "self",(char *) "child",(char *) "before_node", NULL
2526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2527 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2528 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2529 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2530 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2531 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2532 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2535 (arg1
)->InsertChild(arg2
,arg3
);
2537 wxPyEndAllowThreads(__tstate
);
2538 if (PyErr_Occurred()) SWIG_fail
;
2540 Py_INCREF(Py_None
); resultobj
= Py_None
;
2547 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2548 PyObject
*resultobj
;
2549 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2550 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2552 PyObject
* obj0
= 0 ;
2553 PyObject
* obj1
= 0 ;
2555 (char *) "self",(char *) "child", NULL
2558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2559 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2560 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2561 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2562 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2565 result
= (bool)(arg1
)->RemoveChild(arg2
);
2567 wxPyEndAllowThreads(__tstate
);
2568 if (PyErr_Occurred()) SWIG_fail
;
2571 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2579 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2580 PyObject
*resultobj
;
2581 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2582 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2583 PyObject
* obj0
= 0 ;
2584 PyObject
* obj1
= 0 ;
2586 (char *) "self",(char *) "prop", NULL
2589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2590 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2591 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2592 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2593 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2596 (arg1
)->AddProperty(arg2
);
2598 wxPyEndAllowThreads(__tstate
);
2599 if (PyErr_Occurred()) SWIG_fail
;
2601 Py_INCREF(Py_None
); resultobj
= Py_None
;
2608 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2609 PyObject
*resultobj
;
2610 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2611 wxString
*arg2
= 0 ;
2612 wxString
*arg3
= 0 ;
2613 bool temp2
= False
;
2614 bool temp3
= False
;
2615 PyObject
* obj0
= 0 ;
2616 PyObject
* obj1
= 0 ;
2617 PyObject
* obj2
= 0 ;
2619 (char *) "self",(char *) "name",(char *) "value", NULL
2622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2623 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2624 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2626 arg2
= wxString_in_helper(obj1
);
2627 if (arg2
== NULL
) SWIG_fail
;
2631 arg3
= wxString_in_helper(obj2
);
2632 if (arg3
== NULL
) SWIG_fail
;
2636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2637 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2639 wxPyEndAllowThreads(__tstate
);
2640 if (PyErr_Occurred()) SWIG_fail
;
2642 Py_INCREF(Py_None
); resultobj
= Py_None
;
2665 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2666 PyObject
*resultobj
;
2667 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2668 wxString
*arg2
= 0 ;
2670 bool temp2
= False
;
2671 PyObject
* obj0
= 0 ;
2672 PyObject
* obj1
= 0 ;
2674 (char *) "self",(char *) "name", NULL
2677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2678 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2679 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2681 arg2
= wxString_in_helper(obj1
);
2682 if (arg2
== NULL
) SWIG_fail
;
2686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2687 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2689 wxPyEndAllowThreads(__tstate
);
2690 if (PyErr_Occurred()) SWIG_fail
;
2693 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2709 static PyObject
*_wrap_XmlNode_GetType(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_GetType",kwnames
,&obj0
)) goto fail
;
2719 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2720 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2723 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2725 wxPyEndAllowThreads(__tstate
);
2726 if (PyErr_Occurred()) SWIG_fail
;
2728 resultobj
= SWIG_FromInt((int)result
);
2735 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
*resultobj
;
2737 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2739 PyObject
* obj0
= 0 ;
2741 (char *) "self", NULL
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2745 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2746 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2749 result
= ((wxXmlNode
const *)arg1
)->GetName();
2751 wxPyEndAllowThreads(__tstate
);
2752 if (PyErr_Occurred()) SWIG_fail
;
2756 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2758 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2767 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2768 PyObject
*resultobj
;
2769 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2771 PyObject
* obj0
= 0 ;
2773 (char *) "self", NULL
2776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2777 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2778 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2781 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2783 wxPyEndAllowThreads(__tstate
);
2784 if (PyErr_Occurred()) SWIG_fail
;
2788 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2790 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2799 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2800 PyObject
*resultobj
;
2801 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2803 PyObject
* obj0
= 0 ;
2805 (char *) "self", NULL
2808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2809 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2810 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2813 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2815 wxPyEndAllowThreads(__tstate
);
2816 if (PyErr_Occurred()) SWIG_fail
;
2818 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2825 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2826 PyObject
*resultobj
;
2827 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2829 PyObject
* obj0
= 0 ;
2831 (char *) "self", NULL
2834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2835 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2836 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2839 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2841 wxPyEndAllowThreads(__tstate
);
2842 if (PyErr_Occurred()) SWIG_fail
;
2844 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2851 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2852 PyObject
*resultobj
;
2853 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2855 PyObject
* obj0
= 0 ;
2857 (char *) "self", NULL
2860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2861 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2862 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2865 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2867 wxPyEndAllowThreads(__tstate
);
2868 if (PyErr_Occurred()) SWIG_fail
;
2870 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2877 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2878 PyObject
*resultobj
;
2879 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2880 wxXmlProperty
*result
;
2881 PyObject
* obj0
= 0 ;
2883 (char *) "self", NULL
2886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2887 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2888 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2891 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2893 wxPyEndAllowThreads(__tstate
);
2894 if (PyErr_Occurred()) SWIG_fail
;
2896 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2903 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
*resultobj
;
2905 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2906 wxString
*arg2
= 0 ;
2907 wxString
*arg3
= 0 ;
2909 bool temp2
= False
;
2910 bool temp3
= False
;
2911 PyObject
* obj0
= 0 ;
2912 PyObject
* obj1
= 0 ;
2913 PyObject
* obj2
= 0 ;
2915 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2919 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2920 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2922 arg2
= wxString_in_helper(obj1
);
2923 if (arg2
== NULL
) SWIG_fail
;
2927 arg3
= wxString_in_helper(obj2
);
2928 if (arg3
== NULL
) SWIG_fail
;
2932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2933 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2935 wxPyEndAllowThreads(__tstate
);
2936 if (PyErr_Occurred()) SWIG_fail
;
2940 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2942 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2967 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2968 PyObject
*resultobj
;
2969 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2970 wxString
*arg2
= 0 ;
2972 bool temp2
= False
;
2973 PyObject
* obj0
= 0 ;
2974 PyObject
* obj1
= 0 ;
2976 (char *) "self",(char *) "propName", NULL
2979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2980 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2981 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2983 arg2
= wxString_in_helper(obj1
);
2984 if (arg2
== NULL
) SWIG_fail
;
2988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2989 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2991 wxPyEndAllowThreads(__tstate
);
2992 if (PyErr_Occurred()) SWIG_fail
;
2995 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3011 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3012 PyObject
*resultobj
;
3013 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3015 PyObject
* obj0
= 0 ;
3016 PyObject
* obj1
= 0 ;
3018 (char *) "self",(char *) "type", NULL
3021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3022 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3023 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3024 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
3025 if (PyErr_Occurred()) SWIG_fail
;
3027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3028 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3030 wxPyEndAllowThreads(__tstate
);
3031 if (PyErr_Occurred()) SWIG_fail
;
3033 Py_INCREF(Py_None
); resultobj
= Py_None
;
3040 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3041 PyObject
*resultobj
;
3042 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3043 wxString
*arg2
= 0 ;
3044 bool temp2
= False
;
3045 PyObject
* obj0
= 0 ;
3046 PyObject
* obj1
= 0 ;
3048 (char *) "self",(char *) "name", NULL
3051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3052 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3053 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3055 arg2
= wxString_in_helper(obj1
);
3056 if (arg2
== NULL
) SWIG_fail
;
3060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3061 (arg1
)->SetName((wxString
const &)*arg2
);
3063 wxPyEndAllowThreads(__tstate
);
3064 if (PyErr_Occurred()) SWIG_fail
;
3066 Py_INCREF(Py_None
); resultobj
= Py_None
;
3081 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3082 PyObject
*resultobj
;
3083 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3084 wxString
*arg2
= 0 ;
3085 bool temp2
= False
;
3086 PyObject
* obj0
= 0 ;
3087 PyObject
* obj1
= 0 ;
3089 (char *) "self",(char *) "con", NULL
3092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3093 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3094 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3096 arg2
= wxString_in_helper(obj1
);
3097 if (arg2
== NULL
) SWIG_fail
;
3101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3102 (arg1
)->SetContent((wxString
const &)*arg2
);
3104 wxPyEndAllowThreads(__tstate
);
3105 if (PyErr_Occurred()) SWIG_fail
;
3107 Py_INCREF(Py_None
); resultobj
= Py_None
;
3122 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3123 PyObject
*resultobj
;
3124 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3125 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3126 PyObject
* obj0
= 0 ;
3127 PyObject
* obj1
= 0 ;
3129 (char *) "self",(char *) "parent", NULL
3132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3133 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3134 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3135 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3136 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3139 (arg1
)->SetParent(arg2
);
3141 wxPyEndAllowThreads(__tstate
);
3142 if (PyErr_Occurred()) SWIG_fail
;
3144 Py_INCREF(Py_None
); resultobj
= Py_None
;
3151 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3152 PyObject
*resultobj
;
3153 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3154 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3155 PyObject
* obj0
= 0 ;
3156 PyObject
* obj1
= 0 ;
3158 (char *) "self",(char *) "next", NULL
3161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3162 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3163 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3164 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3165 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3168 (arg1
)->SetNext(arg2
);
3170 wxPyEndAllowThreads(__tstate
);
3171 if (PyErr_Occurred()) SWIG_fail
;
3173 Py_INCREF(Py_None
); resultobj
= Py_None
;
3180 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3181 PyObject
*resultobj
;
3182 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3183 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3184 PyObject
* obj0
= 0 ;
3185 PyObject
* obj1
= 0 ;
3187 (char *) "self",(char *) "child", NULL
3190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3191 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3192 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3193 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3194 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3197 (arg1
)->SetChildren(arg2
);
3199 wxPyEndAllowThreads(__tstate
);
3200 if (PyErr_Occurred()) SWIG_fail
;
3202 Py_INCREF(Py_None
); resultobj
= Py_None
;
3209 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3210 PyObject
*resultobj
;
3211 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3212 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3213 PyObject
* obj0
= 0 ;
3214 PyObject
* obj1
= 0 ;
3216 (char *) "self",(char *) "prop", NULL
3219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3220 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3221 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3222 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3223 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3226 (arg1
)->SetProperties(arg2
);
3228 wxPyEndAllowThreads(__tstate
);
3229 if (PyErr_Occurred()) SWIG_fail
;
3231 Py_INCREF(Py_None
); resultobj
= Py_None
;
3238 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3240 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3241 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3243 return Py_BuildValue((char *)"");
3245 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3246 PyObject
*resultobj
;
3247 wxString
*arg1
= 0 ;
3248 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3249 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3250 wxXmlDocument
*result
;
3251 bool temp1
= False
;
3252 bool temp2
= False
;
3253 PyObject
* obj0
= 0 ;
3254 PyObject
* obj1
= 0 ;
3256 (char *) "filename",(char *) "encoding", NULL
3259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3261 arg1
= wxString_in_helper(obj0
);
3262 if (arg1
== NULL
) SWIG_fail
;
3267 arg2
= wxString_in_helper(obj1
);
3268 if (arg2
== NULL
) SWIG_fail
;
3273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3274 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3276 wxPyEndAllowThreads(__tstate
);
3277 if (PyErr_Occurred()) SWIG_fail
;
3279 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3302 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3303 PyObject
*resultobj
;
3304 wxInputStream
*arg1
= 0 ;
3305 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3306 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3307 wxXmlDocument
*result
;
3308 wxPyInputStream
*temp1
;
3310 bool temp2
= False
;
3311 PyObject
* obj0
= 0 ;
3312 PyObject
* obj1
= 0 ;
3314 (char *) "stream",(char *) "encoding", NULL
3317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3319 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3320 arg1
= temp1
->m_wxis
;
3323 PyErr_Clear(); // clear the failure of the wxPyConvert above
3324 arg1
= wxPyCBInputStream_create(obj0
, False
);
3326 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3334 arg2
= wxString_in_helper(obj1
);
3335 if (arg2
== NULL
) SWIG_fail
;
3340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3341 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3343 wxPyEndAllowThreads(__tstate
);
3344 if (PyErr_Occurred()) SWIG_fail
;
3346 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3369 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3370 PyObject
*resultobj
;
3371 wxXmlDocument
*result
;
3376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3379 result
= (wxXmlDocument
*)new wxXmlDocument();
3381 wxPyEndAllowThreads(__tstate
);
3382 if (PyErr_Occurred()) SWIG_fail
;
3384 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3391 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3392 PyObject
*resultobj
;
3393 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3394 PyObject
* obj0
= 0 ;
3396 (char *) "self", NULL
3399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3400 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3401 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3406 wxPyEndAllowThreads(__tstate
);
3407 if (PyErr_Occurred()) SWIG_fail
;
3409 Py_INCREF(Py_None
); resultobj
= Py_None
;
3416 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3417 PyObject
*resultobj
;
3418 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3419 wxString
*arg2
= 0 ;
3420 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3421 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3423 bool temp2
= False
;
3424 bool temp3
= False
;
3425 PyObject
* obj0
= 0 ;
3426 PyObject
* obj1
= 0 ;
3427 PyObject
* obj2
= 0 ;
3429 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3433 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3434 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3436 arg2
= wxString_in_helper(obj1
);
3437 if (arg2
== NULL
) SWIG_fail
;
3442 arg3
= wxString_in_helper(obj2
);
3443 if (arg3
== NULL
) SWIG_fail
;
3448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3449 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3451 wxPyEndAllowThreads(__tstate
);
3452 if (PyErr_Occurred()) SWIG_fail
;
3455 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3479 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3480 PyObject
*resultobj
;
3481 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3482 wxInputStream
*arg2
= 0 ;
3483 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3484 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3486 wxPyInputStream
*temp2
;
3488 bool temp3
= False
;
3489 PyObject
* obj0
= 0 ;
3490 PyObject
* obj1
= 0 ;
3491 PyObject
* obj2
= 0 ;
3493 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3497 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3498 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3500 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3501 arg2
= temp2
->m_wxis
;
3504 PyErr_Clear(); // clear the failure of the wxPyConvert above
3505 arg2
= wxPyCBInputStream_create(obj1
, False
);
3507 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3515 arg3
= wxString_in_helper(obj2
);
3516 if (arg3
== NULL
) SWIG_fail
;
3521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3522 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3524 wxPyEndAllowThreads(__tstate
);
3525 if (PyErr_Occurred()) SWIG_fail
;
3528 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3552 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3553 PyObject
*resultobj
;
3554 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3555 wxString
*arg2
= 0 ;
3557 bool temp2
= False
;
3558 PyObject
* obj0
= 0 ;
3559 PyObject
* obj1
= 0 ;
3561 (char *) "self",(char *) "filename", NULL
3564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3565 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3566 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3568 arg2
= wxString_in_helper(obj1
);
3569 if (arg2
== NULL
) SWIG_fail
;
3573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3574 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3576 wxPyEndAllowThreads(__tstate
);
3577 if (PyErr_Occurred()) SWIG_fail
;
3580 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3596 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3597 PyObject
*resultobj
;
3598 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3599 wxOutputStream
*arg2
= 0 ;
3601 PyObject
* obj0
= 0 ;
3602 PyObject
* obj1
= 0 ;
3604 (char *) "self",(char *) "stream", NULL
3607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3608 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3609 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3610 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3611 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3614 PyErr_SetString(PyExc_TypeError
,"null reference");
3618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3619 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3621 wxPyEndAllowThreads(__tstate
);
3622 if (PyErr_Occurred()) SWIG_fail
;
3625 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3633 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3634 PyObject
*resultobj
;
3635 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3637 PyObject
* obj0
= 0 ;
3639 (char *) "self", NULL
3642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3643 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3644 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3647 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3649 wxPyEndAllowThreads(__tstate
);
3650 if (PyErr_Occurred()) SWIG_fail
;
3653 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3661 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3662 PyObject
*resultobj
;
3663 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3665 PyObject
* obj0
= 0 ;
3667 (char *) "self", NULL
3670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3671 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3672 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3675 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3677 wxPyEndAllowThreads(__tstate
);
3678 if (PyErr_Occurred()) SWIG_fail
;
3680 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3687 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3688 PyObject
*resultobj
;
3689 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3691 PyObject
* obj0
= 0 ;
3693 (char *) "self", NULL
3696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3697 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3698 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3701 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3703 wxPyEndAllowThreads(__tstate
);
3704 if (PyErr_Occurred()) SWIG_fail
;
3708 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3710 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3719 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3720 PyObject
*resultobj
;
3721 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3723 PyObject
* obj0
= 0 ;
3725 (char *) "self", NULL
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3729 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3730 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3733 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3735 wxPyEndAllowThreads(__tstate
);
3736 if (PyErr_Occurred()) SWIG_fail
;
3740 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3742 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3751 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3752 PyObject
*resultobj
;
3753 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3754 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3755 PyObject
* obj0
= 0 ;
3756 PyObject
* obj1
= 0 ;
3758 (char *) "self",(char *) "node", NULL
3761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3762 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3763 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3764 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3765 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3768 (arg1
)->SetRoot(arg2
);
3770 wxPyEndAllowThreads(__tstate
);
3771 if (PyErr_Occurred()) SWIG_fail
;
3773 Py_INCREF(Py_None
); resultobj
= Py_None
;
3780 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3781 PyObject
*resultobj
;
3782 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3783 wxString
*arg2
= 0 ;
3784 bool temp2
= False
;
3785 PyObject
* obj0
= 0 ;
3786 PyObject
* obj1
= 0 ;
3788 (char *) "self",(char *) "version", NULL
3791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3792 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3793 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3795 arg2
= wxString_in_helper(obj1
);
3796 if (arg2
== NULL
) SWIG_fail
;
3800 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3801 (arg1
)->SetVersion((wxString
const &)*arg2
);
3803 wxPyEndAllowThreads(__tstate
);
3804 if (PyErr_Occurred()) SWIG_fail
;
3806 Py_INCREF(Py_None
); resultobj
= Py_None
;
3821 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3822 PyObject
*resultobj
;
3823 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3824 wxString
*arg2
= 0 ;
3825 bool temp2
= False
;
3826 PyObject
* obj0
= 0 ;
3827 PyObject
* obj1
= 0 ;
3829 (char *) "self",(char *) "encoding", NULL
3832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3833 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3834 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3836 arg2
= wxString_in_helper(obj1
);
3837 if (arg2
== NULL
) SWIG_fail
;
3841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3842 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3844 wxPyEndAllowThreads(__tstate
);
3845 if (PyErr_Occurred()) SWIG_fail
;
3847 Py_INCREF(Py_None
); resultobj
= Py_None
;
3862 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3864 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3865 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3867 return Py_BuildValue((char *)"");
3869 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3870 PyObject
*resultobj
;
3871 wxPyXmlResourceHandler
*result
;
3876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3879 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3881 wxPyEndAllowThreads(__tstate
);
3882 if (PyErr_Occurred()) SWIG_fail
;
3884 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3891 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3892 PyObject
*resultobj
;
3893 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3894 PyObject
*arg2
= (PyObject
*) 0 ;
3895 PyObject
*arg3
= (PyObject
*) 0 ;
3896 PyObject
* obj0
= 0 ;
3897 PyObject
* obj1
= 0 ;
3898 PyObject
* obj2
= 0 ;
3900 (char *) "self",(char *) "self",(char *) "_class", NULL
3903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3904 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3905 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3910 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3912 wxPyEndAllowThreads(__tstate
);
3913 if (PyErr_Occurred()) SWIG_fail
;
3915 Py_INCREF(Py_None
); resultobj
= Py_None
;
3922 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3923 PyObject
*resultobj
;
3924 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3925 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3926 wxObject
*arg3
= (wxObject
*) 0 ;
3927 wxObject
*arg4
= (wxObject
*) 0 ;
3929 PyObject
* obj0
= 0 ;
3930 PyObject
* obj1
= 0 ;
3931 PyObject
* obj2
= 0 ;
3932 PyObject
* obj3
= 0 ;
3934 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3938 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3939 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3940 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3941 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3942 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
3943 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3944 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
3945 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3948 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3950 wxPyEndAllowThreads(__tstate
);
3951 if (PyErr_Occurred()) SWIG_fail
;
3954 resultobj
= wxPyMake_wxObject(result
);
3962 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3963 PyObject
*resultobj
;
3964 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3965 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3966 PyObject
* obj0
= 0 ;
3967 PyObject
* obj1
= 0 ;
3969 (char *) "self",(char *) "res", NULL
3972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3973 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3974 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3975 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
3976 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3979 (arg1
)->SetParentResource(arg2
);
3981 wxPyEndAllowThreads(__tstate
);
3982 if (PyErr_Occurred()) SWIG_fail
;
3984 Py_INCREF(Py_None
); resultobj
= Py_None
;
3991 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3992 PyObject
*resultobj
;
3993 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3994 wxXmlResource
*result
;
3995 PyObject
* obj0
= 0 ;
3997 (char *) "self", NULL
4000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4001 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4002 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4005 result
= (wxXmlResource
*)(arg1
)->GetResource();
4007 wxPyEndAllowThreads(__tstate
);
4008 if (PyErr_Occurred()) SWIG_fail
;
4010 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4017 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4018 PyObject
*resultobj
;
4019 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4021 PyObject
* obj0
= 0 ;
4023 (char *) "self", NULL
4026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4027 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4028 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4031 result
= (wxXmlNode
*)(arg1
)->GetNode();
4033 wxPyEndAllowThreads(__tstate
);
4034 if (PyErr_Occurred()) SWIG_fail
;
4036 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4043 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4044 PyObject
*resultobj
;
4045 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4047 PyObject
* obj0
= 0 ;
4049 (char *) "self", NULL
4052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4053 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4054 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4057 result
= (arg1
)->GetClass();
4059 wxPyEndAllowThreads(__tstate
);
4060 if (PyErr_Occurred()) SWIG_fail
;
4064 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4066 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4075 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4076 PyObject
*resultobj
;
4077 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4079 PyObject
* obj0
= 0 ;
4081 (char *) "self", NULL
4084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4085 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4086 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4089 result
= (wxObject
*)(arg1
)->GetParent();
4091 wxPyEndAllowThreads(__tstate
);
4092 if (PyErr_Occurred()) SWIG_fail
;
4095 resultobj
= wxPyMake_wxObject(result
);
4103 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4104 PyObject
*resultobj
;
4105 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4107 PyObject
* obj0
= 0 ;
4109 (char *) "self", NULL
4112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4113 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4114 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4117 result
= (wxObject
*)(arg1
)->GetInstance();
4119 wxPyEndAllowThreads(__tstate
);
4120 if (PyErr_Occurred()) SWIG_fail
;
4123 resultobj
= wxPyMake_wxObject(result
);
4131 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4132 PyObject
*resultobj
;
4133 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4135 PyObject
* obj0
= 0 ;
4137 (char *) "self", NULL
4140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4141 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4142 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4145 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4147 wxPyEndAllowThreads(__tstate
);
4148 if (PyErr_Occurred()) SWIG_fail
;
4151 resultobj
= wxPyMake_wxObject(result
);
4159 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4160 PyObject
*resultobj
;
4161 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4163 PyObject
* obj0
= 0 ;
4165 (char *) "self", NULL
4168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4169 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4170 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4173 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4175 wxPyEndAllowThreads(__tstate
);
4176 if (PyErr_Occurred()) SWIG_fail
;
4179 resultobj
= wxPyMake_wxObject(result
);
4187 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4188 PyObject
*resultobj
;
4189 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4190 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4191 wxString
*arg3
= 0 ;
4193 bool temp3
= False
;
4194 PyObject
* obj0
= 0 ;
4195 PyObject
* obj1
= 0 ;
4196 PyObject
* obj2
= 0 ;
4198 (char *) "self",(char *) "node",(char *) "classname", NULL
4201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4202 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4204 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4207 arg3
= wxString_in_helper(obj2
);
4208 if (arg3
== NULL
) SWIG_fail
;
4212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4213 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4215 wxPyEndAllowThreads(__tstate
);
4216 if (PyErr_Occurred()) SWIG_fail
;
4219 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4235 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4236 PyObject
*resultobj
;
4237 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4238 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4240 PyObject
* obj0
= 0 ;
4241 PyObject
* obj1
= 0 ;
4243 (char *) "self",(char *) "node", NULL
4246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4247 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4248 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4249 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4250 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4253 result
= (arg1
)->GetNodeContent(arg2
);
4255 wxPyEndAllowThreads(__tstate
);
4256 if (PyErr_Occurred()) SWIG_fail
;
4260 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4262 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4271 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4272 PyObject
*resultobj
;
4273 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4274 wxString
*arg2
= 0 ;
4276 bool temp2
= False
;
4277 PyObject
* obj0
= 0 ;
4278 PyObject
* obj1
= 0 ;
4280 (char *) "self",(char *) "param", NULL
4283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4284 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4285 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4287 arg2
= wxString_in_helper(obj1
);
4288 if (arg2
== NULL
) SWIG_fail
;
4292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4293 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4295 wxPyEndAllowThreads(__tstate
);
4296 if (PyErr_Occurred()) SWIG_fail
;
4299 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4315 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4316 PyObject
*resultobj
;
4317 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4318 wxString
*arg2
= 0 ;
4320 bool temp2
= False
;
4321 PyObject
* obj0
= 0 ;
4322 PyObject
* obj1
= 0 ;
4324 (char *) "self",(char *) "param", NULL
4327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4328 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4329 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4331 arg2
= wxString_in_helper(obj1
);
4332 if (arg2
== NULL
) SWIG_fail
;
4336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4337 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4339 wxPyEndAllowThreads(__tstate
);
4340 if (PyErr_Occurred()) SWIG_fail
;
4342 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4357 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4358 PyObject
*resultobj
;
4359 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4360 wxString
*arg2
= 0 ;
4362 bool temp2
= False
;
4363 PyObject
* obj0
= 0 ;
4364 PyObject
* obj1
= 0 ;
4366 (char *) "self",(char *) "param", NULL
4369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4370 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4371 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4373 arg2
= wxString_in_helper(obj1
);
4374 if (arg2
== NULL
) SWIG_fail
;
4378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4379 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4381 wxPyEndAllowThreads(__tstate
);
4382 if (PyErr_Occurred()) SWIG_fail
;
4386 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4388 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4405 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4406 PyObject
*resultobj
;
4407 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4408 wxString
*arg2
= 0 ;
4410 bool temp2
= False
;
4411 PyObject
* obj0
= 0 ;
4412 PyObject
* obj1
= 0 ;
4413 PyObject
* obj2
= 0 ;
4415 (char *) "self",(char *) "name",(char *) "value", NULL
4418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4419 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4420 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4422 arg2
= wxString_in_helper(obj1
);
4423 if (arg2
== NULL
) SWIG_fail
;
4426 arg3
= (int) SWIG_AsInt(obj2
);
4427 if (PyErr_Occurred()) SWIG_fail
;
4429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4430 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4432 wxPyEndAllowThreads(__tstate
);
4433 if (PyErr_Occurred()) SWIG_fail
;
4435 Py_INCREF(Py_None
); resultobj
= Py_None
;
4450 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4451 PyObject
*resultobj
;
4452 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4453 PyObject
* obj0
= 0 ;
4455 (char *) "self", NULL
4458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4459 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4460 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4463 (arg1
)->AddWindowStyles();
4465 wxPyEndAllowThreads(__tstate
);
4466 if (PyErr_Occurred()) SWIG_fail
;
4468 Py_INCREF(Py_None
); resultobj
= Py_None
;
4475 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4476 PyObject
*resultobj
;
4477 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4478 wxString
const &arg2_defvalue
= wxPyStyleString
;
4479 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4480 int arg3
= (int) 0 ;
4482 bool temp2
= False
;
4483 PyObject
* obj0
= 0 ;
4484 PyObject
* obj1
= 0 ;
4485 PyObject
* obj2
= 0 ;
4487 (char *) "self",(char *) "param",(char *) "defaults", NULL
4490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4491 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4492 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4495 arg2
= wxString_in_helper(obj1
);
4496 if (arg2
== NULL
) SWIG_fail
;
4501 arg3
= (int) SWIG_AsInt(obj2
);
4502 if (PyErr_Occurred()) SWIG_fail
;
4505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4506 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4508 wxPyEndAllowThreads(__tstate
);
4509 if (PyErr_Occurred()) SWIG_fail
;
4511 resultobj
= SWIG_FromInt((int)result
);
4526 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4527 PyObject
*resultobj
;
4528 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4529 wxString
*arg2
= 0 ;
4530 bool arg3
= (bool) True
;
4532 bool temp2
= False
;
4533 PyObject
* obj0
= 0 ;
4534 PyObject
* obj1
= 0 ;
4535 PyObject
* obj2
= 0 ;
4537 (char *) "self",(char *) "param",(char *) "translate", NULL
4540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4541 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4542 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4544 arg2
= wxString_in_helper(obj1
);
4545 if (arg2
== NULL
) SWIG_fail
;
4549 arg3
= (bool) SWIG_AsBool(obj2
);
4550 if (PyErr_Occurred()) SWIG_fail
;
4553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4554 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4556 wxPyEndAllowThreads(__tstate
);
4557 if (PyErr_Occurred()) SWIG_fail
;
4561 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4563 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4580 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4581 PyObject
*resultobj
;
4582 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4584 PyObject
* obj0
= 0 ;
4586 (char *) "self", NULL
4589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4590 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4591 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4594 result
= (int)(arg1
)->GetID();
4596 wxPyEndAllowThreads(__tstate
);
4597 if (PyErr_Occurred()) SWIG_fail
;
4599 resultobj
= SWIG_FromInt((int)result
);
4606 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4607 PyObject
*resultobj
;
4608 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4610 PyObject
* obj0
= 0 ;
4612 (char *) "self", NULL
4615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4616 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4617 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4620 result
= (arg1
)->GetName();
4622 wxPyEndAllowThreads(__tstate
);
4623 if (PyErr_Occurred()) SWIG_fail
;
4627 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4629 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4638 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4639 PyObject
*resultobj
;
4640 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4641 wxString
*arg2
= 0 ;
4642 bool arg3
= (bool) False
;
4644 bool temp2
= False
;
4645 PyObject
* obj0
= 0 ;
4646 PyObject
* obj1
= 0 ;
4647 PyObject
* obj2
= 0 ;
4649 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4653 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4654 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4656 arg2
= wxString_in_helper(obj1
);
4657 if (arg2
== NULL
) SWIG_fail
;
4661 arg3
= (bool) SWIG_AsBool(obj2
);
4662 if (PyErr_Occurred()) SWIG_fail
;
4665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4666 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4668 wxPyEndAllowThreads(__tstate
);
4669 if (PyErr_Occurred()) SWIG_fail
;
4672 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4688 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4689 PyObject
*resultobj
;
4690 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4691 wxString
*arg2
= 0 ;
4692 long arg3
= (long) 0 ;
4694 bool temp2
= False
;
4695 PyObject
* obj0
= 0 ;
4696 PyObject
* obj1
= 0 ;
4697 PyObject
* obj2
= 0 ;
4699 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4703 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4704 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4706 arg2
= wxString_in_helper(obj1
);
4707 if (arg2
== NULL
) SWIG_fail
;
4711 arg3
= (long) SWIG_AsLong(obj2
);
4712 if (PyErr_Occurred()) SWIG_fail
;
4715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4716 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4718 wxPyEndAllowThreads(__tstate
);
4719 if (PyErr_Occurred()) SWIG_fail
;
4721 resultobj
= SWIG_FromLong((long)result
);
4736 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4737 PyObject
*resultobj
;
4738 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4739 wxString
*arg2
= 0 ;
4741 bool temp2
= False
;
4742 PyObject
* obj0
= 0 ;
4743 PyObject
* obj1
= 0 ;
4745 (char *) "self",(char *) "param", NULL
4748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4749 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4750 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4752 arg2
= wxString_in_helper(obj1
);
4753 if (arg2
== NULL
) SWIG_fail
;
4757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4758 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4760 wxPyEndAllowThreads(__tstate
);
4761 if (PyErr_Occurred()) SWIG_fail
;
4764 wxColour
* resultptr
;
4765 resultptr
= new wxColour((wxColour
&) result
);
4766 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4782 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4783 PyObject
*resultobj
;
4784 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4785 wxString
const &arg2_defvalue
= wxPySizeString
;
4786 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4788 bool temp2
= False
;
4789 PyObject
* obj0
= 0 ;
4790 PyObject
* obj1
= 0 ;
4792 (char *) "self",(char *) "param", NULL
4795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4796 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4797 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4800 arg2
= wxString_in_helper(obj1
);
4801 if (arg2
== NULL
) SWIG_fail
;
4806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4807 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4809 wxPyEndAllowThreads(__tstate
);
4810 if (PyErr_Occurred()) SWIG_fail
;
4814 resultptr
= new wxSize((wxSize
&) result
);
4815 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4831 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4832 PyObject
*resultobj
;
4833 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4834 wxString
const &arg2_defvalue
= wxPyPosString
;
4835 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4837 bool temp2
= False
;
4838 PyObject
* obj0
= 0 ;
4839 PyObject
* obj1
= 0 ;
4841 (char *) "self",(char *) "param", NULL
4844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4845 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4846 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4849 arg2
= wxString_in_helper(obj1
);
4850 if (arg2
== NULL
) SWIG_fail
;
4855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4856 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4858 wxPyEndAllowThreads(__tstate
);
4859 if (PyErr_Occurred()) SWIG_fail
;
4862 wxPoint
* resultptr
;
4863 resultptr
= new wxPoint((wxPoint
&) result
);
4864 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4880 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
*resultobj
;
4882 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4883 wxString
*arg2
= 0 ;
4884 int arg3
= (int) 0 ;
4886 bool temp2
= False
;
4887 PyObject
* obj0
= 0 ;
4888 PyObject
* obj1
= 0 ;
4889 PyObject
* obj2
= 0 ;
4891 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4895 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4896 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4898 arg2
= wxString_in_helper(obj1
);
4899 if (arg2
== NULL
) SWIG_fail
;
4903 arg3
= (int) SWIG_AsInt(obj2
);
4904 if (PyErr_Occurred()) SWIG_fail
;
4907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4908 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4910 wxPyEndAllowThreads(__tstate
);
4911 if (PyErr_Occurred()) SWIG_fail
;
4913 resultobj
= SWIG_FromInt((int)result
);
4928 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4929 PyObject
*resultobj
;
4930 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4931 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4932 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4933 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4934 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4935 wxSize arg4
= (wxSize
) wxDefaultSize
;
4937 bool temp2
= False
;
4939 PyObject
* obj0
= 0 ;
4940 PyObject
* obj1
= 0 ;
4941 PyObject
* obj2
= 0 ;
4942 PyObject
* obj3
= 0 ;
4944 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4948 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4949 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4952 arg2
= wxString_in_helper(obj1
);
4953 if (arg2
== NULL
) SWIG_fail
;
4958 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4959 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4962 PyErr_SetString(PyExc_TypeError
,"null reference");
4967 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
4968 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4973 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4975 wxPyEndAllowThreads(__tstate
);
4976 if (PyErr_Occurred()) SWIG_fail
;
4979 wxBitmap
* resultptr
;
4980 resultptr
= new wxBitmap((wxBitmap
&) result
);
4981 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
4997 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4998 PyObject
*resultobj
;
4999 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5000 wxString
const &arg2_defvalue
= wxPyIconString
;
5001 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5002 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5003 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5004 wxSize arg4
= (wxSize
) wxDefaultSize
;
5006 bool temp2
= False
;
5008 PyObject
* obj0
= 0 ;
5009 PyObject
* obj1
= 0 ;
5010 PyObject
* obj2
= 0 ;
5011 PyObject
* obj3
= 0 ;
5013 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5017 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5018 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5021 arg2
= wxString_in_helper(obj1
);
5022 if (arg2
== NULL
) SWIG_fail
;
5027 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5028 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5031 PyErr_SetString(PyExc_TypeError
,"null reference");
5036 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5037 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5042 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5044 wxPyEndAllowThreads(__tstate
);
5045 if (PyErr_Occurred()) SWIG_fail
;
5049 resultptr
= new wxIcon((wxIcon
&) result
);
5050 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5066 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5067 PyObject
*resultobj
;
5068 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5069 wxString
const &arg2_defvalue
= wxPyFontString
;
5070 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5072 bool temp2
= False
;
5073 PyObject
* obj0
= 0 ;
5074 PyObject
* obj1
= 0 ;
5076 (char *) "self",(char *) "param", NULL
5079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5080 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5081 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5084 arg2
= wxString_in_helper(obj1
);
5085 if (arg2
== NULL
) SWIG_fail
;
5090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5091 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5093 wxPyEndAllowThreads(__tstate
);
5094 if (PyErr_Occurred()) SWIG_fail
;
5098 resultptr
= new wxFont((wxFont
&) result
);
5099 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5115 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5116 PyObject
*resultobj
;
5117 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5118 wxWindow
*arg2
= (wxWindow
*) 0 ;
5119 PyObject
* obj0
= 0 ;
5120 PyObject
* obj1
= 0 ;
5122 (char *) "self",(char *) "wnd", NULL
5125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5126 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5127 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5128 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5129 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5132 (arg1
)->SetupWindow(arg2
);
5134 wxPyEndAllowThreads(__tstate
);
5135 if (PyErr_Occurred()) SWIG_fail
;
5137 Py_INCREF(Py_None
); resultobj
= Py_None
;
5144 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5145 PyObject
*resultobj
;
5146 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5147 wxObject
*arg2
= (wxObject
*) 0 ;
5148 bool arg3
= (bool) False
;
5149 PyObject
* obj0
= 0 ;
5150 PyObject
* obj1
= 0 ;
5151 PyObject
* obj2
= 0 ;
5153 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5157 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5158 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5159 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5160 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5162 arg3
= (bool) SWIG_AsBool(obj2
);
5163 if (PyErr_Occurred()) SWIG_fail
;
5166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5167 (arg1
)->CreateChildren(arg2
,arg3
);
5169 wxPyEndAllowThreads(__tstate
);
5170 if (PyErr_Occurred()) SWIG_fail
;
5172 Py_INCREF(Py_None
); resultobj
= Py_None
;
5179 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5180 PyObject
*resultobj
;
5181 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5182 wxObject
*arg2
= (wxObject
*) 0 ;
5183 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5184 PyObject
* obj0
= 0 ;
5185 PyObject
* obj1
= 0 ;
5186 PyObject
* obj2
= 0 ;
5188 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5192 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5193 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5194 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5195 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5197 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5198 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5202 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5204 wxPyEndAllowThreads(__tstate
);
5205 if (PyErr_Occurred()) SWIG_fail
;
5207 Py_INCREF(Py_None
); resultobj
= Py_None
;
5214 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5215 PyObject
*resultobj
;
5216 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5217 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5218 wxObject
*arg3
= (wxObject
*) 0 ;
5219 wxObject
*arg4
= (wxObject
*) NULL
;
5221 PyObject
* obj0
= 0 ;
5222 PyObject
* obj1
= 0 ;
5223 PyObject
* obj2
= 0 ;
5224 PyObject
* obj3
= 0 ;
5226 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5230 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5231 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5232 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5233 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5234 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5235 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5237 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5238 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5242 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5244 wxPyEndAllowThreads(__tstate
);
5245 if (PyErr_Occurred()) SWIG_fail
;
5248 resultobj
= wxPyMake_wxObject(result
);
5256 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5257 PyObject
*resultobj
;
5258 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5259 wxFileSystem
*result
;
5260 PyObject
* obj0
= 0 ;
5262 (char *) "self", NULL
5265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5266 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5267 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5271 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5272 result
= (wxFileSystem
*) &_result_ref
;
5275 wxPyEndAllowThreads(__tstate
);
5276 if (PyErr_Occurred()) SWIG_fail
;
5278 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5285 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5287 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5288 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5290 return Py_BuildValue((char *)"");
5292 static PyMethodDef SwigMethods
[] = {
5293 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5294 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5295 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5296 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5297 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5298 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5299 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5300 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5301 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5302 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5303 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5304 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5305 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5306 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5307 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5308 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5309 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5310 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5311 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5312 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5313 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5314 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5315 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5316 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5317 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5318 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5319 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5320 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5321 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5322 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5323 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5324 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5325 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5326 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5327 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5328 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5329 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5330 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5331 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5332 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5333 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5334 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5335 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5336 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5337 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5338 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5339 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5340 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5341 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5342 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5343 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5344 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5345 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5346 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5347 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5348 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5349 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5350 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5351 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5352 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5353 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5354 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5355 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5356 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5357 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5358 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5359 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5360 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5361 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5362 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5363 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5364 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5365 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5366 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5367 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5368 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5369 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5370 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5371 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5372 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5373 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5374 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5375 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5376 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5377 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5378 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5379 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5380 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5381 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5382 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5383 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5384 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5385 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5386 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5387 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5388 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5389 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5390 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5391 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5392 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5393 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5394 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5395 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5396 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5397 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5398 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5399 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5400 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5401 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5402 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5403 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5404 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5405 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5406 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5407 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5408 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5409 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5410 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5411 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5412 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5413 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5414 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5415 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5420 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5422 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5423 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5425 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5426 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5428 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5429 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5431 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5432 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5434 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5435 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5437 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5438 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5440 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5441 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5443 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5444 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5446 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5447 return (void *)((wxObject
*) ((wxSizer
*) x
));
5449 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5450 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5452 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5453 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5455 static void *_p_wxEventTo_p_wxObject(void *x
) {
5456 return (void *)((wxObject
*) ((wxEvent
*) x
));
5458 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5459 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5461 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5462 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5464 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5465 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5467 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5468 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5470 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5471 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5473 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5474 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5476 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5477 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5479 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5480 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5482 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5483 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5485 static void *_p_wxControlTo_p_wxObject(void *x
) {
5486 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5488 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5489 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5491 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5492 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5494 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5495 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5497 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5498 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5500 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5501 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5503 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5504 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5506 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5507 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5509 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5510 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5512 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5513 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5515 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5516 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5518 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5519 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5521 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5522 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5524 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5525 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5527 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5528 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5530 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5531 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5533 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5534 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5536 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5537 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5539 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5540 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5542 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5543 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5545 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5546 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5548 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5549 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5551 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5552 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5554 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5555 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5557 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5558 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5560 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5561 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5563 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5564 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5566 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5567 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5569 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5570 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5572 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5573 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5575 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5576 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5578 static void *_p_wxImageTo_p_wxObject(void *x
) {
5579 return (void *)((wxObject
*) ((wxImage
*) x
));
5581 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5582 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5584 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5585 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5587 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5588 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5590 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5591 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5593 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5594 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5596 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5597 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5599 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5600 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5602 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5603 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5605 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5606 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5608 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5609 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5611 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5612 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5614 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5615 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5617 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5618 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5620 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5621 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5623 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5624 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5626 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5627 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5629 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5630 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5632 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5633 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5635 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5636 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5638 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5639 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5641 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5642 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5644 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5645 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5647 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5648 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5650 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5651 return (void *)((wxWindow
*) ((wxControl
*) x
));
5653 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5654 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5656 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5657 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5659 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5660 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5661 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5662 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5663 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5664 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5665 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0, 0, 0, 0},{"_p_wxArtClient", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5666 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5667 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0, 0, 0, 0},{"_p_wxPyXmlSubclassFactory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5668 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5669 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5670 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0, 0, 0, 0},{"_p_wxXmlNode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5671 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5672 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5673 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5674 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5675 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0, 0, 0, 0},{"_p_wxXmlProperty", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5676 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5677 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0, 0, 0, 0},{"_p_wxXmlResource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5678 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0, 0, 0, 0},{"_p_wxXmlDocument", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5679 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5680 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5682 static swig_type_info
*swig_types_initial
[] = {
5689 _swigt__p_wxArtClient
,
5691 _swigt__p_wxPyXmlSubclassFactory
,
5694 _swigt__p_wxXmlNode
,
5695 _swigt__p_wxInputStream
,
5696 _swigt__p_wxOutputStream
,
5697 _swigt__p_wxPyXmlResourceHandler
,
5698 _swigt__p_wxFileSystem
,
5699 _swigt__p_wxXmlProperty
,
5701 _swigt__p_wxXmlResource
,
5702 _swigt__p_wxXmlDocument
,
5709 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5711 static swig_const_info swig_const_table
[] = {
5721 SWIGEXPORT(void) SWIG_init(void) {
5722 static PyObject
*SWIG_globals
= 0;
5723 static int typeinit
= 0;
5726 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5727 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5728 d
= PyModule_GetDict(m
);
5731 for (i
= 0; swig_types_initial
[i
]; i
++) {
5732 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5736 SWIG_InstallConstants(d
,swig_const_table
);
5738 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5739 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5740 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5741 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5742 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5743 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5744 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5745 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5746 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5747 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5748 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5749 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5750 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE
));
5751 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING
));
5752 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE
));
5753 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5754 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE
));
5755 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5756 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE
));
5757 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE
));
5758 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE
));
5759 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE
));
5760 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE
));
5761 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5762 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5763 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE
));
5764 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5767 wxXmlInitResourceModule();
5768 wxXmlResource::Get()->InitAllHandlers();