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
;
1230 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDialog
, 0);
1245 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1246 PyObject
*resultobj
;
1247 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1248 wxDialog
*arg2
= (wxDialog
*) 0 ;
1249 wxWindow
*arg3
= (wxWindow
*) 0 ;
1250 wxString
*arg4
= 0 ;
1252 bool temp4
= False
;
1253 PyObject
* obj0
= 0 ;
1254 PyObject
* obj1
= 0 ;
1255 PyObject
* obj2
= 0 ;
1256 PyObject
* obj3
= 0 ;
1258 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1262 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1263 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1264 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1265 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1266 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1267 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1269 arg4
= wxString_in_helper(obj3
);
1270 if (arg4
== NULL
) SWIG_fail
;
1274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1275 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1277 wxPyEndAllowThreads(__tstate
);
1278 if (PyErr_Occurred()) SWIG_fail
;
1281 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1297 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1298 PyObject
*resultobj
;
1299 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1300 wxWindow
*arg2
= (wxWindow
*) 0 ;
1301 wxString
*arg3
= 0 ;
1303 bool temp3
= False
;
1304 PyObject
* obj0
= 0 ;
1305 PyObject
* obj1
= 0 ;
1306 PyObject
* obj2
= 0 ;
1308 (char *) "self",(char *) "parent",(char *) "name", NULL
1311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1312 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1313 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1314 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1315 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1317 arg3
= wxString_in_helper(obj2
);
1318 if (arg3
== NULL
) SWIG_fail
;
1322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1323 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1325 wxPyEndAllowThreads(__tstate
);
1326 if (PyErr_Occurred()) SWIG_fail
;
1328 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPanel
, 0);
1343 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1344 PyObject
*resultobj
;
1345 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1346 wxPanel
*arg2
= (wxPanel
*) 0 ;
1347 wxWindow
*arg3
= (wxWindow
*) 0 ;
1348 wxString
*arg4
= 0 ;
1350 bool temp4
= False
;
1351 PyObject
* obj0
= 0 ;
1352 PyObject
* obj1
= 0 ;
1353 PyObject
* obj2
= 0 ;
1354 PyObject
* obj3
= 0 ;
1356 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1360 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1361 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1362 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1363 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1364 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1365 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1367 arg4
= wxString_in_helper(obj3
);
1368 if (arg4
== NULL
) SWIG_fail
;
1372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1373 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1375 wxPyEndAllowThreads(__tstate
);
1376 if (PyErr_Occurred()) SWIG_fail
;
1379 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1395 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1396 PyObject
*resultobj
;
1397 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1398 wxWindow
*arg2
= (wxWindow
*) 0 ;
1399 wxString
*arg3
= 0 ;
1401 bool temp3
= False
;
1402 PyObject
* obj0
= 0 ;
1403 PyObject
* obj1
= 0 ;
1404 PyObject
* obj2
= 0 ;
1406 (char *) "self",(char *) "parent",(char *) "name", NULL
1409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1410 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1411 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1412 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1413 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1415 arg3
= wxString_in_helper(obj2
);
1416 if (arg3
== NULL
) SWIG_fail
;
1420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1421 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1423 wxPyEndAllowThreads(__tstate
);
1424 if (PyErr_Occurred()) SWIG_fail
;
1427 resultobj
= wxPyMake_wxObject(result
);
1443 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1444 PyObject
*resultobj
;
1445 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1446 wxFrame
*arg2
= (wxFrame
*) 0 ;
1447 wxWindow
*arg3
= (wxWindow
*) 0 ;
1448 wxString
*arg4
= 0 ;
1450 bool temp4
= False
;
1451 PyObject
* obj0
= 0 ;
1452 PyObject
* obj1
= 0 ;
1453 PyObject
* obj2
= 0 ;
1454 PyObject
* obj3
= 0 ;
1456 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1460 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1461 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1462 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1463 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1464 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1465 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1467 arg4
= wxString_in_helper(obj3
);
1468 if (arg4
== NULL
) SWIG_fail
;
1472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1473 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1475 wxPyEndAllowThreads(__tstate
);
1476 if (PyErr_Occurred()) SWIG_fail
;
1479 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1495 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1496 PyObject
*resultobj
;
1497 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1498 wxWindow
*arg2
= (wxWindow
*) 0 ;
1499 wxString
*arg3
= 0 ;
1500 wxString
*arg4
= 0 ;
1502 bool temp3
= False
;
1503 bool temp4
= False
;
1504 PyObject
* obj0
= 0 ;
1505 PyObject
* obj1
= 0 ;
1506 PyObject
* obj2
= 0 ;
1507 PyObject
* obj3
= 0 ;
1509 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1513 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1514 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1515 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1516 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1518 arg3
= wxString_in_helper(obj2
);
1519 if (arg3
== NULL
) SWIG_fail
;
1523 arg4
= wxString_in_helper(obj3
);
1524 if (arg4
== NULL
) SWIG_fail
;
1528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1529 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1531 wxPyEndAllowThreads(__tstate
);
1532 if (PyErr_Occurred()) SWIG_fail
;
1535 resultobj
= wxPyMake_wxObject(result
);
1559 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1560 PyObject
*resultobj
;
1561 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1562 wxObject
*arg2
= (wxObject
*) 0 ;
1563 wxWindow
*arg3
= (wxWindow
*) 0 ;
1564 wxString
*arg4
= 0 ;
1565 wxString
*arg5
= 0 ;
1567 bool temp4
= False
;
1568 bool temp5
= False
;
1569 PyObject
* obj0
= 0 ;
1570 PyObject
* obj1
= 0 ;
1571 PyObject
* obj2
= 0 ;
1572 PyObject
* obj3
= 0 ;
1573 PyObject
* obj4
= 0 ;
1575 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1579 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1580 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1581 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1582 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1583 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1584 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1586 arg4
= wxString_in_helper(obj3
);
1587 if (arg4
== NULL
) SWIG_fail
;
1591 arg5
= wxString_in_helper(obj4
);
1592 if (arg5
== NULL
) SWIG_fail
;
1596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1597 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1599 wxPyEndAllowThreads(__tstate
);
1600 if (PyErr_Occurred()) SWIG_fail
;
1603 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1627 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1628 PyObject
*resultobj
;
1629 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1630 wxString
*arg2
= 0 ;
1632 bool temp2
= False
;
1633 PyObject
* obj0
= 0 ;
1634 PyObject
* obj1
= 0 ;
1636 (char *) "self",(char *) "name", NULL
1639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1640 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1641 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1643 arg2
= wxString_in_helper(obj1
);
1644 if (arg2
== NULL
) SWIG_fail
;
1648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1649 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1651 wxPyEndAllowThreads(__tstate
);
1652 if (PyErr_Occurred()) SWIG_fail
;
1655 wxBitmap
* resultptr
;
1656 resultptr
= new wxBitmap((wxBitmap
&) result
);
1657 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1673 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1674 PyObject
*resultobj
;
1675 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1676 wxString
*arg2
= 0 ;
1678 bool temp2
= False
;
1679 PyObject
* obj0
= 0 ;
1680 PyObject
* obj1
= 0 ;
1682 (char *) "self",(char *) "name", NULL
1685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1686 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1687 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1689 arg2
= wxString_in_helper(obj1
);
1690 if (arg2
== NULL
) SWIG_fail
;
1694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1695 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1697 wxPyEndAllowThreads(__tstate
);
1698 if (PyErr_Occurred()) SWIG_fail
;
1702 resultptr
= new wxIcon((wxIcon
&) result
);
1703 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1719 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1720 PyObject
*resultobj
;
1721 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1722 wxString
*arg2
= 0 ;
1723 wxWindow
*arg3
= (wxWindow
*) 0 ;
1724 wxWindow
*arg4
= (wxWindow
*) NULL
;
1726 bool temp2
= False
;
1727 PyObject
* obj0
= 0 ;
1728 PyObject
* obj1
= 0 ;
1729 PyObject
* obj2
= 0 ;
1730 PyObject
* obj3
= 0 ;
1732 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1736 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1737 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1739 arg2
= wxString_in_helper(obj1
);
1740 if (arg2
== NULL
) SWIG_fail
;
1743 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1744 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1746 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1747 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1751 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1753 wxPyEndAllowThreads(__tstate
);
1754 if (PyErr_Occurred()) SWIG_fail
;
1757 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1773 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1774 PyObject
*resultobj
;
1775 wxString
*arg1
= 0 ;
1777 bool temp1
= False
;
1778 PyObject
* obj0
= 0 ;
1780 (char *) "str_id", NULL
1783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1785 arg1
= wxString_in_helper(obj0
);
1786 if (arg1
== NULL
) SWIG_fail
;
1790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1791 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1793 wxPyEndAllowThreads(__tstate
);
1794 if (PyErr_Occurred()) SWIG_fail
;
1796 resultobj
= SWIG_FromInt((int)result
);
1811 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1812 PyObject
*resultobj
;
1813 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1815 PyObject
* obj0
= 0 ;
1817 (char *) "self", NULL
1820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1821 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1822 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1825 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1827 wxPyEndAllowThreads(__tstate
);
1828 if (PyErr_Occurred()) SWIG_fail
;
1830 resultobj
= SWIG_FromLong((long)result
);
1837 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1838 PyObject
*resultobj
;
1839 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1845 PyObject
* obj0
= 0 ;
1846 PyObject
* obj1
= 0 ;
1847 PyObject
* obj2
= 0 ;
1848 PyObject
* obj3
= 0 ;
1849 PyObject
* obj4
= 0 ;
1851 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1855 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1856 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1857 arg2
= (int) SWIG_AsInt(obj1
);
1858 if (PyErr_Occurred()) SWIG_fail
;
1859 arg3
= (int) SWIG_AsInt(obj2
);
1860 if (PyErr_Occurred()) SWIG_fail
;
1861 arg4
= (int) SWIG_AsInt(obj3
);
1862 if (PyErr_Occurred()) SWIG_fail
;
1863 arg5
= (int) SWIG_AsInt(obj4
);
1864 if (PyErr_Occurred()) SWIG_fail
;
1866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1867 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1869 wxPyEndAllowThreads(__tstate
);
1870 if (PyErr_Occurred()) SWIG_fail
;
1872 resultobj
= SWIG_FromInt((int)result
);
1879 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
*resultobj
;
1881 wxXmlResource
*result
;
1886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1889 result
= (wxXmlResource
*)wxXmlResource::Get();
1891 wxPyEndAllowThreads(__tstate
);
1892 if (PyErr_Occurred()) SWIG_fail
;
1894 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1901 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
*resultobj
;
1903 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1904 wxXmlResource
*result
;
1905 PyObject
* obj0
= 0 ;
1907 (char *) "res", NULL
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1911 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1912 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1915 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1917 wxPyEndAllowThreads(__tstate
);
1918 if (PyErr_Occurred()) SWIG_fail
;
1920 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1927 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1928 PyObject
*resultobj
;
1929 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1931 PyObject
* obj0
= 0 ;
1933 (char *) "self", NULL
1936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1937 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1938 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 result
= (int)(arg1
)->GetFlags();
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) SWIG_fail
;
1946 resultobj
= SWIG_FromInt((int)result
);
1953 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1954 PyObject
*resultobj
;
1955 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1957 PyObject
* obj0
= 0 ;
1958 PyObject
* obj1
= 0 ;
1960 (char *) "self",(char *) "flags", NULL
1963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
1964 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1965 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1966 arg2
= (int) SWIG_AsInt(obj1
);
1967 if (PyErr_Occurred()) SWIG_fail
;
1969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1970 (arg1
)->SetFlags(arg2
);
1972 wxPyEndAllowThreads(__tstate
);
1973 if (PyErr_Occurred()) SWIG_fail
;
1975 Py_INCREF(Py_None
); resultobj
= Py_None
;
1982 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1984 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1985 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1987 return Py_BuildValue((char *)"");
1989 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
*resultobj
;
1991 wxPyXmlSubclassFactory
*result
;
1996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1999 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
2001 wxPyEndAllowThreads(__tstate
);
2002 if (PyErr_Occurred()) SWIG_fail
;
2004 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2011 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2012 PyObject
*resultobj
;
2013 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2014 PyObject
*arg2
= (PyObject
*) 0 ;
2015 PyObject
*arg3
= (PyObject
*) 0 ;
2016 PyObject
* obj0
= 0 ;
2017 PyObject
* obj1
= 0 ;
2018 PyObject
* obj2
= 0 ;
2020 (char *) "self",(char *) "self",(char *) "_class", NULL
2023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2024 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2025 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2030 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2032 wxPyEndAllowThreads(__tstate
);
2033 if (PyErr_Occurred()) SWIG_fail
;
2035 Py_INCREF(Py_None
); resultobj
= Py_None
;
2042 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
2044 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2045 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2047 return Py_BuildValue((char *)"");
2049 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
*resultobj
;
2051 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2052 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2053 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2054 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2055 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2056 wxXmlProperty
*result
;
2057 bool temp1
= False
;
2058 bool temp2
= False
;
2059 PyObject
* obj0
= 0 ;
2060 PyObject
* obj1
= 0 ;
2061 PyObject
* obj2
= 0 ;
2063 (char *) "name",(char *) "value",(char *) "next", NULL
2066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2069 arg1
= wxString_in_helper(obj0
);
2070 if (arg1
== NULL
) SWIG_fail
;
2076 arg2
= wxString_in_helper(obj1
);
2077 if (arg2
== NULL
) SWIG_fail
;
2082 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2083 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2087 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2089 wxPyEndAllowThreads(__tstate
);
2090 if (PyErr_Occurred()) SWIG_fail
;
2092 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2115 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2116 PyObject
*resultobj
;
2117 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2119 PyObject
* obj0
= 0 ;
2121 (char *) "self", NULL
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2125 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2126 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2129 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2131 wxPyEndAllowThreads(__tstate
);
2132 if (PyErr_Occurred()) SWIG_fail
;
2136 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2138 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2147 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2148 PyObject
*resultobj
;
2149 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2151 PyObject
* obj0
= 0 ;
2153 (char *) "self", NULL
2156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2157 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2158 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2161 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2163 wxPyEndAllowThreads(__tstate
);
2164 if (PyErr_Occurred()) SWIG_fail
;
2168 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2170 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2179 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2180 PyObject
*resultobj
;
2181 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2182 wxXmlProperty
*result
;
2183 PyObject
* obj0
= 0 ;
2185 (char *) "self", NULL
2188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2189 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2190 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2193 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2195 wxPyEndAllowThreads(__tstate
);
2196 if (PyErr_Occurred()) SWIG_fail
;
2198 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2205 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2206 PyObject
*resultobj
;
2207 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2208 wxString
*arg2
= 0 ;
2209 bool temp2
= False
;
2210 PyObject
* obj0
= 0 ;
2211 PyObject
* obj1
= 0 ;
2213 (char *) "self",(char *) "name", NULL
2216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2217 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2218 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2220 arg2
= wxString_in_helper(obj1
);
2221 if (arg2
== NULL
) SWIG_fail
;
2225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2226 (arg1
)->SetName((wxString
const &)*arg2
);
2228 wxPyEndAllowThreads(__tstate
);
2229 if (PyErr_Occurred()) SWIG_fail
;
2231 Py_INCREF(Py_None
); resultobj
= Py_None
;
2246 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
*resultobj
;
2248 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2249 wxString
*arg2
= 0 ;
2250 bool temp2
= False
;
2251 PyObject
* obj0
= 0 ;
2252 PyObject
* obj1
= 0 ;
2254 (char *) "self",(char *) "value", NULL
2257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2258 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2259 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2261 arg2
= wxString_in_helper(obj1
);
2262 if (arg2
== NULL
) SWIG_fail
;
2266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2267 (arg1
)->SetValue((wxString
const &)*arg2
);
2269 wxPyEndAllowThreads(__tstate
);
2270 if (PyErr_Occurred()) SWIG_fail
;
2272 Py_INCREF(Py_None
); resultobj
= Py_None
;
2287 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2288 PyObject
*resultobj
;
2289 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2290 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2291 PyObject
* obj0
= 0 ;
2292 PyObject
* obj1
= 0 ;
2294 (char *) "self",(char *) "next", NULL
2297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2304 (arg1
)->SetNext(arg2
);
2306 wxPyEndAllowThreads(__tstate
);
2307 if (PyErr_Occurred()) SWIG_fail
;
2309 Py_INCREF(Py_None
); resultobj
= Py_None
;
2316 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2318 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2319 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2321 return Py_BuildValue((char *)"");
2323 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2324 PyObject
*resultobj
;
2325 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2326 int arg2
= (int) 0 ;
2327 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2328 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2329 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2330 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2331 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2332 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2334 bool temp3
= False
;
2335 bool temp4
= False
;
2336 PyObject
* obj0
= 0 ;
2337 PyObject
* obj1
= 0 ;
2338 PyObject
* obj2
= 0 ;
2339 PyObject
* obj3
= 0 ;
2340 PyObject
* obj4
= 0 ;
2341 PyObject
* obj5
= 0 ;
2343 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2348 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2349 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2352 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
2353 if (PyErr_Occurred()) SWIG_fail
;
2357 arg3
= wxString_in_helper(obj2
);
2358 if (arg3
== NULL
) SWIG_fail
;
2364 arg4
= wxString_in_helper(obj3
);
2365 if (arg4
== NULL
) SWIG_fail
;
2370 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2371 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2374 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2375 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2379 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2381 wxPyEndAllowThreads(__tstate
);
2382 if (PyErr_Occurred()) SWIG_fail
;
2384 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2407 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2408 PyObject
*resultobj
;
2409 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2410 PyObject
* obj0
= 0 ;
2412 (char *) "self", NULL
2415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2416 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2417 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2422 wxPyEndAllowThreads(__tstate
);
2423 if (PyErr_Occurred()) SWIG_fail
;
2425 Py_INCREF(Py_None
); resultobj
= Py_None
;
2432 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2433 PyObject
*resultobj
;
2435 wxString
*arg2
= 0 ;
2436 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2437 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2439 bool temp2
= False
;
2440 bool temp3
= False
;
2441 PyObject
* obj0
= 0 ;
2442 PyObject
* obj1
= 0 ;
2443 PyObject
* obj2
= 0 ;
2445 (char *) "type",(char *) "name",(char *) "content", NULL
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2449 arg1
= (wxXmlNodeType
) SWIG_AsInt(obj0
);
2450 if (PyErr_Occurred()) SWIG_fail
;
2452 arg2
= wxString_in_helper(obj1
);
2453 if (arg2
== NULL
) SWIG_fail
;
2458 arg3
= wxString_in_helper(obj2
);
2459 if (arg3
== NULL
) SWIG_fail
;
2464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2465 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2467 wxPyEndAllowThreads(__tstate
);
2468 if (PyErr_Occurred()) SWIG_fail
;
2470 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2493 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2494 PyObject
*resultobj
;
2495 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2496 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2497 PyObject
* obj0
= 0 ;
2498 PyObject
* obj1
= 0 ;
2500 (char *) "self",(char *) "child", NULL
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2504 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2505 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2506 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2507 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2510 (arg1
)->AddChild(arg2
);
2512 wxPyEndAllowThreads(__tstate
);
2513 if (PyErr_Occurred()) SWIG_fail
;
2515 Py_INCREF(Py_None
); resultobj
= Py_None
;
2522 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2523 PyObject
*resultobj
;
2524 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2525 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2526 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2527 PyObject
* obj0
= 0 ;
2528 PyObject
* obj1
= 0 ;
2529 PyObject
* obj2
= 0 ;
2531 (char *) "self",(char *) "child",(char *) "before_node", NULL
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2535 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2536 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2537 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2538 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2539 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2540 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2543 (arg1
)->InsertChild(arg2
,arg3
);
2545 wxPyEndAllowThreads(__tstate
);
2546 if (PyErr_Occurred()) SWIG_fail
;
2548 Py_INCREF(Py_None
); resultobj
= Py_None
;
2555 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2556 PyObject
*resultobj
;
2557 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2558 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2560 PyObject
* obj0
= 0 ;
2561 PyObject
* obj1
= 0 ;
2563 (char *) "self",(char *) "child", NULL
2566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2567 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2568 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2569 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2570 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2573 result
= (bool)(arg1
)->RemoveChild(arg2
);
2575 wxPyEndAllowThreads(__tstate
);
2576 if (PyErr_Occurred()) SWIG_fail
;
2579 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2587 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2588 PyObject
*resultobj
;
2589 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2590 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2591 PyObject
* obj0
= 0 ;
2592 PyObject
* obj1
= 0 ;
2594 (char *) "self",(char *) "prop", NULL
2597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2598 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2599 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2600 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2601 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2604 (arg1
)->AddProperty(arg2
);
2606 wxPyEndAllowThreads(__tstate
);
2607 if (PyErr_Occurred()) SWIG_fail
;
2609 Py_INCREF(Py_None
); resultobj
= Py_None
;
2616 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2617 PyObject
*resultobj
;
2618 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2619 wxString
*arg2
= 0 ;
2620 wxString
*arg3
= 0 ;
2621 bool temp2
= False
;
2622 bool temp3
= False
;
2623 PyObject
* obj0
= 0 ;
2624 PyObject
* obj1
= 0 ;
2625 PyObject
* obj2
= 0 ;
2627 (char *) "self",(char *) "name",(char *) "value", NULL
2630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2631 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2632 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2634 arg2
= wxString_in_helper(obj1
);
2635 if (arg2
== NULL
) SWIG_fail
;
2639 arg3
= wxString_in_helper(obj2
);
2640 if (arg3
== NULL
) SWIG_fail
;
2644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2645 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2647 wxPyEndAllowThreads(__tstate
);
2648 if (PyErr_Occurred()) SWIG_fail
;
2650 Py_INCREF(Py_None
); resultobj
= Py_None
;
2673 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2674 PyObject
*resultobj
;
2675 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2676 wxString
*arg2
= 0 ;
2678 bool temp2
= False
;
2679 PyObject
* obj0
= 0 ;
2680 PyObject
* obj1
= 0 ;
2682 (char *) "self",(char *) "name", NULL
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2686 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2687 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2689 arg2
= wxString_in_helper(obj1
);
2690 if (arg2
== NULL
) SWIG_fail
;
2694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2695 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2697 wxPyEndAllowThreads(__tstate
);
2698 if (PyErr_Occurred()) SWIG_fail
;
2701 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2717 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
*resultobj
;
2719 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2721 PyObject
* obj0
= 0 ;
2723 (char *) "self", NULL
2726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2727 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2728 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2731 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2733 wxPyEndAllowThreads(__tstate
);
2734 if (PyErr_Occurred()) SWIG_fail
;
2736 resultobj
= SWIG_FromInt((int)result
);
2743 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2744 PyObject
*resultobj
;
2745 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2747 PyObject
* obj0
= 0 ;
2749 (char *) "self", NULL
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2753 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2754 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2757 result
= ((wxXmlNode
const *)arg1
)->GetName();
2759 wxPyEndAllowThreads(__tstate
);
2760 if (PyErr_Occurred()) SWIG_fail
;
2764 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2766 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2775 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2776 PyObject
*resultobj
;
2777 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2779 PyObject
* obj0
= 0 ;
2781 (char *) "self", NULL
2784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2785 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2786 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2789 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2791 wxPyEndAllowThreads(__tstate
);
2792 if (PyErr_Occurred()) SWIG_fail
;
2796 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2798 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2807 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2808 PyObject
*resultobj
;
2809 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2811 PyObject
* obj0
= 0 ;
2813 (char *) "self", NULL
2816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2817 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2818 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) SWIG_fail
;
2826 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2833 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2834 PyObject
*resultobj
;
2835 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2837 PyObject
* obj0
= 0 ;
2839 (char *) "self", NULL
2842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2843 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2844 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2847 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2849 wxPyEndAllowThreads(__tstate
);
2850 if (PyErr_Occurred()) SWIG_fail
;
2852 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2859 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2860 PyObject
*resultobj
;
2861 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2863 PyObject
* obj0
= 0 ;
2865 (char *) "self", NULL
2868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2869 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2870 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2873 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2875 wxPyEndAllowThreads(__tstate
);
2876 if (PyErr_Occurred()) SWIG_fail
;
2878 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2885 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2886 PyObject
*resultobj
;
2887 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2888 wxXmlProperty
*result
;
2889 PyObject
* obj0
= 0 ;
2891 (char *) "self", NULL
2894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2895 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2896 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2899 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2901 wxPyEndAllowThreads(__tstate
);
2902 if (PyErr_Occurred()) SWIG_fail
;
2904 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2911 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2912 PyObject
*resultobj
;
2913 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2914 wxString
*arg2
= 0 ;
2915 wxString
*arg3
= 0 ;
2917 bool temp2
= False
;
2918 bool temp3
= False
;
2919 PyObject
* obj0
= 0 ;
2920 PyObject
* obj1
= 0 ;
2921 PyObject
* obj2
= 0 ;
2923 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2927 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2928 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2930 arg2
= wxString_in_helper(obj1
);
2931 if (arg2
== NULL
) SWIG_fail
;
2935 arg3
= wxString_in_helper(obj2
);
2936 if (arg3
== NULL
) SWIG_fail
;
2940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2941 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2943 wxPyEndAllowThreads(__tstate
);
2944 if (PyErr_Occurred()) SWIG_fail
;
2948 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2950 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2975 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2976 PyObject
*resultobj
;
2977 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2978 wxString
*arg2
= 0 ;
2980 bool temp2
= False
;
2981 PyObject
* obj0
= 0 ;
2982 PyObject
* obj1
= 0 ;
2984 (char *) "self",(char *) "propName", NULL
2987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2988 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2989 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2991 arg2
= wxString_in_helper(obj1
);
2992 if (arg2
== NULL
) SWIG_fail
;
2996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2997 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2999 wxPyEndAllowThreads(__tstate
);
3000 if (PyErr_Occurred()) SWIG_fail
;
3003 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3019 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3020 PyObject
*resultobj
;
3021 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3023 PyObject
* obj0
= 0 ;
3024 PyObject
* obj1
= 0 ;
3026 (char *) "self",(char *) "type", NULL
3029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3030 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3031 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3032 arg2
= (wxXmlNodeType
) SWIG_AsInt(obj1
);
3033 if (PyErr_Occurred()) SWIG_fail
;
3035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3036 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3038 wxPyEndAllowThreads(__tstate
);
3039 if (PyErr_Occurred()) SWIG_fail
;
3041 Py_INCREF(Py_None
); resultobj
= Py_None
;
3048 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3049 PyObject
*resultobj
;
3050 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3051 wxString
*arg2
= 0 ;
3052 bool temp2
= False
;
3053 PyObject
* obj0
= 0 ;
3054 PyObject
* obj1
= 0 ;
3056 (char *) "self",(char *) "name", NULL
3059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3060 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3061 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3063 arg2
= wxString_in_helper(obj1
);
3064 if (arg2
== NULL
) SWIG_fail
;
3068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3069 (arg1
)->SetName((wxString
const &)*arg2
);
3071 wxPyEndAllowThreads(__tstate
);
3072 if (PyErr_Occurred()) SWIG_fail
;
3074 Py_INCREF(Py_None
); resultobj
= Py_None
;
3089 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3090 PyObject
*resultobj
;
3091 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3092 wxString
*arg2
= 0 ;
3093 bool temp2
= False
;
3094 PyObject
* obj0
= 0 ;
3095 PyObject
* obj1
= 0 ;
3097 (char *) "self",(char *) "con", NULL
3100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3101 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3102 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3104 arg2
= wxString_in_helper(obj1
);
3105 if (arg2
== NULL
) SWIG_fail
;
3109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3110 (arg1
)->SetContent((wxString
const &)*arg2
);
3112 wxPyEndAllowThreads(__tstate
);
3113 if (PyErr_Occurred()) SWIG_fail
;
3115 Py_INCREF(Py_None
); resultobj
= Py_None
;
3130 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3131 PyObject
*resultobj
;
3132 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3133 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3134 PyObject
* obj0
= 0 ;
3135 PyObject
* obj1
= 0 ;
3137 (char *) "self",(char *) "parent", NULL
3140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3141 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3142 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3143 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3144 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3147 (arg1
)->SetParent(arg2
);
3149 wxPyEndAllowThreads(__tstate
);
3150 if (PyErr_Occurred()) SWIG_fail
;
3152 Py_INCREF(Py_None
); resultobj
= Py_None
;
3159 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3160 PyObject
*resultobj
;
3161 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3162 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3163 PyObject
* obj0
= 0 ;
3164 PyObject
* obj1
= 0 ;
3166 (char *) "self",(char *) "next", NULL
3169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3170 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3171 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3172 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3173 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3176 (arg1
)->SetNext(arg2
);
3178 wxPyEndAllowThreads(__tstate
);
3179 if (PyErr_Occurred()) SWIG_fail
;
3181 Py_INCREF(Py_None
); resultobj
= Py_None
;
3188 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3189 PyObject
*resultobj
;
3190 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3191 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3192 PyObject
* obj0
= 0 ;
3193 PyObject
* obj1
= 0 ;
3195 (char *) "self",(char *) "child", NULL
3198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3199 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3200 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3201 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3202 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3205 (arg1
)->SetChildren(arg2
);
3207 wxPyEndAllowThreads(__tstate
);
3208 if (PyErr_Occurred()) SWIG_fail
;
3210 Py_INCREF(Py_None
); resultobj
= Py_None
;
3217 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3218 PyObject
*resultobj
;
3219 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3220 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3221 PyObject
* obj0
= 0 ;
3222 PyObject
* obj1
= 0 ;
3224 (char *) "self",(char *) "prop", NULL
3227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3228 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3229 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3230 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3231 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3234 (arg1
)->SetProperties(arg2
);
3236 wxPyEndAllowThreads(__tstate
);
3237 if (PyErr_Occurred()) SWIG_fail
;
3239 Py_INCREF(Py_None
); resultobj
= Py_None
;
3246 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3248 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3249 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3251 return Py_BuildValue((char *)"");
3253 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
*resultobj
;
3255 wxString
*arg1
= 0 ;
3256 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3257 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3258 wxXmlDocument
*result
;
3259 bool temp1
= False
;
3260 bool temp2
= False
;
3261 PyObject
* obj0
= 0 ;
3262 PyObject
* obj1
= 0 ;
3264 (char *) "filename",(char *) "encoding", NULL
3267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3269 arg1
= wxString_in_helper(obj0
);
3270 if (arg1
== NULL
) SWIG_fail
;
3275 arg2
= wxString_in_helper(obj1
);
3276 if (arg2
== NULL
) SWIG_fail
;
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) SWIG_fail
;
3287 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3310 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3311 PyObject
*resultobj
;
3312 wxInputStream
*arg1
= 0 ;
3313 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3314 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3315 wxXmlDocument
*result
;
3316 wxPyInputStream
*temp1
;
3318 bool temp2
= False
;
3319 PyObject
* obj0
= 0 ;
3320 PyObject
* obj1
= 0 ;
3322 (char *) "stream",(char *) "encoding", NULL
3325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3327 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3328 arg1
= temp1
->m_wxis
;
3331 PyErr_Clear(); // clear the failure of the wxPyConvert above
3332 arg1
= wxPyCBInputStream_create(obj0
, False
);
3334 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3342 arg2
= wxString_in_helper(obj1
);
3343 if (arg2
== NULL
) SWIG_fail
;
3348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3349 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3351 wxPyEndAllowThreads(__tstate
);
3352 if (PyErr_Occurred()) SWIG_fail
;
3354 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3377 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3378 PyObject
*resultobj
;
3379 wxXmlDocument
*result
;
3384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3387 result
= (wxXmlDocument
*)new wxXmlDocument();
3389 wxPyEndAllowThreads(__tstate
);
3390 if (PyErr_Occurred()) SWIG_fail
;
3392 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3399 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3400 PyObject
*resultobj
;
3401 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3402 PyObject
* obj0
= 0 ;
3404 (char *) "self", NULL
3407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3408 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3409 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) SWIG_fail
;
3417 Py_INCREF(Py_None
); resultobj
= Py_None
;
3424 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3425 PyObject
*resultobj
;
3426 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3427 wxString
*arg2
= 0 ;
3428 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3429 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3431 bool temp2
= False
;
3432 bool temp3
= False
;
3433 PyObject
* obj0
= 0 ;
3434 PyObject
* obj1
= 0 ;
3435 PyObject
* obj2
= 0 ;
3437 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3441 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3442 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3444 arg2
= wxString_in_helper(obj1
);
3445 if (arg2
== NULL
) SWIG_fail
;
3450 arg3
= wxString_in_helper(obj2
);
3451 if (arg3
== NULL
) SWIG_fail
;
3456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3457 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3459 wxPyEndAllowThreads(__tstate
);
3460 if (PyErr_Occurred()) SWIG_fail
;
3463 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3487 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
*resultobj
;
3489 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3490 wxInputStream
*arg2
= 0 ;
3491 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3492 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3494 wxPyInputStream
*temp2
;
3496 bool temp3
= False
;
3497 PyObject
* obj0
= 0 ;
3498 PyObject
* obj1
= 0 ;
3499 PyObject
* obj2
= 0 ;
3501 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3505 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3506 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3508 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3509 arg2
= temp2
->m_wxis
;
3512 PyErr_Clear(); // clear the failure of the wxPyConvert above
3513 arg2
= wxPyCBInputStream_create(obj1
, False
);
3515 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3523 arg3
= wxString_in_helper(obj2
);
3524 if (arg3
== NULL
) SWIG_fail
;
3529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3530 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3532 wxPyEndAllowThreads(__tstate
);
3533 if (PyErr_Occurred()) SWIG_fail
;
3536 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3560 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3561 PyObject
*resultobj
;
3562 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3563 wxString
*arg2
= 0 ;
3565 bool temp2
= False
;
3566 PyObject
* obj0
= 0 ;
3567 PyObject
* obj1
= 0 ;
3569 (char *) "self",(char *) "filename", NULL
3572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3573 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3574 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3576 arg2
= wxString_in_helper(obj1
);
3577 if (arg2
== NULL
) SWIG_fail
;
3581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3582 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3584 wxPyEndAllowThreads(__tstate
);
3585 if (PyErr_Occurred()) SWIG_fail
;
3588 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3604 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3605 PyObject
*resultobj
;
3606 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3607 wxOutputStream
*arg2
= 0 ;
3609 PyObject
* obj0
= 0 ;
3610 PyObject
* obj1
= 0 ;
3612 (char *) "self",(char *) "stream", NULL
3615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3616 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3617 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3618 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3619 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3622 PyErr_SetString(PyExc_TypeError
,"null reference");
3626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3627 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3629 wxPyEndAllowThreads(__tstate
);
3630 if (PyErr_Occurred()) SWIG_fail
;
3633 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3641 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3642 PyObject
*resultobj
;
3643 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3645 PyObject
* obj0
= 0 ;
3647 (char *) "self", NULL
3650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3651 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3652 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3655 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3657 wxPyEndAllowThreads(__tstate
);
3658 if (PyErr_Occurred()) SWIG_fail
;
3661 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3669 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3670 PyObject
*resultobj
;
3671 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3673 PyObject
* obj0
= 0 ;
3675 (char *) "self", NULL
3678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3679 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3680 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3683 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3685 wxPyEndAllowThreads(__tstate
);
3686 if (PyErr_Occurred()) SWIG_fail
;
3688 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3695 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3696 PyObject
*resultobj
;
3697 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3699 PyObject
* obj0
= 0 ;
3701 (char *) "self", NULL
3704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3705 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3706 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3709 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3711 wxPyEndAllowThreads(__tstate
);
3712 if (PyErr_Occurred()) SWIG_fail
;
3716 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3718 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3727 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3728 PyObject
*resultobj
;
3729 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3731 PyObject
* obj0
= 0 ;
3733 (char *) "self", NULL
3736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3737 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3738 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3741 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3743 wxPyEndAllowThreads(__tstate
);
3744 if (PyErr_Occurred()) SWIG_fail
;
3748 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3750 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3759 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3760 PyObject
*resultobj
;
3761 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3762 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3763 PyObject
* obj0
= 0 ;
3764 PyObject
* obj1
= 0 ;
3766 (char *) "self",(char *) "node", NULL
3769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3770 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3771 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3772 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3773 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3776 (arg1
)->SetRoot(arg2
);
3778 wxPyEndAllowThreads(__tstate
);
3779 if (PyErr_Occurred()) SWIG_fail
;
3781 Py_INCREF(Py_None
); resultobj
= Py_None
;
3788 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3789 PyObject
*resultobj
;
3790 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3791 wxString
*arg2
= 0 ;
3792 bool temp2
= False
;
3793 PyObject
* obj0
= 0 ;
3794 PyObject
* obj1
= 0 ;
3796 (char *) "self",(char *) "version", NULL
3799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3800 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3801 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3803 arg2
= wxString_in_helper(obj1
);
3804 if (arg2
== NULL
) SWIG_fail
;
3808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3809 (arg1
)->SetVersion((wxString
const &)*arg2
);
3811 wxPyEndAllowThreads(__tstate
);
3812 if (PyErr_Occurred()) SWIG_fail
;
3814 Py_INCREF(Py_None
); resultobj
= Py_None
;
3829 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3830 PyObject
*resultobj
;
3831 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3832 wxString
*arg2
= 0 ;
3833 bool temp2
= False
;
3834 PyObject
* obj0
= 0 ;
3835 PyObject
* obj1
= 0 ;
3837 (char *) "self",(char *) "encoding", NULL
3840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3841 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3842 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3844 arg2
= wxString_in_helper(obj1
);
3845 if (arg2
== NULL
) SWIG_fail
;
3849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3850 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3852 wxPyEndAllowThreads(__tstate
);
3853 if (PyErr_Occurred()) SWIG_fail
;
3855 Py_INCREF(Py_None
); resultobj
= Py_None
;
3870 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3872 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3873 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3875 return Py_BuildValue((char *)"");
3877 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3878 PyObject
*resultobj
;
3879 wxPyXmlResourceHandler
*result
;
3884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3887 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3889 wxPyEndAllowThreads(__tstate
);
3890 if (PyErr_Occurred()) SWIG_fail
;
3892 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3899 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3900 PyObject
*resultobj
;
3901 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3902 PyObject
*arg2
= (PyObject
*) 0 ;
3903 PyObject
*arg3
= (PyObject
*) 0 ;
3904 PyObject
* obj0
= 0 ;
3905 PyObject
* obj1
= 0 ;
3906 PyObject
* obj2
= 0 ;
3908 (char *) "self",(char *) "self",(char *) "_class", NULL
3911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3912 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3913 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3918 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3920 wxPyEndAllowThreads(__tstate
);
3921 if (PyErr_Occurred()) SWIG_fail
;
3923 Py_INCREF(Py_None
); resultobj
= Py_None
;
3930 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3931 PyObject
*resultobj
;
3932 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3933 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3934 wxObject
*arg3
= (wxObject
*) 0 ;
3935 wxObject
*arg4
= (wxObject
*) 0 ;
3937 PyObject
* obj0
= 0 ;
3938 PyObject
* obj1
= 0 ;
3939 PyObject
* obj2
= 0 ;
3940 PyObject
* obj3
= 0 ;
3942 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3946 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3947 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3948 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3949 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3950 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
3951 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3952 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
3953 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3956 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3958 wxPyEndAllowThreads(__tstate
);
3959 if (PyErr_Occurred()) SWIG_fail
;
3962 resultobj
= wxPyMake_wxObject(result
);
3970 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3971 PyObject
*resultobj
;
3972 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3973 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3974 PyObject
* obj0
= 0 ;
3975 PyObject
* obj1
= 0 ;
3977 (char *) "self",(char *) "res", NULL
3980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3981 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
3982 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3983 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
3984 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3987 (arg1
)->SetParentResource(arg2
);
3989 wxPyEndAllowThreads(__tstate
);
3990 if (PyErr_Occurred()) SWIG_fail
;
3992 Py_INCREF(Py_None
); resultobj
= Py_None
;
3999 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4000 PyObject
*resultobj
;
4001 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4002 wxXmlResource
*result
;
4003 PyObject
* obj0
= 0 ;
4005 (char *) "self", NULL
4008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4009 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4010 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4013 result
= (wxXmlResource
*)(arg1
)->GetResource();
4015 wxPyEndAllowThreads(__tstate
);
4016 if (PyErr_Occurred()) SWIG_fail
;
4018 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4025 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4026 PyObject
*resultobj
;
4027 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4029 PyObject
* obj0
= 0 ;
4031 (char *) "self", NULL
4034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4035 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4036 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4039 result
= (wxXmlNode
*)(arg1
)->GetNode();
4041 wxPyEndAllowThreads(__tstate
);
4042 if (PyErr_Occurred()) SWIG_fail
;
4044 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4051 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4052 PyObject
*resultobj
;
4053 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4055 PyObject
* obj0
= 0 ;
4057 (char *) "self", NULL
4060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
4061 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4062 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4065 result
= (arg1
)->GetClass();
4067 wxPyEndAllowThreads(__tstate
);
4068 if (PyErr_Occurred()) SWIG_fail
;
4072 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4074 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4083 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4084 PyObject
*resultobj
;
4085 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4087 PyObject
* obj0
= 0 ;
4089 (char *) "self", NULL
4092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4093 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4094 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4097 result
= (wxObject
*)(arg1
)->GetParent();
4099 wxPyEndAllowThreads(__tstate
);
4100 if (PyErr_Occurred()) SWIG_fail
;
4103 resultobj
= wxPyMake_wxObject(result
);
4111 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4112 PyObject
*resultobj
;
4113 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4115 PyObject
* obj0
= 0 ;
4117 (char *) "self", NULL
4120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4121 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4122 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4125 result
= (wxObject
*)(arg1
)->GetInstance();
4127 wxPyEndAllowThreads(__tstate
);
4128 if (PyErr_Occurred()) SWIG_fail
;
4131 resultobj
= wxPyMake_wxObject(result
);
4139 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4140 PyObject
*resultobj
;
4141 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4143 PyObject
* obj0
= 0 ;
4145 (char *) "self", NULL
4148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4149 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4150 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4153 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4155 wxPyEndAllowThreads(__tstate
);
4156 if (PyErr_Occurred()) SWIG_fail
;
4159 resultobj
= wxPyMake_wxObject(result
);
4167 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4168 PyObject
*resultobj
;
4169 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4171 PyObject
* obj0
= 0 ;
4173 (char *) "self", NULL
4176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4177 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4178 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4181 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4183 wxPyEndAllowThreads(__tstate
);
4184 if (PyErr_Occurred()) SWIG_fail
;
4187 resultobj
= wxPyMake_wxObject(result
);
4195 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4196 PyObject
*resultobj
;
4197 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4198 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4199 wxString
*arg3
= 0 ;
4201 bool temp3
= False
;
4202 PyObject
* obj0
= 0 ;
4203 PyObject
* obj1
= 0 ;
4204 PyObject
* obj2
= 0 ;
4206 (char *) "self",(char *) "node",(char *) "classname", NULL
4209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4210 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4211 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4212 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4213 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4215 arg3
= wxString_in_helper(obj2
);
4216 if (arg3
== NULL
) SWIG_fail
;
4220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4221 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4223 wxPyEndAllowThreads(__tstate
);
4224 if (PyErr_Occurred()) SWIG_fail
;
4227 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4243 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4244 PyObject
*resultobj
;
4245 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4246 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4248 PyObject
* obj0
= 0 ;
4249 PyObject
* obj1
= 0 ;
4251 (char *) "self",(char *) "node", NULL
4254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4255 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4256 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4257 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4258 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4261 result
= (arg1
)->GetNodeContent(arg2
);
4263 wxPyEndAllowThreads(__tstate
);
4264 if (PyErr_Occurred()) SWIG_fail
;
4268 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4270 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4279 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4280 PyObject
*resultobj
;
4281 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4282 wxString
*arg2
= 0 ;
4284 bool temp2
= False
;
4285 PyObject
* obj0
= 0 ;
4286 PyObject
* obj1
= 0 ;
4288 (char *) "self",(char *) "param", NULL
4291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4292 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4293 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4295 arg2
= wxString_in_helper(obj1
);
4296 if (arg2
== NULL
) SWIG_fail
;
4300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4301 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4303 wxPyEndAllowThreads(__tstate
);
4304 if (PyErr_Occurred()) SWIG_fail
;
4307 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4323 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4324 PyObject
*resultobj
;
4325 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4326 wxString
*arg2
= 0 ;
4328 bool temp2
= False
;
4329 PyObject
* obj0
= 0 ;
4330 PyObject
* obj1
= 0 ;
4332 (char *) "self",(char *) "param", NULL
4335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4336 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4337 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4339 arg2
= wxString_in_helper(obj1
);
4340 if (arg2
== NULL
) SWIG_fail
;
4344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4345 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4347 wxPyEndAllowThreads(__tstate
);
4348 if (PyErr_Occurred()) SWIG_fail
;
4350 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4365 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
*resultobj
;
4367 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4368 wxString
*arg2
= 0 ;
4370 bool temp2
= False
;
4371 PyObject
* obj0
= 0 ;
4372 PyObject
* obj1
= 0 ;
4374 (char *) "self",(char *) "param", NULL
4377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4378 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4379 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4381 arg2
= wxString_in_helper(obj1
);
4382 if (arg2
== NULL
) SWIG_fail
;
4386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4387 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4389 wxPyEndAllowThreads(__tstate
);
4390 if (PyErr_Occurred()) SWIG_fail
;
4394 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4396 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4413 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4414 PyObject
*resultobj
;
4415 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4416 wxString
*arg2
= 0 ;
4418 bool temp2
= False
;
4419 PyObject
* obj0
= 0 ;
4420 PyObject
* obj1
= 0 ;
4421 PyObject
* obj2
= 0 ;
4423 (char *) "self",(char *) "name",(char *) "value", NULL
4426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4427 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4428 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4430 arg2
= wxString_in_helper(obj1
);
4431 if (arg2
== NULL
) SWIG_fail
;
4434 arg3
= (int) SWIG_AsInt(obj2
);
4435 if (PyErr_Occurred()) SWIG_fail
;
4437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4438 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4440 wxPyEndAllowThreads(__tstate
);
4441 if (PyErr_Occurred()) SWIG_fail
;
4443 Py_INCREF(Py_None
); resultobj
= Py_None
;
4458 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4459 PyObject
*resultobj
;
4460 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4461 PyObject
* obj0
= 0 ;
4463 (char *) "self", NULL
4466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4467 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4468 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4471 (arg1
)->AddWindowStyles();
4473 wxPyEndAllowThreads(__tstate
);
4474 if (PyErr_Occurred()) SWIG_fail
;
4476 Py_INCREF(Py_None
); resultobj
= Py_None
;
4483 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4484 PyObject
*resultobj
;
4485 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4486 wxString
const &arg2_defvalue
= wxPyStyleString
;
4487 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4488 int arg3
= (int) 0 ;
4490 bool temp2
= False
;
4491 PyObject
* obj0
= 0 ;
4492 PyObject
* obj1
= 0 ;
4493 PyObject
* obj2
= 0 ;
4495 (char *) "self",(char *) "param",(char *) "defaults", NULL
4498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4499 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4500 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4503 arg2
= wxString_in_helper(obj1
);
4504 if (arg2
== NULL
) SWIG_fail
;
4509 arg3
= (int) SWIG_AsInt(obj2
);
4510 if (PyErr_Occurred()) SWIG_fail
;
4513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4514 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4516 wxPyEndAllowThreads(__tstate
);
4517 if (PyErr_Occurred()) SWIG_fail
;
4519 resultobj
= SWIG_FromInt((int)result
);
4534 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4535 PyObject
*resultobj
;
4536 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4537 wxString
*arg2
= 0 ;
4538 bool arg3
= (bool) True
;
4540 bool temp2
= False
;
4541 PyObject
* obj0
= 0 ;
4542 PyObject
* obj1
= 0 ;
4543 PyObject
* obj2
= 0 ;
4545 (char *) "self",(char *) "param",(char *) "translate", NULL
4548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4549 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4550 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4552 arg2
= wxString_in_helper(obj1
);
4553 if (arg2
== NULL
) SWIG_fail
;
4557 arg3
= (bool) SWIG_AsBool(obj2
);
4558 if (PyErr_Occurred()) SWIG_fail
;
4561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4562 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4564 wxPyEndAllowThreads(__tstate
);
4565 if (PyErr_Occurred()) SWIG_fail
;
4569 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4571 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4588 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4589 PyObject
*resultobj
;
4590 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4592 PyObject
* obj0
= 0 ;
4594 (char *) "self", NULL
4597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4598 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4599 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4602 result
= (int)(arg1
)->GetID();
4604 wxPyEndAllowThreads(__tstate
);
4605 if (PyErr_Occurred()) SWIG_fail
;
4607 resultobj
= SWIG_FromInt((int)result
);
4614 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4615 PyObject
*resultobj
;
4616 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4618 PyObject
* obj0
= 0 ;
4620 (char *) "self", NULL
4623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4624 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4625 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4628 result
= (arg1
)->GetName();
4630 wxPyEndAllowThreads(__tstate
);
4631 if (PyErr_Occurred()) SWIG_fail
;
4635 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4637 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4646 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4647 PyObject
*resultobj
;
4648 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4649 wxString
*arg2
= 0 ;
4650 bool arg3
= (bool) False
;
4652 bool temp2
= False
;
4653 PyObject
* obj0
= 0 ;
4654 PyObject
* obj1
= 0 ;
4655 PyObject
* obj2
= 0 ;
4657 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4661 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4662 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4664 arg2
= wxString_in_helper(obj1
);
4665 if (arg2
== NULL
) SWIG_fail
;
4669 arg3
= (bool) SWIG_AsBool(obj2
);
4670 if (PyErr_Occurred()) SWIG_fail
;
4673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4674 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4676 wxPyEndAllowThreads(__tstate
);
4677 if (PyErr_Occurred()) SWIG_fail
;
4680 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4696 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4697 PyObject
*resultobj
;
4698 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4699 wxString
*arg2
= 0 ;
4700 long arg3
= (long) 0 ;
4702 bool temp2
= False
;
4703 PyObject
* obj0
= 0 ;
4704 PyObject
* obj1
= 0 ;
4705 PyObject
* obj2
= 0 ;
4707 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4711 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4712 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4714 arg2
= wxString_in_helper(obj1
);
4715 if (arg2
== NULL
) SWIG_fail
;
4719 arg3
= (long) SWIG_AsLong(obj2
);
4720 if (PyErr_Occurred()) SWIG_fail
;
4723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4724 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4726 wxPyEndAllowThreads(__tstate
);
4727 if (PyErr_Occurred()) SWIG_fail
;
4729 resultobj
= SWIG_FromLong((long)result
);
4744 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4745 PyObject
*resultobj
;
4746 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4747 wxString
*arg2
= 0 ;
4749 bool temp2
= False
;
4750 PyObject
* obj0
= 0 ;
4751 PyObject
* obj1
= 0 ;
4753 (char *) "self",(char *) "param", NULL
4756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4757 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4758 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4760 arg2
= wxString_in_helper(obj1
);
4761 if (arg2
== NULL
) SWIG_fail
;
4765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4766 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4768 wxPyEndAllowThreads(__tstate
);
4769 if (PyErr_Occurred()) SWIG_fail
;
4772 wxColour
* resultptr
;
4773 resultptr
= new wxColour((wxColour
&) result
);
4774 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4790 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4791 PyObject
*resultobj
;
4792 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4793 wxString
const &arg2_defvalue
= wxPySizeString
;
4794 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4796 bool temp2
= False
;
4797 PyObject
* obj0
= 0 ;
4798 PyObject
* obj1
= 0 ;
4800 (char *) "self",(char *) "param", NULL
4803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4804 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4805 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4808 arg2
= wxString_in_helper(obj1
);
4809 if (arg2
== NULL
) SWIG_fail
;
4814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4815 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4817 wxPyEndAllowThreads(__tstate
);
4818 if (PyErr_Occurred()) SWIG_fail
;
4822 resultptr
= new wxSize((wxSize
&) result
);
4823 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4839 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4840 PyObject
*resultobj
;
4841 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4842 wxString
const &arg2_defvalue
= wxPyPosString
;
4843 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4845 bool temp2
= False
;
4846 PyObject
* obj0
= 0 ;
4847 PyObject
* obj1
= 0 ;
4849 (char *) "self",(char *) "param", NULL
4852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4853 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4854 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4857 arg2
= wxString_in_helper(obj1
);
4858 if (arg2
== NULL
) SWIG_fail
;
4863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4864 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4866 wxPyEndAllowThreads(__tstate
);
4867 if (PyErr_Occurred()) SWIG_fail
;
4870 wxPoint
* resultptr
;
4871 resultptr
= new wxPoint((wxPoint
&) result
);
4872 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4888 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4889 PyObject
*resultobj
;
4890 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4891 wxString
*arg2
= 0 ;
4892 int arg3
= (int) 0 ;
4894 bool temp2
= False
;
4895 PyObject
* obj0
= 0 ;
4896 PyObject
* obj1
= 0 ;
4897 PyObject
* obj2
= 0 ;
4899 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4903 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4904 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4906 arg2
= wxString_in_helper(obj1
);
4907 if (arg2
== NULL
) SWIG_fail
;
4911 arg3
= (int) SWIG_AsInt(obj2
);
4912 if (PyErr_Occurred()) SWIG_fail
;
4915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4916 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4918 wxPyEndAllowThreads(__tstate
);
4919 if (PyErr_Occurred()) SWIG_fail
;
4921 resultobj
= SWIG_FromInt((int)result
);
4936 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4937 PyObject
*resultobj
;
4938 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4939 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4940 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4941 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4942 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4943 wxSize arg4
= (wxSize
) wxDefaultSize
;
4945 bool temp2
= False
;
4947 PyObject
* obj0
= 0 ;
4948 PyObject
* obj1
= 0 ;
4949 PyObject
* obj2
= 0 ;
4950 PyObject
* obj3
= 0 ;
4952 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4956 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4957 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4960 arg2
= wxString_in_helper(obj1
);
4961 if (arg2
== NULL
) SWIG_fail
;
4966 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
4967 SWIG_POINTER_EXCEPTION
| 0)) == -1)
4970 PyErr_SetString(PyExc_TypeError
,"null reference");
4975 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
4976 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4980 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4981 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4983 wxPyEndAllowThreads(__tstate
);
4984 if (PyErr_Occurred()) SWIG_fail
;
4987 wxBitmap
* resultptr
;
4988 resultptr
= new wxBitmap((wxBitmap
&) result
);
4989 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
5005 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5006 PyObject
*resultobj
;
5007 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5008 wxString
const &arg2_defvalue
= wxPyIconString
;
5009 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5010 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5011 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5012 wxSize arg4
= (wxSize
) wxDefaultSize
;
5014 bool temp2
= False
;
5016 PyObject
* obj0
= 0 ;
5017 PyObject
* obj1
= 0 ;
5018 PyObject
* obj2
= 0 ;
5019 PyObject
* obj3
= 0 ;
5021 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5025 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5026 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5029 arg2
= wxString_in_helper(obj1
);
5030 if (arg2
== NULL
) SWIG_fail
;
5035 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5036 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5039 PyErr_SetString(PyExc_TypeError
,"null reference");
5044 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5045 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5050 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5052 wxPyEndAllowThreads(__tstate
);
5053 if (PyErr_Occurred()) SWIG_fail
;
5057 resultptr
= new wxIcon((wxIcon
&) result
);
5058 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5074 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5075 PyObject
*resultobj
;
5076 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5077 wxString
const &arg2_defvalue
= wxPyFontString
;
5078 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5080 bool temp2
= False
;
5081 PyObject
* obj0
= 0 ;
5082 PyObject
* obj1
= 0 ;
5084 (char *) "self",(char *) "param", NULL
5087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5088 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5089 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5092 arg2
= wxString_in_helper(obj1
);
5093 if (arg2
== NULL
) SWIG_fail
;
5098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5099 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5101 wxPyEndAllowThreads(__tstate
);
5102 if (PyErr_Occurred()) SWIG_fail
;
5106 resultptr
= new wxFont((wxFont
&) result
);
5107 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5123 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5124 PyObject
*resultobj
;
5125 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5126 wxWindow
*arg2
= (wxWindow
*) 0 ;
5127 PyObject
* obj0
= 0 ;
5128 PyObject
* obj1
= 0 ;
5130 (char *) "self",(char *) "wnd", NULL
5133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5134 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5135 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5136 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5137 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5140 (arg1
)->SetupWindow(arg2
);
5142 wxPyEndAllowThreads(__tstate
);
5143 if (PyErr_Occurred()) SWIG_fail
;
5145 Py_INCREF(Py_None
); resultobj
= Py_None
;
5152 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5153 PyObject
*resultobj
;
5154 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5155 wxObject
*arg2
= (wxObject
*) 0 ;
5156 bool arg3
= (bool) False
;
5157 PyObject
* obj0
= 0 ;
5158 PyObject
* obj1
= 0 ;
5159 PyObject
* obj2
= 0 ;
5161 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5165 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5166 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5167 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5168 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5170 arg3
= (bool) SWIG_AsBool(obj2
);
5171 if (PyErr_Occurred()) SWIG_fail
;
5174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5175 (arg1
)->CreateChildren(arg2
,arg3
);
5177 wxPyEndAllowThreads(__tstate
);
5178 if (PyErr_Occurred()) SWIG_fail
;
5180 Py_INCREF(Py_None
); resultobj
= Py_None
;
5187 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5188 PyObject
*resultobj
;
5189 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5190 wxObject
*arg2
= (wxObject
*) 0 ;
5191 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5192 PyObject
* obj0
= 0 ;
5193 PyObject
* obj1
= 0 ;
5194 PyObject
* obj2
= 0 ;
5196 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5200 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5201 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5202 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5205 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5206 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5210 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5212 wxPyEndAllowThreads(__tstate
);
5213 if (PyErr_Occurred()) SWIG_fail
;
5215 Py_INCREF(Py_None
); resultobj
= Py_None
;
5222 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5223 PyObject
*resultobj
;
5224 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5225 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5226 wxObject
*arg3
= (wxObject
*) 0 ;
5227 wxObject
*arg4
= (wxObject
*) NULL
;
5229 PyObject
* obj0
= 0 ;
5230 PyObject
* obj1
= 0 ;
5231 PyObject
* obj2
= 0 ;
5232 PyObject
* obj3
= 0 ;
5234 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5238 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5239 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5240 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5241 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5242 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5243 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5245 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5246 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5250 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5252 wxPyEndAllowThreads(__tstate
);
5253 if (PyErr_Occurred()) SWIG_fail
;
5256 resultobj
= wxPyMake_wxObject(result
);
5264 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5265 PyObject
*resultobj
;
5266 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5267 wxFileSystem
*result
;
5268 PyObject
* obj0
= 0 ;
5270 (char *) "self", NULL
5273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5274 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5275 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5279 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5280 result
= (wxFileSystem
*) &_result_ref
;
5283 wxPyEndAllowThreads(__tstate
);
5284 if (PyErr_Occurred()) SWIG_fail
;
5286 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5293 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5295 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5296 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5298 return Py_BuildValue((char *)"");
5300 static PyMethodDef SwigMethods
[] = {
5301 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5302 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5303 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5304 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5305 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5306 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5307 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5308 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5309 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5310 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5311 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5312 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5313 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5314 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5315 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5316 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5317 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5318 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5319 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5320 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5321 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5322 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5323 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5324 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5325 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5326 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5327 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5328 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5329 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5330 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5331 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5332 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5333 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5334 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5335 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5336 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5337 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5338 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5339 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5340 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5341 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5342 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5343 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5344 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5345 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5346 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5347 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5348 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5349 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5350 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5351 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5352 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5353 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5354 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5355 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5356 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5357 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5358 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5359 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5360 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5361 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5362 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5363 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5364 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5365 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5366 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5367 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5368 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5369 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5370 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5371 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5372 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5373 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5374 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5375 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5376 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5377 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5378 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5379 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5380 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5381 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5382 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5383 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5384 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5385 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5386 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5387 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5388 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5389 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5390 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5391 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5392 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5393 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5394 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5395 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5396 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5397 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5398 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5399 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5400 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5401 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5402 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5403 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5404 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5405 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5406 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5407 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5408 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5409 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5410 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5411 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5412 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5413 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5414 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5415 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5416 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5417 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5418 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5419 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5420 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5421 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5422 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5423 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5428 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5430 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5431 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5433 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5434 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5436 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5437 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5439 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5440 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5442 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5443 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5445 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5446 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5448 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5449 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5451 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5452 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5454 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5455 return (void *)((wxObject
*) ((wxSizer
*) x
));
5457 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5458 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5460 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5461 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5463 static void *_p_wxEventTo_p_wxObject(void *x
) {
5464 return (void *)((wxObject
*) ((wxEvent
*) x
));
5466 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5467 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5469 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5470 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5472 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5473 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5475 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5476 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5478 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5479 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5481 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5482 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5484 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5485 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5487 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5488 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5490 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5491 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5493 static void *_p_wxControlTo_p_wxObject(void *x
) {
5494 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5496 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5497 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5499 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5500 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5502 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5503 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5505 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5506 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5508 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5509 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5511 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5512 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5514 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5515 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5517 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5518 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5520 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5521 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5523 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5524 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5526 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5527 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5529 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5530 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5532 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5533 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5535 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5536 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5538 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5539 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5541 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5542 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5544 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5545 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5547 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5548 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5550 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5551 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5553 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5554 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5556 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5557 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5559 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5560 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5562 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5563 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5565 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5566 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5568 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5569 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5571 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5572 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5574 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5575 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5577 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5578 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5580 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5581 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5583 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5584 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5586 static void *_p_wxImageTo_p_wxObject(void *x
) {
5587 return (void *)((wxObject
*) ((wxImage
*) x
));
5589 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5590 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5592 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5593 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5595 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5596 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5598 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5599 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5601 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5602 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5604 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5605 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5607 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5608 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5610 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5611 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5613 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5614 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5616 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5617 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5619 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5620 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5622 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5623 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5625 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5626 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5628 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5629 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5631 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5632 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5634 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5635 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5637 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5638 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5640 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5641 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5643 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5644 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5646 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5647 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5649 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5650 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5652 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5653 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5655 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5656 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5658 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5659 return (void *)((wxWindow
*) ((wxControl
*) x
));
5661 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5662 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5664 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5665 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5667 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}};
5668 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}};
5669 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}};
5670 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}};
5671 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}};
5672 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}};
5673 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}};
5674 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}};
5675 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}};
5676 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}};
5677 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}};
5678 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}};
5679 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}};
5680 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}};
5681 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}};
5682 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}};
5683 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}};
5684 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}};
5685 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}};
5686 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}};
5687 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}};
5688 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}};
5690 static swig_type_info
*swig_types_initial
[] = {
5697 _swigt__p_wxArtClient
,
5699 _swigt__p_wxPyXmlSubclassFactory
,
5702 _swigt__p_wxXmlNode
,
5703 _swigt__p_wxInputStream
,
5704 _swigt__p_wxOutputStream
,
5705 _swigt__p_wxPyXmlResourceHandler
,
5706 _swigt__p_wxFileSystem
,
5707 _swigt__p_wxXmlProperty
,
5709 _swigt__p_wxXmlResource
,
5710 _swigt__p_wxXmlDocument
,
5717 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5719 static swig_const_info swig_const_table
[] = {
5729 SWIGEXPORT(void) SWIG_init(void) {
5730 static PyObject
*SWIG_globals
= 0;
5731 static int typeinit
= 0;
5734 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5735 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5736 d
= PyModule_GetDict(m
);
5739 for (i
= 0; swig_types_initial
[i
]; i
++) {
5740 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5744 SWIG_InstallConstants(d
,swig_const_table
);
5746 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5747 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5748 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5749 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5750 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5751 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5752 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5753 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5754 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5755 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5756 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5757 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5758 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE
));
5759 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING
));
5760 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE
));
5761 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE
));
5762 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE
));
5763 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE
));
5764 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE
));
5765 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE
));
5766 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE
));
5767 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE
));
5768 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE
));
5769 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE
));
5770 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE
));
5771 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE
));
5772 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE
));
5775 wxXmlInitResourceModule();
5776 wxXmlResource::Get()->InitAllHandlers();