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
*) {
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
*) {
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
*) {
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
*) {
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
*) {
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
*) {
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
*) {
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
*, 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
*, 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
*, 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
*, 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
;
813 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
828 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
830 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
834 PyObject
* obj0
= 0 ;
835 PyObject
* obj1
= 0 ;
837 (char *) "self",(char *) "data", NULL
840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
841 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
842 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
844 arg2
= wxString_in_helper(obj1
);
845 if (arg2
== NULL
) SWIG_fail
;
849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
850 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
852 wxPyEndAllowThreads(__tstate
);
853 if (PyErr_Occurred()) SWIG_fail
;
855 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
870 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
872 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
873 PyObject
* obj0
= 0 ;
875 (char *) "self", NULL
878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
879 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
880 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
883 (arg1
)->InitAllHandlers();
885 wxPyEndAllowThreads(__tstate
);
886 if (PyErr_Occurred()) SWIG_fail
;
888 Py_INCREF(Py_None
); resultobj
= Py_None
;
895 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
897 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
898 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
899 PyObject
* obj0
= 0 ;
900 PyObject
* obj1
= 0 ;
902 (char *) "self",(char *) "handler", NULL
905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
906 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
907 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
908 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
909 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 (arg1
)->AddHandler(arg2
);
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) SWIG_fail
;
917 Py_INCREF(Py_None
); resultobj
= Py_None
;
924 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
926 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
927 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
928 PyObject
* obj0
= 0 ;
929 PyObject
* obj1
= 0 ;
931 (char *) "self",(char *) "handler", NULL
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
935 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
936 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
937 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
938 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
941 (arg1
)->InsertHandler(arg2
);
943 wxPyEndAllowThreads(__tstate
);
944 if (PyErr_Occurred()) SWIG_fail
;
946 Py_INCREF(Py_None
); resultobj
= Py_None
;
953 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
955 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
956 PyObject
* obj0
= 0 ;
958 (char *) "self", NULL
961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
962 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
963 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
966 (arg1
)->ClearHandlers();
968 wxPyEndAllowThreads(__tstate
);
969 if (PyErr_Occurred()) SWIG_fail
;
971 Py_INCREF(Py_None
); resultobj
= Py_None
;
978 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
980 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
981 PyObject
* obj0
= 0 ;
983 (char *) "factory", NULL
986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
987 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
988 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
991 wxXmlResource::AddSubclassFactory(arg1
);
993 wxPyEndAllowThreads(__tstate
);
994 if (PyErr_Occurred()) SWIG_fail
;
996 Py_INCREF(Py_None
); resultobj
= Py_None
;
1003 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1004 PyObject
*resultobj
;
1005 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1006 wxString
*arg2
= 0 ;
1008 bool temp2
= False
;
1009 PyObject
* obj0
= 0 ;
1010 PyObject
* obj1
= 0 ;
1012 (char *) "self",(char *) "name", NULL
1015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1016 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1017 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1019 arg2
= wxString_in_helper(obj1
);
1020 if (arg2
== NULL
) SWIG_fail
;
1024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1025 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1027 wxPyEndAllowThreads(__tstate
);
1028 if (PyErr_Occurred()) SWIG_fail
;
1031 resultobj
= wxPyMake_wxObject(result
);
1047 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1048 PyObject
*resultobj
;
1049 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1050 wxString
*arg2
= 0 ;
1052 bool temp2
= False
;
1053 PyObject
* obj0
= 0 ;
1054 PyObject
* obj1
= 0 ;
1056 (char *) "self",(char *) "name", NULL
1059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1060 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1061 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1063 arg2
= wxString_in_helper(obj1
);
1064 if (arg2
== NULL
) SWIG_fail
;
1068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1069 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1071 wxPyEndAllowThreads(__tstate
);
1072 if (PyErr_Occurred()) SWIG_fail
;
1075 resultobj
= wxPyMake_wxObject(result
);
1091 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1092 PyObject
*resultobj
;
1093 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1094 wxWindow
*arg2
= (wxWindow
*) 0 ;
1095 wxString
*arg3
= 0 ;
1097 bool temp3
= False
;
1098 PyObject
* obj0
= 0 ;
1099 PyObject
* obj1
= 0 ;
1100 PyObject
* obj2
= 0 ;
1102 (char *) "self",(char *) "parent",(char *) "name", NULL
1105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1106 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1107 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1108 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1109 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1111 arg3
= wxString_in_helper(obj2
);
1112 if (arg3
== NULL
) SWIG_fail
;
1116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1117 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1119 wxPyEndAllowThreads(__tstate
);
1120 if (PyErr_Occurred()) SWIG_fail
;
1123 resultobj
= wxPyMake_wxObject(result
);
1139 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1140 PyObject
*resultobj
;
1141 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1142 wxWindow
*arg2
= (wxWindow
*) 0 ;
1143 wxString
*arg3
= 0 ;
1145 bool temp3
= False
;
1146 PyObject
* obj0
= 0 ;
1147 PyObject
* obj1
= 0 ;
1148 PyObject
* obj2
= 0 ;
1150 (char *) "self",(char *) "parent",(char *) "name", NULL
1153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1154 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1155 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1156 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1157 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1159 arg3
= wxString_in_helper(obj2
);
1160 if (arg3
== NULL
) SWIG_fail
;
1164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1165 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1167 wxPyEndAllowThreads(__tstate
);
1168 if (PyErr_Occurred()) SWIG_fail
;
1171 resultobj
= wxPyMake_wxObject(result
);
1187 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1188 PyObject
*resultobj
;
1189 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1190 wxWindow
*arg2
= (wxWindow
*) 0 ;
1191 wxString
*arg3
= 0 ;
1193 bool temp3
= False
;
1194 PyObject
* obj0
= 0 ;
1195 PyObject
* obj1
= 0 ;
1196 PyObject
* obj2
= 0 ;
1198 (char *) "self",(char *) "parent",(char *) "name", NULL
1201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1202 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1204 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1207 arg3
= wxString_in_helper(obj2
);
1208 if (arg3
== NULL
) SWIG_fail
;
1212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1213 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1215 wxPyEndAllowThreads(__tstate
);
1216 if (PyErr_Occurred()) SWIG_fail
;
1218 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDialog
, 0);
1233 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1234 PyObject
*resultobj
;
1235 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1236 wxDialog
*arg2
= (wxDialog
*) 0 ;
1237 wxWindow
*arg3
= (wxWindow
*) 0 ;
1238 wxString
*arg4
= 0 ;
1240 bool temp4
= False
;
1241 PyObject
* obj0
= 0 ;
1242 PyObject
* obj1
= 0 ;
1243 PyObject
* obj2
= 0 ;
1244 PyObject
* obj3
= 0 ;
1246 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1250 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1251 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1252 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1253 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1254 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1255 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1257 arg4
= wxString_in_helper(obj3
);
1258 if (arg4
== NULL
) SWIG_fail
;
1262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1263 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1265 wxPyEndAllowThreads(__tstate
);
1266 if (PyErr_Occurred()) SWIG_fail
;
1268 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1283 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1284 PyObject
*resultobj
;
1285 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1286 wxWindow
*arg2
= (wxWindow
*) 0 ;
1287 wxString
*arg3
= 0 ;
1289 bool temp3
= False
;
1290 PyObject
* obj0
= 0 ;
1291 PyObject
* obj1
= 0 ;
1292 PyObject
* obj2
= 0 ;
1294 (char *) "self",(char *) "parent",(char *) "name", NULL
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1303 arg3
= wxString_in_helper(obj2
);
1304 if (arg3
== NULL
) SWIG_fail
;
1308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1309 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1311 wxPyEndAllowThreads(__tstate
);
1312 if (PyErr_Occurred()) SWIG_fail
;
1314 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPanel
, 0);
1329 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1330 PyObject
*resultobj
;
1331 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1332 wxPanel
*arg2
= (wxPanel
*) 0 ;
1333 wxWindow
*arg3
= (wxWindow
*) 0 ;
1334 wxString
*arg4
= 0 ;
1336 bool temp4
= False
;
1337 PyObject
* obj0
= 0 ;
1338 PyObject
* obj1
= 0 ;
1339 PyObject
* obj2
= 0 ;
1340 PyObject
* obj3
= 0 ;
1342 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1346 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1347 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1348 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1349 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1350 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1351 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1353 arg4
= wxString_in_helper(obj3
);
1354 if (arg4
== NULL
) SWIG_fail
;
1358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1359 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1361 wxPyEndAllowThreads(__tstate
);
1362 if (PyErr_Occurred()) SWIG_fail
;
1364 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1379 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1380 PyObject
*resultobj
;
1381 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1382 wxWindow
*arg2
= (wxWindow
*) 0 ;
1383 wxString
*arg3
= 0 ;
1385 bool temp3
= False
;
1386 PyObject
* obj0
= 0 ;
1387 PyObject
* obj1
= 0 ;
1388 PyObject
* obj2
= 0 ;
1390 (char *) "self",(char *) "parent",(char *) "name", NULL
1393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1394 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1395 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1396 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1397 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1399 arg3
= wxString_in_helper(obj2
);
1400 if (arg3
== NULL
) SWIG_fail
;
1404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1405 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1407 wxPyEndAllowThreads(__tstate
);
1408 if (PyErr_Occurred()) SWIG_fail
;
1411 resultobj
= wxPyMake_wxObject(result
);
1427 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1428 PyObject
*resultobj
;
1429 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1430 wxFrame
*arg2
= (wxFrame
*) 0 ;
1431 wxWindow
*arg3
= (wxWindow
*) 0 ;
1432 wxString
*arg4
= 0 ;
1434 bool temp4
= False
;
1435 PyObject
* obj0
= 0 ;
1436 PyObject
* obj1
= 0 ;
1437 PyObject
* obj2
= 0 ;
1438 PyObject
* obj3
= 0 ;
1440 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1444 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1445 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1446 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1447 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1448 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1449 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1451 arg4
= wxString_in_helper(obj3
);
1452 if (arg4
== NULL
) SWIG_fail
;
1456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1457 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1459 wxPyEndAllowThreads(__tstate
);
1460 if (PyErr_Occurred()) SWIG_fail
;
1462 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1477 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1478 PyObject
*resultobj
;
1479 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1480 wxWindow
*arg2
= (wxWindow
*) 0 ;
1481 wxString
*arg3
= 0 ;
1482 wxString
*arg4
= 0 ;
1484 bool temp3
= False
;
1485 bool temp4
= False
;
1486 PyObject
* obj0
= 0 ;
1487 PyObject
* obj1
= 0 ;
1488 PyObject
* obj2
= 0 ;
1489 PyObject
* obj3
= 0 ;
1491 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1495 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1496 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1497 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1498 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1500 arg3
= wxString_in_helper(obj2
);
1501 if (arg3
== NULL
) SWIG_fail
;
1505 arg4
= wxString_in_helper(obj3
);
1506 if (arg4
== NULL
) SWIG_fail
;
1510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1511 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1513 wxPyEndAllowThreads(__tstate
);
1514 if (PyErr_Occurred()) SWIG_fail
;
1517 resultobj
= wxPyMake_wxObject(result
);
1541 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1542 PyObject
*resultobj
;
1543 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1544 wxObject
*arg2
= (wxObject
*) 0 ;
1545 wxWindow
*arg3
= (wxWindow
*) 0 ;
1546 wxString
*arg4
= 0 ;
1547 wxString
*arg5
= 0 ;
1549 bool temp4
= False
;
1550 bool temp5
= False
;
1551 PyObject
* obj0
= 0 ;
1552 PyObject
* obj1
= 0 ;
1553 PyObject
* obj2
= 0 ;
1554 PyObject
* obj3
= 0 ;
1555 PyObject
* obj4
= 0 ;
1557 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1561 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1562 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1563 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1564 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1565 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1566 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1568 arg4
= wxString_in_helper(obj3
);
1569 if (arg4
== NULL
) SWIG_fail
;
1573 arg5
= wxString_in_helper(obj4
);
1574 if (arg5
== NULL
) SWIG_fail
;
1578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1579 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1581 wxPyEndAllowThreads(__tstate
);
1582 if (PyErr_Occurred()) SWIG_fail
;
1584 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1607 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
*resultobj
;
1609 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1610 wxString
*arg2
= 0 ;
1612 bool temp2
= False
;
1613 PyObject
* obj0
= 0 ;
1614 PyObject
* obj1
= 0 ;
1616 (char *) "self",(char *) "name", NULL
1619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1620 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1621 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1623 arg2
= wxString_in_helper(obj1
);
1624 if (arg2
== NULL
) SWIG_fail
;
1628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1629 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1631 wxPyEndAllowThreads(__tstate
);
1632 if (PyErr_Occurred()) SWIG_fail
;
1635 wxBitmap
* resultptr
;
1636 resultptr
= new wxBitmap((wxBitmap
&) result
);
1637 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1653 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1654 PyObject
*resultobj
;
1655 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1656 wxString
*arg2
= 0 ;
1658 bool temp2
= False
;
1659 PyObject
* obj0
= 0 ;
1660 PyObject
* obj1
= 0 ;
1662 (char *) "self",(char *) "name", NULL
1665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1666 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1667 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1669 arg2
= wxString_in_helper(obj1
);
1670 if (arg2
== NULL
) SWIG_fail
;
1674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1675 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1677 wxPyEndAllowThreads(__tstate
);
1678 if (PyErr_Occurred()) SWIG_fail
;
1682 resultptr
= new wxIcon((wxIcon
&) result
);
1683 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1699 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1700 PyObject
*resultobj
;
1701 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1702 wxString
*arg2
= 0 ;
1703 wxWindow
*arg3
= (wxWindow
*) 0 ;
1704 wxWindow
*arg4
= (wxWindow
*) NULL
;
1706 bool temp2
= False
;
1707 PyObject
* obj0
= 0 ;
1708 PyObject
* obj1
= 0 ;
1709 PyObject
* obj2
= 0 ;
1710 PyObject
* obj3
= 0 ;
1712 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1716 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1717 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1719 arg2
= wxString_in_helper(obj1
);
1720 if (arg2
== NULL
) SWIG_fail
;
1723 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1724 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1726 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1727 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1731 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1733 wxPyEndAllowThreads(__tstate
);
1734 if (PyErr_Occurred()) SWIG_fail
;
1736 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1751 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
*resultobj
;
1753 wxString
*arg1
= 0 ;
1755 bool temp1
= False
;
1756 PyObject
* obj0
= 0 ;
1758 (char *) "str_id", NULL
1761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1763 arg1
= wxString_in_helper(obj0
);
1764 if (arg1
== NULL
) SWIG_fail
;
1768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1769 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1771 wxPyEndAllowThreads(__tstate
);
1772 if (PyErr_Occurred()) SWIG_fail
;
1774 resultobj
= SWIG_FromInt((int)result
);
1789 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1790 PyObject
*resultobj
;
1791 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1793 PyObject
* obj0
= 0 ;
1795 (char *) "self", NULL
1798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1799 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1800 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1803 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1805 wxPyEndAllowThreads(__tstate
);
1806 if (PyErr_Occurred()) SWIG_fail
;
1808 resultobj
= SWIG_FromLong((long)result
);
1815 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1816 PyObject
*resultobj
;
1817 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1823 PyObject
* obj0
= 0 ;
1824 PyObject
* obj1
= 0 ;
1825 PyObject
* obj2
= 0 ;
1826 PyObject
* obj3
= 0 ;
1827 PyObject
* obj4
= 0 ;
1829 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1833 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1834 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1835 arg2
= (int) SWIG_AsInt(obj1
);
1836 if (PyErr_Occurred()) SWIG_fail
;
1837 arg3
= (int) SWIG_AsInt(obj2
);
1838 if (PyErr_Occurred()) SWIG_fail
;
1839 arg4
= (int) SWIG_AsInt(obj3
);
1840 if (PyErr_Occurred()) SWIG_fail
;
1841 arg5
= (int) SWIG_AsInt(obj4
);
1842 if (PyErr_Occurred()) SWIG_fail
;
1844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1845 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1847 wxPyEndAllowThreads(__tstate
);
1848 if (PyErr_Occurred()) SWIG_fail
;
1850 resultobj
= SWIG_FromInt((int)result
);
1857 static PyObject
*_wrap_XmlResource_Get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1858 PyObject
*resultobj
;
1859 wxXmlResource
*result
;
1864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1867 result
= (wxXmlResource
*)wxXmlResource::Get();
1869 wxPyEndAllowThreads(__tstate
);
1870 if (PyErr_Occurred()) SWIG_fail
;
1872 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1879 static PyObject
*_wrap_XmlResource_Set(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
*resultobj
;
1881 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1882 wxXmlResource
*result
;
1883 PyObject
* obj0
= 0 ;
1885 (char *) "res", NULL
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1889 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1890 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1893 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1895 wxPyEndAllowThreads(__tstate
);
1896 if (PyErr_Occurred()) SWIG_fail
;
1898 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1905 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1906 PyObject
*resultobj
;
1907 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1909 PyObject
* obj0
= 0 ;
1911 (char *) "self", NULL
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1915 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1916 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1919 result
= (int)(arg1
)->GetFlags();
1921 wxPyEndAllowThreads(__tstate
);
1922 if (PyErr_Occurred()) SWIG_fail
;
1924 resultobj
= SWIG_FromInt((int)result
);
1931 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
*resultobj
;
1933 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1935 PyObject
* obj0
= 0 ;
1936 PyObject
* obj1
= 0 ;
1938 (char *) "self",(char *) "flags", NULL
1941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1942 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1943 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1944 arg2
= (int) SWIG_AsInt(obj1
);
1945 if (PyErr_Occurred()) SWIG_fail
;
1947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1948 (arg1
)->SetFlags(arg2
);
1950 wxPyEndAllowThreads(__tstate
);
1951 if (PyErr_Occurred()) SWIG_fail
;
1953 Py_INCREF(Py_None
); resultobj
= Py_None
;
1960 static PyObject
* XmlResource_swigregister(PyObject
*, PyObject
*args
) {
1962 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1963 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1965 return Py_BuildValue((char *)"");
1967 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1968 PyObject
*resultobj
;
1969 wxPyXmlSubclassFactory
*result
;
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1977 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1979 wxPyEndAllowThreads(__tstate
);
1980 if (PyErr_Occurred()) SWIG_fail
;
1982 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1989 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
*resultobj
;
1991 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1992 PyObject
*arg2
= (PyObject
*) 0 ;
1993 PyObject
*arg3
= (PyObject
*) 0 ;
1994 PyObject
* obj0
= 0 ;
1995 PyObject
* obj1
= 0 ;
1996 PyObject
* obj2
= 0 ;
1998 (char *) "self",(char *) "self",(char *) "_class", NULL
2001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2002 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2003 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2008 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2010 wxPyEndAllowThreads(__tstate
);
2011 if (PyErr_Occurred()) SWIG_fail
;
2013 Py_INCREF(Py_None
); resultobj
= Py_None
;
2020 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*, PyObject
*args
) {
2022 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2023 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2025 return Py_BuildValue((char *)"");
2027 static PyObject
*_wrap_new_XmlProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2028 PyObject
*resultobj
;
2029 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2030 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2031 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2032 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2033 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2034 wxXmlProperty
*result
;
2035 bool temp1
= False
;
2036 bool temp2
= False
;
2037 PyObject
* obj0
= 0 ;
2038 PyObject
* obj1
= 0 ;
2039 PyObject
* obj2
= 0 ;
2041 (char *) "name",(char *) "value",(char *) "next", NULL
2044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2047 arg1
= wxString_in_helper(obj0
);
2048 if (arg1
== NULL
) SWIG_fail
;
2054 arg2
= wxString_in_helper(obj1
);
2055 if (arg2
== NULL
) SWIG_fail
;
2060 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2061 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2065 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2067 wxPyEndAllowThreads(__tstate
);
2068 if (PyErr_Occurred()) SWIG_fail
;
2070 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2093 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2094 PyObject
*resultobj
;
2095 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2097 PyObject
* obj0
= 0 ;
2099 (char *) "self", NULL
2102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2103 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2104 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2107 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2109 wxPyEndAllowThreads(__tstate
);
2110 if (PyErr_Occurred()) SWIG_fail
;
2114 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2116 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2125 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2126 PyObject
*resultobj
;
2127 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2129 PyObject
* obj0
= 0 ;
2131 (char *) "self", NULL
2134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2135 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2136 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2139 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2141 wxPyEndAllowThreads(__tstate
);
2142 if (PyErr_Occurred()) SWIG_fail
;
2146 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2148 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2157 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2158 PyObject
*resultobj
;
2159 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2160 wxXmlProperty
*result
;
2161 PyObject
* obj0
= 0 ;
2163 (char *) "self", NULL
2166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2167 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2168 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2171 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2173 wxPyEndAllowThreads(__tstate
);
2174 if (PyErr_Occurred()) SWIG_fail
;
2176 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2183 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2184 PyObject
*resultobj
;
2185 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2186 wxString
*arg2
= 0 ;
2187 bool temp2
= False
;
2188 PyObject
* obj0
= 0 ;
2189 PyObject
* obj1
= 0 ;
2191 (char *) "self",(char *) "name", NULL
2194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2195 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2196 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2198 arg2
= wxString_in_helper(obj1
);
2199 if (arg2
== NULL
) SWIG_fail
;
2203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2204 (arg1
)->SetName((wxString
const &)*arg2
);
2206 wxPyEndAllowThreads(__tstate
);
2207 if (PyErr_Occurred()) SWIG_fail
;
2209 Py_INCREF(Py_None
); resultobj
= Py_None
;
2224 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2225 PyObject
*resultobj
;
2226 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2227 wxString
*arg2
= 0 ;
2228 bool temp2
= False
;
2229 PyObject
* obj0
= 0 ;
2230 PyObject
* obj1
= 0 ;
2232 (char *) "self",(char *) "value", NULL
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2236 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2237 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2239 arg2
= wxString_in_helper(obj1
);
2240 if (arg2
== NULL
) SWIG_fail
;
2244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2245 (arg1
)->SetValue((wxString
const &)*arg2
);
2247 wxPyEndAllowThreads(__tstate
);
2248 if (PyErr_Occurred()) SWIG_fail
;
2250 Py_INCREF(Py_None
); resultobj
= Py_None
;
2265 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2266 PyObject
*resultobj
;
2267 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2268 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2269 PyObject
* obj0
= 0 ;
2270 PyObject
* obj1
= 0 ;
2272 (char *) "self",(char *) "next", NULL
2275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2276 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2277 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2278 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2279 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2282 (arg1
)->SetNext(arg2
);
2284 wxPyEndAllowThreads(__tstate
);
2285 if (PyErr_Occurred()) SWIG_fail
;
2287 Py_INCREF(Py_None
); resultobj
= Py_None
;
2294 static PyObject
* XmlProperty_swigregister(PyObject
*, PyObject
*args
) {
2296 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2297 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2299 return Py_BuildValue((char *)"");
2301 static PyObject
*_wrap_new_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
*resultobj
;
2303 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2304 int arg2
= (int) 0 ;
2305 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2306 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2307 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2308 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2309 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2310 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2312 bool temp3
= False
;
2313 bool temp4
= False
;
2314 PyObject
* obj0
= 0 ;
2315 PyObject
* obj1
= 0 ;
2316 PyObject
* obj2
= 0 ;
2317 PyObject
* obj3
= 0 ;
2318 PyObject
* obj4
= 0 ;
2319 PyObject
* obj5
= 0 ;
2321 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2326 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2327 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2330 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
2331 if (PyErr_Occurred()) SWIG_fail
;
2335 arg3
= wxString_in_helper(obj2
);
2336 if (arg3
== NULL
) SWIG_fail
;
2342 arg4
= wxString_in_helper(obj3
);
2343 if (arg4
== NULL
) SWIG_fail
;
2348 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2349 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2352 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2357 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2359 wxPyEndAllowThreads(__tstate
);
2360 if (PyErr_Occurred()) SWIG_fail
;
2362 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2385 static PyObject
*_wrap_delete_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2386 PyObject
*resultobj
;
2387 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2388 PyObject
* obj0
= 0 ;
2390 (char *) "self", NULL
2393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2394 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2395 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2400 wxPyEndAllowThreads(__tstate
);
2401 if (PyErr_Occurred()) SWIG_fail
;
2403 Py_INCREF(Py_None
); resultobj
= Py_None
;
2410 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2411 PyObject
*resultobj
;
2413 wxString
*arg2
= 0 ;
2414 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2415 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2417 bool temp2
= False
;
2418 bool temp3
= False
;
2419 PyObject
* obj0
= 0 ;
2420 PyObject
* obj1
= 0 ;
2421 PyObject
* obj2
= 0 ;
2423 (char *) "type",(char *) "name",(char *) "content", NULL
2426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2427 arg1
= (wxXmlNodeType
) SWIG_AsInt(obj0
);
2428 if (PyErr_Occurred()) SWIG_fail
;
2430 arg2
= wxString_in_helper(obj1
);
2431 if (arg2
== NULL
) SWIG_fail
;
2436 arg3
= wxString_in_helper(obj2
);
2437 if (arg3
== NULL
) SWIG_fail
;
2442 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2443 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2445 wxPyEndAllowThreads(__tstate
);
2446 if (PyErr_Occurred()) SWIG_fail
;
2448 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2471 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2472 PyObject
*resultobj
;
2473 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2474 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2475 PyObject
* obj0
= 0 ;
2476 PyObject
* obj1
= 0 ;
2478 (char *) "self",(char *) "child", NULL
2481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2482 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2483 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2484 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2485 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2488 (arg1
)->AddChild(arg2
);
2490 wxPyEndAllowThreads(__tstate
);
2491 if (PyErr_Occurred()) SWIG_fail
;
2493 Py_INCREF(Py_None
); resultobj
= Py_None
;
2500 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
*resultobj
;
2502 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2503 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2504 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2505 PyObject
* obj0
= 0 ;
2506 PyObject
* obj1
= 0 ;
2507 PyObject
* obj2
= 0 ;
2509 (char *) "self",(char *) "child",(char *) "before_node", NULL
2512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2513 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2514 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2515 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2516 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2517 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2518 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2521 (arg1
)->InsertChild(arg2
,arg3
);
2523 wxPyEndAllowThreads(__tstate
);
2524 if (PyErr_Occurred()) SWIG_fail
;
2526 Py_INCREF(Py_None
); resultobj
= Py_None
;
2533 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2534 PyObject
*resultobj
;
2535 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2536 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2538 PyObject
* obj0
= 0 ;
2539 PyObject
* obj1
= 0 ;
2541 (char *) "self",(char *) "child", NULL
2544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2545 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2546 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2547 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2548 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2551 result
= (bool)(arg1
)->RemoveChild(arg2
);
2553 wxPyEndAllowThreads(__tstate
);
2554 if (PyErr_Occurred()) SWIG_fail
;
2556 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2563 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2564 PyObject
*resultobj
;
2565 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2566 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2567 PyObject
* obj0
= 0 ;
2568 PyObject
* obj1
= 0 ;
2570 (char *) "self",(char *) "prop", NULL
2573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2574 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2575 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2576 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2577 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2580 (arg1
)->AddProperty(arg2
);
2582 wxPyEndAllowThreads(__tstate
);
2583 if (PyErr_Occurred()) SWIG_fail
;
2585 Py_INCREF(Py_None
); resultobj
= Py_None
;
2592 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2593 PyObject
*resultobj
;
2594 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2595 wxString
*arg2
= 0 ;
2596 wxString
*arg3
= 0 ;
2597 bool temp2
= False
;
2598 bool temp3
= False
;
2599 PyObject
* obj0
= 0 ;
2600 PyObject
* obj1
= 0 ;
2601 PyObject
* obj2
= 0 ;
2603 (char *) "self",(char *) "name",(char *) "value", NULL
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2607 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2608 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2610 arg2
= wxString_in_helper(obj1
);
2611 if (arg2
== NULL
) SWIG_fail
;
2615 arg3
= wxString_in_helper(obj2
);
2616 if (arg3
== NULL
) SWIG_fail
;
2620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2621 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2623 wxPyEndAllowThreads(__tstate
);
2624 if (PyErr_Occurred()) SWIG_fail
;
2626 Py_INCREF(Py_None
); resultobj
= Py_None
;
2649 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2650 PyObject
*resultobj
;
2651 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2652 wxString
*arg2
= 0 ;
2654 bool temp2
= False
;
2655 PyObject
* obj0
= 0 ;
2656 PyObject
* obj1
= 0 ;
2658 (char *) "self",(char *) "name", NULL
2661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2662 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2663 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2665 arg2
= wxString_in_helper(obj1
);
2666 if (arg2
== NULL
) SWIG_fail
;
2670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2671 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2673 wxPyEndAllowThreads(__tstate
);
2674 if (PyErr_Occurred()) SWIG_fail
;
2676 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2691 static PyObject
*_wrap_XmlNode_GetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2692 PyObject
*resultobj
;
2693 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2695 PyObject
* obj0
= 0 ;
2697 (char *) "self", NULL
2700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2701 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2702 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2705 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2707 wxPyEndAllowThreads(__tstate
);
2708 if (PyErr_Occurred()) SWIG_fail
;
2710 resultobj
= SWIG_FromInt((int)result
);
2717 static PyObject
*_wrap_XmlNode_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
*resultobj
;
2719 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2721 PyObject
* obj0
= 0 ;
2723 (char *) "self", NULL
2726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2727 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2728 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2731 result
= ((wxXmlNode
const *)arg1
)->GetName();
2733 wxPyEndAllowThreads(__tstate
);
2734 if (PyErr_Occurred()) SWIG_fail
;
2738 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2740 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2749 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2750 PyObject
*resultobj
;
2751 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2753 PyObject
* obj0
= 0 ;
2755 (char *) "self", NULL
2758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2759 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2760 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2763 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2765 wxPyEndAllowThreads(__tstate
);
2766 if (PyErr_Occurred()) SWIG_fail
;
2770 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2772 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2781 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2782 PyObject
*resultobj
;
2783 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2785 PyObject
* obj0
= 0 ;
2787 (char *) "self", NULL
2790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2791 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2792 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2795 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2797 wxPyEndAllowThreads(__tstate
);
2798 if (PyErr_Occurred()) SWIG_fail
;
2800 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2807 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2808 PyObject
*resultobj
;
2809 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2811 PyObject
* obj0
= 0 ;
2813 (char *) "self", NULL
2816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2817 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2818 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) SWIG_fail
;
2826 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2833 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2834 PyObject
*resultobj
;
2835 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2837 PyObject
* obj0
= 0 ;
2839 (char *) "self", NULL
2842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2843 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2844 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2847 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2849 wxPyEndAllowThreads(__tstate
);
2850 if (PyErr_Occurred()) SWIG_fail
;
2852 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2859 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2860 PyObject
*resultobj
;
2861 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2862 wxXmlProperty
*result
;
2863 PyObject
* obj0
= 0 ;
2865 (char *) "self", NULL
2868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2869 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2870 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2873 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2875 wxPyEndAllowThreads(__tstate
);
2876 if (PyErr_Occurred()) SWIG_fail
;
2878 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2885 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2886 PyObject
*resultobj
;
2887 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2888 wxString
*arg2
= 0 ;
2889 wxString
*arg3
= 0 ;
2891 bool temp2
= False
;
2892 bool temp3
= False
;
2893 PyObject
* obj0
= 0 ;
2894 PyObject
* obj1
= 0 ;
2895 PyObject
* obj2
= 0 ;
2897 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2901 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2902 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2904 arg2
= wxString_in_helper(obj1
);
2905 if (arg2
== NULL
) SWIG_fail
;
2909 arg3
= wxString_in_helper(obj2
);
2910 if (arg3
== NULL
) SWIG_fail
;
2914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2915 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2917 wxPyEndAllowThreads(__tstate
);
2918 if (PyErr_Occurred()) SWIG_fail
;
2922 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2924 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2949 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2950 PyObject
*resultobj
;
2951 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2952 wxString
*arg2
= 0 ;
2954 bool temp2
= False
;
2955 PyObject
* obj0
= 0 ;
2956 PyObject
* obj1
= 0 ;
2958 (char *) "self",(char *) "propName", NULL
2961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2962 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2963 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2965 arg2
= wxString_in_helper(obj1
);
2966 if (arg2
== NULL
) SWIG_fail
;
2970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2971 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2973 wxPyEndAllowThreads(__tstate
);
2974 if (PyErr_Occurred()) SWIG_fail
;
2976 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2991 static PyObject
*_wrap_XmlNode_SetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2992 PyObject
*resultobj
;
2993 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2995 PyObject
* obj0
= 0 ;
2996 PyObject
* obj1
= 0 ;
2998 (char *) "self",(char *) "type", NULL
3001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3002 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3003 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3004 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
3005 if (PyErr_Occurred()) SWIG_fail
;
3007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3008 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3010 wxPyEndAllowThreads(__tstate
);
3011 if (PyErr_Occurred()) SWIG_fail
;
3013 Py_INCREF(Py_None
); resultobj
= Py_None
;
3020 static PyObject
*_wrap_XmlNode_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3021 PyObject
*resultobj
;
3022 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3023 wxString
*arg2
= 0 ;
3024 bool temp2
= False
;
3025 PyObject
* obj0
= 0 ;
3026 PyObject
* obj1
= 0 ;
3028 (char *) "self",(char *) "name", NULL
3031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3032 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3033 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3035 arg2
= wxString_in_helper(obj1
);
3036 if (arg2
== NULL
) SWIG_fail
;
3040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3041 (arg1
)->SetName((wxString
const &)*arg2
);
3043 wxPyEndAllowThreads(__tstate
);
3044 if (PyErr_Occurred()) SWIG_fail
;
3046 Py_INCREF(Py_None
); resultobj
= Py_None
;
3061 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3062 PyObject
*resultobj
;
3063 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3064 wxString
*arg2
= 0 ;
3065 bool temp2
= False
;
3066 PyObject
* obj0
= 0 ;
3067 PyObject
* obj1
= 0 ;
3069 (char *) "self",(char *) "con", NULL
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3073 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3074 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3076 arg2
= wxString_in_helper(obj1
);
3077 if (arg2
== NULL
) SWIG_fail
;
3081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3082 (arg1
)->SetContent((wxString
const &)*arg2
);
3084 wxPyEndAllowThreads(__tstate
);
3085 if (PyErr_Occurred()) SWIG_fail
;
3087 Py_INCREF(Py_None
); resultobj
= Py_None
;
3102 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3103 PyObject
*resultobj
;
3104 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3105 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3106 PyObject
* obj0
= 0 ;
3107 PyObject
* obj1
= 0 ;
3109 (char *) "self",(char *) "parent", NULL
3112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3113 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3114 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3115 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3116 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3119 (arg1
)->SetParent(arg2
);
3121 wxPyEndAllowThreads(__tstate
);
3122 if (PyErr_Occurred()) SWIG_fail
;
3124 Py_INCREF(Py_None
); resultobj
= Py_None
;
3131 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3132 PyObject
*resultobj
;
3133 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3134 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3135 PyObject
* obj0
= 0 ;
3136 PyObject
* obj1
= 0 ;
3138 (char *) "self",(char *) "next", NULL
3141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3142 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3143 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3144 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3145 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3148 (arg1
)->SetNext(arg2
);
3150 wxPyEndAllowThreads(__tstate
);
3151 if (PyErr_Occurred()) SWIG_fail
;
3153 Py_INCREF(Py_None
); resultobj
= Py_None
;
3160 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
*resultobj
;
3162 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3163 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3164 PyObject
* obj0
= 0 ;
3165 PyObject
* obj1
= 0 ;
3167 (char *) "self",(char *) "child", NULL
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3171 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3172 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3173 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3174 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3177 (arg1
)->SetChildren(arg2
);
3179 wxPyEndAllowThreads(__tstate
);
3180 if (PyErr_Occurred()) SWIG_fail
;
3182 Py_INCREF(Py_None
); resultobj
= Py_None
;
3189 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3190 PyObject
*resultobj
;
3191 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3192 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3193 PyObject
* obj0
= 0 ;
3194 PyObject
* obj1
= 0 ;
3196 (char *) "self",(char *) "prop", NULL
3199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3200 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3201 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3202 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3206 (arg1
)->SetProperties(arg2
);
3208 wxPyEndAllowThreads(__tstate
);
3209 if (PyErr_Occurred()) SWIG_fail
;
3211 Py_INCREF(Py_None
); resultobj
= Py_None
;
3218 static PyObject
* XmlNode_swigregister(PyObject
*, PyObject
*args
) {
3220 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3221 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3223 return Py_BuildValue((char *)"");
3225 static PyObject
*_wrap_new_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3226 PyObject
*resultobj
;
3227 wxString
*arg1
= 0 ;
3228 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3229 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3230 wxXmlDocument
*result
;
3231 bool temp1
= False
;
3232 bool temp2
= False
;
3233 PyObject
* obj0
= 0 ;
3234 PyObject
* obj1
= 0 ;
3236 (char *) "filename",(char *) "encoding", NULL
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3241 arg1
= wxString_in_helper(obj0
);
3242 if (arg1
== NULL
) SWIG_fail
;
3247 arg2
= wxString_in_helper(obj1
);
3248 if (arg2
== NULL
) SWIG_fail
;
3253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3254 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3256 wxPyEndAllowThreads(__tstate
);
3257 if (PyErr_Occurred()) SWIG_fail
;
3259 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3282 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3283 PyObject
*resultobj
;
3284 wxInputStream
*arg1
= 0 ;
3285 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3286 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3287 wxXmlDocument
*result
;
3288 wxPyInputStream
*temp1
;
3290 bool temp2
= False
;
3291 PyObject
* obj0
= 0 ;
3292 PyObject
* obj1
= 0 ;
3294 (char *) "stream",(char *) "encoding", NULL
3297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3299 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3300 arg1
= temp1
->m_wxis
;
3303 PyErr_Clear(); // clear the failure of the wxPyConvert above
3304 arg1
= wxPyCBInputStream_create(obj0
, False
);
3306 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3314 arg2
= wxString_in_helper(obj1
);
3315 if (arg2
== NULL
) SWIG_fail
;
3320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3321 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3323 wxPyEndAllowThreads(__tstate
);
3324 if (PyErr_Occurred()) SWIG_fail
;
3326 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3349 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3350 PyObject
*resultobj
;
3351 wxXmlDocument
*result
;
3356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3359 result
= (wxXmlDocument
*)new wxXmlDocument();
3361 wxPyEndAllowThreads(__tstate
);
3362 if (PyErr_Occurred()) SWIG_fail
;
3364 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3371 static PyObject
*_wrap_delete_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3372 PyObject
*resultobj
;
3373 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3374 PyObject
* obj0
= 0 ;
3376 (char *) "self", NULL
3379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3380 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3381 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3386 wxPyEndAllowThreads(__tstate
);
3387 if (PyErr_Occurred()) SWIG_fail
;
3389 Py_INCREF(Py_None
); resultobj
= Py_None
;
3396 static PyObject
*_wrap_XmlDocument_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3397 PyObject
*resultobj
;
3398 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3399 wxString
*arg2
= 0 ;
3400 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3401 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3403 bool temp2
= False
;
3404 bool temp3
= False
;
3405 PyObject
* obj0
= 0 ;
3406 PyObject
* obj1
= 0 ;
3407 PyObject
* obj2
= 0 ;
3409 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3413 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3414 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3416 arg2
= wxString_in_helper(obj1
);
3417 if (arg2
== NULL
) SWIG_fail
;
3422 arg3
= wxString_in_helper(obj2
);
3423 if (arg3
== NULL
) SWIG_fail
;
3428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3429 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3431 wxPyEndAllowThreads(__tstate
);
3432 if (PyErr_Occurred()) SWIG_fail
;
3434 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3457 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3458 PyObject
*resultobj
;
3459 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3460 wxInputStream
*arg2
= 0 ;
3461 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3462 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3464 wxPyInputStream
*temp2
;
3466 bool temp3
= False
;
3467 PyObject
* obj0
= 0 ;
3468 PyObject
* obj1
= 0 ;
3469 PyObject
* obj2
= 0 ;
3471 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3475 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3476 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3478 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3479 arg2
= temp2
->m_wxis
;
3482 PyErr_Clear(); // clear the failure of the wxPyConvert above
3483 arg2
= wxPyCBInputStream_create(obj1
, False
);
3485 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3493 arg3
= wxString_in_helper(obj2
);
3494 if (arg3
== NULL
) SWIG_fail
;
3499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3500 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3502 wxPyEndAllowThreads(__tstate
);
3503 if (PyErr_Occurred()) SWIG_fail
;
3505 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3528 static PyObject
*_wrap_XmlDocument_Save(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3529 PyObject
*resultobj
;
3530 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3531 wxString
*arg2
= 0 ;
3533 bool temp2
= False
;
3534 PyObject
* obj0
= 0 ;
3535 PyObject
* obj1
= 0 ;
3537 (char *) "self",(char *) "filename", NULL
3540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3541 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3542 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3544 arg2
= wxString_in_helper(obj1
);
3545 if (arg2
== NULL
) SWIG_fail
;
3549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3550 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3552 wxPyEndAllowThreads(__tstate
);
3553 if (PyErr_Occurred()) SWIG_fail
;
3555 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3570 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3571 PyObject
*resultobj
;
3572 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3573 wxOutputStream
*arg2
= 0 ;
3575 PyObject
* obj0
= 0 ;
3576 PyObject
* obj1
= 0 ;
3578 (char *) "self",(char *) "stream", NULL
3581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3582 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3583 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3584 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3585 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3588 PyErr_SetString(PyExc_TypeError
,"null reference");
3592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3593 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3595 wxPyEndAllowThreads(__tstate
);
3596 if (PyErr_Occurred()) SWIG_fail
;
3598 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3605 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3606 PyObject
*resultobj
;
3607 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3609 PyObject
* obj0
= 0 ;
3611 (char *) "self", NULL
3614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3615 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3616 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3619 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3621 wxPyEndAllowThreads(__tstate
);
3622 if (PyErr_Occurred()) SWIG_fail
;
3624 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3631 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3632 PyObject
*resultobj
;
3633 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3635 PyObject
* obj0
= 0 ;
3637 (char *) "self", NULL
3640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3641 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3642 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3645 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3647 wxPyEndAllowThreads(__tstate
);
3648 if (PyErr_Occurred()) SWIG_fail
;
3650 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3657 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3658 PyObject
*resultobj
;
3659 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3661 PyObject
* obj0
= 0 ;
3663 (char *) "self", NULL
3666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3667 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3668 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3671 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3673 wxPyEndAllowThreads(__tstate
);
3674 if (PyErr_Occurred()) SWIG_fail
;
3678 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3680 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3689 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3690 PyObject
*resultobj
;
3691 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3693 PyObject
* obj0
= 0 ;
3695 (char *) "self", NULL
3698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3699 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3700 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3703 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3705 wxPyEndAllowThreads(__tstate
);
3706 if (PyErr_Occurred()) SWIG_fail
;
3710 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3712 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3721 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3722 PyObject
*resultobj
;
3723 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3724 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3725 PyObject
* obj0
= 0 ;
3726 PyObject
* obj1
= 0 ;
3728 (char *) "self",(char *) "node", NULL
3731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3732 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3733 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3734 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3735 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3738 (arg1
)->SetRoot(arg2
);
3740 wxPyEndAllowThreads(__tstate
);
3741 if (PyErr_Occurred()) SWIG_fail
;
3743 Py_INCREF(Py_None
); resultobj
= Py_None
;
3750 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3751 PyObject
*resultobj
;
3752 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3753 wxString
*arg2
= 0 ;
3754 bool temp2
= False
;
3755 PyObject
* obj0
= 0 ;
3756 PyObject
* obj1
= 0 ;
3758 (char *) "self",(char *) "version", NULL
3761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3762 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3763 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3765 arg2
= wxString_in_helper(obj1
);
3766 if (arg2
== NULL
) SWIG_fail
;
3770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3771 (arg1
)->SetVersion((wxString
const &)*arg2
);
3773 wxPyEndAllowThreads(__tstate
);
3774 if (PyErr_Occurred()) SWIG_fail
;
3776 Py_INCREF(Py_None
); resultobj
= Py_None
;
3791 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3792 PyObject
*resultobj
;
3793 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3794 wxString
*arg2
= 0 ;
3795 bool temp2
= False
;
3796 PyObject
* obj0
= 0 ;
3797 PyObject
* obj1
= 0 ;
3799 (char *) "self",(char *) "encoding", NULL
3802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3803 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3804 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3806 arg2
= wxString_in_helper(obj1
);
3807 if (arg2
== NULL
) SWIG_fail
;
3811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3812 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3814 wxPyEndAllowThreads(__tstate
);
3815 if (PyErr_Occurred()) SWIG_fail
;
3817 Py_INCREF(Py_None
); resultobj
= Py_None
;
3832 static PyObject
* XmlDocument_swigregister(PyObject
*, PyObject
*args
) {
3834 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3835 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3837 return Py_BuildValue((char *)"");
3839 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3840 PyObject
*resultobj
;
3841 wxPyXmlResourceHandler
*result
;
3846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3849 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3851 wxPyEndAllowThreads(__tstate
);
3852 if (PyErr_Occurred()) SWIG_fail
;
3854 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3861 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3862 PyObject
*resultobj
;
3863 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3864 PyObject
*arg2
= (PyObject
*) 0 ;
3865 PyObject
*arg3
= (PyObject
*) 0 ;
3866 PyObject
* obj0
= 0 ;
3867 PyObject
* obj1
= 0 ;
3868 PyObject
* obj2
= 0 ;
3870 (char *) "self",(char *) "self",(char *) "_class", NULL
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3874 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3875 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3880 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3882 wxPyEndAllowThreads(__tstate
);
3883 if (PyErr_Occurred()) SWIG_fail
;
3885 Py_INCREF(Py_None
); resultobj
= Py_None
;
3892 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3893 PyObject
*resultobj
;
3894 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3895 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3896 wxObject
*arg3
= (wxObject
*) 0 ;
3897 wxObject
*arg4
= (wxObject
*) 0 ;
3899 PyObject
* obj0
= 0 ;
3900 PyObject
* obj1
= 0 ;
3901 PyObject
* obj2
= 0 ;
3902 PyObject
* obj3
= 0 ;
3904 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3908 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3909 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3910 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3911 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3912 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
3913 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3914 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
3915 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3918 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3920 wxPyEndAllowThreads(__tstate
);
3921 if (PyErr_Occurred()) SWIG_fail
;
3924 resultobj
= wxPyMake_wxObject(result
);
3932 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3933 PyObject
*resultobj
;
3934 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3935 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3936 PyObject
* obj0
= 0 ;
3937 PyObject
* obj1
= 0 ;
3939 (char *) "self",(char *) "res", NULL
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3943 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3944 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3945 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
3946 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3949 (arg1
)->SetParentResource(arg2
);
3951 wxPyEndAllowThreads(__tstate
);
3952 if (PyErr_Occurred()) SWIG_fail
;
3954 Py_INCREF(Py_None
); resultobj
= Py_None
;
3961 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3962 PyObject
*resultobj
;
3963 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3964 wxXmlResource
*result
;
3965 PyObject
* obj0
= 0 ;
3967 (char *) "self", NULL
3970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3971 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3972 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3975 result
= (wxXmlResource
*)(arg1
)->GetResource();
3977 wxPyEndAllowThreads(__tstate
);
3978 if (PyErr_Occurred()) SWIG_fail
;
3980 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
3987 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3988 PyObject
*resultobj
;
3989 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3991 PyObject
* obj0
= 0 ;
3993 (char *) "self", NULL
3996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3997 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3998 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4001 result
= (wxXmlNode
*)(arg1
)->GetNode();
4003 wxPyEndAllowThreads(__tstate
);
4004 if (PyErr_Occurred()) SWIG_fail
;
4006 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4013 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
*resultobj
;
4015 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4017 PyObject
* obj0
= 0 ;
4019 (char *) "self", NULL
4022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4023 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4024 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4027 result
= (arg1
)->GetClass();
4029 wxPyEndAllowThreads(__tstate
);
4030 if (PyErr_Occurred()) SWIG_fail
;
4034 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4036 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4045 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4046 PyObject
*resultobj
;
4047 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4049 PyObject
* obj0
= 0 ;
4051 (char *) "self", NULL
4054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4055 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4056 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4059 result
= (wxObject
*)(arg1
)->GetParent();
4061 wxPyEndAllowThreads(__tstate
);
4062 if (PyErr_Occurred()) SWIG_fail
;
4065 resultobj
= wxPyMake_wxObject(result
);
4073 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4074 PyObject
*resultobj
;
4075 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4077 PyObject
* obj0
= 0 ;
4079 (char *) "self", NULL
4082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4083 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4084 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4087 result
= (wxObject
*)(arg1
)->GetInstance();
4089 wxPyEndAllowThreads(__tstate
);
4090 if (PyErr_Occurred()) SWIG_fail
;
4093 resultobj
= wxPyMake_wxObject(result
);
4101 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4102 PyObject
*resultobj
;
4103 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4105 PyObject
* obj0
= 0 ;
4107 (char *) "self", NULL
4110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4111 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4112 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4115 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4117 wxPyEndAllowThreads(__tstate
);
4118 if (PyErr_Occurred()) SWIG_fail
;
4121 resultobj
= wxPyMake_wxObject(result
);
4129 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4130 PyObject
*resultobj
;
4131 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4133 PyObject
* obj0
= 0 ;
4135 (char *) "self", NULL
4138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4139 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4140 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4143 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4145 wxPyEndAllowThreads(__tstate
);
4146 if (PyErr_Occurred()) SWIG_fail
;
4149 resultobj
= wxPyMake_wxObject(result
);
4157 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4158 PyObject
*resultobj
;
4159 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4160 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4161 wxString
*arg3
= 0 ;
4163 bool temp3
= False
;
4164 PyObject
* obj0
= 0 ;
4165 PyObject
* obj1
= 0 ;
4166 PyObject
* obj2
= 0 ;
4168 (char *) "self",(char *) "node",(char *) "classname", NULL
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4172 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4173 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4174 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4175 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4177 arg3
= wxString_in_helper(obj2
);
4178 if (arg3
== NULL
) SWIG_fail
;
4182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4183 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4185 wxPyEndAllowThreads(__tstate
);
4186 if (PyErr_Occurred()) SWIG_fail
;
4188 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4203 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4204 PyObject
*resultobj
;
4205 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4206 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4208 PyObject
* obj0
= 0 ;
4209 PyObject
* obj1
= 0 ;
4211 (char *) "self",(char *) "node", NULL
4214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4215 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4216 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4217 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4218 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4221 result
= (arg1
)->GetNodeContent(arg2
);
4223 wxPyEndAllowThreads(__tstate
);
4224 if (PyErr_Occurred()) SWIG_fail
;
4228 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4230 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4239 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4240 PyObject
*resultobj
;
4241 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4242 wxString
*arg2
= 0 ;
4244 bool temp2
= False
;
4245 PyObject
* obj0
= 0 ;
4246 PyObject
* obj1
= 0 ;
4248 (char *) "self",(char *) "param", NULL
4251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4252 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4253 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4255 arg2
= wxString_in_helper(obj1
);
4256 if (arg2
== NULL
) SWIG_fail
;
4260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4261 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4263 wxPyEndAllowThreads(__tstate
);
4264 if (PyErr_Occurred()) SWIG_fail
;
4266 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4281 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4282 PyObject
*resultobj
;
4283 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4284 wxString
*arg2
= 0 ;
4286 bool temp2
= False
;
4287 PyObject
* obj0
= 0 ;
4288 PyObject
* obj1
= 0 ;
4290 (char *) "self",(char *) "param", NULL
4293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4294 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4295 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4297 arg2
= wxString_in_helper(obj1
);
4298 if (arg2
== NULL
) SWIG_fail
;
4302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4303 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4305 wxPyEndAllowThreads(__tstate
);
4306 if (PyErr_Occurred()) SWIG_fail
;
4308 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4323 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4324 PyObject
*resultobj
;
4325 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4326 wxString
*arg2
= 0 ;
4328 bool temp2
= False
;
4329 PyObject
* obj0
= 0 ;
4330 PyObject
* obj1
= 0 ;
4332 (char *) "self",(char *) "param", NULL
4335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4336 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4337 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4339 arg2
= wxString_in_helper(obj1
);
4340 if (arg2
== NULL
) SWIG_fail
;
4344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4345 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4347 wxPyEndAllowThreads(__tstate
);
4348 if (PyErr_Occurred()) SWIG_fail
;
4352 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4354 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4371 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4372 PyObject
*resultobj
;
4373 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4374 wxString
*arg2
= 0 ;
4376 bool temp2
= False
;
4377 PyObject
* obj0
= 0 ;
4378 PyObject
* obj1
= 0 ;
4379 PyObject
* obj2
= 0 ;
4381 (char *) "self",(char *) "name",(char *) "value", NULL
4384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4385 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4386 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4388 arg2
= wxString_in_helper(obj1
);
4389 if (arg2
== NULL
) SWIG_fail
;
4392 arg3
= (int) SWIG_AsInt(obj2
);
4393 if (PyErr_Occurred()) SWIG_fail
;
4395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4396 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4398 wxPyEndAllowThreads(__tstate
);
4399 if (PyErr_Occurred()) SWIG_fail
;
4401 Py_INCREF(Py_None
); resultobj
= Py_None
;
4416 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4417 PyObject
*resultobj
;
4418 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4419 PyObject
* obj0
= 0 ;
4421 (char *) "self", NULL
4424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4425 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4426 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4429 (arg1
)->AddWindowStyles();
4431 wxPyEndAllowThreads(__tstate
);
4432 if (PyErr_Occurred()) SWIG_fail
;
4434 Py_INCREF(Py_None
); resultobj
= Py_None
;
4441 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4442 PyObject
*resultobj
;
4443 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4444 wxString
const &arg2_defvalue
= wxPyStyleString
;
4445 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4446 int arg3
= (int) 0 ;
4448 bool temp2
= False
;
4449 PyObject
* obj0
= 0 ;
4450 PyObject
* obj1
= 0 ;
4451 PyObject
* obj2
= 0 ;
4453 (char *) "self",(char *) "param",(char *) "defaults", NULL
4456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4457 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4458 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4461 arg2
= wxString_in_helper(obj1
);
4462 if (arg2
== NULL
) SWIG_fail
;
4467 arg3
= (int) SWIG_AsInt(obj2
);
4468 if (PyErr_Occurred()) SWIG_fail
;
4471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4472 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4474 wxPyEndAllowThreads(__tstate
);
4475 if (PyErr_Occurred()) SWIG_fail
;
4477 resultobj
= SWIG_FromInt((int)result
);
4492 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4493 PyObject
*resultobj
;
4494 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4495 wxString
*arg2
= 0 ;
4496 bool arg3
= (bool) True
;
4498 bool temp2
= False
;
4499 PyObject
* obj0
= 0 ;
4500 PyObject
* obj1
= 0 ;
4501 PyObject
* obj2
= 0 ;
4503 (char *) "self",(char *) "param",(char *) "translate", NULL
4506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4507 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4508 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4510 arg2
= wxString_in_helper(obj1
);
4511 if (arg2
== NULL
) SWIG_fail
;
4515 arg3
= (bool) SWIG_AsBool(obj2
);
4516 if (PyErr_Occurred()) SWIG_fail
;
4519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4520 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4522 wxPyEndAllowThreads(__tstate
);
4523 if (PyErr_Occurred()) SWIG_fail
;
4527 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4529 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4546 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4547 PyObject
*resultobj
;
4548 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4550 PyObject
* obj0
= 0 ;
4552 (char *) "self", NULL
4555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4556 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4557 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4560 result
= (int)(arg1
)->GetID();
4562 wxPyEndAllowThreads(__tstate
);
4563 if (PyErr_Occurred()) SWIG_fail
;
4565 resultobj
= SWIG_FromInt((int)result
);
4572 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4573 PyObject
*resultobj
;
4574 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4576 PyObject
* obj0
= 0 ;
4578 (char *) "self", NULL
4581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4582 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4583 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4586 result
= (arg1
)->GetName();
4588 wxPyEndAllowThreads(__tstate
);
4589 if (PyErr_Occurred()) SWIG_fail
;
4593 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4595 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4604 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4605 PyObject
*resultobj
;
4606 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4607 wxString
*arg2
= 0 ;
4608 bool arg3
= (bool) False
;
4610 bool temp2
= False
;
4611 PyObject
* obj0
= 0 ;
4612 PyObject
* obj1
= 0 ;
4613 PyObject
* obj2
= 0 ;
4615 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4619 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4620 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4622 arg2
= wxString_in_helper(obj1
);
4623 if (arg2
== NULL
) SWIG_fail
;
4627 arg3
= (bool) SWIG_AsBool(obj2
);
4628 if (PyErr_Occurred()) SWIG_fail
;
4631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4632 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4634 wxPyEndAllowThreads(__tstate
);
4635 if (PyErr_Occurred()) SWIG_fail
;
4637 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4652 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4653 PyObject
*resultobj
;
4654 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4655 wxString
*arg2
= 0 ;
4656 long arg3
= (long) 0 ;
4658 bool temp2
= False
;
4659 PyObject
* obj0
= 0 ;
4660 PyObject
* obj1
= 0 ;
4661 PyObject
* obj2
= 0 ;
4663 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4667 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4668 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4670 arg2
= wxString_in_helper(obj1
);
4671 if (arg2
== NULL
) SWIG_fail
;
4675 arg3
= (long) SWIG_AsLong(obj2
);
4676 if (PyErr_Occurred()) SWIG_fail
;
4679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4680 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4682 wxPyEndAllowThreads(__tstate
);
4683 if (PyErr_Occurred()) SWIG_fail
;
4685 resultobj
= SWIG_FromLong((long)result
);
4700 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
*resultobj
;
4702 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4703 wxString
*arg2
= 0 ;
4705 bool temp2
= False
;
4706 PyObject
* obj0
= 0 ;
4707 PyObject
* obj1
= 0 ;
4709 (char *) "self",(char *) "param", NULL
4712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4713 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4714 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4716 arg2
= wxString_in_helper(obj1
);
4717 if (arg2
== NULL
) SWIG_fail
;
4721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4722 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4724 wxPyEndAllowThreads(__tstate
);
4725 if (PyErr_Occurred()) SWIG_fail
;
4728 wxColour
* resultptr
;
4729 resultptr
= new wxColour((wxColour
&) result
);
4730 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4746 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4747 PyObject
*resultobj
;
4748 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4749 wxString
const &arg2_defvalue
= wxPySizeString
;
4750 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4752 bool temp2
= False
;
4753 PyObject
* obj0
= 0 ;
4754 PyObject
* obj1
= 0 ;
4756 (char *) "self",(char *) "param", NULL
4759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4760 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4761 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4764 arg2
= wxString_in_helper(obj1
);
4765 if (arg2
== NULL
) SWIG_fail
;
4770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4771 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4773 wxPyEndAllowThreads(__tstate
);
4774 if (PyErr_Occurred()) SWIG_fail
;
4778 resultptr
= new wxSize((wxSize
&) result
);
4779 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4795 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4796 PyObject
*resultobj
;
4797 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4798 wxString
const &arg2_defvalue
= wxPyPosString
;
4799 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4801 bool temp2
= False
;
4802 PyObject
* obj0
= 0 ;
4803 PyObject
* obj1
= 0 ;
4805 (char *) "self",(char *) "param", NULL
4808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4809 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4810 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4813 arg2
= wxString_in_helper(obj1
);
4814 if (arg2
== NULL
) SWIG_fail
;
4819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4820 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4822 wxPyEndAllowThreads(__tstate
);
4823 if (PyErr_Occurred()) SWIG_fail
;
4826 wxPoint
* resultptr
;
4827 resultptr
= new wxPoint((wxPoint
&) result
);
4828 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4844 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4845 PyObject
*resultobj
;
4846 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4847 wxString
*arg2
= 0 ;
4848 int arg3
= (int) 0 ;
4850 bool temp2
= False
;
4851 PyObject
* obj0
= 0 ;
4852 PyObject
* obj1
= 0 ;
4853 PyObject
* obj2
= 0 ;
4855 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4859 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4860 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4862 arg2
= wxString_in_helper(obj1
);
4863 if (arg2
== NULL
) SWIG_fail
;
4867 arg3
= (int) SWIG_AsInt(obj2
);
4868 if (PyErr_Occurred()) SWIG_fail
;
4871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4872 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4874 wxPyEndAllowThreads(__tstate
);
4875 if (PyErr_Occurred()) SWIG_fail
;
4877 resultobj
= SWIG_FromInt((int)result
);
4892 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4893 PyObject
*resultobj
;
4894 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4895 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4896 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4897 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4898 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4899 wxSize arg4
= (wxSize
) wxDefaultSize
;
4901 bool temp2
= False
;
4903 PyObject
* obj0
= 0 ;
4904 PyObject
* obj1
= 0 ;
4905 PyObject
* obj2
= 0 ;
4906 PyObject
* obj3
= 0 ;
4908 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4912 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4913 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4916 arg2
= wxString_in_helper(obj1
);
4917 if (arg2
== NULL
) SWIG_fail
;
4922 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4923 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4926 PyErr_SetString(PyExc_TypeError
,"null reference");
4931 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
4932 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4937 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4939 wxPyEndAllowThreads(__tstate
);
4940 if (PyErr_Occurred()) SWIG_fail
;
4943 wxBitmap
* resultptr
;
4944 resultptr
= new wxBitmap((wxBitmap
&) result
);
4945 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
4961 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4962 PyObject
*resultobj
;
4963 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4964 wxString
const &arg2_defvalue
= wxPyIconString
;
4965 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4966 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4967 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4968 wxSize arg4
= (wxSize
) wxDefaultSize
;
4970 bool temp2
= False
;
4972 PyObject
* obj0
= 0 ;
4973 PyObject
* obj1
= 0 ;
4974 PyObject
* obj2
= 0 ;
4975 PyObject
* obj3
= 0 ;
4977 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4981 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4982 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4985 arg2
= wxString_in_helper(obj1
);
4986 if (arg2
== NULL
) SWIG_fail
;
4991 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4992 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4995 PyErr_SetString(PyExc_TypeError
,"null reference");
5000 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5001 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5006 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5008 wxPyEndAllowThreads(__tstate
);
5009 if (PyErr_Occurred()) SWIG_fail
;
5013 resultptr
= new wxIcon((wxIcon
&) result
);
5014 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5030 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5031 PyObject
*resultobj
;
5032 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5033 wxString
const &arg2_defvalue
= wxPyFontString
;
5034 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5036 bool temp2
= False
;
5037 PyObject
* obj0
= 0 ;
5038 PyObject
* obj1
= 0 ;
5040 (char *) "self",(char *) "param", NULL
5043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5044 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5045 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5048 arg2
= wxString_in_helper(obj1
);
5049 if (arg2
== NULL
) SWIG_fail
;
5054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5055 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5057 wxPyEndAllowThreads(__tstate
);
5058 if (PyErr_Occurred()) SWIG_fail
;
5062 resultptr
= new wxFont((wxFont
&) result
);
5063 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5079 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5080 PyObject
*resultobj
;
5081 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5082 wxWindow
*arg2
= (wxWindow
*) 0 ;
5083 PyObject
* obj0
= 0 ;
5084 PyObject
* obj1
= 0 ;
5086 (char *) "self",(char *) "wnd", NULL
5089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5090 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5091 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5092 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5093 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5096 (arg1
)->SetupWindow(arg2
);
5098 wxPyEndAllowThreads(__tstate
);
5099 if (PyErr_Occurred()) SWIG_fail
;
5101 Py_INCREF(Py_None
); resultobj
= Py_None
;
5108 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5109 PyObject
*resultobj
;
5110 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5111 wxObject
*arg2
= (wxObject
*) 0 ;
5112 bool arg3
= (bool) False
;
5113 PyObject
* obj0
= 0 ;
5114 PyObject
* obj1
= 0 ;
5115 PyObject
* obj2
= 0 ;
5117 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5121 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5122 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5123 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5124 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5126 arg3
= (bool) SWIG_AsBool(obj2
);
5127 if (PyErr_Occurred()) SWIG_fail
;
5130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5131 (arg1
)->CreateChildren(arg2
,arg3
);
5133 wxPyEndAllowThreads(__tstate
);
5134 if (PyErr_Occurred()) SWIG_fail
;
5136 Py_INCREF(Py_None
); resultobj
= Py_None
;
5143 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5144 PyObject
*resultobj
;
5145 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5146 wxObject
*arg2
= (wxObject
*) 0 ;
5147 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5148 PyObject
* obj0
= 0 ;
5149 PyObject
* obj1
= 0 ;
5150 PyObject
* obj2
= 0 ;
5152 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5156 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5157 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5158 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5159 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5161 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5162 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5166 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5168 wxPyEndAllowThreads(__tstate
);
5169 if (PyErr_Occurred()) SWIG_fail
;
5171 Py_INCREF(Py_None
); resultobj
= Py_None
;
5178 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5179 PyObject
*resultobj
;
5180 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5181 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5182 wxObject
*arg3
= (wxObject
*) 0 ;
5183 wxObject
*arg4
= (wxObject
*) NULL
;
5185 PyObject
* obj0
= 0 ;
5186 PyObject
* obj1
= 0 ;
5187 PyObject
* obj2
= 0 ;
5188 PyObject
* obj3
= 0 ;
5190 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5194 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5195 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5196 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5197 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5198 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5199 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5201 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5202 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5206 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5208 wxPyEndAllowThreads(__tstate
);
5209 if (PyErr_Occurred()) SWIG_fail
;
5212 resultobj
= wxPyMake_wxObject(result
);
5220 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5221 PyObject
*resultobj
;
5222 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5223 wxFileSystem
*result
;
5224 PyObject
* obj0
= 0 ;
5226 (char *) "self", NULL
5229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5230 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5231 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5235 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5236 result
= (wxFileSystem
*) &_result_ref
;
5239 wxPyEndAllowThreads(__tstate
);
5240 if (PyErr_Occurred()) SWIG_fail
;
5242 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5249 static PyObject
* XmlResourceHandler_swigregister(PyObject
*, PyObject
*args
) {
5251 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5252 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5254 return Py_BuildValue((char *)"");
5256 static PyMethodDef SwigMethods
[] = {
5257 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5258 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5259 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5260 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5261 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5262 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5263 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5264 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5265 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5266 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5267 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5268 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5269 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5270 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5271 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5272 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5273 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5274 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5275 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5276 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5277 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5278 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5279 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5280 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5281 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5282 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5283 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5284 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5285 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5286 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5287 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5288 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5289 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
5290 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5291 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5292 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
5293 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5294 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5295 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5296 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5297 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5298 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5299 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5300 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
5301 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5302 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5303 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5304 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5305 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5306 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5307 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5308 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5309 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5310 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5311 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5312 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5313 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5314 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5315 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5316 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5317 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5318 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5319 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5320 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5321 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5322 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5323 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5324 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5325 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5326 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
5327 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5328 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5329 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5330 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5331 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5332 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5333 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5334 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5335 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5336 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5337 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5338 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5339 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5340 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5341 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5342 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
5343 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5344 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5345 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5346 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5347 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5348 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5349 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5350 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5351 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5352 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5353 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5354 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5355 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5356 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5357 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5358 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5359 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5360 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5361 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5362 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5363 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5364 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5365 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5366 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5367 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5368 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5369 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5370 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5371 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5372 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5373 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5374 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5375 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5376 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5377 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5378 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5379 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
5380 { NULL
, NULL
, 0, NULL
}
5384 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5386 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5387 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5389 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5390 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5392 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5393 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5395 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5396 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5398 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5399 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5401 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5402 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5404 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5405 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5407 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5408 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5410 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5411 return (void *)((wxObject
*) ((wxSizer
*) x
));
5413 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5414 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5416 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5417 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5419 static void *_p_wxEventTo_p_wxObject(void *x
) {
5420 return (void *)((wxObject
*) ((wxEvent
*) x
));
5422 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5423 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5425 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5426 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5428 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5429 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5431 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5432 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5434 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5435 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5437 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5438 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5440 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5441 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5443 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5444 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5446 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5447 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5449 static void *_p_wxControlTo_p_wxObject(void *x
) {
5450 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5452 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5453 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5455 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5456 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5458 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5459 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5461 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5462 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5464 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5465 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5467 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5468 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5470 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5471 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5473 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5474 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5476 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5477 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5479 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5480 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5482 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5483 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5485 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5486 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5488 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5489 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5491 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5492 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5494 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5495 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5497 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5498 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5500 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5501 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5503 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5504 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5506 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5507 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5509 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5510 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5512 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5513 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5515 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5516 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5518 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5519 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5521 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5522 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5524 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5525 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5527 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5528 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5530 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5531 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5533 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5534 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5536 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5537 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5539 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5540 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5542 static void *_p_wxImageTo_p_wxObject(void *x
) {
5543 return (void *)((wxObject
*) ((wxImage
*) x
));
5545 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5546 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5548 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5549 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5551 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5552 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5554 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5555 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5557 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5558 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5560 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5561 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5563 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5564 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5566 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5567 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5569 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5570 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5572 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5573 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5575 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5576 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5578 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5579 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5581 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5582 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5584 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5585 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5587 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5588 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5590 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5591 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5593 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5594 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5596 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5597 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5599 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5600 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5602 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5603 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5605 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5606 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5608 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5609 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5611 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5612 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5614 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5615 return (void *)((wxWindow
*) ((wxControl
*) x
));
5617 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5618 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5620 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5621 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5623 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}};
5624 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}};
5625 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}};
5626 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}};
5627 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}};
5628 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}};
5629 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}};
5630 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}};
5631 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}};
5632 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}};
5633 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}};
5634 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}};
5635 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}};
5636 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}};
5637 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}};
5638 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}};
5639 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}};
5640 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}};
5641 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}};
5642 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}};
5643 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}};
5644 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}};
5646 static swig_type_info
*swig_types_initial
[] = {
5653 _swigt__p_wxArtClient
,
5655 _swigt__p_wxPyXmlSubclassFactory
,
5658 _swigt__p_wxXmlNode
,
5659 _swigt__p_wxInputStream
,
5660 _swigt__p_wxOutputStream
,
5661 _swigt__p_wxPyXmlResourceHandler
,
5662 _swigt__p_wxFileSystem
,
5663 _swigt__p_wxXmlProperty
,
5665 _swigt__p_wxXmlResource
,
5666 _swigt__p_wxXmlDocument
,
5673 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5675 static swig_const_info swig_const_table
[] = {
5676 {0, 0, 0, 0.0, 0, 0}};
5685 SWIGEXPORT(void) SWIG_init(void) {
5686 static PyObject
*SWIG_globals
= 0;
5687 static int typeinit
= 0;
5690 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5691 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5692 d
= PyModule_GetDict(m
);
5695 for (i
= 0; swig_types_initial
[i
]; i
++) {
5696 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5700 SWIG_InstallConstants(d
,swig_const_table
);
5702 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5703 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5704 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5705 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5706 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5707 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5708 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5709 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5710 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5711 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5712 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5713 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5714 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE
));
5715 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING
));
5716 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE
));
5717 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5718 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE
));
5719 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5720 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE
));
5721 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE
));
5722 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE
));
5723 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE
));
5724 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE
));
5725 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5726 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5727 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE
));
5728 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5731 wxXmlInitResourceModule();
5732 wxXmlResource::Get()->InitAllHandlers();