1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
52 /***********************************************************************
53 * common.swg for wxPython
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
60 ************************************************************************/
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
114 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
116 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
126 /***********************************************************************
127 * pyrun.swg for wxPython
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 ************************************************************************/
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
148 /* Flags for pointer conversion */
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
156 /* Constant information structure */
157 typedef struct swig_const_info
{
163 swig_type_info
**ptype
;
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
186 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
189 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
191 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
194 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
198 /* Contract support */
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
207 /* -------- TYPES TABLE (BEGIN) -------- */
209 #define SWIGTYPE_p_wxFrame swig_types[0]
210 #define SWIGTYPE_p_wxIcon swig_types[1]
211 #define SWIGTYPE_p_wxObject swig_types[2]
212 #define SWIGTYPE_p_wxDialog swig_types[3]
213 #define SWIGTYPE_p_wxColour swig_types[4]
214 #define SWIGTYPE_p_wxWindow swig_types[5]
215 #define SWIGTYPE_p_wxArtClient swig_types[6]
216 #define SWIGTYPE_p_wxBitmap swig_types[7]
217 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
218 #define SWIGTYPE_p_char swig_types[9]
219 #define SWIGTYPE_p_wxPoint swig_types[10]
220 #define SWIGTYPE_p_wxXmlNode swig_types[11]
221 #define SWIGTYPE_p_wxInputStream swig_types[12]
222 #define SWIGTYPE_p_wxOutputStream swig_types[13]
223 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
224 #define SWIGTYPE_p_wxFileSystem swig_types[15]
225 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
226 #define SWIGTYPE_p_wxFont swig_types[17]
227 #define SWIGTYPE_p_wxXmlResource swig_types[18]
228 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
229 #define SWIGTYPE_p_wxPanel swig_types[20]
230 #define SWIGTYPE_p_wxSize swig_types[21]
231 static swig_type_info
*swig_types
[23];
233 /* -------- TYPES TABLE (END) -------- */
236 /*-----------------------------------------------
238 ------------------------------------------------*/
239 #define SWIG_init init_xrc
241 #define SWIG_name "_xrc"
243 /* Auxiliar swig macros */
246 #define SWIGSTATICINLINE(a) static inline a
247 #define SWIGSTATIC(a) static a
248 #define swig_new_array(type, size) (new type[(size)])
249 #define swig_delete_array(cptr) delete[] cptr
250 #define swig_const_cast(type,a) const_cast<type>(a)
251 #define swig_static_cast(type,a) static_cast<type>(a)
252 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
254 #ifdef HAVE_NUMERIC_CAST
255 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
257 #define swig_numeric_cast(type,a) static_cast<type>(a)
262 #define SWIGSTATICINLINE(a) static a
263 #define SWIGSTATIC(a) static a
264 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
265 #define swig_delete_array(cptr) free((char*)cptr)
266 #define swig_const_cast(type,a) (type)(a)
267 #define swig_static_cast(type,a) (type)(a)
268 #define swig_reinterpret_cast(type,a) (type)(a)
269 #define swig_numeric_cast(type,a) (type)(a)
271 #endif /* __cplusplus */
274 #define SWIG_FromSignedChar PyInt_FromLong
275 #define SWIG_FromUnsignedChar PyInt_FromLong
276 #define SWIG_FromShort PyInt_FromLong
277 #define SWIG_FromUnsignedShort PyInt_FromLong
278 #define SWIG_FromInt PyInt_FromLong
279 #define SWIG_FromLong PyInt_FromLong
280 #define SWIG_FromFloat PyFloat_FromDouble
281 #define SWIG_FromDouble PyFloat_FromDouble
282 #define SWIG_FromFloat PyFloat_FromDouble
283 #define SWIG_FromDouble PyFloat_FromDouble
286 #include "wx/wxPython/wxPython.h"
287 #include "wx/wxPython/pyclasses.h"
288 #include "wx/wxPython/pyistream.h"
290 #include <wx/xml/xml.h>
291 #include <wx/xrc/xmlres.h>
294 static const wxString
wxPyEmptyString(wxEmptyString
);
295 static const wxString
wxPyUTF8String(wxT("UTF-8"));
296 static const wxString
wxPyStyleString(wxT("style"));
297 static const wxString
wxPySizeString(wxT("size"));
298 static const wxString
wxPyPosString(wxT("pos"));
299 static const wxString
wxPyBitmapString(wxT("bitmap"));
300 static const wxString
wxPyIconString(wxT("icon"));
301 static const wxString
wxPyFontString(wxT("font"));
306 SWIGSTATICINLINE(long)
307 SWIG_CheckLongInRange(long value
, const char* type
,
308 long min_value
, long max_value
)
310 if (!PyErr_Occurred()) {
311 if (value
< min_value
) {
313 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
314 value
, type
, min_value
);
316 PyErr_SetObject(PyExc_OverflowError
, err
);
318 } else if (value
> max_value
) {
320 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
321 value
, type
, max_value
);
322 PyErr_SetObject(PyExc_OverflowError
, err
);
330 SWIGSTATICINLINE(long)
331 SWIG_AsLong(PyObject
* obj
)
333 if (PyNumber_Check(obj
))
334 return PyInt_AsLong(obj
);
336 PyObject
* errmsg
= PyString_FromFormat("Expected number, got %s",
337 obj
->ob_type
->tp_name
);
338 PyErr_SetObject(PyExc_TypeError
, errmsg
);
345 #if INT_MAX != LONG_MAX
346 SWIGSTATICINLINE(int)
347 SWIG_AsInt(PyObject
*obj
)
349 return swig_numeric_cast(int,
350 SWIG_CheckLongInRange(SWIG_AsLong(obj
),
351 "int", INT_MIN
, INT_MAX
));
354 #define SWIG_AsInt SWIG_AsLong
358 SWIGSTATICINLINE(int)
359 SWIG_CheckInt(PyObject
* obj
)
362 if (PyErr_Occurred()) {
370 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
371 static int s_memFileIdx
= 0;
373 // Check for memory FS. If not present, load the handler:
374 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
377 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
378 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
382 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
384 // Now put the resource data into the memory FS
385 wxString
filename(wxT("XRC_resource/data_string_"));
386 filename
<< s_memFileIdx
;
388 wxMemoryFSHandler::AddFile(filename
, data
);
390 // Load the "file" into the resource object
391 bool retval
= self
->Load(wxT("memory:") + filename
);
396 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
399 wxPyXmlSubclassFactory() {}
400 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
404 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
406 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
407 // callbacks, as well as to make some protected things public so they can
409 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
411 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
412 //~wxPyXmlResourceHandler();
414 // Base class virtuals
416 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
417 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
420 // accessors for protected members
422 wxXmlResource
* GetResource() { return m_resource
; }
423 wxXmlNode
* GetNode() { return m_node
; }
424 wxString
GetClass() { return m_class
; }
425 wxObject
* GetParent() { return m_parent
; }
426 wxObject
* GetInstance() { return m_instance
; }
427 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
428 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
431 // turn some protected methods into public via delegation
433 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
434 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
436 wxString
GetNodeContent(wxXmlNode
*node
)
437 { return wxXmlResourceHandler::GetNodeContent(node
); }
439 bool HasParam(const wxString
& param
)
440 { return wxXmlResourceHandler::HasParam(param
); }
442 wxXmlNode
*GetParamNode(const wxString
& param
)
443 { return wxXmlResourceHandler::GetParamNode(param
); }
445 wxString
GetParamValue(const wxString
& param
)
446 { return wxXmlResourceHandler::GetParamValue(param
); }
448 void AddStyle(const wxString
& name
, int value
)
449 { wxXmlResourceHandler::AddStyle(name
, value
); }
451 void AddWindowStyles()
452 { wxXmlResourceHandler::AddWindowStyles(); }
454 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
455 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
457 wxString
GetText(const wxString
& param
, bool translate
= True
)
458 { return wxXmlResourceHandler::GetText(param
, translate
); }
461 { return wxXmlResourceHandler::GetID(); }
464 { return wxXmlResourceHandler::GetName(); }
466 bool GetBool(const wxString
& param
, bool defaultv
= False
)
467 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
469 long GetLong( const wxString
& param
, long defaultv
= 0 )
470 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
472 wxColour
GetColour(const wxString
& param
)
473 { return wxXmlResourceHandler::GetColour(param
); }
475 wxSize
GetSize(const wxString
& param
= wxT("size"))
476 { return wxXmlResourceHandler::GetSize(param
); }
478 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
479 { return wxXmlResourceHandler::GetPosition(param
); }
481 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
482 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
484 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
485 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
486 wxSize size
= wxDefaultSize
)
487 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
489 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
490 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
491 wxSize size
= wxDefaultSize
)
492 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
494 wxFont
GetFont(const wxString
& param
= wxT("font"))
495 { return wxXmlResourceHandler::GetFont(param
); }
497 void SetupWindow(wxWindow
*wnd
)
498 { wxXmlResourceHandler::SetupWindow(wnd
); }
500 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
501 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
503 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
504 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
506 wxObject
*CreateResFromNode(wxXmlNode
*node
,
507 wxObject
*parent
, wxObject
*instance
= NULL
)
508 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
510 wxFileSystem
& GetCurFileSystem()
511 { return wxXmlResourceHandler::GetCurFileSystem(); }
517 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
518 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
522 SWIGSTATICINLINE(bool)
523 SWIG_AsBool(PyObject
*obj
)
525 return PyObject_IsTrue(obj
) ? true : false;
529 SWIGSTATICINLINE(int)
530 SWIG_CheckBool(PyObject
* obj
)
533 if (PyErr_Occurred()) {
542 SWIGSTATICINLINE(int)
543 SWIG_CheckLong(PyObject
* obj
)
546 if (PyErr_Occurred()) {
557 static int _wrap_UTF8String_set(PyObject
*_val
) {
558 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
563 static PyObject
*_wrap_UTF8String_get() {
568 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
570 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
577 static int _wrap_StyleString_set(PyObject
*_val
) {
578 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
583 static PyObject
*_wrap_StyleString_get() {
588 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
590 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
597 static int _wrap_SizeString_set(PyObject
*_val
) {
598 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
603 static PyObject
*_wrap_SizeString_get() {
608 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
610 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
617 static int _wrap_PosString_set(PyObject
*_val
) {
618 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
623 static PyObject
*_wrap_PosString_get() {
628 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
630 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
637 static int _wrap_BitmapString_set(PyObject
*_val
) {
638 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
643 static PyObject
*_wrap_BitmapString_get() {
648 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
650 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
657 static int _wrap_IconString_set(PyObject
*_val
) {
658 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
663 static PyObject
*_wrap_IconString_get() {
668 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
670 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
677 static int _wrap_FontString_set(PyObject
*_val
) {
678 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
683 static PyObject
*_wrap_FontString_get() {
688 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
690 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
697 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
700 int arg2
= (int) wxXRC_USE_LOCALE
;
701 wxXmlResource
*result
;
703 PyObject
* obj0
= 0 ;
704 PyObject
* obj1
= 0 ;
706 (char *) "filemask",(char *) "flags", NULL
709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
711 arg1
= wxString_in_helper(obj0
);
712 if (arg1
== NULL
) SWIG_fail
;
716 arg2
= (int) SWIG_AsInt(obj1
);
717 if (PyErr_Occurred()) SWIG_fail
;
720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
721 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
723 wxPyEndAllowThreads(__tstate
);
724 if (PyErr_Occurred()) SWIG_fail
;
726 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
741 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
743 int arg1
= (int) wxXRC_USE_LOCALE
;
744 wxXmlResource
*result
;
745 PyObject
* obj0
= 0 ;
747 (char *) "flags", NULL
750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
752 arg1
= (int) SWIG_AsInt(obj0
);
753 if (PyErr_Occurred()) SWIG_fail
;
756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
757 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
759 wxPyEndAllowThreads(__tstate
);
760 if (PyErr_Occurred()) SWIG_fail
;
762 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
769 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
771 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
772 PyObject
* obj0
= 0 ;
774 (char *) "self", NULL
777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
778 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
779 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
784 wxPyEndAllowThreads(__tstate
);
785 if (PyErr_Occurred()) SWIG_fail
;
787 Py_INCREF(Py_None
); resultobj
= Py_None
;
794 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
796 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
800 PyObject
* obj0
= 0 ;
801 PyObject
* obj1
= 0 ;
803 (char *) "self",(char *) "filemask", NULL
806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
807 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
808 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
810 arg2
= wxString_in_helper(obj1
);
811 if (arg2
== NULL
) SWIG_fail
;
815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
816 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
818 wxPyEndAllowThreads(__tstate
);
819 if (PyErr_Occurred()) SWIG_fail
;
822 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
838 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
840 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
844 PyObject
* obj0
= 0 ;
845 PyObject
* obj1
= 0 ;
847 (char *) "self",(char *) "data", NULL
850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
851 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
852 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
854 arg2
= wxString_in_helper(obj1
);
855 if (arg2
== NULL
) SWIG_fail
;
859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
860 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
862 wxPyEndAllowThreads(__tstate
);
863 if (PyErr_Occurred()) SWIG_fail
;
866 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
882 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
884 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
885 PyObject
* obj0
= 0 ;
887 (char *) "self", NULL
890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
891 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
892 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
895 (arg1
)->InitAllHandlers();
897 wxPyEndAllowThreads(__tstate
);
898 if (PyErr_Occurred()) SWIG_fail
;
900 Py_INCREF(Py_None
); resultobj
= Py_None
;
907 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
909 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
910 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
911 PyObject
* obj0
= 0 ;
912 PyObject
* obj1
= 0 ;
914 (char *) "self",(char *) "handler", NULL
917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
918 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
919 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
920 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
921 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
924 (arg1
)->AddHandler(arg2
);
926 wxPyEndAllowThreads(__tstate
);
927 if (PyErr_Occurred()) SWIG_fail
;
929 Py_INCREF(Py_None
); resultobj
= Py_None
;
936 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
938 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
939 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
940 PyObject
* obj0
= 0 ;
941 PyObject
* obj1
= 0 ;
943 (char *) "self",(char *) "handler", NULL
946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
947 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
948 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
949 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
950 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
953 (arg1
)->InsertHandler(arg2
);
955 wxPyEndAllowThreads(__tstate
);
956 if (PyErr_Occurred()) SWIG_fail
;
958 Py_INCREF(Py_None
); resultobj
= Py_None
;
965 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
967 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
968 PyObject
* obj0
= 0 ;
970 (char *) "self", NULL
973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
974 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
975 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
978 (arg1
)->ClearHandlers();
980 wxPyEndAllowThreads(__tstate
);
981 if (PyErr_Occurred()) SWIG_fail
;
983 Py_INCREF(Py_None
); resultobj
= Py_None
;
990 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
992 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
993 PyObject
* obj0
= 0 ;
995 (char *) "factory", NULL
998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
999 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
1000 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1003 wxXmlResource::AddSubclassFactory(arg1
);
1005 wxPyEndAllowThreads(__tstate
);
1006 if (PyErr_Occurred()) SWIG_fail
;
1008 Py_INCREF(Py_None
); resultobj
= Py_None
;
1015 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1016 PyObject
*resultobj
;
1017 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1018 wxString
*arg2
= 0 ;
1020 bool temp2
= False
;
1021 PyObject
* obj0
= 0 ;
1022 PyObject
* obj1
= 0 ;
1024 (char *) "self",(char *) "name", NULL
1027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1028 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1029 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1031 arg2
= wxString_in_helper(obj1
);
1032 if (arg2
== NULL
) SWIG_fail
;
1036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1037 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1039 wxPyEndAllowThreads(__tstate
);
1040 if (PyErr_Occurred()) SWIG_fail
;
1043 resultobj
= wxPyMake_wxObject(result
);
1059 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1060 PyObject
*resultobj
;
1061 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1062 wxString
*arg2
= 0 ;
1064 bool temp2
= False
;
1065 PyObject
* obj0
= 0 ;
1066 PyObject
* obj1
= 0 ;
1068 (char *) "self",(char *) "name", NULL
1071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1072 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1073 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1075 arg2
= wxString_in_helper(obj1
);
1076 if (arg2
== NULL
) SWIG_fail
;
1080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1081 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1083 wxPyEndAllowThreads(__tstate
);
1084 if (PyErr_Occurred()) SWIG_fail
;
1087 resultobj
= wxPyMake_wxObject(result
);
1103 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1104 PyObject
*resultobj
;
1105 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1106 wxWindow
*arg2
= (wxWindow
*) 0 ;
1107 wxString
*arg3
= 0 ;
1109 bool temp3
= False
;
1110 PyObject
* obj0
= 0 ;
1111 PyObject
* obj1
= 0 ;
1112 PyObject
* obj2
= 0 ;
1114 (char *) "self",(char *) "parent",(char *) "name", NULL
1117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1118 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1119 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1120 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1121 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1123 arg3
= wxString_in_helper(obj2
);
1124 if (arg3
== NULL
) SWIG_fail
;
1128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1129 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1131 wxPyEndAllowThreads(__tstate
);
1132 if (PyErr_Occurred()) SWIG_fail
;
1135 resultobj
= wxPyMake_wxObject(result
);
1151 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
*resultobj
;
1153 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1154 wxWindow
*arg2
= (wxWindow
*) 0 ;
1155 wxString
*arg3
= 0 ;
1157 bool temp3
= False
;
1158 PyObject
* obj0
= 0 ;
1159 PyObject
* obj1
= 0 ;
1160 PyObject
* obj2
= 0 ;
1162 (char *) "self",(char *) "parent",(char *) "name", NULL
1165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1166 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1167 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1168 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1169 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1171 arg3
= wxString_in_helper(obj2
);
1172 if (arg3
== NULL
) SWIG_fail
;
1176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1177 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1179 wxPyEndAllowThreads(__tstate
);
1180 if (PyErr_Occurred()) SWIG_fail
;
1183 resultobj
= wxPyMake_wxObject(result
);
1199 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1200 PyObject
*resultobj
;
1201 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1202 wxWindow
*arg2
= (wxWindow
*) 0 ;
1203 wxString
*arg3
= 0 ;
1205 bool temp3
= False
;
1206 PyObject
* obj0
= 0 ;
1207 PyObject
* obj1
= 0 ;
1208 PyObject
* obj2
= 0 ;
1210 (char *) "self",(char *) "parent",(char *) "name", NULL
1213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1214 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1215 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1216 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1217 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1219 arg3
= wxString_in_helper(obj2
);
1220 if (arg3
== NULL
) SWIG_fail
;
1224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1225 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1227 wxPyEndAllowThreads(__tstate
);
1228 if (PyErr_Occurred()) SWIG_fail
;
1231 resultobj
= wxPyMake_wxObject(result
);
1247 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1248 PyObject
*resultobj
;
1249 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1250 wxDialog
*arg2
= (wxDialog
*) 0 ;
1251 wxWindow
*arg3
= (wxWindow
*) 0 ;
1252 wxString
*arg4
= 0 ;
1254 bool temp4
= False
;
1255 PyObject
* obj0
= 0 ;
1256 PyObject
* obj1
= 0 ;
1257 PyObject
* obj2
= 0 ;
1258 PyObject
* obj3
= 0 ;
1260 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1264 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1265 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1266 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1267 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1268 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1269 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1271 arg4
= wxString_in_helper(obj3
);
1272 if (arg4
== NULL
) SWIG_fail
;
1276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1277 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1279 wxPyEndAllowThreads(__tstate
);
1280 if (PyErr_Occurred()) SWIG_fail
;
1283 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1299 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
*resultobj
;
1301 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1302 wxWindow
*arg2
= (wxWindow
*) 0 ;
1303 wxString
*arg3
= 0 ;
1305 bool temp3
= False
;
1306 PyObject
* obj0
= 0 ;
1307 PyObject
* obj1
= 0 ;
1308 PyObject
* obj2
= 0 ;
1310 (char *) "self",(char *) "parent",(char *) "name", NULL
1313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1314 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1315 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1316 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1317 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1319 arg3
= wxString_in_helper(obj2
);
1320 if (arg3
== NULL
) SWIG_fail
;
1324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1325 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1327 wxPyEndAllowThreads(__tstate
);
1328 if (PyErr_Occurred()) SWIG_fail
;
1331 resultobj
= wxPyMake_wxObject(result
);
1347 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1348 PyObject
*resultobj
;
1349 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1350 wxPanel
*arg2
= (wxPanel
*) 0 ;
1351 wxWindow
*arg3
= (wxWindow
*) 0 ;
1352 wxString
*arg4
= 0 ;
1354 bool temp4
= False
;
1355 PyObject
* obj0
= 0 ;
1356 PyObject
* obj1
= 0 ;
1357 PyObject
* obj2
= 0 ;
1358 PyObject
* obj3
= 0 ;
1360 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1364 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1365 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1366 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1367 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1368 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1369 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1371 arg4
= wxString_in_helper(obj3
);
1372 if (arg4
== NULL
) SWIG_fail
;
1376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1377 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1379 wxPyEndAllowThreads(__tstate
);
1380 if (PyErr_Occurred()) SWIG_fail
;
1383 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1399 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1400 PyObject
*resultobj
;
1401 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1402 wxWindow
*arg2
= (wxWindow
*) 0 ;
1403 wxString
*arg3
= 0 ;
1405 bool temp3
= False
;
1406 PyObject
* obj0
= 0 ;
1407 PyObject
* obj1
= 0 ;
1408 PyObject
* obj2
= 0 ;
1410 (char *) "self",(char *) "parent",(char *) "name", NULL
1413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1414 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1415 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1416 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1417 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1419 arg3
= wxString_in_helper(obj2
);
1420 if (arg3
== NULL
) SWIG_fail
;
1424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1425 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1427 wxPyEndAllowThreads(__tstate
);
1428 if (PyErr_Occurred()) SWIG_fail
;
1431 resultobj
= wxPyMake_wxObject(result
);
1447 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1448 PyObject
*resultobj
;
1449 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1450 wxFrame
*arg2
= (wxFrame
*) 0 ;
1451 wxWindow
*arg3
= (wxWindow
*) 0 ;
1452 wxString
*arg4
= 0 ;
1454 bool temp4
= False
;
1455 PyObject
* obj0
= 0 ;
1456 PyObject
* obj1
= 0 ;
1457 PyObject
* obj2
= 0 ;
1458 PyObject
* obj3
= 0 ;
1460 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1464 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1465 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1466 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1467 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1468 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1469 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1471 arg4
= wxString_in_helper(obj3
);
1472 if (arg4
== NULL
) SWIG_fail
;
1476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1477 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1479 wxPyEndAllowThreads(__tstate
);
1480 if (PyErr_Occurred()) SWIG_fail
;
1483 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1499 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1500 PyObject
*resultobj
;
1501 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1502 wxWindow
*arg2
= (wxWindow
*) 0 ;
1503 wxString
*arg3
= 0 ;
1504 wxString
*arg4
= 0 ;
1506 bool temp3
= False
;
1507 bool temp4
= False
;
1508 PyObject
* obj0
= 0 ;
1509 PyObject
* obj1
= 0 ;
1510 PyObject
* obj2
= 0 ;
1511 PyObject
* obj3
= 0 ;
1513 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1517 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1518 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1519 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1520 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1522 arg3
= wxString_in_helper(obj2
);
1523 if (arg3
== NULL
) SWIG_fail
;
1527 arg4
= wxString_in_helper(obj3
);
1528 if (arg4
== NULL
) SWIG_fail
;
1532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1533 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1535 wxPyEndAllowThreads(__tstate
);
1536 if (PyErr_Occurred()) SWIG_fail
;
1539 resultobj
= wxPyMake_wxObject(result
);
1563 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1564 PyObject
*resultobj
;
1565 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1566 wxObject
*arg2
= (wxObject
*) 0 ;
1567 wxWindow
*arg3
= (wxWindow
*) 0 ;
1568 wxString
*arg4
= 0 ;
1569 wxString
*arg5
= 0 ;
1571 bool temp4
= False
;
1572 bool temp5
= False
;
1573 PyObject
* obj0
= 0 ;
1574 PyObject
* obj1
= 0 ;
1575 PyObject
* obj2
= 0 ;
1576 PyObject
* obj3
= 0 ;
1577 PyObject
* obj4
= 0 ;
1579 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1583 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1584 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1585 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1586 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1587 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1588 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1590 arg4
= wxString_in_helper(obj3
);
1591 if (arg4
== NULL
) SWIG_fail
;
1595 arg5
= wxString_in_helper(obj4
);
1596 if (arg5
== NULL
) SWIG_fail
;
1600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1601 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1603 wxPyEndAllowThreads(__tstate
);
1604 if (PyErr_Occurred()) SWIG_fail
;
1607 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1631 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1632 PyObject
*resultobj
;
1633 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1634 wxString
*arg2
= 0 ;
1636 bool temp2
= False
;
1637 PyObject
* obj0
= 0 ;
1638 PyObject
* obj1
= 0 ;
1640 (char *) "self",(char *) "name", NULL
1643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1644 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1645 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1647 arg2
= wxString_in_helper(obj1
);
1648 if (arg2
== NULL
) SWIG_fail
;
1652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1653 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1655 wxPyEndAllowThreads(__tstate
);
1656 if (PyErr_Occurred()) SWIG_fail
;
1659 wxBitmap
* resultptr
;
1660 resultptr
= new wxBitmap((wxBitmap
&) result
);
1661 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1677 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1678 PyObject
*resultobj
;
1679 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1680 wxString
*arg2
= 0 ;
1682 bool temp2
= False
;
1683 PyObject
* obj0
= 0 ;
1684 PyObject
* obj1
= 0 ;
1686 (char *) "self",(char *) "name", NULL
1689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1690 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1691 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1693 arg2
= wxString_in_helper(obj1
);
1694 if (arg2
== NULL
) SWIG_fail
;
1698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1699 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1701 wxPyEndAllowThreads(__tstate
);
1702 if (PyErr_Occurred()) SWIG_fail
;
1706 resultptr
= new wxIcon((wxIcon
&) result
);
1707 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1723 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1724 PyObject
*resultobj
;
1725 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1726 wxString
*arg2
= 0 ;
1727 wxWindow
*arg3
= (wxWindow
*) 0 ;
1728 wxWindow
*arg4
= (wxWindow
*) NULL
;
1730 bool temp2
= False
;
1731 PyObject
* obj0
= 0 ;
1732 PyObject
* obj1
= 0 ;
1733 PyObject
* obj2
= 0 ;
1734 PyObject
* obj3
= 0 ;
1736 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1740 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1741 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1743 arg2
= wxString_in_helper(obj1
);
1744 if (arg2
== NULL
) SWIG_fail
;
1747 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1748 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1750 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1751 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1755 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1757 wxPyEndAllowThreads(__tstate
);
1758 if (PyErr_Occurred()) SWIG_fail
;
1761 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1777 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1778 PyObject
*resultobj
;
1779 wxString
*arg1
= 0 ;
1781 bool temp1
= False
;
1782 PyObject
* obj0
= 0 ;
1784 (char *) "str_id", NULL
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1789 arg1
= wxString_in_helper(obj0
);
1790 if (arg1
== NULL
) SWIG_fail
;
1794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1795 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1797 wxPyEndAllowThreads(__tstate
);
1798 if (PyErr_Occurred()) SWIG_fail
;
1800 resultobj
= SWIG_FromInt((int)result
);
1815 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1816 PyObject
*resultobj
;
1817 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1819 PyObject
* obj0
= 0 ;
1821 (char *) "self", NULL
1824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1825 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1826 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1829 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1831 wxPyEndAllowThreads(__tstate
);
1832 if (PyErr_Occurred()) SWIG_fail
;
1834 resultobj
= SWIG_FromLong((long)result
);
1841 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
*resultobj
;
1843 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1849 PyObject
* obj0
= 0 ;
1850 PyObject
* obj1
= 0 ;
1851 PyObject
* obj2
= 0 ;
1852 PyObject
* obj3
= 0 ;
1853 PyObject
* obj4
= 0 ;
1855 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1859 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1860 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1861 arg2
= (int) SWIG_AsInt(obj1
);
1862 if (PyErr_Occurred()) SWIG_fail
;
1863 arg3
= (int) SWIG_AsInt(obj2
);
1864 if (PyErr_Occurred()) SWIG_fail
;
1865 arg4
= (int) SWIG_AsInt(obj3
);
1866 if (PyErr_Occurred()) SWIG_fail
;
1867 arg5
= (int) SWIG_AsInt(obj4
);
1868 if (PyErr_Occurred()) SWIG_fail
;
1870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1871 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1873 wxPyEndAllowThreads(__tstate
);
1874 if (PyErr_Occurred()) SWIG_fail
;
1876 resultobj
= SWIG_FromInt((int)result
);
1883 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1884 PyObject
*resultobj
;
1885 wxXmlResource
*result
;
1890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1893 result
= (wxXmlResource
*)wxXmlResource::Get();
1895 wxPyEndAllowThreads(__tstate
);
1896 if (PyErr_Occurred()) SWIG_fail
;
1898 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1905 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1906 PyObject
*resultobj
;
1907 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1908 wxXmlResource
*result
;
1909 PyObject
* obj0
= 0 ;
1911 (char *) "res", NULL
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1915 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1916 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1919 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1921 wxPyEndAllowThreads(__tstate
);
1922 if (PyErr_Occurred()) SWIG_fail
;
1924 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1931 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
*resultobj
;
1933 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1935 PyObject
* obj0
= 0 ;
1937 (char *) "self", NULL
1940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1941 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1942 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1945 result
= (int)(arg1
)->GetFlags();
1947 wxPyEndAllowThreads(__tstate
);
1948 if (PyErr_Occurred()) SWIG_fail
;
1950 resultobj
= SWIG_FromInt((int)result
);
1957 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
*resultobj
;
1959 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1961 PyObject
* obj0
= 0 ;
1962 PyObject
* obj1
= 0 ;
1964 (char *) "self",(char *) "flags", NULL
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1968 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1969 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1970 arg2
= (int) SWIG_AsInt(obj1
);
1971 if (PyErr_Occurred()) SWIG_fail
;
1973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1974 (arg1
)->SetFlags(arg2
);
1976 wxPyEndAllowThreads(__tstate
);
1977 if (PyErr_Occurred()) SWIG_fail
;
1979 Py_INCREF(Py_None
); resultobj
= Py_None
;
1986 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1988 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1989 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1991 return Py_BuildValue((char *)"");
1993 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1994 PyObject
*resultobj
;
1995 wxPyXmlSubclassFactory
*result
;
2000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
2002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2003 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
2005 wxPyEndAllowThreads(__tstate
);
2006 if (PyErr_Occurred()) SWIG_fail
;
2008 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2015 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
*resultobj
;
2017 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2018 PyObject
*arg2
= (PyObject
*) 0 ;
2019 PyObject
*arg3
= (PyObject
*) 0 ;
2020 PyObject
* obj0
= 0 ;
2021 PyObject
* obj1
= 0 ;
2022 PyObject
* obj2
= 0 ;
2024 (char *) "self",(char *) "self",(char *) "_class", NULL
2027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2028 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2029 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2034 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2036 wxPyEndAllowThreads(__tstate
);
2037 if (PyErr_Occurred()) SWIG_fail
;
2039 Py_INCREF(Py_None
); resultobj
= Py_None
;
2046 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
2048 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2049 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2051 return Py_BuildValue((char *)"");
2053 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2054 PyObject
*resultobj
;
2055 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2056 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2057 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2058 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2059 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2060 wxXmlProperty
*result
;
2061 bool temp1
= False
;
2062 bool temp2
= False
;
2063 PyObject
* obj0
= 0 ;
2064 PyObject
* obj1
= 0 ;
2065 PyObject
* obj2
= 0 ;
2067 (char *) "name",(char *) "value",(char *) "next", NULL
2070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2073 arg1
= wxString_in_helper(obj0
);
2074 if (arg1
== NULL
) SWIG_fail
;
2080 arg2
= wxString_in_helper(obj1
);
2081 if (arg2
== NULL
) SWIG_fail
;
2086 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2087 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2091 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2093 wxPyEndAllowThreads(__tstate
);
2094 if (PyErr_Occurred()) SWIG_fail
;
2096 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2119 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2120 PyObject
*resultobj
;
2121 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2123 PyObject
* obj0
= 0 ;
2125 (char *) "self", NULL
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2129 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2130 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2133 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2135 wxPyEndAllowThreads(__tstate
);
2136 if (PyErr_Occurred()) SWIG_fail
;
2140 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2142 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2151 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2152 PyObject
*resultobj
;
2153 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2155 PyObject
* obj0
= 0 ;
2157 (char *) "self", NULL
2160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2161 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2162 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2165 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2167 wxPyEndAllowThreads(__tstate
);
2168 if (PyErr_Occurred()) SWIG_fail
;
2172 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2174 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2183 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2184 PyObject
*resultobj
;
2185 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2186 wxXmlProperty
*result
;
2187 PyObject
* obj0
= 0 ;
2189 (char *) "self", NULL
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2193 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2194 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2197 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2199 wxPyEndAllowThreads(__tstate
);
2200 if (PyErr_Occurred()) SWIG_fail
;
2202 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2209 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2210 PyObject
*resultobj
;
2211 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2212 wxString
*arg2
= 0 ;
2213 bool temp2
= False
;
2214 PyObject
* obj0
= 0 ;
2215 PyObject
* obj1
= 0 ;
2217 (char *) "self",(char *) "name", NULL
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2221 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2222 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2224 arg2
= wxString_in_helper(obj1
);
2225 if (arg2
== NULL
) SWIG_fail
;
2229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2230 (arg1
)->SetName((wxString
const &)*arg2
);
2232 wxPyEndAllowThreads(__tstate
);
2233 if (PyErr_Occurred()) SWIG_fail
;
2235 Py_INCREF(Py_None
); resultobj
= Py_None
;
2250 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2251 PyObject
*resultobj
;
2252 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2253 wxString
*arg2
= 0 ;
2254 bool temp2
= False
;
2255 PyObject
* obj0
= 0 ;
2256 PyObject
* obj1
= 0 ;
2258 (char *) "self",(char *) "value", NULL
2261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2262 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2263 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2265 arg2
= wxString_in_helper(obj1
);
2266 if (arg2
== NULL
) SWIG_fail
;
2270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2271 (arg1
)->SetValue((wxString
const &)*arg2
);
2273 wxPyEndAllowThreads(__tstate
);
2274 if (PyErr_Occurred()) SWIG_fail
;
2276 Py_INCREF(Py_None
); resultobj
= Py_None
;
2291 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2292 PyObject
*resultobj
;
2293 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2294 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2295 PyObject
* obj0
= 0 ;
2296 PyObject
* obj1
= 0 ;
2298 (char *) "self",(char *) "next", NULL
2301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2302 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2303 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2304 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2305 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2308 (arg1
)->SetNext(arg2
);
2310 wxPyEndAllowThreads(__tstate
);
2311 if (PyErr_Occurred()) SWIG_fail
;
2313 Py_INCREF(Py_None
); resultobj
= Py_None
;
2320 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2322 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2323 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2325 return Py_BuildValue((char *)"");
2327 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2328 PyObject
*resultobj
;
2329 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2330 int arg2
= (int) 0 ;
2331 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2332 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2333 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2334 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2335 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2336 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2338 bool temp3
= False
;
2339 bool temp4
= False
;
2340 PyObject
* obj0
= 0 ;
2341 PyObject
* obj1
= 0 ;
2342 PyObject
* obj2
= 0 ;
2343 PyObject
* obj3
= 0 ;
2344 PyObject
* obj4
= 0 ;
2345 PyObject
* obj5
= 0 ;
2347 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2352 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2356 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
2357 if (PyErr_Occurred()) SWIG_fail
;
2361 arg3
= wxString_in_helper(obj2
);
2362 if (arg3
== NULL
) SWIG_fail
;
2368 arg4
= wxString_in_helper(obj3
);
2369 if (arg4
== NULL
) SWIG_fail
;
2374 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2375 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2378 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2379 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2383 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2385 wxPyEndAllowThreads(__tstate
);
2386 if (PyErr_Occurred()) SWIG_fail
;
2388 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2411 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2412 PyObject
*resultobj
;
2413 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2414 PyObject
* obj0
= 0 ;
2416 (char *) "self", NULL
2419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2420 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2421 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2426 wxPyEndAllowThreads(__tstate
);
2427 if (PyErr_Occurred()) SWIG_fail
;
2429 Py_INCREF(Py_None
); resultobj
= Py_None
;
2436 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2437 PyObject
*resultobj
;
2439 wxString
*arg2
= 0 ;
2440 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2441 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2443 bool temp2
= False
;
2444 bool temp3
= False
;
2445 PyObject
* obj0
= 0 ;
2446 PyObject
* obj1
= 0 ;
2447 PyObject
* obj2
= 0 ;
2449 (char *) "type",(char *) "name",(char *) "content", NULL
2452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2453 arg1
= (wxXmlNodeType
) SWIG_AsInt(obj0
);
2454 if (PyErr_Occurred()) SWIG_fail
;
2456 arg2
= wxString_in_helper(obj1
);
2457 if (arg2
== NULL
) SWIG_fail
;
2462 arg3
= wxString_in_helper(obj2
);
2463 if (arg3
== NULL
) SWIG_fail
;
2468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2469 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2471 wxPyEndAllowThreads(__tstate
);
2472 if (PyErr_Occurred()) SWIG_fail
;
2474 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2497 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2498 PyObject
*resultobj
;
2499 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2500 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2501 PyObject
* obj0
= 0 ;
2502 PyObject
* obj1
= 0 ;
2504 (char *) "self",(char *) "child", NULL
2507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2508 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2509 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2510 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2511 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2514 (arg1
)->AddChild(arg2
);
2516 wxPyEndAllowThreads(__tstate
);
2517 if (PyErr_Occurred()) SWIG_fail
;
2519 Py_INCREF(Py_None
); resultobj
= Py_None
;
2526 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2527 PyObject
*resultobj
;
2528 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2529 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2530 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2531 PyObject
* obj0
= 0 ;
2532 PyObject
* obj1
= 0 ;
2533 PyObject
* obj2
= 0 ;
2535 (char *) "self",(char *) "child",(char *) "before_node", NULL
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2539 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2540 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2541 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2542 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2543 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2544 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2546 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2547 (arg1
)->InsertChild(arg2
,arg3
);
2549 wxPyEndAllowThreads(__tstate
);
2550 if (PyErr_Occurred()) SWIG_fail
;
2552 Py_INCREF(Py_None
); resultobj
= Py_None
;
2559 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2560 PyObject
*resultobj
;
2561 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2562 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2564 PyObject
* obj0
= 0 ;
2565 PyObject
* obj1
= 0 ;
2567 (char *) "self",(char *) "child", NULL
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2571 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2572 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2573 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2574 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2577 result
= (bool)(arg1
)->RemoveChild(arg2
);
2579 wxPyEndAllowThreads(__tstate
);
2580 if (PyErr_Occurred()) SWIG_fail
;
2583 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2591 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2592 PyObject
*resultobj
;
2593 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2594 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2595 PyObject
* obj0
= 0 ;
2596 PyObject
* obj1
= 0 ;
2598 (char *) "self",(char *) "prop", NULL
2601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2602 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2603 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2604 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2605 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2608 (arg1
)->AddProperty(arg2
);
2610 wxPyEndAllowThreads(__tstate
);
2611 if (PyErr_Occurred()) SWIG_fail
;
2613 Py_INCREF(Py_None
); resultobj
= Py_None
;
2620 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2621 PyObject
*resultobj
;
2622 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2623 wxString
*arg2
= 0 ;
2624 wxString
*arg3
= 0 ;
2625 bool temp2
= False
;
2626 bool temp3
= False
;
2627 PyObject
* obj0
= 0 ;
2628 PyObject
* obj1
= 0 ;
2629 PyObject
* obj2
= 0 ;
2631 (char *) "self",(char *) "name",(char *) "value", NULL
2634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2635 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2636 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2638 arg2
= wxString_in_helper(obj1
);
2639 if (arg2
== NULL
) SWIG_fail
;
2643 arg3
= wxString_in_helper(obj2
);
2644 if (arg3
== NULL
) SWIG_fail
;
2648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2649 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2651 wxPyEndAllowThreads(__tstate
);
2652 if (PyErr_Occurred()) SWIG_fail
;
2654 Py_INCREF(Py_None
); resultobj
= Py_None
;
2677 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2678 PyObject
*resultobj
;
2679 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2680 wxString
*arg2
= 0 ;
2682 bool temp2
= False
;
2683 PyObject
* obj0
= 0 ;
2684 PyObject
* obj1
= 0 ;
2686 (char *) "self",(char *) "name", NULL
2689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2690 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2691 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2693 arg2
= wxString_in_helper(obj1
);
2694 if (arg2
== NULL
) SWIG_fail
;
2698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2699 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2701 wxPyEndAllowThreads(__tstate
);
2702 if (PyErr_Occurred()) SWIG_fail
;
2705 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2721 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2722 PyObject
*resultobj
;
2723 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2725 PyObject
* obj0
= 0 ;
2727 (char *) "self", NULL
2730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2731 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2732 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2735 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2737 wxPyEndAllowThreads(__tstate
);
2738 if (PyErr_Occurred()) SWIG_fail
;
2740 resultobj
= SWIG_FromInt((int)result
);
2747 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2748 PyObject
*resultobj
;
2749 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2751 PyObject
* obj0
= 0 ;
2753 (char *) "self", NULL
2756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2757 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2758 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2761 result
= ((wxXmlNode
const *)arg1
)->GetName();
2763 wxPyEndAllowThreads(__tstate
);
2764 if (PyErr_Occurred()) SWIG_fail
;
2768 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2770 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2779 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2780 PyObject
*resultobj
;
2781 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2783 PyObject
* obj0
= 0 ;
2785 (char *) "self", NULL
2788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2789 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2790 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2792 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2793 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2795 wxPyEndAllowThreads(__tstate
);
2796 if (PyErr_Occurred()) SWIG_fail
;
2800 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2802 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2811 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2812 PyObject
*resultobj
;
2813 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2815 PyObject
* obj0
= 0 ;
2817 (char *) "self", NULL
2820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2821 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2822 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2825 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2827 wxPyEndAllowThreads(__tstate
);
2828 if (PyErr_Occurred()) SWIG_fail
;
2830 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2837 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
*resultobj
;
2839 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2841 PyObject
* obj0
= 0 ;
2843 (char *) "self", NULL
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2847 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2848 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2851 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2853 wxPyEndAllowThreads(__tstate
);
2854 if (PyErr_Occurred()) SWIG_fail
;
2856 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2863 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2864 PyObject
*resultobj
;
2865 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2867 PyObject
* obj0
= 0 ;
2869 (char *) "self", NULL
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2873 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2874 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2877 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2879 wxPyEndAllowThreads(__tstate
);
2880 if (PyErr_Occurred()) SWIG_fail
;
2882 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2889 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2890 PyObject
*resultobj
;
2891 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2892 wxXmlProperty
*result
;
2893 PyObject
* obj0
= 0 ;
2895 (char *) "self", NULL
2898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2899 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2900 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2903 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2905 wxPyEndAllowThreads(__tstate
);
2906 if (PyErr_Occurred()) SWIG_fail
;
2908 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2915 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2916 PyObject
*resultobj
;
2917 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2918 wxString
*arg2
= 0 ;
2919 wxString
*arg3
= 0 ;
2921 bool temp2
= False
;
2922 bool temp3
= False
;
2923 PyObject
* obj0
= 0 ;
2924 PyObject
* obj1
= 0 ;
2925 PyObject
* obj2
= 0 ;
2927 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2931 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2932 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2934 arg2
= wxString_in_helper(obj1
);
2935 if (arg2
== NULL
) SWIG_fail
;
2939 arg3
= wxString_in_helper(obj2
);
2940 if (arg3
== NULL
) SWIG_fail
;
2944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2945 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2947 wxPyEndAllowThreads(__tstate
);
2948 if (PyErr_Occurred()) SWIG_fail
;
2952 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2954 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2979 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2980 PyObject
*resultobj
;
2981 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2982 wxString
*arg2
= 0 ;
2984 bool temp2
= False
;
2985 PyObject
* obj0
= 0 ;
2986 PyObject
* obj1
= 0 ;
2988 (char *) "self",(char *) "propName", NULL
2991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2992 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2993 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2995 arg2
= wxString_in_helper(obj1
);
2996 if (arg2
== NULL
) SWIG_fail
;
3000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3001 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
3003 wxPyEndAllowThreads(__tstate
);
3004 if (PyErr_Occurred()) SWIG_fail
;
3007 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3023 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3024 PyObject
*resultobj
;
3025 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3027 PyObject
* obj0
= 0 ;
3028 PyObject
* obj1
= 0 ;
3030 (char *) "self",(char *) "type", NULL
3033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3034 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3035 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3036 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
3037 if (PyErr_Occurred()) SWIG_fail
;
3039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3040 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3042 wxPyEndAllowThreads(__tstate
);
3043 if (PyErr_Occurred()) SWIG_fail
;
3045 Py_INCREF(Py_None
); resultobj
= Py_None
;
3052 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3053 PyObject
*resultobj
;
3054 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3055 wxString
*arg2
= 0 ;
3056 bool temp2
= False
;
3057 PyObject
* obj0
= 0 ;
3058 PyObject
* obj1
= 0 ;
3060 (char *) "self",(char *) "name", NULL
3063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3064 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3065 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3067 arg2
= wxString_in_helper(obj1
);
3068 if (arg2
== NULL
) SWIG_fail
;
3072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3073 (arg1
)->SetName((wxString
const &)*arg2
);
3075 wxPyEndAllowThreads(__tstate
);
3076 if (PyErr_Occurred()) SWIG_fail
;
3078 Py_INCREF(Py_None
); resultobj
= Py_None
;
3093 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3094 PyObject
*resultobj
;
3095 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3096 wxString
*arg2
= 0 ;
3097 bool temp2
= False
;
3098 PyObject
* obj0
= 0 ;
3099 PyObject
* obj1
= 0 ;
3101 (char *) "self",(char *) "con", NULL
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3105 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3106 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3108 arg2
= wxString_in_helper(obj1
);
3109 if (arg2
== NULL
) SWIG_fail
;
3113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3114 (arg1
)->SetContent((wxString
const &)*arg2
);
3116 wxPyEndAllowThreads(__tstate
);
3117 if (PyErr_Occurred()) SWIG_fail
;
3119 Py_INCREF(Py_None
); resultobj
= Py_None
;
3134 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3135 PyObject
*resultobj
;
3136 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3137 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3138 PyObject
* obj0
= 0 ;
3139 PyObject
* obj1
= 0 ;
3141 (char *) "self",(char *) "parent", NULL
3144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3145 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3146 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3147 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3148 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3151 (arg1
)->SetParent(arg2
);
3153 wxPyEndAllowThreads(__tstate
);
3154 if (PyErr_Occurred()) SWIG_fail
;
3156 Py_INCREF(Py_None
); resultobj
= Py_None
;
3163 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
*resultobj
;
3165 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3166 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3167 PyObject
* obj0
= 0 ;
3168 PyObject
* obj1
= 0 ;
3170 (char *) "self",(char *) "next", NULL
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3174 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3175 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3176 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3177 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3180 (arg1
)->SetNext(arg2
);
3182 wxPyEndAllowThreads(__tstate
);
3183 if (PyErr_Occurred()) SWIG_fail
;
3185 Py_INCREF(Py_None
); resultobj
= Py_None
;
3192 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3193 PyObject
*resultobj
;
3194 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3195 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3196 PyObject
* obj0
= 0 ;
3197 PyObject
* obj1
= 0 ;
3199 (char *) "self",(char *) "child", NULL
3202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3203 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3204 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3205 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3206 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3209 (arg1
)->SetChildren(arg2
);
3211 wxPyEndAllowThreads(__tstate
);
3212 if (PyErr_Occurred()) SWIG_fail
;
3214 Py_INCREF(Py_None
); resultobj
= Py_None
;
3221 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3222 PyObject
*resultobj
;
3223 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3224 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3225 PyObject
* obj0
= 0 ;
3226 PyObject
* obj1
= 0 ;
3228 (char *) "self",(char *) "prop", NULL
3231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3232 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3233 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3234 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3235 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3238 (arg1
)->SetProperties(arg2
);
3240 wxPyEndAllowThreads(__tstate
);
3241 if (PyErr_Occurred()) SWIG_fail
;
3243 Py_INCREF(Py_None
); resultobj
= Py_None
;
3250 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3252 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3253 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3255 return Py_BuildValue((char *)"");
3257 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3258 PyObject
*resultobj
;
3259 wxString
*arg1
= 0 ;
3260 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3261 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3262 wxXmlDocument
*result
;
3263 bool temp1
= False
;
3264 bool temp2
= False
;
3265 PyObject
* obj0
= 0 ;
3266 PyObject
* obj1
= 0 ;
3268 (char *) "filename",(char *) "encoding", NULL
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3273 arg1
= wxString_in_helper(obj0
);
3274 if (arg1
== NULL
) SWIG_fail
;
3279 arg2
= wxString_in_helper(obj1
);
3280 if (arg2
== NULL
) SWIG_fail
;
3285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3286 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3288 wxPyEndAllowThreads(__tstate
);
3289 if (PyErr_Occurred()) SWIG_fail
;
3291 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3314 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3315 PyObject
*resultobj
;
3316 wxInputStream
*arg1
= 0 ;
3317 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3318 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3319 wxXmlDocument
*result
;
3320 wxPyInputStream
*temp1
;
3322 bool temp2
= False
;
3323 PyObject
* obj0
= 0 ;
3324 PyObject
* obj1
= 0 ;
3326 (char *) "stream",(char *) "encoding", NULL
3329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3331 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3332 arg1
= temp1
->m_wxis
;
3335 PyErr_Clear(); // clear the failure of the wxPyConvert above
3336 arg1
= wxPyCBInputStream_create(obj0
, False
);
3338 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3346 arg2
= wxString_in_helper(obj1
);
3347 if (arg2
== NULL
) SWIG_fail
;
3352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3353 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3355 wxPyEndAllowThreads(__tstate
);
3356 if (PyErr_Occurred()) SWIG_fail
;
3358 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3381 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3382 PyObject
*resultobj
;
3383 wxXmlDocument
*result
;
3388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3391 result
= (wxXmlDocument
*)new wxXmlDocument();
3393 wxPyEndAllowThreads(__tstate
);
3394 if (PyErr_Occurred()) SWIG_fail
;
3396 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3403 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
*resultobj
;
3405 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3406 PyObject
* obj0
= 0 ;
3408 (char *) "self", NULL
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3412 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3413 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3418 wxPyEndAllowThreads(__tstate
);
3419 if (PyErr_Occurred()) SWIG_fail
;
3421 Py_INCREF(Py_None
); resultobj
= Py_None
;
3428 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3429 PyObject
*resultobj
;
3430 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3431 wxString
*arg2
= 0 ;
3432 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3433 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3435 bool temp2
= False
;
3436 bool temp3
= False
;
3437 PyObject
* obj0
= 0 ;
3438 PyObject
* obj1
= 0 ;
3439 PyObject
* obj2
= 0 ;
3441 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3445 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3446 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3448 arg2
= wxString_in_helper(obj1
);
3449 if (arg2
== NULL
) SWIG_fail
;
3454 arg3
= wxString_in_helper(obj2
);
3455 if (arg3
== NULL
) SWIG_fail
;
3460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3461 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3463 wxPyEndAllowThreads(__tstate
);
3464 if (PyErr_Occurred()) SWIG_fail
;
3467 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3491 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3492 PyObject
*resultobj
;
3493 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3494 wxInputStream
*arg2
= 0 ;
3495 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3496 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3498 wxPyInputStream
*temp2
;
3500 bool temp3
= False
;
3501 PyObject
* obj0
= 0 ;
3502 PyObject
* obj1
= 0 ;
3503 PyObject
* obj2
= 0 ;
3505 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3509 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3510 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3512 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3513 arg2
= temp2
->m_wxis
;
3516 PyErr_Clear(); // clear the failure of the wxPyConvert above
3517 arg2
= wxPyCBInputStream_create(obj1
, False
);
3519 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3527 arg3
= wxString_in_helper(obj2
);
3528 if (arg3
== NULL
) SWIG_fail
;
3533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3534 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3536 wxPyEndAllowThreads(__tstate
);
3537 if (PyErr_Occurred()) SWIG_fail
;
3540 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3564 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3565 PyObject
*resultobj
;
3566 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3567 wxString
*arg2
= 0 ;
3569 bool temp2
= False
;
3570 PyObject
* obj0
= 0 ;
3571 PyObject
* obj1
= 0 ;
3573 (char *) "self",(char *) "filename", NULL
3576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3577 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3578 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3580 arg2
= wxString_in_helper(obj1
);
3581 if (arg2
== NULL
) SWIG_fail
;
3585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3586 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3588 wxPyEndAllowThreads(__tstate
);
3589 if (PyErr_Occurred()) SWIG_fail
;
3592 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3608 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3609 PyObject
*resultobj
;
3610 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3611 wxOutputStream
*arg2
= 0 ;
3613 PyObject
* obj0
= 0 ;
3614 PyObject
* obj1
= 0 ;
3616 (char *) "self",(char *) "stream", NULL
3619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3620 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3621 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3622 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3623 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3626 PyErr_SetString(PyExc_TypeError
,"null reference");
3630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3631 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3633 wxPyEndAllowThreads(__tstate
);
3634 if (PyErr_Occurred()) SWIG_fail
;
3637 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3645 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3646 PyObject
*resultobj
;
3647 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3649 PyObject
* obj0
= 0 ;
3651 (char *) "self", NULL
3654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3655 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3656 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3659 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3661 wxPyEndAllowThreads(__tstate
);
3662 if (PyErr_Occurred()) SWIG_fail
;
3665 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3673 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3674 PyObject
*resultobj
;
3675 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3677 PyObject
* obj0
= 0 ;
3679 (char *) "self", NULL
3682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3683 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3684 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3687 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3689 wxPyEndAllowThreads(__tstate
);
3690 if (PyErr_Occurred()) SWIG_fail
;
3692 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3699 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3700 PyObject
*resultobj
;
3701 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3703 PyObject
* obj0
= 0 ;
3705 (char *) "self", NULL
3708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3709 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3710 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3713 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3715 wxPyEndAllowThreads(__tstate
);
3716 if (PyErr_Occurred()) SWIG_fail
;
3720 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3722 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3731 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3732 PyObject
*resultobj
;
3733 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3735 PyObject
* obj0
= 0 ;
3737 (char *) "self", NULL
3740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3741 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3742 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3745 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3747 wxPyEndAllowThreads(__tstate
);
3748 if (PyErr_Occurred()) SWIG_fail
;
3752 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3754 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3763 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3764 PyObject
*resultobj
;
3765 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3766 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3767 PyObject
* obj0
= 0 ;
3768 PyObject
* obj1
= 0 ;
3770 (char *) "self",(char *) "node", NULL
3773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3774 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3775 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3776 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3777 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3780 (arg1
)->SetRoot(arg2
);
3782 wxPyEndAllowThreads(__tstate
);
3783 if (PyErr_Occurred()) SWIG_fail
;
3785 Py_INCREF(Py_None
); resultobj
= Py_None
;
3792 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3793 PyObject
*resultobj
;
3794 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3795 wxString
*arg2
= 0 ;
3796 bool temp2
= False
;
3797 PyObject
* obj0
= 0 ;
3798 PyObject
* obj1
= 0 ;
3800 (char *) "self",(char *) "version", NULL
3803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3804 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3805 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3807 arg2
= wxString_in_helper(obj1
);
3808 if (arg2
== NULL
) SWIG_fail
;
3812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3813 (arg1
)->SetVersion((wxString
const &)*arg2
);
3815 wxPyEndAllowThreads(__tstate
);
3816 if (PyErr_Occurred()) SWIG_fail
;
3818 Py_INCREF(Py_None
); resultobj
= Py_None
;
3833 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3834 PyObject
*resultobj
;
3835 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3836 wxString
*arg2
= 0 ;
3837 bool temp2
= False
;
3838 PyObject
* obj0
= 0 ;
3839 PyObject
* obj1
= 0 ;
3841 (char *) "self",(char *) "encoding", NULL
3844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3845 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3846 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3848 arg2
= wxString_in_helper(obj1
);
3849 if (arg2
== NULL
) SWIG_fail
;
3853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3854 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3856 wxPyEndAllowThreads(__tstate
);
3857 if (PyErr_Occurred()) SWIG_fail
;
3859 Py_INCREF(Py_None
); resultobj
= Py_None
;
3874 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3876 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3877 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3879 return Py_BuildValue((char *)"");
3881 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3882 PyObject
*resultobj
;
3883 wxPyXmlResourceHandler
*result
;
3888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3891 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3893 wxPyEndAllowThreads(__tstate
);
3894 if (PyErr_Occurred()) SWIG_fail
;
3896 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3903 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3904 PyObject
*resultobj
;
3905 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3906 PyObject
*arg2
= (PyObject
*) 0 ;
3907 PyObject
*arg3
= (PyObject
*) 0 ;
3908 PyObject
* obj0
= 0 ;
3909 PyObject
* obj1
= 0 ;
3910 PyObject
* obj2
= 0 ;
3912 (char *) "self",(char *) "self",(char *) "_class", NULL
3915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3916 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3917 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3922 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3924 wxPyEndAllowThreads(__tstate
);
3925 if (PyErr_Occurred()) SWIG_fail
;
3927 Py_INCREF(Py_None
); resultobj
= Py_None
;
3934 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3935 PyObject
*resultobj
;
3936 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3937 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3938 wxObject
*arg3
= (wxObject
*) 0 ;
3939 wxObject
*arg4
= (wxObject
*) 0 ;
3941 PyObject
* obj0
= 0 ;
3942 PyObject
* obj1
= 0 ;
3943 PyObject
* obj2
= 0 ;
3944 PyObject
* obj3
= 0 ;
3946 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3950 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3951 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3952 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3953 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3954 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
3955 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3956 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
3957 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3960 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3962 wxPyEndAllowThreads(__tstate
);
3963 if (PyErr_Occurred()) SWIG_fail
;
3966 resultobj
= wxPyMake_wxObject(result
);
3974 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3975 PyObject
*resultobj
;
3976 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3977 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3978 PyObject
* obj0
= 0 ;
3979 PyObject
* obj1
= 0 ;
3981 (char *) "self",(char *) "res", NULL
3984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3985 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3986 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3987 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
3988 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3991 (arg1
)->SetParentResource(arg2
);
3993 wxPyEndAllowThreads(__tstate
);
3994 if (PyErr_Occurred()) SWIG_fail
;
3996 Py_INCREF(Py_None
); resultobj
= Py_None
;
4003 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4004 PyObject
*resultobj
;
4005 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4006 wxXmlResource
*result
;
4007 PyObject
* obj0
= 0 ;
4009 (char *) "self", NULL
4012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4013 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4014 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4017 result
= (wxXmlResource
*)(arg1
)->GetResource();
4019 wxPyEndAllowThreads(__tstate
);
4020 if (PyErr_Occurred()) SWIG_fail
;
4022 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4029 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4030 PyObject
*resultobj
;
4031 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4033 PyObject
* obj0
= 0 ;
4035 (char *) "self", NULL
4038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4039 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4040 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4043 result
= (wxXmlNode
*)(arg1
)->GetNode();
4045 wxPyEndAllowThreads(__tstate
);
4046 if (PyErr_Occurred()) SWIG_fail
;
4048 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4055 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4056 PyObject
*resultobj
;
4057 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4059 PyObject
* obj0
= 0 ;
4061 (char *) "self", NULL
4064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4065 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4066 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4069 result
= (arg1
)->GetClass();
4071 wxPyEndAllowThreads(__tstate
);
4072 if (PyErr_Occurred()) SWIG_fail
;
4076 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4078 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4087 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
*resultobj
;
4089 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4091 PyObject
* obj0
= 0 ;
4093 (char *) "self", NULL
4096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4097 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4098 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4101 result
= (wxObject
*)(arg1
)->GetParent();
4103 wxPyEndAllowThreads(__tstate
);
4104 if (PyErr_Occurred()) SWIG_fail
;
4107 resultobj
= wxPyMake_wxObject(result
);
4115 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4116 PyObject
*resultobj
;
4117 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4119 PyObject
* obj0
= 0 ;
4121 (char *) "self", NULL
4124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4125 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4126 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4129 result
= (wxObject
*)(arg1
)->GetInstance();
4131 wxPyEndAllowThreads(__tstate
);
4132 if (PyErr_Occurred()) SWIG_fail
;
4135 resultobj
= wxPyMake_wxObject(result
);
4143 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4144 PyObject
*resultobj
;
4145 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4147 PyObject
* obj0
= 0 ;
4149 (char *) "self", NULL
4152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4153 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4154 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4157 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4159 wxPyEndAllowThreads(__tstate
);
4160 if (PyErr_Occurred()) SWIG_fail
;
4163 resultobj
= wxPyMake_wxObject(result
);
4171 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4172 PyObject
*resultobj
;
4173 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4175 PyObject
* obj0
= 0 ;
4177 (char *) "self", NULL
4180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4181 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4182 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4185 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4187 wxPyEndAllowThreads(__tstate
);
4188 if (PyErr_Occurred()) SWIG_fail
;
4191 resultobj
= wxPyMake_wxObject(result
);
4199 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
*resultobj
;
4201 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4202 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4203 wxString
*arg3
= 0 ;
4205 bool temp3
= False
;
4206 PyObject
* obj0
= 0 ;
4207 PyObject
* obj1
= 0 ;
4208 PyObject
* obj2
= 0 ;
4210 (char *) "self",(char *) "node",(char *) "classname", NULL
4213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4214 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4215 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4216 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4217 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4219 arg3
= wxString_in_helper(obj2
);
4220 if (arg3
== NULL
) SWIG_fail
;
4224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4225 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4227 wxPyEndAllowThreads(__tstate
);
4228 if (PyErr_Occurred()) SWIG_fail
;
4231 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4247 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4248 PyObject
*resultobj
;
4249 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4250 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4252 PyObject
* obj0
= 0 ;
4253 PyObject
* obj1
= 0 ;
4255 (char *) "self",(char *) "node", NULL
4258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4259 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4260 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4261 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4262 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4265 result
= (arg1
)->GetNodeContent(arg2
);
4267 wxPyEndAllowThreads(__tstate
);
4268 if (PyErr_Occurred()) SWIG_fail
;
4272 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4274 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4283 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4284 PyObject
*resultobj
;
4285 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4286 wxString
*arg2
= 0 ;
4288 bool temp2
= False
;
4289 PyObject
* obj0
= 0 ;
4290 PyObject
* obj1
= 0 ;
4292 (char *) "self",(char *) "param", NULL
4295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4296 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4297 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4299 arg2
= wxString_in_helper(obj1
);
4300 if (arg2
== NULL
) SWIG_fail
;
4304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4305 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4307 wxPyEndAllowThreads(__tstate
);
4308 if (PyErr_Occurred()) SWIG_fail
;
4311 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4327 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4328 PyObject
*resultobj
;
4329 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4330 wxString
*arg2
= 0 ;
4332 bool temp2
= False
;
4333 PyObject
* obj0
= 0 ;
4334 PyObject
* obj1
= 0 ;
4336 (char *) "self",(char *) "param", NULL
4339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4340 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4341 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4343 arg2
= wxString_in_helper(obj1
);
4344 if (arg2
== NULL
) SWIG_fail
;
4348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4349 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4351 wxPyEndAllowThreads(__tstate
);
4352 if (PyErr_Occurred()) SWIG_fail
;
4354 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4369 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4370 PyObject
*resultobj
;
4371 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4372 wxString
*arg2
= 0 ;
4374 bool temp2
= False
;
4375 PyObject
* obj0
= 0 ;
4376 PyObject
* obj1
= 0 ;
4378 (char *) "self",(char *) "param", NULL
4381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4382 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4383 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4385 arg2
= wxString_in_helper(obj1
);
4386 if (arg2
== NULL
) SWIG_fail
;
4390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4391 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4393 wxPyEndAllowThreads(__tstate
);
4394 if (PyErr_Occurred()) SWIG_fail
;
4398 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4400 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4417 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4418 PyObject
*resultobj
;
4419 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4420 wxString
*arg2
= 0 ;
4422 bool temp2
= False
;
4423 PyObject
* obj0
= 0 ;
4424 PyObject
* obj1
= 0 ;
4425 PyObject
* obj2
= 0 ;
4427 (char *) "self",(char *) "name",(char *) "value", NULL
4430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4431 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4432 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4434 arg2
= wxString_in_helper(obj1
);
4435 if (arg2
== NULL
) SWIG_fail
;
4438 arg3
= (int) SWIG_AsInt(obj2
);
4439 if (PyErr_Occurred()) SWIG_fail
;
4441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4442 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4444 wxPyEndAllowThreads(__tstate
);
4445 if (PyErr_Occurred()) SWIG_fail
;
4447 Py_INCREF(Py_None
); resultobj
= Py_None
;
4462 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4463 PyObject
*resultobj
;
4464 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4465 PyObject
* obj0
= 0 ;
4467 (char *) "self", NULL
4470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4471 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4472 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4475 (arg1
)->AddWindowStyles();
4477 wxPyEndAllowThreads(__tstate
);
4478 if (PyErr_Occurred()) SWIG_fail
;
4480 Py_INCREF(Py_None
); resultobj
= Py_None
;
4487 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4488 PyObject
*resultobj
;
4489 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4490 wxString
const &arg2_defvalue
= wxPyStyleString
;
4491 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4492 int arg3
= (int) 0 ;
4494 bool temp2
= False
;
4495 PyObject
* obj0
= 0 ;
4496 PyObject
* obj1
= 0 ;
4497 PyObject
* obj2
= 0 ;
4499 (char *) "self",(char *) "param",(char *) "defaults", NULL
4502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4503 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4504 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4507 arg2
= wxString_in_helper(obj1
);
4508 if (arg2
== NULL
) SWIG_fail
;
4513 arg3
= (int) SWIG_AsInt(obj2
);
4514 if (PyErr_Occurred()) SWIG_fail
;
4517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4518 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4520 wxPyEndAllowThreads(__tstate
);
4521 if (PyErr_Occurred()) SWIG_fail
;
4523 resultobj
= SWIG_FromInt((int)result
);
4538 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4539 PyObject
*resultobj
;
4540 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4541 wxString
*arg2
= 0 ;
4542 bool arg3
= (bool) True
;
4544 bool temp2
= False
;
4545 PyObject
* obj0
= 0 ;
4546 PyObject
* obj1
= 0 ;
4547 PyObject
* obj2
= 0 ;
4549 (char *) "self",(char *) "param",(char *) "translate", NULL
4552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4553 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4554 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4556 arg2
= wxString_in_helper(obj1
);
4557 if (arg2
== NULL
) SWIG_fail
;
4561 arg3
= (bool) SWIG_AsBool(obj2
);
4562 if (PyErr_Occurred()) SWIG_fail
;
4565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4566 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4568 wxPyEndAllowThreads(__tstate
);
4569 if (PyErr_Occurred()) SWIG_fail
;
4573 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4575 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4592 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4593 PyObject
*resultobj
;
4594 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4596 PyObject
* obj0
= 0 ;
4598 (char *) "self", NULL
4601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4602 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4603 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4606 result
= (int)(arg1
)->GetID();
4608 wxPyEndAllowThreads(__tstate
);
4609 if (PyErr_Occurred()) SWIG_fail
;
4611 resultobj
= SWIG_FromInt((int)result
);
4618 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4619 PyObject
*resultobj
;
4620 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4622 PyObject
* obj0
= 0 ;
4624 (char *) "self", NULL
4627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4628 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4629 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4632 result
= (arg1
)->GetName();
4634 wxPyEndAllowThreads(__tstate
);
4635 if (PyErr_Occurred()) SWIG_fail
;
4639 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4641 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4650 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4651 PyObject
*resultobj
;
4652 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4653 wxString
*arg2
= 0 ;
4654 bool arg3
= (bool) False
;
4656 bool temp2
= False
;
4657 PyObject
* obj0
= 0 ;
4658 PyObject
* obj1
= 0 ;
4659 PyObject
* obj2
= 0 ;
4661 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4665 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4666 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4668 arg2
= wxString_in_helper(obj1
);
4669 if (arg2
== NULL
) SWIG_fail
;
4673 arg3
= (bool) SWIG_AsBool(obj2
);
4674 if (PyErr_Occurred()) SWIG_fail
;
4677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4678 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4680 wxPyEndAllowThreads(__tstate
);
4681 if (PyErr_Occurred()) SWIG_fail
;
4684 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4700 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
*resultobj
;
4702 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4703 wxString
*arg2
= 0 ;
4704 long arg3
= (long) 0 ;
4706 bool temp2
= False
;
4707 PyObject
* obj0
= 0 ;
4708 PyObject
* obj1
= 0 ;
4709 PyObject
* obj2
= 0 ;
4711 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4715 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4716 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4718 arg2
= wxString_in_helper(obj1
);
4719 if (arg2
== NULL
) SWIG_fail
;
4723 arg3
= (long) SWIG_AsLong(obj2
);
4724 if (PyErr_Occurred()) SWIG_fail
;
4727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4728 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4730 wxPyEndAllowThreads(__tstate
);
4731 if (PyErr_Occurred()) SWIG_fail
;
4733 resultobj
= SWIG_FromLong((long)result
);
4748 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4749 PyObject
*resultobj
;
4750 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4751 wxString
*arg2
= 0 ;
4753 bool temp2
= False
;
4754 PyObject
* obj0
= 0 ;
4755 PyObject
* obj1
= 0 ;
4757 (char *) "self",(char *) "param", NULL
4760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4761 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4762 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4764 arg2
= wxString_in_helper(obj1
);
4765 if (arg2
== NULL
) SWIG_fail
;
4769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4770 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4772 wxPyEndAllowThreads(__tstate
);
4773 if (PyErr_Occurred()) SWIG_fail
;
4776 wxColour
* resultptr
;
4777 resultptr
= new wxColour((wxColour
&) result
);
4778 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4794 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4795 PyObject
*resultobj
;
4796 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4797 wxString
const &arg2_defvalue
= wxPySizeString
;
4798 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4800 bool temp2
= False
;
4801 PyObject
* obj0
= 0 ;
4802 PyObject
* obj1
= 0 ;
4804 (char *) "self",(char *) "param", NULL
4807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4808 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4809 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4812 arg2
= wxString_in_helper(obj1
);
4813 if (arg2
== NULL
) SWIG_fail
;
4818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4819 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4821 wxPyEndAllowThreads(__tstate
);
4822 if (PyErr_Occurred()) SWIG_fail
;
4826 resultptr
= new wxSize((wxSize
&) result
);
4827 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4843 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4844 PyObject
*resultobj
;
4845 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4846 wxString
const &arg2_defvalue
= wxPyPosString
;
4847 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4849 bool temp2
= False
;
4850 PyObject
* obj0
= 0 ;
4851 PyObject
* obj1
= 0 ;
4853 (char *) "self",(char *) "param", NULL
4856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4857 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4858 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4861 arg2
= wxString_in_helper(obj1
);
4862 if (arg2
== NULL
) SWIG_fail
;
4867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4868 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4870 wxPyEndAllowThreads(__tstate
);
4871 if (PyErr_Occurred()) SWIG_fail
;
4874 wxPoint
* resultptr
;
4875 resultptr
= new wxPoint((wxPoint
&) result
);
4876 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4892 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4893 PyObject
*resultobj
;
4894 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4895 wxString
*arg2
= 0 ;
4896 int arg3
= (int) 0 ;
4898 bool temp2
= False
;
4899 PyObject
* obj0
= 0 ;
4900 PyObject
* obj1
= 0 ;
4901 PyObject
* obj2
= 0 ;
4903 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4907 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4908 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4910 arg2
= wxString_in_helper(obj1
);
4911 if (arg2
== NULL
) SWIG_fail
;
4915 arg3
= (int) SWIG_AsInt(obj2
);
4916 if (PyErr_Occurred()) SWIG_fail
;
4919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4920 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4922 wxPyEndAllowThreads(__tstate
);
4923 if (PyErr_Occurred()) SWIG_fail
;
4925 resultobj
= SWIG_FromInt((int)result
);
4940 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4941 PyObject
*resultobj
;
4942 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4943 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4944 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4945 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4946 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4947 wxSize arg4
= (wxSize
) wxDefaultSize
;
4949 bool temp2
= False
;
4951 PyObject
* obj0
= 0 ;
4952 PyObject
* obj1
= 0 ;
4953 PyObject
* obj2
= 0 ;
4954 PyObject
* obj3
= 0 ;
4956 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4960 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4961 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4964 arg2
= wxString_in_helper(obj1
);
4965 if (arg2
== NULL
) SWIG_fail
;
4970 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4971 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4974 PyErr_SetString(PyExc_TypeError
,"null reference");
4979 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
4980 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4985 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4987 wxPyEndAllowThreads(__tstate
);
4988 if (PyErr_Occurred()) SWIG_fail
;
4991 wxBitmap
* resultptr
;
4992 resultptr
= new wxBitmap((wxBitmap
&) result
);
4993 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
5009 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5010 PyObject
*resultobj
;
5011 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5012 wxString
const &arg2_defvalue
= wxPyIconString
;
5013 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5014 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5015 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5016 wxSize arg4
= (wxSize
) wxDefaultSize
;
5018 bool temp2
= False
;
5020 PyObject
* obj0
= 0 ;
5021 PyObject
* obj1
= 0 ;
5022 PyObject
* obj2
= 0 ;
5023 PyObject
* obj3
= 0 ;
5025 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5029 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5030 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5033 arg2
= wxString_in_helper(obj1
);
5034 if (arg2
== NULL
) SWIG_fail
;
5039 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5040 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5043 PyErr_SetString(PyExc_TypeError
,"null reference");
5048 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5049 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5054 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5056 wxPyEndAllowThreads(__tstate
);
5057 if (PyErr_Occurred()) SWIG_fail
;
5061 resultptr
= new wxIcon((wxIcon
&) result
);
5062 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5078 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5079 PyObject
*resultobj
;
5080 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5081 wxString
const &arg2_defvalue
= wxPyFontString
;
5082 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5084 bool temp2
= False
;
5085 PyObject
* obj0
= 0 ;
5086 PyObject
* obj1
= 0 ;
5088 (char *) "self",(char *) "param", NULL
5091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5092 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5093 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5096 arg2
= wxString_in_helper(obj1
);
5097 if (arg2
== NULL
) SWIG_fail
;
5102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5103 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5105 wxPyEndAllowThreads(__tstate
);
5106 if (PyErr_Occurred()) SWIG_fail
;
5110 resultptr
= new wxFont((wxFont
&) result
);
5111 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5127 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5128 PyObject
*resultobj
;
5129 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5130 wxWindow
*arg2
= (wxWindow
*) 0 ;
5131 PyObject
* obj0
= 0 ;
5132 PyObject
* obj1
= 0 ;
5134 (char *) "self",(char *) "wnd", NULL
5137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5138 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5139 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5140 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5141 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5144 (arg1
)->SetupWindow(arg2
);
5146 wxPyEndAllowThreads(__tstate
);
5147 if (PyErr_Occurred()) SWIG_fail
;
5149 Py_INCREF(Py_None
); resultobj
= Py_None
;
5156 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5157 PyObject
*resultobj
;
5158 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5159 wxObject
*arg2
= (wxObject
*) 0 ;
5160 bool arg3
= (bool) False
;
5161 PyObject
* obj0
= 0 ;
5162 PyObject
* obj1
= 0 ;
5163 PyObject
* obj2
= 0 ;
5165 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5169 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5170 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5171 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5172 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5174 arg3
= (bool) SWIG_AsBool(obj2
);
5175 if (PyErr_Occurred()) SWIG_fail
;
5178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5179 (arg1
)->CreateChildren(arg2
,arg3
);
5181 wxPyEndAllowThreads(__tstate
);
5182 if (PyErr_Occurred()) SWIG_fail
;
5184 Py_INCREF(Py_None
); resultobj
= Py_None
;
5191 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5192 PyObject
*resultobj
;
5193 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5194 wxObject
*arg2
= (wxObject
*) 0 ;
5195 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5196 PyObject
* obj0
= 0 ;
5197 PyObject
* obj1
= 0 ;
5198 PyObject
* obj2
= 0 ;
5200 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5204 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5206 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5207 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5209 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5210 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5214 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5216 wxPyEndAllowThreads(__tstate
);
5217 if (PyErr_Occurred()) SWIG_fail
;
5219 Py_INCREF(Py_None
); resultobj
= Py_None
;
5226 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5227 PyObject
*resultobj
;
5228 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5229 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5230 wxObject
*arg3
= (wxObject
*) 0 ;
5231 wxObject
*arg4
= (wxObject
*) NULL
;
5233 PyObject
* obj0
= 0 ;
5234 PyObject
* obj1
= 0 ;
5235 PyObject
* obj2
= 0 ;
5236 PyObject
* obj3
= 0 ;
5238 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5242 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5243 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5244 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5245 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5246 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5247 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5249 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5250 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5254 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5256 wxPyEndAllowThreads(__tstate
);
5257 if (PyErr_Occurred()) SWIG_fail
;
5260 resultobj
= wxPyMake_wxObject(result
);
5268 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5269 PyObject
*resultobj
;
5270 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5271 wxFileSystem
*result
;
5272 PyObject
* obj0
= 0 ;
5274 (char *) "self", NULL
5277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5278 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5279 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5283 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5284 result
= (wxFileSystem
*) &_result_ref
;
5287 wxPyEndAllowThreads(__tstate
);
5288 if (PyErr_Occurred()) SWIG_fail
;
5290 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5297 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5299 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5300 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5302 return Py_BuildValue((char *)"");
5304 static PyMethodDef SwigMethods
[] = {
5305 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5306 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5307 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5308 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5309 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5310 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5311 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5312 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5313 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5314 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5315 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5316 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5317 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5318 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5319 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5320 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5321 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5322 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5323 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5324 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5325 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5326 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5327 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5328 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5329 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5330 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5331 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5332 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5333 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5334 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5335 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5336 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5337 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5338 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5339 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5340 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5341 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5342 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5343 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5344 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5345 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5346 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5347 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5348 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5349 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5350 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5351 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5352 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5353 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5354 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5355 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5356 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5357 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5358 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5359 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5360 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5361 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5362 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5363 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5364 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5365 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5366 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5367 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5368 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5369 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5370 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5371 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5372 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5373 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5374 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5375 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5376 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5377 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5378 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5379 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5380 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5381 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5382 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5383 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5384 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5385 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5386 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5387 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5388 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5389 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5390 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5391 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5392 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5393 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5394 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5395 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5396 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5397 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5398 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5399 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5400 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5401 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5402 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5403 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5404 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5405 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5406 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5407 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5408 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5409 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5410 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5411 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5412 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5413 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5414 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5415 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5416 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5417 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5418 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5419 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5420 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5421 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5422 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5423 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5424 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5425 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5426 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5427 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5432 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5434 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5435 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5437 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5438 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5440 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5441 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5443 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5444 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5446 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5447 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5449 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5450 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5452 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5453 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5455 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5456 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5458 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5459 return (void *)((wxObject
*) ((wxSizer
*) x
));
5461 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5462 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5464 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5465 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5467 static void *_p_wxEventTo_p_wxObject(void *x
) {
5468 return (void *)((wxObject
*) ((wxEvent
*) x
));
5470 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5471 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5473 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5474 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5476 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5477 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5479 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5480 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5482 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5483 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5485 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5486 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5488 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5489 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5491 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5492 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5494 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5495 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5497 static void *_p_wxControlTo_p_wxObject(void *x
) {
5498 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5500 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5501 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5503 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5504 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5506 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5507 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5509 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5510 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5512 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5513 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5515 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5516 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5518 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5519 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5521 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5522 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5524 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5525 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5527 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5528 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5530 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5531 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5533 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5534 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5536 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5537 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5539 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5540 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5542 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5543 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5545 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5546 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5548 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5549 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5551 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5552 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5554 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5555 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5557 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5558 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5560 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5561 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5563 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5564 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5566 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5567 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5569 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5570 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5572 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5573 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5575 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5576 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5578 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5579 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5581 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5582 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5584 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5585 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5587 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5588 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5590 static void *_p_wxImageTo_p_wxObject(void *x
) {
5591 return (void *)((wxObject
*) ((wxImage
*) x
));
5593 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5594 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5596 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5597 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5599 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5600 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5602 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5603 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5605 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5606 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5608 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5609 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5611 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5612 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5614 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5615 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5617 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5618 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5620 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5621 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5623 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5624 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5626 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5627 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5629 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5630 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5632 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5633 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5635 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5636 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5638 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5639 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5641 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5642 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5644 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5645 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5647 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5648 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5650 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5651 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5653 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5654 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5656 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5657 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5659 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5660 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5662 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5663 return (void *)((wxWindow
*) ((wxControl
*) x
));
5665 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5666 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5668 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5669 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5671 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}};
5672 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}};
5673 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}};
5674 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}};
5675 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}};
5676 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}};
5677 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}};
5678 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}};
5679 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}};
5680 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}};
5681 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}};
5682 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}};
5683 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}};
5684 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}};
5685 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}};
5686 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}};
5687 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}};
5688 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}};
5689 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}};
5690 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}};
5691 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}};
5692 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}};
5694 static swig_type_info
*swig_types_initial
[] = {
5701 _swigt__p_wxArtClient
,
5703 _swigt__p_wxPyXmlSubclassFactory
,
5706 _swigt__p_wxXmlNode
,
5707 _swigt__p_wxInputStream
,
5708 _swigt__p_wxOutputStream
,
5709 _swigt__p_wxPyXmlResourceHandler
,
5710 _swigt__p_wxFileSystem
,
5711 _swigt__p_wxXmlProperty
,
5713 _swigt__p_wxXmlResource
,
5714 _swigt__p_wxXmlDocument
,
5721 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5723 static swig_const_info swig_const_table
[] = {
5733 SWIGEXPORT(void) SWIG_init(void) {
5734 static PyObject
*SWIG_globals
= 0;
5735 static int typeinit
= 0;
5738 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5739 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5740 d
= PyModule_GetDict(m
);
5743 for (i
= 0; swig_types_initial
[i
]; i
++) {
5744 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5748 SWIG_InstallConstants(d
,swig_const_table
);
5750 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5751 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5752 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5753 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5754 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5755 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5756 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5757 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5758 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5759 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5760 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5761 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5762 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE
));
5763 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING
));
5764 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE
));
5765 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5766 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE
));
5767 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5768 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE
));
5769 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE
));
5770 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE
));
5771 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE
));
5772 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE
));
5773 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5774 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5775 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE
));
5776 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5779 wxXmlInitResourceModule();
5780 wxXmlResource::Get()->InitAllHandlers();