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>
293 static const wxString
wxPyEmptyString(wxEmptyString
);
294 static const wxString
wxPyUTF8String(wxT("UTF-8"));
295 static const wxString
wxPyStyleString(wxT("style"));
296 static const wxString
wxPySizeString(wxT("size"));
297 static const wxString
wxPyPosString(wxT("pos"));
298 static const wxString
wxPyBitmapString(wxT("bitmap"));
299 static const wxString
wxPyIconString(wxT("icon"));
300 static const wxString
wxPyFontString(wxT("font"));
305 SWIGSTATICINLINE(long)
306 SWIG_CheckLongInRange(long value
, const char* type
,
307 long min_value
, long max_value
)
309 if (!PyErr_Occurred()) {
310 if (value
< min_value
) {
312 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
313 value
, type
, min_value
);
315 PyErr_SetObject(PyExc_OverflowError
, err
);
317 } else if (value
> max_value
) {
319 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
320 value
, type
, max_value
);
321 PyErr_SetObject(PyExc_OverflowError
, err
);
329 SWIGSTATICINLINE(long)
330 SWIG_AsLong(PyObject
* obj
)
332 if (PyNumber_Check(obj
))
333 return PyInt_AsLong(obj
);
335 PyObject
* errmsg
= PyString_FromFormat("Expected number, got %s",
336 obj
->ob_type
->tp_name
);
337 PyErr_SetObject(PyExc_TypeError
, errmsg
);
344 #if INT_MAX != LONG_MAX
345 SWIGSTATICINLINE(int)
346 SWIG_AsInt(PyObject
*obj
)
348 return swig_numeric_cast(int,
349 SWIG_CheckLongInRange(SWIG_AsLong(obj
),
350 "int", INT_MIN
, INT_MAX
));
353 #define SWIG_AsInt SWIG_AsLong
357 SWIGSTATICINLINE(int)
358 SWIG_CheckInt(PyObject
* obj
)
361 if (PyErr_Occurred()) {
369 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
370 static int s_memFileIdx
= 0;
372 // Check for memory FS. If not present, load the handler:
373 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
376 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
377 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
381 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
383 // Now put the resource data into the memory FS
384 wxString
filename(wxT("XRC_resource/data_string_"));
385 filename
<< s_memFileIdx
;
387 wxMemoryFSHandler::AddFile(filename
, data
);
389 // Load the "file" into the resource object
390 bool retval
= self
->Load(wxT("memory:") + filename
);
395 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
398 wxPyXmlSubclassFactory() {}
399 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
403 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
405 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
406 // callbacks, as well as to make some protected things public so they can
408 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
410 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
411 //~wxPyXmlResourceHandler();
413 // Base class virtuals
415 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
416 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
419 // accessors for protected members
421 wxXmlResource
* GetResource() { return m_resource
; }
422 wxXmlNode
* GetNode() { return m_node
; }
423 wxString
GetClass() { return m_class
; }
424 wxObject
* GetParent() { return m_parent
; }
425 wxObject
* GetInstance() { return m_instance
; }
426 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
427 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
430 // turn some protected methods into public via delegation
432 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
433 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
435 wxString
GetNodeContent(wxXmlNode
*node
)
436 { return wxXmlResourceHandler::GetNodeContent(node
); }
438 bool HasParam(const wxString
& param
)
439 { return wxXmlResourceHandler::HasParam(param
); }
441 wxXmlNode
*GetParamNode(const wxString
& param
)
442 { return wxXmlResourceHandler::GetParamNode(param
); }
444 wxString
GetParamValue(const wxString
& param
)
445 { return wxXmlResourceHandler::GetParamValue(param
); }
447 void AddStyle(const wxString
& name
, int value
)
448 { wxXmlResourceHandler::AddStyle(name
, value
); }
450 void AddWindowStyles()
451 { wxXmlResourceHandler::AddWindowStyles(); }
453 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
454 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
456 wxString
GetText(const wxString
& param
, bool translate
= True
)
457 { return wxXmlResourceHandler::GetText(param
, translate
); }
460 { return wxXmlResourceHandler::GetID(); }
463 { return wxXmlResourceHandler::GetName(); }
465 bool GetBool(const wxString
& param
, bool defaultv
= False
)
466 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
468 long GetLong( const wxString
& param
, long defaultv
= 0 )
469 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
471 wxColour
GetColour(const wxString
& param
)
472 { return wxXmlResourceHandler::GetColour(param
); }
474 wxSize
GetSize(const wxString
& param
= wxT("size"))
475 { return wxXmlResourceHandler::GetSize(param
); }
477 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
478 { return wxXmlResourceHandler::GetPosition(param
); }
480 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
481 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
483 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
484 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
485 wxSize size
= wxDefaultSize
)
486 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
488 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
489 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
490 wxSize size
= wxDefaultSize
)
491 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
493 wxFont
GetFont(const wxString
& param
= wxT("font"))
494 { return wxXmlResourceHandler::GetFont(param
); }
496 void SetupWindow(wxWindow
*wnd
)
497 { wxXmlResourceHandler::SetupWindow(wnd
); }
499 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
500 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
502 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
503 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
505 wxObject
*CreateResFromNode(wxXmlNode
*node
,
506 wxObject
*parent
, wxObject
*instance
= NULL
)
507 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
509 wxFileSystem
& GetCurFileSystem()
510 { return wxXmlResourceHandler::GetCurFileSystem(); }
516 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
517 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
521 SWIGSTATICINLINE(bool)
522 SWIG_AsBool(PyObject
*obj
)
524 return PyObject_IsTrue(obj
) ? true : false;
528 SWIGSTATICINLINE(int)
529 SWIG_CheckBool(PyObject
* obj
)
532 if (PyErr_Occurred()) {
541 SWIGSTATICINLINE(int)
542 SWIG_CheckLong(PyObject
* obj
)
545 if (PyErr_Occurred()) {
556 static int _wrap_UTF8String_set(PyObject
*_val
) {
557 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
562 static PyObject
*_wrap_UTF8String_get() {
567 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
569 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
576 static int _wrap_StyleString_set(PyObject
*_val
) {
577 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
582 static PyObject
*_wrap_StyleString_get() {
587 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
589 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
596 static int _wrap_SizeString_set(PyObject
*_val
) {
597 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
602 static PyObject
*_wrap_SizeString_get() {
607 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
609 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
616 static int _wrap_PosString_set(PyObject
*_val
) {
617 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
622 static PyObject
*_wrap_PosString_get() {
627 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
629 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
636 static int _wrap_BitmapString_set(PyObject
*_val
) {
637 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
642 static PyObject
*_wrap_BitmapString_get() {
647 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
649 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
656 static int _wrap_IconString_set(PyObject
*_val
) {
657 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
662 static PyObject
*_wrap_IconString_get() {
667 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
669 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
676 static int _wrap_FontString_set(PyObject
*_val
) {
677 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
682 static PyObject
*_wrap_FontString_get() {
687 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
689 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
696 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
699 int arg2
= (int) wxXRC_USE_LOCALE
;
700 wxXmlResource
*result
;
702 PyObject
* obj0
= 0 ;
703 PyObject
* obj1
= 0 ;
705 (char *) "filemask",(char *) "flags", NULL
708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
710 arg1
= wxString_in_helper(obj0
);
711 if (arg1
== NULL
) SWIG_fail
;
715 arg2
= (int) SWIG_AsInt(obj1
);
716 if (PyErr_Occurred()) SWIG_fail
;
719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
720 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
722 wxPyEndAllowThreads(__tstate
);
723 if (PyErr_Occurred()) SWIG_fail
;
725 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
740 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
742 int arg1
= (int) wxXRC_USE_LOCALE
;
743 wxXmlResource
*result
;
744 PyObject
* obj0
= 0 ;
746 (char *) "flags", NULL
749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
751 arg1
= (int) SWIG_AsInt(obj0
);
752 if (PyErr_Occurred()) SWIG_fail
;
755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
756 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
758 wxPyEndAllowThreads(__tstate
);
759 if (PyErr_Occurred()) SWIG_fail
;
761 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
768 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
770 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
771 PyObject
* obj0
= 0 ;
773 (char *) "self", NULL
776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
777 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
778 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
783 wxPyEndAllowThreads(__tstate
);
784 if (PyErr_Occurred()) SWIG_fail
;
786 Py_INCREF(Py_None
); resultobj
= Py_None
;
793 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
795 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
799 PyObject
* obj0
= 0 ;
800 PyObject
* obj1
= 0 ;
802 (char *) "self",(char *) "filemask", NULL
805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
806 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
807 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
809 arg2
= wxString_in_helper(obj1
);
810 if (arg2
== NULL
) SWIG_fail
;
814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
815 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
817 wxPyEndAllowThreads(__tstate
);
818 if (PyErr_Occurred()) SWIG_fail
;
821 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
837 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
839 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
843 PyObject
* obj0
= 0 ;
844 PyObject
* obj1
= 0 ;
846 (char *) "self",(char *) "data", NULL
849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
850 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
851 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
853 arg2
= wxString_in_helper(obj1
);
854 if (arg2
== NULL
) SWIG_fail
;
858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
859 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
861 wxPyEndAllowThreads(__tstate
);
862 if (PyErr_Occurred()) SWIG_fail
;
865 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
881 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
883 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
884 PyObject
* obj0
= 0 ;
886 (char *) "self", NULL
889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
890 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
891 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
894 (arg1
)->InitAllHandlers();
896 wxPyEndAllowThreads(__tstate
);
897 if (PyErr_Occurred()) SWIG_fail
;
899 Py_INCREF(Py_None
); resultobj
= Py_None
;
906 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
908 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
909 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
910 PyObject
* obj0
= 0 ;
911 PyObject
* obj1
= 0 ;
913 (char *) "self",(char *) "handler", NULL
916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
917 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
918 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
919 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
920 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
923 (arg1
)->AddHandler(arg2
);
925 wxPyEndAllowThreads(__tstate
);
926 if (PyErr_Occurred()) SWIG_fail
;
928 Py_INCREF(Py_None
); resultobj
= Py_None
;
935 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
937 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
938 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
939 PyObject
* obj0
= 0 ;
940 PyObject
* obj1
= 0 ;
942 (char *) "self",(char *) "handler", NULL
945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
946 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
947 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
948 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
949 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
952 (arg1
)->InsertHandler(arg2
);
954 wxPyEndAllowThreads(__tstate
);
955 if (PyErr_Occurred()) SWIG_fail
;
957 Py_INCREF(Py_None
); resultobj
= Py_None
;
964 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
966 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
967 PyObject
* obj0
= 0 ;
969 (char *) "self", NULL
972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
973 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
974 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
977 (arg1
)->ClearHandlers();
979 wxPyEndAllowThreads(__tstate
);
980 if (PyErr_Occurred()) SWIG_fail
;
982 Py_INCREF(Py_None
); resultobj
= Py_None
;
989 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
991 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
992 PyObject
* obj0
= 0 ;
994 (char *) "factory", NULL
997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
998 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
999 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1002 wxXmlResource::AddSubclassFactory(arg1
);
1004 wxPyEndAllowThreads(__tstate
);
1005 if (PyErr_Occurred()) SWIG_fail
;
1007 Py_INCREF(Py_None
); resultobj
= Py_None
;
1014 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1015 PyObject
*resultobj
;
1016 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1017 wxString
*arg2
= 0 ;
1019 bool temp2
= False
;
1020 PyObject
* obj0
= 0 ;
1021 PyObject
* obj1
= 0 ;
1023 (char *) "self",(char *) "name", NULL
1026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1027 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1028 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1030 arg2
= wxString_in_helper(obj1
);
1031 if (arg2
== NULL
) SWIG_fail
;
1035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1036 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1038 wxPyEndAllowThreads(__tstate
);
1039 if (PyErr_Occurred()) SWIG_fail
;
1042 resultobj
= wxPyMake_wxObject(result
);
1058 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1059 PyObject
*resultobj
;
1060 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1061 wxString
*arg2
= 0 ;
1063 bool temp2
= False
;
1064 PyObject
* obj0
= 0 ;
1065 PyObject
* obj1
= 0 ;
1067 (char *) "self",(char *) "name", NULL
1070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1071 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1072 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1074 arg2
= wxString_in_helper(obj1
);
1075 if (arg2
== NULL
) SWIG_fail
;
1079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1080 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1082 wxPyEndAllowThreads(__tstate
);
1083 if (PyErr_Occurred()) SWIG_fail
;
1086 resultobj
= wxPyMake_wxObject(result
);
1102 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1103 PyObject
*resultobj
;
1104 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1105 wxWindow
*arg2
= (wxWindow
*) 0 ;
1106 wxString
*arg3
= 0 ;
1108 bool temp3
= False
;
1109 PyObject
* obj0
= 0 ;
1110 PyObject
* obj1
= 0 ;
1111 PyObject
* obj2
= 0 ;
1113 (char *) "self",(char *) "parent",(char *) "name", NULL
1116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1117 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1118 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1119 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1120 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1122 arg3
= wxString_in_helper(obj2
);
1123 if (arg3
== NULL
) SWIG_fail
;
1127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1128 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1130 wxPyEndAllowThreads(__tstate
);
1131 if (PyErr_Occurred()) SWIG_fail
;
1134 resultobj
= wxPyMake_wxObject(result
);
1150 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1151 PyObject
*resultobj
;
1152 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1153 wxWindow
*arg2
= (wxWindow
*) 0 ;
1154 wxString
*arg3
= 0 ;
1156 bool temp3
= False
;
1157 PyObject
* obj0
= 0 ;
1158 PyObject
* obj1
= 0 ;
1159 PyObject
* obj2
= 0 ;
1161 (char *) "self",(char *) "parent",(char *) "name", NULL
1164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1165 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1166 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1167 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1168 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1170 arg3
= wxString_in_helper(obj2
);
1171 if (arg3
== NULL
) SWIG_fail
;
1175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1176 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1178 wxPyEndAllowThreads(__tstate
);
1179 if (PyErr_Occurred()) SWIG_fail
;
1182 resultobj
= wxPyMake_wxObject(result
);
1198 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1199 PyObject
*resultobj
;
1200 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1201 wxWindow
*arg2
= (wxWindow
*) 0 ;
1202 wxString
*arg3
= 0 ;
1204 bool temp3
= False
;
1205 PyObject
* obj0
= 0 ;
1206 PyObject
* obj1
= 0 ;
1207 PyObject
* obj2
= 0 ;
1209 (char *) "self",(char *) "parent",(char *) "name", NULL
1212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1213 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1214 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1215 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1216 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1218 arg3
= wxString_in_helper(obj2
);
1219 if (arg3
== NULL
) SWIG_fail
;
1223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1224 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1226 wxPyEndAllowThreads(__tstate
);
1227 if (PyErr_Occurred()) SWIG_fail
;
1230 resultobj
= wxPyMake_wxObject(result
);
1246 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1247 PyObject
*resultobj
;
1248 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1249 wxDialog
*arg2
= (wxDialog
*) 0 ;
1250 wxWindow
*arg3
= (wxWindow
*) 0 ;
1251 wxString
*arg4
= 0 ;
1253 bool temp4
= False
;
1254 PyObject
* obj0
= 0 ;
1255 PyObject
* obj1
= 0 ;
1256 PyObject
* obj2
= 0 ;
1257 PyObject
* obj3
= 0 ;
1259 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1263 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1264 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1265 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1266 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1267 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1268 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1270 arg4
= wxString_in_helper(obj3
);
1271 if (arg4
== NULL
) SWIG_fail
;
1275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1276 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1278 wxPyEndAllowThreads(__tstate
);
1279 if (PyErr_Occurred()) SWIG_fail
;
1282 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1298 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1299 PyObject
*resultobj
;
1300 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1301 wxWindow
*arg2
= (wxWindow
*) 0 ;
1302 wxString
*arg3
= 0 ;
1304 bool temp3
= False
;
1305 PyObject
* obj0
= 0 ;
1306 PyObject
* obj1
= 0 ;
1307 PyObject
* obj2
= 0 ;
1309 (char *) "self",(char *) "parent",(char *) "name", NULL
1312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1313 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1314 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1315 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1316 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1318 arg3
= wxString_in_helper(obj2
);
1319 if (arg3
== NULL
) SWIG_fail
;
1323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1324 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1326 wxPyEndAllowThreads(__tstate
);
1327 if (PyErr_Occurred()) SWIG_fail
;
1330 resultobj
= wxPyMake_wxObject(result
);
1346 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1347 PyObject
*resultobj
;
1348 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1349 wxPanel
*arg2
= (wxPanel
*) 0 ;
1350 wxWindow
*arg3
= (wxWindow
*) 0 ;
1351 wxString
*arg4
= 0 ;
1353 bool temp4
= False
;
1354 PyObject
* obj0
= 0 ;
1355 PyObject
* obj1
= 0 ;
1356 PyObject
* obj2
= 0 ;
1357 PyObject
* obj3
= 0 ;
1359 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1363 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1364 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1365 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1366 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1367 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1368 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1370 arg4
= wxString_in_helper(obj3
);
1371 if (arg4
== NULL
) SWIG_fail
;
1375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1376 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1378 wxPyEndAllowThreads(__tstate
);
1379 if (PyErr_Occurred()) SWIG_fail
;
1382 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1398 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1399 PyObject
*resultobj
;
1400 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1401 wxWindow
*arg2
= (wxWindow
*) 0 ;
1402 wxString
*arg3
= 0 ;
1404 bool temp3
= False
;
1405 PyObject
* obj0
= 0 ;
1406 PyObject
* obj1
= 0 ;
1407 PyObject
* obj2
= 0 ;
1409 (char *) "self",(char *) "parent",(char *) "name", NULL
1412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1413 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1414 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1415 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1416 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1418 arg3
= wxString_in_helper(obj2
);
1419 if (arg3
== NULL
) SWIG_fail
;
1423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1424 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1426 wxPyEndAllowThreads(__tstate
);
1427 if (PyErr_Occurred()) SWIG_fail
;
1430 resultobj
= wxPyMake_wxObject(result
);
1446 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1447 PyObject
*resultobj
;
1448 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1449 wxFrame
*arg2
= (wxFrame
*) 0 ;
1450 wxWindow
*arg3
= (wxWindow
*) 0 ;
1451 wxString
*arg4
= 0 ;
1453 bool temp4
= False
;
1454 PyObject
* obj0
= 0 ;
1455 PyObject
* obj1
= 0 ;
1456 PyObject
* obj2
= 0 ;
1457 PyObject
* obj3
= 0 ;
1459 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1463 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1464 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1465 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1466 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1467 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1468 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1470 arg4
= wxString_in_helper(obj3
);
1471 if (arg4
== NULL
) SWIG_fail
;
1475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1476 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1478 wxPyEndAllowThreads(__tstate
);
1479 if (PyErr_Occurred()) SWIG_fail
;
1482 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1498 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1499 PyObject
*resultobj
;
1500 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1501 wxWindow
*arg2
= (wxWindow
*) 0 ;
1502 wxString
*arg3
= 0 ;
1503 wxString
*arg4
= 0 ;
1505 bool temp3
= False
;
1506 bool temp4
= False
;
1507 PyObject
* obj0
= 0 ;
1508 PyObject
* obj1
= 0 ;
1509 PyObject
* obj2
= 0 ;
1510 PyObject
* obj3
= 0 ;
1512 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1516 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1517 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1518 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1519 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1521 arg3
= wxString_in_helper(obj2
);
1522 if (arg3
== NULL
) SWIG_fail
;
1526 arg4
= wxString_in_helper(obj3
);
1527 if (arg4
== NULL
) SWIG_fail
;
1531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1532 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1534 wxPyEndAllowThreads(__tstate
);
1535 if (PyErr_Occurred()) SWIG_fail
;
1538 resultobj
= wxPyMake_wxObject(result
);
1562 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1563 PyObject
*resultobj
;
1564 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1565 wxObject
*arg2
= (wxObject
*) 0 ;
1566 wxWindow
*arg3
= (wxWindow
*) 0 ;
1567 wxString
*arg4
= 0 ;
1568 wxString
*arg5
= 0 ;
1570 bool temp4
= False
;
1571 bool temp5
= False
;
1572 PyObject
* obj0
= 0 ;
1573 PyObject
* obj1
= 0 ;
1574 PyObject
* obj2
= 0 ;
1575 PyObject
* obj3
= 0 ;
1576 PyObject
* obj4
= 0 ;
1578 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1582 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1583 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1584 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1585 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1586 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1587 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1589 arg4
= wxString_in_helper(obj3
);
1590 if (arg4
== NULL
) SWIG_fail
;
1594 arg5
= wxString_in_helper(obj4
);
1595 if (arg5
== NULL
) SWIG_fail
;
1599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1600 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1602 wxPyEndAllowThreads(__tstate
);
1603 if (PyErr_Occurred()) SWIG_fail
;
1606 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1630 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1631 PyObject
*resultobj
;
1632 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1633 wxString
*arg2
= 0 ;
1635 bool temp2
= False
;
1636 PyObject
* obj0
= 0 ;
1637 PyObject
* obj1
= 0 ;
1639 (char *) "self",(char *) "name", NULL
1642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1643 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1644 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1646 arg2
= wxString_in_helper(obj1
);
1647 if (arg2
== NULL
) SWIG_fail
;
1651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1652 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1654 wxPyEndAllowThreads(__tstate
);
1655 if (PyErr_Occurred()) SWIG_fail
;
1658 wxBitmap
* resultptr
;
1659 resultptr
= new wxBitmap((wxBitmap
&) result
);
1660 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1676 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1677 PyObject
*resultobj
;
1678 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1679 wxString
*arg2
= 0 ;
1681 bool temp2
= False
;
1682 PyObject
* obj0
= 0 ;
1683 PyObject
* obj1
= 0 ;
1685 (char *) "self",(char *) "name", NULL
1688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1689 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1690 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1692 arg2
= wxString_in_helper(obj1
);
1693 if (arg2
== NULL
) SWIG_fail
;
1697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1698 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1700 wxPyEndAllowThreads(__tstate
);
1701 if (PyErr_Occurred()) SWIG_fail
;
1705 resultptr
= new wxIcon((wxIcon
&) result
);
1706 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1722 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1723 PyObject
*resultobj
;
1724 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1725 wxString
*arg2
= 0 ;
1726 wxWindow
*arg3
= (wxWindow
*) 0 ;
1727 wxWindow
*arg4
= (wxWindow
*) NULL
;
1729 bool temp2
= False
;
1730 PyObject
* obj0
= 0 ;
1731 PyObject
* obj1
= 0 ;
1732 PyObject
* obj2
= 0 ;
1733 PyObject
* obj3
= 0 ;
1735 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1739 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1740 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1742 arg2
= wxString_in_helper(obj1
);
1743 if (arg2
== NULL
) SWIG_fail
;
1746 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1747 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1749 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1750 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1754 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1756 wxPyEndAllowThreads(__tstate
);
1757 if (PyErr_Occurred()) SWIG_fail
;
1760 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1776 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1777 PyObject
*resultobj
;
1778 wxString
*arg1
= 0 ;
1780 bool temp1
= False
;
1781 PyObject
* obj0
= 0 ;
1783 (char *) "str_id", NULL
1786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1788 arg1
= wxString_in_helper(obj0
);
1789 if (arg1
== NULL
) SWIG_fail
;
1793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1794 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1796 wxPyEndAllowThreads(__tstate
);
1797 if (PyErr_Occurred()) SWIG_fail
;
1799 resultobj
= SWIG_FromInt((int)result
);
1814 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
*resultobj
;
1816 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1818 PyObject
* obj0
= 0 ;
1820 (char *) "self", NULL
1823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1824 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1825 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1828 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1830 wxPyEndAllowThreads(__tstate
);
1831 if (PyErr_Occurred()) SWIG_fail
;
1833 resultobj
= SWIG_FromLong((long)result
);
1840 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1841 PyObject
*resultobj
;
1842 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1848 PyObject
* obj0
= 0 ;
1849 PyObject
* obj1
= 0 ;
1850 PyObject
* obj2
= 0 ;
1851 PyObject
* obj3
= 0 ;
1852 PyObject
* obj4
= 0 ;
1854 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1858 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1859 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1860 arg2
= (int) SWIG_AsInt(obj1
);
1861 if (PyErr_Occurred()) SWIG_fail
;
1862 arg3
= (int) SWIG_AsInt(obj2
);
1863 if (PyErr_Occurred()) SWIG_fail
;
1864 arg4
= (int) SWIG_AsInt(obj3
);
1865 if (PyErr_Occurred()) SWIG_fail
;
1866 arg5
= (int) SWIG_AsInt(obj4
);
1867 if (PyErr_Occurred()) SWIG_fail
;
1869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1870 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1872 wxPyEndAllowThreads(__tstate
);
1873 if (PyErr_Occurred()) SWIG_fail
;
1875 resultobj
= SWIG_FromInt((int)result
);
1882 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1883 PyObject
*resultobj
;
1884 wxXmlResource
*result
;
1889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1892 result
= (wxXmlResource
*)wxXmlResource::Get();
1894 wxPyEndAllowThreads(__tstate
);
1895 if (PyErr_Occurred()) SWIG_fail
;
1897 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1904 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1905 PyObject
*resultobj
;
1906 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1907 wxXmlResource
*result
;
1908 PyObject
* obj0
= 0 ;
1910 (char *) "res", NULL
1913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1914 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1915 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1918 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1920 wxPyEndAllowThreads(__tstate
);
1921 if (PyErr_Occurred()) SWIG_fail
;
1923 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1930 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1931 PyObject
*resultobj
;
1932 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1934 PyObject
* obj0
= 0 ;
1936 (char *) "self", NULL
1939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1940 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1941 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1944 result
= (int)(arg1
)->GetFlags();
1946 wxPyEndAllowThreads(__tstate
);
1947 if (PyErr_Occurred()) SWIG_fail
;
1949 resultobj
= SWIG_FromInt((int)result
);
1956 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
*resultobj
;
1958 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1960 PyObject
* obj0
= 0 ;
1961 PyObject
* obj1
= 0 ;
1963 (char *) "self",(char *) "flags", NULL
1966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1967 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1968 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1969 arg2
= (int) SWIG_AsInt(obj1
);
1970 if (PyErr_Occurred()) SWIG_fail
;
1972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1973 (arg1
)->SetFlags(arg2
);
1975 wxPyEndAllowThreads(__tstate
);
1976 if (PyErr_Occurred()) SWIG_fail
;
1978 Py_INCREF(Py_None
); resultobj
= Py_None
;
1985 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1987 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1988 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1990 return Py_BuildValue((char *)"");
1992 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1993 PyObject
*resultobj
;
1994 wxPyXmlSubclassFactory
*result
;
1999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
2001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2002 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
2004 wxPyEndAllowThreads(__tstate
);
2005 if (PyErr_Occurred()) SWIG_fail
;
2007 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2014 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2015 PyObject
*resultobj
;
2016 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2017 PyObject
*arg2
= (PyObject
*) 0 ;
2018 PyObject
*arg3
= (PyObject
*) 0 ;
2019 PyObject
* obj0
= 0 ;
2020 PyObject
* obj1
= 0 ;
2021 PyObject
* obj2
= 0 ;
2023 (char *) "self",(char *) "self",(char *) "_class", NULL
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2027 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2028 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2033 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2035 wxPyEndAllowThreads(__tstate
);
2036 if (PyErr_Occurred()) SWIG_fail
;
2038 Py_INCREF(Py_None
); resultobj
= Py_None
;
2045 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
2047 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2048 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2050 return Py_BuildValue((char *)"");
2052 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2053 PyObject
*resultobj
;
2054 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2055 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2056 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2057 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2058 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2059 wxXmlProperty
*result
;
2060 bool temp1
= False
;
2061 bool temp2
= False
;
2062 PyObject
* obj0
= 0 ;
2063 PyObject
* obj1
= 0 ;
2064 PyObject
* obj2
= 0 ;
2066 (char *) "name",(char *) "value",(char *) "next", NULL
2069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2072 arg1
= wxString_in_helper(obj0
);
2073 if (arg1
== NULL
) SWIG_fail
;
2079 arg2
= wxString_in_helper(obj1
);
2080 if (arg2
== NULL
) SWIG_fail
;
2085 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2086 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2090 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2092 wxPyEndAllowThreads(__tstate
);
2093 if (PyErr_Occurred()) SWIG_fail
;
2095 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2118 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
*resultobj
;
2120 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2122 PyObject
* obj0
= 0 ;
2124 (char *) "self", NULL
2127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2128 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2129 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2132 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2134 wxPyEndAllowThreads(__tstate
);
2135 if (PyErr_Occurred()) SWIG_fail
;
2139 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2141 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2150 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
*resultobj
;
2152 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2154 PyObject
* obj0
= 0 ;
2156 (char *) "self", NULL
2159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2160 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2161 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2164 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2166 wxPyEndAllowThreads(__tstate
);
2167 if (PyErr_Occurred()) SWIG_fail
;
2171 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2173 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2182 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2183 PyObject
*resultobj
;
2184 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2185 wxXmlProperty
*result
;
2186 PyObject
* obj0
= 0 ;
2188 (char *) "self", NULL
2191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2192 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2193 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2196 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2198 wxPyEndAllowThreads(__tstate
);
2199 if (PyErr_Occurred()) SWIG_fail
;
2201 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2208 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2209 PyObject
*resultobj
;
2210 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2211 wxString
*arg2
= 0 ;
2212 bool temp2
= False
;
2213 PyObject
* obj0
= 0 ;
2214 PyObject
* obj1
= 0 ;
2216 (char *) "self",(char *) "name", NULL
2219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2220 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2221 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2223 arg2
= wxString_in_helper(obj1
);
2224 if (arg2
== NULL
) SWIG_fail
;
2228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2229 (arg1
)->SetName((wxString
const &)*arg2
);
2231 wxPyEndAllowThreads(__tstate
);
2232 if (PyErr_Occurred()) SWIG_fail
;
2234 Py_INCREF(Py_None
); resultobj
= Py_None
;
2249 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2250 PyObject
*resultobj
;
2251 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2252 wxString
*arg2
= 0 ;
2253 bool temp2
= False
;
2254 PyObject
* obj0
= 0 ;
2255 PyObject
* obj1
= 0 ;
2257 (char *) "self",(char *) "value", NULL
2260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2261 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2262 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2264 arg2
= wxString_in_helper(obj1
);
2265 if (arg2
== NULL
) SWIG_fail
;
2269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2270 (arg1
)->SetValue((wxString
const &)*arg2
);
2272 wxPyEndAllowThreads(__tstate
);
2273 if (PyErr_Occurred()) SWIG_fail
;
2275 Py_INCREF(Py_None
); resultobj
= Py_None
;
2290 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2291 PyObject
*resultobj
;
2292 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2293 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2294 PyObject
* obj0
= 0 ;
2295 PyObject
* obj1
= 0 ;
2297 (char *) "self",(char *) "next", NULL
2300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2301 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2302 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2303 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2304 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2307 (arg1
)->SetNext(arg2
);
2309 wxPyEndAllowThreads(__tstate
);
2310 if (PyErr_Occurred()) SWIG_fail
;
2312 Py_INCREF(Py_None
); resultobj
= Py_None
;
2319 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2321 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2322 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2324 return Py_BuildValue((char *)"");
2326 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2327 PyObject
*resultobj
;
2328 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2329 int arg2
= (int) 0 ;
2330 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2331 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2332 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2333 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2334 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2335 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2337 bool temp3
= False
;
2338 bool temp4
= False
;
2339 PyObject
* obj0
= 0 ;
2340 PyObject
* obj1
= 0 ;
2341 PyObject
* obj2
= 0 ;
2342 PyObject
* obj3
= 0 ;
2343 PyObject
* obj4
= 0 ;
2344 PyObject
* obj5
= 0 ;
2346 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2351 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2352 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2355 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
2356 if (PyErr_Occurred()) SWIG_fail
;
2360 arg3
= wxString_in_helper(obj2
);
2361 if (arg3
== NULL
) SWIG_fail
;
2367 arg4
= wxString_in_helper(obj3
);
2368 if (arg4
== NULL
) SWIG_fail
;
2373 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2374 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2377 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2378 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2382 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2384 wxPyEndAllowThreads(__tstate
);
2385 if (PyErr_Occurred()) SWIG_fail
;
2387 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2410 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2411 PyObject
*resultobj
;
2412 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2413 PyObject
* obj0
= 0 ;
2415 (char *) "self", NULL
2418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2419 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2420 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2425 wxPyEndAllowThreads(__tstate
);
2426 if (PyErr_Occurred()) SWIG_fail
;
2428 Py_INCREF(Py_None
); resultobj
= Py_None
;
2435 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2436 PyObject
*resultobj
;
2438 wxString
*arg2
= 0 ;
2439 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2440 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2442 bool temp2
= False
;
2443 bool temp3
= False
;
2444 PyObject
* obj0
= 0 ;
2445 PyObject
* obj1
= 0 ;
2446 PyObject
* obj2
= 0 ;
2448 (char *) "type",(char *) "name",(char *) "content", NULL
2451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2452 arg1
= (wxXmlNodeType
) SWIG_AsInt(obj0
);
2453 if (PyErr_Occurred()) SWIG_fail
;
2455 arg2
= wxString_in_helper(obj1
);
2456 if (arg2
== NULL
) SWIG_fail
;
2461 arg3
= wxString_in_helper(obj2
);
2462 if (arg3
== NULL
) SWIG_fail
;
2467 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2468 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2470 wxPyEndAllowThreads(__tstate
);
2471 if (PyErr_Occurred()) SWIG_fail
;
2473 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2496 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2497 PyObject
*resultobj
;
2498 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2499 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2500 PyObject
* obj0
= 0 ;
2501 PyObject
* obj1
= 0 ;
2503 (char *) "self",(char *) "child", NULL
2506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2507 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2508 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2509 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2510 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2513 (arg1
)->AddChild(arg2
);
2515 wxPyEndAllowThreads(__tstate
);
2516 if (PyErr_Occurred()) SWIG_fail
;
2518 Py_INCREF(Py_None
); resultobj
= Py_None
;
2525 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2526 PyObject
*resultobj
;
2527 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2528 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2529 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2530 PyObject
* obj0
= 0 ;
2531 PyObject
* obj1
= 0 ;
2532 PyObject
* obj2
= 0 ;
2534 (char *) "self",(char *) "child",(char *) "before_node", NULL
2537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2538 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2539 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2540 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2541 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2542 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2543 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2546 (arg1
)->InsertChild(arg2
,arg3
);
2548 wxPyEndAllowThreads(__tstate
);
2549 if (PyErr_Occurred()) SWIG_fail
;
2551 Py_INCREF(Py_None
); resultobj
= Py_None
;
2558 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2559 PyObject
*resultobj
;
2560 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2561 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2563 PyObject
* obj0
= 0 ;
2564 PyObject
* obj1
= 0 ;
2566 (char *) "self",(char *) "child", NULL
2569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2570 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2571 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2572 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2573 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2576 result
= (bool)(arg1
)->RemoveChild(arg2
);
2578 wxPyEndAllowThreads(__tstate
);
2579 if (PyErr_Occurred()) SWIG_fail
;
2582 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2590 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2591 PyObject
*resultobj
;
2592 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2593 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2594 PyObject
* obj0
= 0 ;
2595 PyObject
* obj1
= 0 ;
2597 (char *) "self",(char *) "prop", NULL
2600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2601 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2602 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2603 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2604 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2607 (arg1
)->AddProperty(arg2
);
2609 wxPyEndAllowThreads(__tstate
);
2610 if (PyErr_Occurred()) SWIG_fail
;
2612 Py_INCREF(Py_None
); resultobj
= Py_None
;
2619 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2620 PyObject
*resultobj
;
2621 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2622 wxString
*arg2
= 0 ;
2623 wxString
*arg3
= 0 ;
2624 bool temp2
= False
;
2625 bool temp3
= False
;
2626 PyObject
* obj0
= 0 ;
2627 PyObject
* obj1
= 0 ;
2628 PyObject
* obj2
= 0 ;
2630 (char *) "self",(char *) "name",(char *) "value", NULL
2633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2634 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2635 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2637 arg2
= wxString_in_helper(obj1
);
2638 if (arg2
== NULL
) SWIG_fail
;
2642 arg3
= wxString_in_helper(obj2
);
2643 if (arg3
== NULL
) SWIG_fail
;
2647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2648 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2650 wxPyEndAllowThreads(__tstate
);
2651 if (PyErr_Occurred()) SWIG_fail
;
2653 Py_INCREF(Py_None
); resultobj
= Py_None
;
2676 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2677 PyObject
*resultobj
;
2678 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2679 wxString
*arg2
= 0 ;
2681 bool temp2
= False
;
2682 PyObject
* obj0
= 0 ;
2683 PyObject
* obj1
= 0 ;
2685 (char *) "self",(char *) "name", NULL
2688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2689 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2690 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2692 arg2
= wxString_in_helper(obj1
);
2693 if (arg2
== NULL
) SWIG_fail
;
2697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2698 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2700 wxPyEndAllowThreads(__tstate
);
2701 if (PyErr_Occurred()) SWIG_fail
;
2704 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2720 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2721 PyObject
*resultobj
;
2722 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2724 PyObject
* obj0
= 0 ;
2726 (char *) "self", NULL
2729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2730 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2731 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2734 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2736 wxPyEndAllowThreads(__tstate
);
2737 if (PyErr_Occurred()) SWIG_fail
;
2739 resultobj
= SWIG_FromInt((int)result
);
2746 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2747 PyObject
*resultobj
;
2748 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2750 PyObject
* obj0
= 0 ;
2752 (char *) "self", NULL
2755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2756 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2757 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2760 result
= ((wxXmlNode
const *)arg1
)->GetName();
2762 wxPyEndAllowThreads(__tstate
);
2763 if (PyErr_Occurred()) SWIG_fail
;
2767 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2769 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2778 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2779 PyObject
*resultobj
;
2780 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2782 PyObject
* obj0
= 0 ;
2784 (char *) "self", NULL
2787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2788 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2789 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2792 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2794 wxPyEndAllowThreads(__tstate
);
2795 if (PyErr_Occurred()) SWIG_fail
;
2799 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2801 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2810 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2811 PyObject
*resultobj
;
2812 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2814 PyObject
* obj0
= 0 ;
2816 (char *) "self", NULL
2819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2820 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2821 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2824 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2826 wxPyEndAllowThreads(__tstate
);
2827 if (PyErr_Occurred()) SWIG_fail
;
2829 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2836 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
*resultobj
;
2838 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2840 PyObject
* obj0
= 0 ;
2842 (char *) "self", NULL
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2846 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2847 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2850 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2852 wxPyEndAllowThreads(__tstate
);
2853 if (PyErr_Occurred()) SWIG_fail
;
2855 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2862 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2863 PyObject
*resultobj
;
2864 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2866 PyObject
* obj0
= 0 ;
2868 (char *) "self", NULL
2871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2872 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2873 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2876 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2878 wxPyEndAllowThreads(__tstate
);
2879 if (PyErr_Occurred()) SWIG_fail
;
2881 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2888 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2889 PyObject
*resultobj
;
2890 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2891 wxXmlProperty
*result
;
2892 PyObject
* obj0
= 0 ;
2894 (char *) "self", NULL
2897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2898 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2899 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2902 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2904 wxPyEndAllowThreads(__tstate
);
2905 if (PyErr_Occurred()) SWIG_fail
;
2907 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2914 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2915 PyObject
*resultobj
;
2916 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2917 wxString
*arg2
= 0 ;
2918 wxString
*arg3
= 0 ;
2920 bool temp2
= False
;
2921 bool temp3
= False
;
2922 PyObject
* obj0
= 0 ;
2923 PyObject
* obj1
= 0 ;
2924 PyObject
* obj2
= 0 ;
2926 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2930 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2931 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2933 arg2
= wxString_in_helper(obj1
);
2934 if (arg2
== NULL
) SWIG_fail
;
2938 arg3
= wxString_in_helper(obj2
);
2939 if (arg3
== NULL
) SWIG_fail
;
2943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2944 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2946 wxPyEndAllowThreads(__tstate
);
2947 if (PyErr_Occurred()) SWIG_fail
;
2951 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2953 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2978 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2979 PyObject
*resultobj
;
2980 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2981 wxString
*arg2
= 0 ;
2983 bool temp2
= False
;
2984 PyObject
* obj0
= 0 ;
2985 PyObject
* obj1
= 0 ;
2987 (char *) "self",(char *) "propName", NULL
2990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2991 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2992 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2994 arg2
= wxString_in_helper(obj1
);
2995 if (arg2
== NULL
) SWIG_fail
;
2999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3000 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
3002 wxPyEndAllowThreads(__tstate
);
3003 if (PyErr_Occurred()) SWIG_fail
;
3006 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3022 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3023 PyObject
*resultobj
;
3024 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3026 PyObject
* obj0
= 0 ;
3027 PyObject
* obj1
= 0 ;
3029 (char *) "self",(char *) "type", NULL
3032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3033 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3034 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3035 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
3036 if (PyErr_Occurred()) SWIG_fail
;
3038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3039 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3041 wxPyEndAllowThreads(__tstate
);
3042 if (PyErr_Occurred()) SWIG_fail
;
3044 Py_INCREF(Py_None
); resultobj
= Py_None
;
3051 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3052 PyObject
*resultobj
;
3053 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3054 wxString
*arg2
= 0 ;
3055 bool temp2
= False
;
3056 PyObject
* obj0
= 0 ;
3057 PyObject
* obj1
= 0 ;
3059 (char *) "self",(char *) "name", NULL
3062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3063 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3064 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3066 arg2
= wxString_in_helper(obj1
);
3067 if (arg2
== NULL
) SWIG_fail
;
3071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3072 (arg1
)->SetName((wxString
const &)*arg2
);
3074 wxPyEndAllowThreads(__tstate
);
3075 if (PyErr_Occurred()) SWIG_fail
;
3077 Py_INCREF(Py_None
); resultobj
= Py_None
;
3092 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3093 PyObject
*resultobj
;
3094 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3095 wxString
*arg2
= 0 ;
3096 bool temp2
= False
;
3097 PyObject
* obj0
= 0 ;
3098 PyObject
* obj1
= 0 ;
3100 (char *) "self",(char *) "con", NULL
3103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3104 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3105 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3107 arg2
= wxString_in_helper(obj1
);
3108 if (arg2
== NULL
) SWIG_fail
;
3112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3113 (arg1
)->SetContent((wxString
const &)*arg2
);
3115 wxPyEndAllowThreads(__tstate
);
3116 if (PyErr_Occurred()) SWIG_fail
;
3118 Py_INCREF(Py_None
); resultobj
= Py_None
;
3133 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3134 PyObject
*resultobj
;
3135 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3136 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3137 PyObject
* obj0
= 0 ;
3138 PyObject
* obj1
= 0 ;
3140 (char *) "self",(char *) "parent", NULL
3143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3144 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3145 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3146 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3147 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3150 (arg1
)->SetParent(arg2
);
3152 wxPyEndAllowThreads(__tstate
);
3153 if (PyErr_Occurred()) SWIG_fail
;
3155 Py_INCREF(Py_None
); resultobj
= Py_None
;
3162 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3163 PyObject
*resultobj
;
3164 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3165 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3166 PyObject
* obj0
= 0 ;
3167 PyObject
* obj1
= 0 ;
3169 (char *) "self",(char *) "next", NULL
3172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3173 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3174 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3175 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3176 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3179 (arg1
)->SetNext(arg2
);
3181 wxPyEndAllowThreads(__tstate
);
3182 if (PyErr_Occurred()) SWIG_fail
;
3184 Py_INCREF(Py_None
); resultobj
= Py_None
;
3191 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3192 PyObject
*resultobj
;
3193 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3194 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3195 PyObject
* obj0
= 0 ;
3196 PyObject
* obj1
= 0 ;
3198 (char *) "self",(char *) "child", NULL
3201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3202 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3204 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3208 (arg1
)->SetChildren(arg2
);
3210 wxPyEndAllowThreads(__tstate
);
3211 if (PyErr_Occurred()) SWIG_fail
;
3213 Py_INCREF(Py_None
); resultobj
= Py_None
;
3220 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3221 PyObject
*resultobj
;
3222 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3223 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3224 PyObject
* obj0
= 0 ;
3225 PyObject
* obj1
= 0 ;
3227 (char *) "self",(char *) "prop", NULL
3230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3231 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3232 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3233 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3234 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3237 (arg1
)->SetProperties(arg2
);
3239 wxPyEndAllowThreads(__tstate
);
3240 if (PyErr_Occurred()) SWIG_fail
;
3242 Py_INCREF(Py_None
); resultobj
= Py_None
;
3249 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3251 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3252 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3254 return Py_BuildValue((char *)"");
3256 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3257 PyObject
*resultobj
;
3258 wxString
*arg1
= 0 ;
3259 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3260 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3261 wxXmlDocument
*result
;
3262 bool temp1
= False
;
3263 bool temp2
= False
;
3264 PyObject
* obj0
= 0 ;
3265 PyObject
* obj1
= 0 ;
3267 (char *) "filename",(char *) "encoding", NULL
3270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3272 arg1
= wxString_in_helper(obj0
);
3273 if (arg1
== NULL
) SWIG_fail
;
3278 arg2
= wxString_in_helper(obj1
);
3279 if (arg2
== NULL
) SWIG_fail
;
3284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3285 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3287 wxPyEndAllowThreads(__tstate
);
3288 if (PyErr_Occurred()) SWIG_fail
;
3290 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3313 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3314 PyObject
*resultobj
;
3315 wxInputStream
*arg1
= 0 ;
3316 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3317 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3318 wxXmlDocument
*result
;
3319 wxPyInputStream
*temp1
;
3321 bool temp2
= False
;
3322 PyObject
* obj0
= 0 ;
3323 PyObject
* obj1
= 0 ;
3325 (char *) "stream",(char *) "encoding", NULL
3328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3330 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3331 arg1
= temp1
->m_wxis
;
3334 PyErr_Clear(); // clear the failure of the wxPyConvert above
3335 arg1
= wxPyCBInputStream_create(obj0
, False
);
3337 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3345 arg2
= wxString_in_helper(obj1
);
3346 if (arg2
== NULL
) SWIG_fail
;
3351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3352 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3354 wxPyEndAllowThreads(__tstate
);
3355 if (PyErr_Occurred()) SWIG_fail
;
3357 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3380 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3381 PyObject
*resultobj
;
3382 wxXmlDocument
*result
;
3387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3390 result
= (wxXmlDocument
*)new wxXmlDocument();
3392 wxPyEndAllowThreads(__tstate
);
3393 if (PyErr_Occurred()) SWIG_fail
;
3395 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3402 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3403 PyObject
*resultobj
;
3404 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3405 PyObject
* obj0
= 0 ;
3407 (char *) "self", NULL
3410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3411 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3412 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3417 wxPyEndAllowThreads(__tstate
);
3418 if (PyErr_Occurred()) SWIG_fail
;
3420 Py_INCREF(Py_None
); resultobj
= Py_None
;
3427 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3428 PyObject
*resultobj
;
3429 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3430 wxString
*arg2
= 0 ;
3431 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3432 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3434 bool temp2
= False
;
3435 bool temp3
= False
;
3436 PyObject
* obj0
= 0 ;
3437 PyObject
* obj1
= 0 ;
3438 PyObject
* obj2
= 0 ;
3440 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3444 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3445 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3447 arg2
= wxString_in_helper(obj1
);
3448 if (arg2
== NULL
) SWIG_fail
;
3453 arg3
= wxString_in_helper(obj2
);
3454 if (arg3
== NULL
) SWIG_fail
;
3459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3460 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3462 wxPyEndAllowThreads(__tstate
);
3463 if (PyErr_Occurred()) SWIG_fail
;
3466 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3490 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3491 PyObject
*resultobj
;
3492 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3493 wxInputStream
*arg2
= 0 ;
3494 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3495 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3497 wxPyInputStream
*temp2
;
3499 bool temp3
= False
;
3500 PyObject
* obj0
= 0 ;
3501 PyObject
* obj1
= 0 ;
3502 PyObject
* obj2
= 0 ;
3504 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3508 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3509 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3511 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3512 arg2
= temp2
->m_wxis
;
3515 PyErr_Clear(); // clear the failure of the wxPyConvert above
3516 arg2
= wxPyCBInputStream_create(obj1
, False
);
3518 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3526 arg3
= wxString_in_helper(obj2
);
3527 if (arg3
== NULL
) SWIG_fail
;
3532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3533 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3535 wxPyEndAllowThreads(__tstate
);
3536 if (PyErr_Occurred()) SWIG_fail
;
3539 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3563 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3564 PyObject
*resultobj
;
3565 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3566 wxString
*arg2
= 0 ;
3568 bool temp2
= False
;
3569 PyObject
* obj0
= 0 ;
3570 PyObject
* obj1
= 0 ;
3572 (char *) "self",(char *) "filename", NULL
3575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3576 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3577 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3579 arg2
= wxString_in_helper(obj1
);
3580 if (arg2
== NULL
) SWIG_fail
;
3584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3585 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3587 wxPyEndAllowThreads(__tstate
);
3588 if (PyErr_Occurred()) SWIG_fail
;
3591 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3607 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3608 PyObject
*resultobj
;
3609 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3610 wxOutputStream
*arg2
= 0 ;
3612 PyObject
* obj0
= 0 ;
3613 PyObject
* obj1
= 0 ;
3615 (char *) "self",(char *) "stream", NULL
3618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3619 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3620 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3621 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3622 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3625 PyErr_SetString(PyExc_TypeError
,"null reference");
3629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3630 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3632 wxPyEndAllowThreads(__tstate
);
3633 if (PyErr_Occurred()) SWIG_fail
;
3636 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3644 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3645 PyObject
*resultobj
;
3646 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3648 PyObject
* obj0
= 0 ;
3650 (char *) "self", NULL
3653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3654 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3655 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3657 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3658 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3660 wxPyEndAllowThreads(__tstate
);
3661 if (PyErr_Occurred()) SWIG_fail
;
3664 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3672 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3673 PyObject
*resultobj
;
3674 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3676 PyObject
* obj0
= 0 ;
3678 (char *) "self", NULL
3681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3682 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3683 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3686 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3688 wxPyEndAllowThreads(__tstate
);
3689 if (PyErr_Occurred()) SWIG_fail
;
3691 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3698 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3699 PyObject
*resultobj
;
3700 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3702 PyObject
* obj0
= 0 ;
3704 (char *) "self", NULL
3707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3708 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3709 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3712 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3714 wxPyEndAllowThreads(__tstate
);
3715 if (PyErr_Occurred()) SWIG_fail
;
3719 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3721 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3730 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3731 PyObject
*resultobj
;
3732 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3734 PyObject
* obj0
= 0 ;
3736 (char *) "self", NULL
3739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3740 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3741 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3744 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3746 wxPyEndAllowThreads(__tstate
);
3747 if (PyErr_Occurred()) SWIG_fail
;
3751 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3753 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3762 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3763 PyObject
*resultobj
;
3764 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3765 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3766 PyObject
* obj0
= 0 ;
3767 PyObject
* obj1
= 0 ;
3769 (char *) "self",(char *) "node", NULL
3772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3773 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3774 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3775 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3776 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3779 (arg1
)->SetRoot(arg2
);
3781 wxPyEndAllowThreads(__tstate
);
3782 if (PyErr_Occurred()) SWIG_fail
;
3784 Py_INCREF(Py_None
); resultobj
= Py_None
;
3791 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, 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 *) "version", NULL
3802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",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
)->SetVersion((wxString
const &)*arg2
);
3814 wxPyEndAllowThreads(__tstate
);
3815 if (PyErr_Occurred()) SWIG_fail
;
3817 Py_INCREF(Py_None
); resultobj
= Py_None
;
3832 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3833 PyObject
*resultobj
;
3834 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3835 wxString
*arg2
= 0 ;
3836 bool temp2
= False
;
3837 PyObject
* obj0
= 0 ;
3838 PyObject
* obj1
= 0 ;
3840 (char *) "self",(char *) "encoding", NULL
3843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3844 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3845 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3847 arg2
= wxString_in_helper(obj1
);
3848 if (arg2
== NULL
) SWIG_fail
;
3852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3853 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3855 wxPyEndAllowThreads(__tstate
);
3856 if (PyErr_Occurred()) SWIG_fail
;
3858 Py_INCREF(Py_None
); resultobj
= Py_None
;
3873 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3875 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3876 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3878 return Py_BuildValue((char *)"");
3880 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3881 PyObject
*resultobj
;
3882 wxPyXmlResourceHandler
*result
;
3887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3890 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3892 wxPyEndAllowThreads(__tstate
);
3893 if (PyErr_Occurred()) SWIG_fail
;
3895 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3902 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3903 PyObject
*resultobj
;
3904 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3905 PyObject
*arg2
= (PyObject
*) 0 ;
3906 PyObject
*arg3
= (PyObject
*) 0 ;
3907 PyObject
* obj0
= 0 ;
3908 PyObject
* obj1
= 0 ;
3909 PyObject
* obj2
= 0 ;
3911 (char *) "self",(char *) "self",(char *) "_class", NULL
3914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3915 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3916 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3921 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3923 wxPyEndAllowThreads(__tstate
);
3924 if (PyErr_Occurred()) SWIG_fail
;
3926 Py_INCREF(Py_None
); resultobj
= Py_None
;
3933 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3934 PyObject
*resultobj
;
3935 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3936 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3937 wxObject
*arg3
= (wxObject
*) 0 ;
3938 wxObject
*arg4
= (wxObject
*) 0 ;
3940 PyObject
* obj0
= 0 ;
3941 PyObject
* obj1
= 0 ;
3942 PyObject
* obj2
= 0 ;
3943 PyObject
* obj3
= 0 ;
3945 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3949 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3950 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3951 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3952 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3953 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
3954 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3955 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
3956 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3959 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3961 wxPyEndAllowThreads(__tstate
);
3962 if (PyErr_Occurred()) SWIG_fail
;
3965 resultobj
= wxPyMake_wxObject(result
);
3973 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3974 PyObject
*resultobj
;
3975 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3976 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3977 PyObject
* obj0
= 0 ;
3978 PyObject
* obj1
= 0 ;
3980 (char *) "self",(char *) "res", NULL
3983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3984 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3985 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3986 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
3987 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3990 (arg1
)->SetParentResource(arg2
);
3992 wxPyEndAllowThreads(__tstate
);
3993 if (PyErr_Occurred()) SWIG_fail
;
3995 Py_INCREF(Py_None
); resultobj
= Py_None
;
4002 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4003 PyObject
*resultobj
;
4004 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4005 wxXmlResource
*result
;
4006 PyObject
* obj0
= 0 ;
4008 (char *) "self", NULL
4011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4012 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4013 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4016 result
= (wxXmlResource
*)(arg1
)->GetResource();
4018 wxPyEndAllowThreads(__tstate
);
4019 if (PyErr_Occurred()) SWIG_fail
;
4021 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4028 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4029 PyObject
*resultobj
;
4030 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4032 PyObject
* obj0
= 0 ;
4034 (char *) "self", NULL
4037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4038 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4039 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4042 result
= (wxXmlNode
*)(arg1
)->GetNode();
4044 wxPyEndAllowThreads(__tstate
);
4045 if (PyErr_Occurred()) SWIG_fail
;
4047 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4054 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4055 PyObject
*resultobj
;
4056 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4058 PyObject
* obj0
= 0 ;
4060 (char *) "self", NULL
4063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4064 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4065 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4067 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4068 result
= (arg1
)->GetClass();
4070 wxPyEndAllowThreads(__tstate
);
4071 if (PyErr_Occurred()) SWIG_fail
;
4075 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4077 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4086 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4087 PyObject
*resultobj
;
4088 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4090 PyObject
* obj0
= 0 ;
4092 (char *) "self", NULL
4095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4096 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4097 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4100 result
= (wxObject
*)(arg1
)->GetParent();
4102 wxPyEndAllowThreads(__tstate
);
4103 if (PyErr_Occurred()) SWIG_fail
;
4106 resultobj
= wxPyMake_wxObject(result
);
4114 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4115 PyObject
*resultobj
;
4116 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4118 PyObject
* obj0
= 0 ;
4120 (char *) "self", NULL
4123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4124 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4125 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4128 result
= (wxObject
*)(arg1
)->GetInstance();
4130 wxPyEndAllowThreads(__tstate
);
4131 if (PyErr_Occurred()) SWIG_fail
;
4134 resultobj
= wxPyMake_wxObject(result
);
4142 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4143 PyObject
*resultobj
;
4144 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4146 PyObject
* obj0
= 0 ;
4148 (char *) "self", NULL
4151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4152 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4153 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4156 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4158 wxPyEndAllowThreads(__tstate
);
4159 if (PyErr_Occurred()) SWIG_fail
;
4162 resultobj
= wxPyMake_wxObject(result
);
4170 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4171 PyObject
*resultobj
;
4172 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4174 PyObject
* obj0
= 0 ;
4176 (char *) "self", NULL
4179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4180 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4181 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4184 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4186 wxPyEndAllowThreads(__tstate
);
4187 if (PyErr_Occurred()) SWIG_fail
;
4190 resultobj
= wxPyMake_wxObject(result
);
4198 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4199 PyObject
*resultobj
;
4200 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4201 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4202 wxString
*arg3
= 0 ;
4204 bool temp3
= False
;
4205 PyObject
* obj0
= 0 ;
4206 PyObject
* obj1
= 0 ;
4207 PyObject
* obj2
= 0 ;
4209 (char *) "self",(char *) "node",(char *) "classname", NULL
4212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4213 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4214 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4215 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4216 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4218 arg3
= wxString_in_helper(obj2
);
4219 if (arg3
== NULL
) SWIG_fail
;
4223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4224 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4226 wxPyEndAllowThreads(__tstate
);
4227 if (PyErr_Occurred()) SWIG_fail
;
4230 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4246 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4247 PyObject
*resultobj
;
4248 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4249 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4251 PyObject
* obj0
= 0 ;
4252 PyObject
* obj1
= 0 ;
4254 (char *) "self",(char *) "node", NULL
4257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4258 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4259 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4260 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4261 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4264 result
= (arg1
)->GetNodeContent(arg2
);
4266 wxPyEndAllowThreads(__tstate
);
4267 if (PyErr_Occurred()) SWIG_fail
;
4271 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4273 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4282 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4283 PyObject
*resultobj
;
4284 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4285 wxString
*arg2
= 0 ;
4287 bool temp2
= False
;
4288 PyObject
* obj0
= 0 ;
4289 PyObject
* obj1
= 0 ;
4291 (char *) "self",(char *) "param", NULL
4294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4295 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4296 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4298 arg2
= wxString_in_helper(obj1
);
4299 if (arg2
== NULL
) SWIG_fail
;
4303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4304 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4306 wxPyEndAllowThreads(__tstate
);
4307 if (PyErr_Occurred()) SWIG_fail
;
4310 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4326 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4327 PyObject
*resultobj
;
4328 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4329 wxString
*arg2
= 0 ;
4331 bool temp2
= False
;
4332 PyObject
* obj0
= 0 ;
4333 PyObject
* obj1
= 0 ;
4335 (char *) "self",(char *) "param", NULL
4338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4339 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4340 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4342 arg2
= wxString_in_helper(obj1
);
4343 if (arg2
== NULL
) SWIG_fail
;
4347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4348 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4350 wxPyEndAllowThreads(__tstate
);
4351 if (PyErr_Occurred()) SWIG_fail
;
4353 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4368 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4369 PyObject
*resultobj
;
4370 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4371 wxString
*arg2
= 0 ;
4373 bool temp2
= False
;
4374 PyObject
* obj0
= 0 ;
4375 PyObject
* obj1
= 0 ;
4377 (char *) "self",(char *) "param", NULL
4380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4381 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4382 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4384 arg2
= wxString_in_helper(obj1
);
4385 if (arg2
== NULL
) SWIG_fail
;
4389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4390 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4392 wxPyEndAllowThreads(__tstate
);
4393 if (PyErr_Occurred()) SWIG_fail
;
4397 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4399 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4416 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4417 PyObject
*resultobj
;
4418 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4419 wxString
*arg2
= 0 ;
4421 bool temp2
= False
;
4422 PyObject
* obj0
= 0 ;
4423 PyObject
* obj1
= 0 ;
4424 PyObject
* obj2
= 0 ;
4426 (char *) "self",(char *) "name",(char *) "value", NULL
4429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4430 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4431 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4433 arg2
= wxString_in_helper(obj1
);
4434 if (arg2
== NULL
) SWIG_fail
;
4437 arg3
= (int) SWIG_AsInt(obj2
);
4438 if (PyErr_Occurred()) SWIG_fail
;
4440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4441 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4443 wxPyEndAllowThreads(__tstate
);
4444 if (PyErr_Occurred()) SWIG_fail
;
4446 Py_INCREF(Py_None
); resultobj
= Py_None
;
4461 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4462 PyObject
*resultobj
;
4463 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4464 PyObject
* obj0
= 0 ;
4466 (char *) "self", NULL
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4470 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4471 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4474 (arg1
)->AddWindowStyles();
4476 wxPyEndAllowThreads(__tstate
);
4477 if (PyErr_Occurred()) SWIG_fail
;
4479 Py_INCREF(Py_None
); resultobj
= Py_None
;
4486 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4487 PyObject
*resultobj
;
4488 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4489 wxString
const &arg2_defvalue
= wxPyStyleString
;
4490 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4491 int arg3
= (int) 0 ;
4493 bool temp2
= False
;
4494 PyObject
* obj0
= 0 ;
4495 PyObject
* obj1
= 0 ;
4496 PyObject
* obj2
= 0 ;
4498 (char *) "self",(char *) "param",(char *) "defaults", NULL
4501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4502 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4503 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4506 arg2
= wxString_in_helper(obj1
);
4507 if (arg2
== NULL
) SWIG_fail
;
4512 arg3
= (int) SWIG_AsInt(obj2
);
4513 if (PyErr_Occurred()) SWIG_fail
;
4516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4517 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4519 wxPyEndAllowThreads(__tstate
);
4520 if (PyErr_Occurred()) SWIG_fail
;
4522 resultobj
= SWIG_FromInt((int)result
);
4537 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4538 PyObject
*resultobj
;
4539 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4540 wxString
*arg2
= 0 ;
4541 bool arg3
= (bool) True
;
4543 bool temp2
= False
;
4544 PyObject
* obj0
= 0 ;
4545 PyObject
* obj1
= 0 ;
4546 PyObject
* obj2
= 0 ;
4548 (char *) "self",(char *) "param",(char *) "translate", NULL
4551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4552 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4553 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4555 arg2
= wxString_in_helper(obj1
);
4556 if (arg2
== NULL
) SWIG_fail
;
4560 arg3
= (bool) SWIG_AsBool(obj2
);
4561 if (PyErr_Occurred()) SWIG_fail
;
4564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4565 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4567 wxPyEndAllowThreads(__tstate
);
4568 if (PyErr_Occurred()) SWIG_fail
;
4572 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4574 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4591 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4592 PyObject
*resultobj
;
4593 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4595 PyObject
* obj0
= 0 ;
4597 (char *) "self", NULL
4600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4601 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4602 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4605 result
= (int)(arg1
)->GetID();
4607 wxPyEndAllowThreads(__tstate
);
4608 if (PyErr_Occurred()) SWIG_fail
;
4610 resultobj
= SWIG_FromInt((int)result
);
4617 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4618 PyObject
*resultobj
;
4619 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4621 PyObject
* obj0
= 0 ;
4623 (char *) "self", NULL
4626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4627 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4628 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4631 result
= (arg1
)->GetName();
4633 wxPyEndAllowThreads(__tstate
);
4634 if (PyErr_Occurred()) SWIG_fail
;
4638 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4640 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4649 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4650 PyObject
*resultobj
;
4651 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4652 wxString
*arg2
= 0 ;
4653 bool arg3
= (bool) False
;
4655 bool temp2
= False
;
4656 PyObject
* obj0
= 0 ;
4657 PyObject
* obj1
= 0 ;
4658 PyObject
* obj2
= 0 ;
4660 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4664 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4665 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4667 arg2
= wxString_in_helper(obj1
);
4668 if (arg2
== NULL
) SWIG_fail
;
4672 arg3
= (bool) SWIG_AsBool(obj2
);
4673 if (PyErr_Occurred()) SWIG_fail
;
4676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4677 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4679 wxPyEndAllowThreads(__tstate
);
4680 if (PyErr_Occurred()) SWIG_fail
;
4683 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4699 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4700 PyObject
*resultobj
;
4701 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4702 wxString
*arg2
= 0 ;
4703 long arg3
= (long) 0 ;
4705 bool temp2
= False
;
4706 PyObject
* obj0
= 0 ;
4707 PyObject
* obj1
= 0 ;
4708 PyObject
* obj2
= 0 ;
4710 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4714 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4715 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4717 arg2
= wxString_in_helper(obj1
);
4718 if (arg2
== NULL
) SWIG_fail
;
4722 arg3
= (long) SWIG_AsLong(obj2
);
4723 if (PyErr_Occurred()) SWIG_fail
;
4726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4727 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4729 wxPyEndAllowThreads(__tstate
);
4730 if (PyErr_Occurred()) SWIG_fail
;
4732 resultobj
= SWIG_FromLong((long)result
);
4747 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4748 PyObject
*resultobj
;
4749 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4750 wxString
*arg2
= 0 ;
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 *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4760 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4761 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4763 arg2
= wxString_in_helper(obj1
);
4764 if (arg2
== NULL
) SWIG_fail
;
4768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4769 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4771 wxPyEndAllowThreads(__tstate
);
4772 if (PyErr_Occurred()) SWIG_fail
;
4775 wxColour
* resultptr
;
4776 resultptr
= new wxColour((wxColour
&) result
);
4777 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4793 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4794 PyObject
*resultobj
;
4795 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4796 wxString
const &arg2_defvalue
= wxPySizeString
;
4797 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4799 bool temp2
= False
;
4800 PyObject
* obj0
= 0 ;
4801 PyObject
* obj1
= 0 ;
4803 (char *) "self",(char *) "param", NULL
4806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4807 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4808 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4811 arg2
= wxString_in_helper(obj1
);
4812 if (arg2
== NULL
) SWIG_fail
;
4817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4818 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4820 wxPyEndAllowThreads(__tstate
);
4821 if (PyErr_Occurred()) SWIG_fail
;
4825 resultptr
= new wxSize((wxSize
&) result
);
4826 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4842 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4843 PyObject
*resultobj
;
4844 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4845 wxString
const &arg2_defvalue
= wxPyPosString
;
4846 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4848 bool temp2
= False
;
4849 PyObject
* obj0
= 0 ;
4850 PyObject
* obj1
= 0 ;
4852 (char *) "self",(char *) "param", NULL
4855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4856 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4857 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4860 arg2
= wxString_in_helper(obj1
);
4861 if (arg2
== NULL
) SWIG_fail
;
4866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4867 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4869 wxPyEndAllowThreads(__tstate
);
4870 if (PyErr_Occurred()) SWIG_fail
;
4873 wxPoint
* resultptr
;
4874 resultptr
= new wxPoint((wxPoint
&) result
);
4875 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4891 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4892 PyObject
*resultobj
;
4893 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4894 wxString
*arg2
= 0 ;
4895 int arg3
= (int) 0 ;
4897 bool temp2
= False
;
4898 PyObject
* obj0
= 0 ;
4899 PyObject
* obj1
= 0 ;
4900 PyObject
* obj2
= 0 ;
4902 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4906 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4907 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4909 arg2
= wxString_in_helper(obj1
);
4910 if (arg2
== NULL
) SWIG_fail
;
4914 arg3
= (int) SWIG_AsInt(obj2
);
4915 if (PyErr_Occurred()) SWIG_fail
;
4918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4919 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4921 wxPyEndAllowThreads(__tstate
);
4922 if (PyErr_Occurred()) SWIG_fail
;
4924 resultobj
= SWIG_FromInt((int)result
);
4939 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4940 PyObject
*resultobj
;
4941 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4942 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4943 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4944 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4945 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4946 wxSize arg4
= (wxSize
) wxDefaultSize
;
4948 bool temp2
= False
;
4950 PyObject
* obj0
= 0 ;
4951 PyObject
* obj1
= 0 ;
4952 PyObject
* obj2
= 0 ;
4953 PyObject
* obj3
= 0 ;
4955 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4959 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4960 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4963 arg2
= wxString_in_helper(obj1
);
4964 if (arg2
== NULL
) SWIG_fail
;
4969 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4970 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4973 PyErr_SetString(PyExc_TypeError
,"null reference");
4978 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
4979 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4984 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4986 wxPyEndAllowThreads(__tstate
);
4987 if (PyErr_Occurred()) SWIG_fail
;
4990 wxBitmap
* resultptr
;
4991 resultptr
= new wxBitmap((wxBitmap
&) result
);
4992 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
5008 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5009 PyObject
*resultobj
;
5010 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5011 wxString
const &arg2_defvalue
= wxPyIconString
;
5012 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5013 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5014 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5015 wxSize arg4
= (wxSize
) wxDefaultSize
;
5017 bool temp2
= False
;
5019 PyObject
* obj0
= 0 ;
5020 PyObject
* obj1
= 0 ;
5021 PyObject
* obj2
= 0 ;
5022 PyObject
* obj3
= 0 ;
5024 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5028 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5029 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5032 arg2
= wxString_in_helper(obj1
);
5033 if (arg2
== NULL
) SWIG_fail
;
5038 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5039 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5042 PyErr_SetString(PyExc_TypeError
,"null reference");
5047 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5048 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5053 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5055 wxPyEndAllowThreads(__tstate
);
5056 if (PyErr_Occurred()) SWIG_fail
;
5060 resultptr
= new wxIcon((wxIcon
&) result
);
5061 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5077 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5078 PyObject
*resultobj
;
5079 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5080 wxString
const &arg2_defvalue
= wxPyFontString
;
5081 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5083 bool temp2
= False
;
5084 PyObject
* obj0
= 0 ;
5085 PyObject
* obj1
= 0 ;
5087 (char *) "self",(char *) "param", NULL
5090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5091 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5092 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5095 arg2
= wxString_in_helper(obj1
);
5096 if (arg2
== NULL
) SWIG_fail
;
5101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5102 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5104 wxPyEndAllowThreads(__tstate
);
5105 if (PyErr_Occurred()) SWIG_fail
;
5109 resultptr
= new wxFont((wxFont
&) result
);
5110 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5126 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5127 PyObject
*resultobj
;
5128 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5129 wxWindow
*arg2
= (wxWindow
*) 0 ;
5130 PyObject
* obj0
= 0 ;
5131 PyObject
* obj1
= 0 ;
5133 (char *) "self",(char *) "wnd", NULL
5136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5137 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5138 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5139 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5140 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5143 (arg1
)->SetupWindow(arg2
);
5145 wxPyEndAllowThreads(__tstate
);
5146 if (PyErr_Occurred()) SWIG_fail
;
5148 Py_INCREF(Py_None
); resultobj
= Py_None
;
5155 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5156 PyObject
*resultobj
;
5157 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5158 wxObject
*arg2
= (wxObject
*) 0 ;
5159 bool arg3
= (bool) False
;
5160 PyObject
* obj0
= 0 ;
5161 PyObject
* obj1
= 0 ;
5162 PyObject
* obj2
= 0 ;
5164 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5168 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5169 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5170 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5171 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5173 arg3
= (bool) SWIG_AsBool(obj2
);
5174 if (PyErr_Occurred()) SWIG_fail
;
5177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5178 (arg1
)->CreateChildren(arg2
,arg3
);
5180 wxPyEndAllowThreads(__tstate
);
5181 if (PyErr_Occurred()) SWIG_fail
;
5183 Py_INCREF(Py_None
); resultobj
= Py_None
;
5190 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5191 PyObject
*resultobj
;
5192 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5193 wxObject
*arg2
= (wxObject
*) 0 ;
5194 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5195 PyObject
* obj0
= 0 ;
5196 PyObject
* obj1
= 0 ;
5197 PyObject
* obj2
= 0 ;
5199 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5203 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5204 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5205 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5206 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5208 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5209 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5213 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5215 wxPyEndAllowThreads(__tstate
);
5216 if (PyErr_Occurred()) SWIG_fail
;
5218 Py_INCREF(Py_None
); resultobj
= Py_None
;
5225 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5226 PyObject
*resultobj
;
5227 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5228 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5229 wxObject
*arg3
= (wxObject
*) 0 ;
5230 wxObject
*arg4
= (wxObject
*) NULL
;
5232 PyObject
* obj0
= 0 ;
5233 PyObject
* obj1
= 0 ;
5234 PyObject
* obj2
= 0 ;
5235 PyObject
* obj3
= 0 ;
5237 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5241 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5242 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5243 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5244 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5245 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5246 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5248 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5249 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5253 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5255 wxPyEndAllowThreads(__tstate
);
5256 if (PyErr_Occurred()) SWIG_fail
;
5259 resultobj
= wxPyMake_wxObject(result
);
5267 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5268 PyObject
*resultobj
;
5269 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5270 wxFileSystem
*result
;
5271 PyObject
* obj0
= 0 ;
5273 (char *) "self", NULL
5276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5277 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5278 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5282 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5283 result
= (wxFileSystem
*) &_result_ref
;
5286 wxPyEndAllowThreads(__tstate
);
5287 if (PyErr_Occurred()) SWIG_fail
;
5289 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5296 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5298 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5299 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5301 return Py_BuildValue((char *)"");
5303 static PyMethodDef SwigMethods
[] = {
5304 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5305 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5306 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5307 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5308 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5309 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5310 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5311 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5312 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5313 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5314 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5315 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5316 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5317 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5318 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5319 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5320 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5321 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5322 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5323 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5324 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5325 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5326 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5327 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5328 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5329 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5330 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5331 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5332 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5333 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5334 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5335 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5336 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5337 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5338 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5339 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5340 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5341 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5342 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5343 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5344 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5345 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5346 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5347 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5348 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5349 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5350 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5351 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5352 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5353 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5354 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5355 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5356 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5357 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5358 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5359 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5360 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5361 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5362 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5363 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5364 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5365 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5366 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5367 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5368 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5369 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5370 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5371 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5372 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5373 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5374 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5375 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5376 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5377 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5378 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5379 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5380 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5381 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5382 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5383 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5384 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5385 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5386 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5387 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5388 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5389 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5390 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5391 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5392 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5393 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5394 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5395 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5396 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5397 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5398 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5399 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5400 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5401 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5402 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5403 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5404 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5405 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5406 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5407 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5408 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5409 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5410 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5411 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5412 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5413 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5414 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5415 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5416 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5417 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5418 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5419 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5420 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5421 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5422 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5423 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5424 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5425 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5426 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5431 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5433 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5434 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5436 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5437 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5439 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5440 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5442 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5443 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5445 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5446 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5448 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5449 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5451 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5452 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5454 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5455 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5457 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5458 return (void *)((wxObject
*) ((wxSizer
*) x
));
5460 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5461 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5463 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5464 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5466 static void *_p_wxEventTo_p_wxObject(void *x
) {
5467 return (void *)((wxObject
*) ((wxEvent
*) x
));
5469 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5470 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5472 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5473 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5475 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5476 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5478 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5479 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5481 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5482 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5484 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5485 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5487 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5488 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5490 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5491 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5493 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5494 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5496 static void *_p_wxControlTo_p_wxObject(void *x
) {
5497 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5499 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5500 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5502 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5503 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5505 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5506 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5508 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5509 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5511 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5512 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5514 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5515 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5517 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5518 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5520 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5521 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5523 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5524 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5526 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5527 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5529 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5530 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5532 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5533 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5535 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5536 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5538 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5539 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5541 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5542 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5544 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5545 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5547 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5548 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5550 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5551 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5553 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5554 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5556 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5557 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5559 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5560 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5562 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5563 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5565 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5566 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5568 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5569 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5571 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5572 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5574 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5575 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5577 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5578 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5580 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5581 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5583 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5584 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5586 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5587 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5589 static void *_p_wxImageTo_p_wxObject(void *x
) {
5590 return (void *)((wxObject
*) ((wxImage
*) x
));
5592 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5593 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5595 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5596 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5598 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5599 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5601 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5602 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5604 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5605 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5607 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5608 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5610 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5611 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5613 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5614 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5616 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5617 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5619 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5620 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5622 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5623 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5625 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5626 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5628 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5629 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5631 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5632 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5634 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5635 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5637 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5638 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5640 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5641 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5643 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5644 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5646 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5647 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5649 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5650 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5652 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5653 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5655 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5656 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5658 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5659 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5661 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5662 return (void *)((wxWindow
*) ((wxControl
*) x
));
5664 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5665 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5667 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5668 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5670 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}};
5671 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}};
5672 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}};
5673 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}};
5674 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}};
5675 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}};
5676 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}};
5677 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}};
5678 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}};
5679 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}};
5680 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}};
5681 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}};
5682 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}};
5683 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}};
5684 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}};
5685 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}};
5686 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}};
5687 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}};
5688 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}};
5689 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}};
5690 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}};
5691 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}};
5693 static swig_type_info
*swig_types_initial
[] = {
5700 _swigt__p_wxArtClient
,
5702 _swigt__p_wxPyXmlSubclassFactory
,
5705 _swigt__p_wxXmlNode
,
5706 _swigt__p_wxInputStream
,
5707 _swigt__p_wxOutputStream
,
5708 _swigt__p_wxPyXmlResourceHandler
,
5709 _swigt__p_wxFileSystem
,
5710 _swigt__p_wxXmlProperty
,
5712 _swigt__p_wxXmlResource
,
5713 _swigt__p_wxXmlDocument
,
5720 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5722 static swig_const_info swig_const_table
[] = {
5732 SWIGEXPORT(void) SWIG_init(void) {
5733 static PyObject
*SWIG_globals
= 0;
5734 static int typeinit
= 0;
5737 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5738 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5739 d
= PyModule_GetDict(m
);
5742 for (i
= 0; swig_types_initial
[i
]; i
++) {
5743 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5747 SWIG_InstallConstants(d
,swig_const_table
);
5749 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5750 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5751 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5752 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5753 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5754 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5755 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5756 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5757 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5758 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5759 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5760 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5761 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE
));
5762 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING
));
5763 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE
));
5764 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5765 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE
));
5766 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5767 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE
));
5768 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE
));
5769 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE
));
5770 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE
));
5771 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE
));
5772 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5773 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5774 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE
));
5775 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5778 wxXmlInitResourceModule();
5779 wxXmlResource::Get()->InitAllHandlers();