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_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
53 /***********************************************************************
54 * common.swg for wxPython
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
61 ************************************************************************/
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
91 # define SWIGRUNTIME(a) static a
98 typedef void *(*swig_converter_func
)(void *);
99 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
101 typedef struct swig_type_info
{
103 swig_converter_func converter
;
106 swig_dycast_func dcast
;
107 struct swig_type_info
*next
;
108 struct swig_type_info
*prev
;
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
113 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
115 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info
*);
118 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
129 /***********************************************************************
130 * pyrun.swg for wxPython
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
137 ************************************************************************/
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
149 /* Flags for pointer conversion */
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
157 /* Constant information structure */
158 typedef struct swig_const_info
{
164 swig_type_info
**ptype
;
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
187 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
190 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
192 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
195 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
199 /* Contract support */
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
209 /* -------- TYPES TABLE (BEGIN) -------- */
211 #define SWIGTYPE_p_wxFrame swig_types[0]
212 #define SWIGTYPE_p_wxIcon swig_types[1]
213 #define SWIGTYPE_p_wxObject swig_types[2]
214 #define SWIGTYPE_p_wxDialog swig_types[3]
215 #define SWIGTYPE_p_wxColour swig_types[4]
216 #define SWIGTYPE_p_wxWindow swig_types[5]
217 #define SWIGTYPE_p_wxArtClient swig_types[6]
218 #define SWIGTYPE_p_wxBitmap swig_types[7]
219 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
220 #define SWIGTYPE_p_char swig_types[9]
221 #define SWIGTYPE_p_wxPoint swig_types[10]
222 #define SWIGTYPE_p_wxXmlNode swig_types[11]
223 #define SWIGTYPE_p_wxInputStream swig_types[12]
224 #define SWIGTYPE_p_wxOutputStream swig_types[13]
225 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
226 #define SWIGTYPE_p_wxFileSystem swig_types[15]
227 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
228 #define SWIGTYPE_p_wxFont swig_types[17]
229 #define SWIGTYPE_p_wxXmlResource swig_types[18]
230 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
231 #define SWIGTYPE_p_wxPanel swig_types[20]
232 #define SWIGTYPE_p_wxSize swig_types[21]
233 static swig_type_info
*swig_types
[23];
235 /* -------- TYPES TABLE (END) -------- */
238 /*-----------------------------------------------
240 ------------------------------------------------*/
241 #define SWIG_init init_xrc
243 #define SWIG_name "_xrc"
245 /* Auxiliar swig macros that appear in the header */
247 #define SWIG_OLDOBJ 1
248 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
249 #define SWIG_PYSTR SWIG_NEWOBJ + 1
252 #define SWIGSTATICINLINE(a) static inline a
253 #define SWIGSTATIC(a) static a
254 #define swig_new_array(size,Type) (new Type[(size)])
255 #define swig_delete(cptr) delete cptr
256 #define swig_delete_array(cptr) delete[] cptr
257 #define swig_const_cast(a,Type) const_cast<Type >(a)
258 #define swig_static_cast(a,Type) static_cast<Type >(a)
259 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
260 #define swig_new_copy(ptr,Type) (new Type(*ptr))
261 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
265 #define SWIGSTATICINLINE(a) static a
266 #define SWIGSTATIC(a) static a
267 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
268 #define swig_delete(cptr) free((char*)cptr)
269 #define swig_delete_array(cptr) free((char*)cptr)
270 #define swig_const_cast(a,Type) (Type)(a)
271 #define swig_static_cast(a,Type) (Type)(a)
272 #define swig_reinterpret_cast(a,Type) (Type)(a)
273 #define swig_numeric_cast(a,Type) (Type)(a)
274 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
276 #endif /* __cplusplus */
279 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
280 #define SWIG_From_signed_SS_char PyInt_FromLong
282 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
283 #define SWIG_From_unsigned_SS_char PyInt_FromLong
285 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
286 #define SWIG_From_short PyInt_FromLong
288 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
289 #define SWIG_From_unsigned_SS_short PyInt_FromLong
291 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
292 #define SWIG_From_int PyInt_FromLong
294 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
295 #define SWIG_From_long PyInt_FromLong
297 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
298 #define SWIG_From_float PyFloat_FromDouble
300 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
301 #define SWIG_From_double PyFloat_FromDouble
305 #include "wx/wxPython/wxPython.h"
306 #include "wx/wxPython/pyclasses.h"
307 #include "wx/wxPython/pyistream.h"
309 #include <wx/xml/xml.h>
310 #include <wx/xrc/xmlres.h>
312 static const wxString
wxPyEmptyString(wxEmptyString
);
313 static const wxString
wxPyUTF8String(wxT("UTF-8"));
314 static const wxString
wxPyStyleString(wxT("style"));
315 static const wxString
wxPySizeString(wxT("size"));
316 static const wxString
wxPyPosString(wxT("pos"));
317 static const wxString
wxPyBitmapString(wxT("bitmap"));
318 static const wxString
wxPyIconString(wxT("icon"));
319 static const wxString
wxPyFontString(wxT("font"));
324 SWIGSTATICINLINE(int)
325 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
328 if (value
< min_value
) {
330 PyErr_Format(PyExc_OverflowError
,
331 "value %ld is less than '%s' minimum %ld",
332 value
, errmsg
, min_value
);
335 } else if (value
> max_value
) {
337 PyErr_Format(PyExc_OverflowError
,
338 "value %ld is greater than '%s' maximum %ld",
339 value
, errmsg
, max_value
);
347 // See my_fragments.i
348 SWIGSTATICINLINE(int)
349 SWIG_AsVal_long(PyObject
* obj
, long* val
)
351 if (PyNumber_Check(obj
)) {
352 if (val
) *val
= PyInt_AsLong(obj
);
356 PyObject
* errmsg
= PyString_FromFormat("Expected number, got %s",
357 obj
->ob_type
->tp_name
);
358 PyErr_SetObject(PyExc_TypeError
, errmsg
);
365 #if INT_MAX != LONG_MAX
366 SWIGSTATICINLINE(int)
367 SWIG_AsVal_int(PyObject
*obj
, int *val
)
369 const char* errmsg
= val
? "int" : 0;
371 if (SWIG_AsVal_long(obj
, &v
)) {
372 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
373 if (val
) *val
= swig_numeric_cast(v
, int);
382 PyErr_SetString(PyExc_TypeError
, "an int is expected");
387 SWIGSTATICINLINE(int)
388 SWIG_AsVal_int(PyObject
*obj
, int *val
)
390 return SWIG_AsVal_long(obj
,(long*)val
);
395 SWIGSTATICINLINE(int)
396 SWIG_As_int(PyObject
* obj
)
399 if (!SWIG_AsVal_int(obj
, &v
)) {
401 this is needed to make valgrind/purify happier. the other
402 solution is throw an exception, but since this code should work
405 memset((void*)&v
, 0, sizeof(int));
411 SWIGSTATICINLINE(int)
412 SWIG_Check_int(PyObject
* obj
)
414 return SWIG_AsVal_int(obj
, (int*)0);
417 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
418 static int s_memFileIdx
= 0;
420 // Check for memory FS. If not present, load the handler:
421 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
424 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
425 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
429 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
431 // Now put the resource data into the memory FS
432 wxString
filename(wxT("XRC_resource/data_string_"));
433 filename
<< s_memFileIdx
;
435 wxMemoryFSHandler::AddFile(filename
, data
);
437 // Load the "file" into the resource object
438 bool retval
= self
->Load(wxT("memory:") + filename
);
443 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
446 wxPyXmlSubclassFactory() {}
447 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
451 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
453 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
454 // callbacks, as well as to make some protected things public so they can
456 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
458 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
459 //~wxPyXmlResourceHandler();
461 // Base class virtuals
463 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
464 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
467 // accessors for protected members
469 wxXmlResource
* GetResource() { return m_resource
; }
470 wxXmlNode
* GetNode() { return m_node
; }
471 wxString
GetClass() { return m_class
; }
472 wxObject
* GetParent() { return m_parent
; }
473 wxObject
* GetInstance() { return m_instance
; }
474 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
475 // wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; }
478 // turn some protected methods into public via delegation
480 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
481 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
483 wxString
GetNodeContent(wxXmlNode
*node
)
484 { return wxXmlResourceHandler::GetNodeContent(node
); }
486 bool HasParam(const wxString
& param
)
487 { return wxXmlResourceHandler::HasParam(param
); }
489 wxXmlNode
*GetParamNode(const wxString
& param
)
490 { return wxXmlResourceHandler::GetParamNode(param
); }
492 wxString
GetParamValue(const wxString
& param
)
493 { return wxXmlResourceHandler::GetParamValue(param
); }
495 void AddStyle(const wxString
& name
, int value
)
496 { wxXmlResourceHandler::AddStyle(name
, value
); }
498 void AddWindowStyles()
499 { wxXmlResourceHandler::AddWindowStyles(); }
501 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
502 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
504 wxString
GetText(const wxString
& param
, bool translate
= true)
505 { return wxXmlResourceHandler::GetText(param
, translate
); }
508 { return wxXmlResourceHandler::GetID(); }
511 { return wxXmlResourceHandler::GetName(); }
513 bool GetBool(const wxString
& param
, bool defaultv
= false)
514 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
516 long GetLong( const wxString
& param
, long defaultv
= 0 )
517 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
519 wxColour
GetColour(const wxString
& param
)
520 { return wxXmlResourceHandler::GetColour(param
); }
522 wxSize
GetSize(const wxString
& param
= wxT("size"))
523 { return wxXmlResourceHandler::GetSize(param
); }
525 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
526 { return wxXmlResourceHandler::GetPosition(param
); }
528 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
529 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
531 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
532 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
533 wxSize size
= wxDefaultSize
)
534 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
536 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
537 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
538 wxSize size
= wxDefaultSize
)
539 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
541 wxFont
GetFont(const wxString
& param
= wxT("font"))
542 { return wxXmlResourceHandler::GetFont(param
); }
544 void SetupWindow(wxWindow
*wnd
)
545 { wxXmlResourceHandler::SetupWindow(wnd
); }
547 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= false)
548 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
550 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
551 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
553 wxObject
*CreateResFromNode(wxXmlNode
*node
,
554 wxObject
*parent
, wxObject
*instance
= NULL
)
555 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
557 wxFileSystem
& GetCurFileSystem()
558 { return wxXmlResourceHandler::GetCurFileSystem(); }
564 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
565 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
569 SWIGSTATICINLINE(int)
570 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
572 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
573 if (obj
== Py_True
) {
574 if (val
) *val
= true;
577 if (obj
== Py_False
) {
578 if (val
) *val
= false;
582 if (SWIG_AsVal_int(obj
, &res
)) {
583 if (val
) *val
= (bool)res
;
587 PyErr_SetString(PyExc_TypeError
, "a bool is expected");
593 SWIGSTATICINLINE(bool)
594 SWIG_As_bool(PyObject
* obj
)
597 if (!SWIG_AsVal_bool(obj
, &v
)) {
599 this is needed to make valgrind/purify happier. the other
600 solution is throw an exception, but since this code should work
603 memset((void*)&v
, 0, sizeof(bool));
609 SWIGSTATICINLINE(int)
610 SWIG_Check_bool(PyObject
* obj
)
612 return SWIG_AsVal_bool(obj
, (bool*)0);
616 SWIGSTATICINLINE(long)
617 SWIG_As_long(PyObject
* obj
)
620 if (!SWIG_AsVal_long(obj
, &v
)) {
622 this is needed to make valgrind/purify happier. the other
623 solution is throw an exception, but since this code should work
626 memset((void*)&v
, 0, sizeof(long));
632 SWIGSTATICINLINE(int)
633 SWIG_Check_long(PyObject
* obj
)
635 return SWIG_AsVal_long(obj
, (long*)0);
641 static int _wrap_UTF8String_set(PyObject
*) {
642 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
647 static PyObject
*_wrap_UTF8String_get() {
652 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
654 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
661 static int _wrap_StyleString_set(PyObject
*) {
662 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
667 static PyObject
*_wrap_StyleString_get() {
672 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
674 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
681 static int _wrap_SizeString_set(PyObject
*) {
682 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
687 static PyObject
*_wrap_SizeString_get() {
692 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
694 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
701 static int _wrap_PosString_set(PyObject
*) {
702 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
707 static PyObject
*_wrap_PosString_get() {
712 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
714 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
721 static int _wrap_BitmapString_set(PyObject
*) {
722 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
727 static PyObject
*_wrap_BitmapString_get() {
732 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
734 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
741 static int _wrap_IconString_set(PyObject
*) {
742 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
747 static PyObject
*_wrap_IconString_get() {
752 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
754 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
761 static int _wrap_FontString_set(PyObject
*) {
762 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
767 static PyObject
*_wrap_FontString_get() {
772 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
774 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
781 static PyObject
*_wrap_new_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
784 int arg2
= (int) wxXRC_USE_LOCALE
;
785 wxXmlResource
*result
;
787 PyObject
* obj0
= 0 ;
788 PyObject
* obj1
= 0 ;
790 (char *) "filemask",(char *) "flags", NULL
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
795 arg1
= wxString_in_helper(obj0
);
796 if (arg1
== NULL
) SWIG_fail
;
800 arg2
= (int)SWIG_As_int(obj1
);
801 if (PyErr_Occurred()) SWIG_fail
;
804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
805 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
807 wxPyEndAllowThreads(__tstate
);
808 if (PyErr_Occurred()) SWIG_fail
;
810 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
825 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
827 int arg1
= (int) wxXRC_USE_LOCALE
;
828 wxXmlResource
*result
;
829 PyObject
* obj0
= 0 ;
831 (char *) "flags", NULL
834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
836 arg1
= (int)SWIG_As_int(obj0
);
837 if (PyErr_Occurred()) SWIG_fail
;
840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
841 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
843 wxPyEndAllowThreads(__tstate
);
844 if (PyErr_Occurred()) SWIG_fail
;
846 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
853 static PyObject
*_wrap_delete_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
855 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
856 PyObject
* obj0
= 0 ;
858 (char *) "self", NULL
861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
862 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
863 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
868 wxPyEndAllowThreads(__tstate
);
869 if (PyErr_Occurred()) SWIG_fail
;
871 Py_INCREF(Py_None
); resultobj
= Py_None
;
878 static PyObject
*_wrap_XmlResource_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
880 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
884 PyObject
* obj0
= 0 ;
885 PyObject
* obj1
= 0 ;
887 (char *) "self",(char *) "filemask", NULL
890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
891 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
892 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
894 arg2
= wxString_in_helper(obj1
);
895 if (arg2
== NULL
) SWIG_fail
;
899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
900 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
902 wxPyEndAllowThreads(__tstate
);
903 if (PyErr_Occurred()) SWIG_fail
;
906 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
922 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
924 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
928 PyObject
* obj0
= 0 ;
929 PyObject
* obj1
= 0 ;
931 (char *) "self",(char *) "data", NULL
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
935 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
936 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
938 arg2
= wxString_in_helper(obj1
);
939 if (arg2
== NULL
) SWIG_fail
;
943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
944 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
946 wxPyEndAllowThreads(__tstate
);
947 if (PyErr_Occurred()) SWIG_fail
;
950 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
966 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
968 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
969 PyObject
* obj0
= 0 ;
971 (char *) "self", NULL
974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
975 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
976 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
979 (arg1
)->InitAllHandlers();
981 wxPyEndAllowThreads(__tstate
);
982 if (PyErr_Occurred()) SWIG_fail
;
984 Py_INCREF(Py_None
); resultobj
= Py_None
;
991 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
993 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
994 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
995 PyObject
* obj0
= 0 ;
996 PyObject
* obj1
= 0 ;
998 (char *) "self",(char *) "handler", NULL
1001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
1002 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1003 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1004 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
1005 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1008 (arg1
)->AddHandler(arg2
);
1010 wxPyEndAllowThreads(__tstate
);
1011 if (PyErr_Occurred()) SWIG_fail
;
1013 Py_INCREF(Py_None
); resultobj
= Py_None
;
1020 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1021 PyObject
*resultobj
;
1022 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1023 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
1024 PyObject
* obj0
= 0 ;
1025 PyObject
* obj1
= 0 ;
1027 (char *) "self",(char *) "handler", NULL
1030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
1031 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1032 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1033 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPyXmlResourceHandler
,
1034 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1037 (arg1
)->InsertHandler(arg2
);
1039 wxPyEndAllowThreads(__tstate
);
1040 if (PyErr_Occurred()) SWIG_fail
;
1042 Py_INCREF(Py_None
); resultobj
= Py_None
;
1049 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
*resultobj
;
1051 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1052 PyObject
* obj0
= 0 ;
1054 (char *) "self", NULL
1057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
1058 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1059 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1062 (arg1
)->ClearHandlers();
1064 wxPyEndAllowThreads(__tstate
);
1065 if (PyErr_Occurred()) SWIG_fail
;
1067 Py_INCREF(Py_None
); resultobj
= Py_None
;
1074 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1075 PyObject
*resultobj
;
1076 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1077 PyObject
* obj0
= 0 ;
1079 (char *) "factory", NULL
1082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
1083 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
1084 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1087 wxXmlResource::AddSubclassFactory(arg1
);
1089 wxPyEndAllowThreads(__tstate
);
1090 if (PyErr_Occurred()) SWIG_fail
;
1092 Py_INCREF(Py_None
); resultobj
= Py_None
;
1099 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1100 PyObject
*resultobj
;
1101 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1102 wxString
*arg2
= 0 ;
1104 bool temp2
= false ;
1105 PyObject
* obj0
= 0 ;
1106 PyObject
* obj1
= 0 ;
1108 (char *) "self",(char *) "name", NULL
1111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1112 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1113 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1115 arg2
= wxString_in_helper(obj1
);
1116 if (arg2
== NULL
) SWIG_fail
;
1120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1121 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1123 wxPyEndAllowThreads(__tstate
);
1124 if (PyErr_Occurred()) SWIG_fail
;
1127 resultobj
= wxPyMake_wxObject(result
, 0);
1143 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1144 PyObject
*resultobj
;
1145 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1146 wxString
*arg2
= 0 ;
1148 bool temp2
= false ;
1149 PyObject
* obj0
= 0 ;
1150 PyObject
* obj1
= 0 ;
1152 (char *) "self",(char *) "name", NULL
1155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1156 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1157 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1159 arg2
= wxString_in_helper(obj1
);
1160 if (arg2
== NULL
) SWIG_fail
;
1164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1165 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1167 wxPyEndAllowThreads(__tstate
);
1168 if (PyErr_Occurred()) SWIG_fail
;
1171 resultobj
= wxPyMake_wxObject(result
, 0);
1187 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1188 PyObject
*resultobj
;
1189 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1190 wxWindow
*arg2
= (wxWindow
*) 0 ;
1191 wxString
*arg3
= 0 ;
1193 bool temp3
= false ;
1194 PyObject
* obj0
= 0 ;
1195 PyObject
* obj1
= 0 ;
1196 PyObject
* obj2
= 0 ;
1198 (char *) "self",(char *) "parent",(char *) "name", NULL
1201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1202 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1203 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1204 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1205 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1207 arg3
= wxString_in_helper(obj2
);
1208 if (arg3
== NULL
) SWIG_fail
;
1212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1213 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1215 wxPyEndAllowThreads(__tstate
);
1216 if (PyErr_Occurred()) SWIG_fail
;
1219 resultobj
= wxPyMake_wxObject(result
, 0);
1235 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1236 PyObject
*resultobj
;
1237 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1238 wxWindow
*arg2
= (wxWindow
*) 0 ;
1239 wxString
*arg3
= 0 ;
1241 bool temp3
= false ;
1242 PyObject
* obj0
= 0 ;
1243 PyObject
* obj1
= 0 ;
1244 PyObject
* obj2
= 0 ;
1246 (char *) "self",(char *) "parent",(char *) "name", NULL
1249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1250 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1251 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1252 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1253 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1255 arg3
= wxString_in_helper(obj2
);
1256 if (arg3
== NULL
) SWIG_fail
;
1260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1261 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1263 wxPyEndAllowThreads(__tstate
);
1264 if (PyErr_Occurred()) SWIG_fail
;
1267 resultobj
= wxPyMake_wxObject(result
, 0);
1283 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1284 PyObject
*resultobj
;
1285 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1286 wxWindow
*arg2
= (wxWindow
*) 0 ;
1287 wxString
*arg3
= 0 ;
1289 bool temp3
= false ;
1290 PyObject
* obj0
= 0 ;
1291 PyObject
* obj1
= 0 ;
1292 PyObject
* obj2
= 0 ;
1294 (char *) "self",(char *) "parent",(char *) "name", NULL
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1303 arg3
= wxString_in_helper(obj2
);
1304 if (arg3
== NULL
) SWIG_fail
;
1308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1309 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1311 wxPyEndAllowThreads(__tstate
);
1312 if (PyErr_Occurred()) SWIG_fail
;
1315 resultobj
= wxPyMake_wxObject(result
, 0);
1331 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1332 PyObject
*resultobj
;
1333 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1334 wxDialog
*arg2
= (wxDialog
*) 0 ;
1335 wxWindow
*arg3
= (wxWindow
*) 0 ;
1336 wxString
*arg4
= 0 ;
1338 bool temp4
= false ;
1339 PyObject
* obj0
= 0 ;
1340 PyObject
* obj1
= 0 ;
1341 PyObject
* obj2
= 0 ;
1342 PyObject
* obj3
= 0 ;
1344 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1348 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1349 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1350 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxDialog
,
1351 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1352 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1355 arg4
= wxString_in_helper(obj3
);
1356 if (arg4
== NULL
) SWIG_fail
;
1360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1361 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1363 wxPyEndAllowThreads(__tstate
);
1364 if (PyErr_Occurred()) SWIG_fail
;
1367 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1383 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1384 PyObject
*resultobj
;
1385 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1386 wxWindow
*arg2
= (wxWindow
*) 0 ;
1387 wxString
*arg3
= 0 ;
1389 bool temp3
= false ;
1390 PyObject
* obj0
= 0 ;
1391 PyObject
* obj1
= 0 ;
1392 PyObject
* obj2
= 0 ;
1394 (char *) "self",(char *) "parent",(char *) "name", NULL
1397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1398 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1399 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1400 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1401 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1403 arg3
= wxString_in_helper(obj2
);
1404 if (arg3
== NULL
) SWIG_fail
;
1408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1409 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1411 wxPyEndAllowThreads(__tstate
);
1412 if (PyErr_Occurred()) SWIG_fail
;
1415 resultobj
= wxPyMake_wxObject(result
, 0);
1431 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
*resultobj
;
1433 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1434 wxPanel
*arg2
= (wxPanel
*) 0 ;
1435 wxWindow
*arg3
= (wxWindow
*) 0 ;
1436 wxString
*arg4
= 0 ;
1438 bool temp4
= false ;
1439 PyObject
* obj0
= 0 ;
1440 PyObject
* obj1
= 0 ;
1441 PyObject
* obj2
= 0 ;
1442 PyObject
* obj3
= 0 ;
1444 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1448 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1449 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1450 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxPanel
,
1451 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1452 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1453 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1455 arg4
= wxString_in_helper(obj3
);
1456 if (arg4
== NULL
) SWIG_fail
;
1460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1461 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1463 wxPyEndAllowThreads(__tstate
);
1464 if (PyErr_Occurred()) SWIG_fail
;
1467 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1483 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1484 PyObject
*resultobj
;
1485 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1486 wxWindow
*arg2
= (wxWindow
*) 0 ;
1487 wxString
*arg3
= 0 ;
1489 bool temp3
= false ;
1490 PyObject
* obj0
= 0 ;
1491 PyObject
* obj1
= 0 ;
1492 PyObject
* obj2
= 0 ;
1494 (char *) "self",(char *) "parent",(char *) "name", NULL
1497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1498 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1499 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1500 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1501 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1503 arg3
= wxString_in_helper(obj2
);
1504 if (arg3
== NULL
) SWIG_fail
;
1508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1509 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1511 wxPyEndAllowThreads(__tstate
);
1512 if (PyErr_Occurred()) SWIG_fail
;
1515 resultobj
= wxPyMake_wxObject(result
, 0);
1531 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
*resultobj
;
1533 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1534 wxFrame
*arg2
= (wxFrame
*) 0 ;
1535 wxWindow
*arg3
= (wxWindow
*) 0 ;
1536 wxString
*arg4
= 0 ;
1538 bool temp4
= false ;
1539 PyObject
* obj0
= 0 ;
1540 PyObject
* obj1
= 0 ;
1541 PyObject
* obj2
= 0 ;
1542 PyObject
* obj3
= 0 ;
1544 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1548 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1549 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1550 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxFrame
,
1551 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1552 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1553 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1555 arg4
= wxString_in_helper(obj3
);
1556 if (arg4
== NULL
) SWIG_fail
;
1560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1561 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1563 wxPyEndAllowThreads(__tstate
);
1564 if (PyErr_Occurred()) SWIG_fail
;
1567 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1583 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
*resultobj
;
1585 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1586 wxWindow
*arg2
= (wxWindow
*) 0 ;
1587 wxString
*arg3
= 0 ;
1588 wxString
*arg4
= 0 ;
1590 bool temp3
= false ;
1591 bool temp4
= false ;
1592 PyObject
* obj0
= 0 ;
1593 PyObject
* obj1
= 0 ;
1594 PyObject
* obj2
= 0 ;
1595 PyObject
* obj3
= 0 ;
1597 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1601 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1602 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1603 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
1604 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1606 arg3
= wxString_in_helper(obj2
);
1607 if (arg3
== NULL
) SWIG_fail
;
1611 arg4
= wxString_in_helper(obj3
);
1612 if (arg4
== NULL
) SWIG_fail
;
1616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1617 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1619 wxPyEndAllowThreads(__tstate
);
1620 if (PyErr_Occurred()) SWIG_fail
;
1623 resultobj
= wxPyMake_wxObject(result
, 0);
1647 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1648 PyObject
*resultobj
;
1649 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1650 wxObject
*arg2
= (wxObject
*) 0 ;
1651 wxWindow
*arg3
= (wxWindow
*) 0 ;
1652 wxString
*arg4
= 0 ;
1653 wxString
*arg5
= 0 ;
1655 bool temp4
= false ;
1656 bool temp5
= false ;
1657 PyObject
* obj0
= 0 ;
1658 PyObject
* obj1
= 0 ;
1659 PyObject
* obj2
= 0 ;
1660 PyObject
* obj3
= 0 ;
1661 PyObject
* obj4
= 0 ;
1663 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1667 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1668 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1669 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
1670 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1671 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1672 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1674 arg4
= wxString_in_helper(obj3
);
1675 if (arg4
== NULL
) SWIG_fail
;
1679 arg5
= wxString_in_helper(obj4
);
1680 if (arg5
== NULL
) SWIG_fail
;
1684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1685 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1687 wxPyEndAllowThreads(__tstate
);
1688 if (PyErr_Occurred()) SWIG_fail
;
1691 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1715 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1716 PyObject
*resultobj
;
1717 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1718 wxString
*arg2
= 0 ;
1720 bool temp2
= false ;
1721 PyObject
* obj0
= 0 ;
1722 PyObject
* obj1
= 0 ;
1724 (char *) "self",(char *) "name", NULL
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1728 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1729 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1731 arg2
= wxString_in_helper(obj1
);
1732 if (arg2
== NULL
) SWIG_fail
;
1736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1737 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1739 wxPyEndAllowThreads(__tstate
);
1740 if (PyErr_Occurred()) SWIG_fail
;
1743 wxBitmap
* resultptr
;
1744 resultptr
= new wxBitmap((wxBitmap
&) result
);
1745 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
1761 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1762 PyObject
*resultobj
;
1763 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1764 wxString
*arg2
= 0 ;
1766 bool temp2
= false ;
1767 PyObject
* obj0
= 0 ;
1768 PyObject
* obj1
= 0 ;
1770 (char *) "self",(char *) "name", NULL
1773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1774 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1775 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1777 arg2
= wxString_in_helper(obj1
);
1778 if (arg2
== NULL
) SWIG_fail
;
1782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1783 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1785 wxPyEndAllowThreads(__tstate
);
1786 if (PyErr_Occurred()) SWIG_fail
;
1790 resultptr
= new wxIcon((wxIcon
&) result
);
1791 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
1807 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
*resultobj
;
1809 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1810 wxString
*arg2
= 0 ;
1811 wxWindow
*arg3
= (wxWindow
*) 0 ;
1812 wxWindow
*arg4
= (wxWindow
*) NULL
;
1814 bool temp2
= false ;
1815 PyObject
* obj0
= 0 ;
1816 PyObject
* obj1
= 0 ;
1817 PyObject
* obj2
= 0 ;
1818 PyObject
* obj3
= 0 ;
1820 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1824 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1825 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1827 arg2
= wxString_in_helper(obj1
);
1828 if (arg2
== NULL
) SWIG_fail
;
1831 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxWindow
,
1832 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1834 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxWindow
,
1835 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1839 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1841 wxPyEndAllowThreads(__tstate
);
1842 if (PyErr_Occurred()) SWIG_fail
;
1845 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1861 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
*resultobj
;
1863 wxString
*arg1
= 0 ;
1865 bool temp1
= false ;
1866 PyObject
* obj0
= 0 ;
1868 (char *) "str_id", NULL
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1873 arg1
= wxString_in_helper(obj0
);
1874 if (arg1
== NULL
) SWIG_fail
;
1878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1879 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1881 wxPyEndAllowThreads(__tstate
);
1882 if (PyErr_Occurred()) SWIG_fail
;
1884 resultobj
= SWIG_From_int((int)result
);
1899 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1900 PyObject
*resultobj
;
1901 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1903 PyObject
* obj0
= 0 ;
1905 (char *) "self", NULL
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1909 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1910 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1913 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1915 wxPyEndAllowThreads(__tstate
);
1916 if (PyErr_Occurred()) SWIG_fail
;
1918 resultobj
= SWIG_From_long((long)result
);
1925 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
*resultobj
;
1927 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1933 PyObject
* obj0
= 0 ;
1934 PyObject
* obj1
= 0 ;
1935 PyObject
* obj2
= 0 ;
1936 PyObject
* obj3
= 0 ;
1937 PyObject
* obj4
= 0 ;
1939 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1943 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
1944 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
1945 arg2
= (int)SWIG_As_int(obj1
);
1946 if (PyErr_Occurred()) SWIG_fail
;
1947 arg3
= (int)SWIG_As_int(obj2
);
1948 if (PyErr_Occurred()) SWIG_fail
;
1949 arg4
= (int)SWIG_As_int(obj3
);
1950 if (PyErr_Occurred()) SWIG_fail
;
1951 arg5
= (int)SWIG_As_int(obj4
);
1952 if (PyErr_Occurred()) SWIG_fail
;
1954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1955 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1957 wxPyEndAllowThreads(__tstate
);
1958 if (PyErr_Occurred()) SWIG_fail
;
1960 resultobj
= SWIG_From_int((int)result
);
1967 static PyObject
*_wrap_XmlResource_Get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1968 PyObject
*resultobj
;
1969 wxXmlResource
*result
;
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1977 result
= (wxXmlResource
*)wxXmlResource::Get();
1979 wxPyEndAllowThreads(__tstate
);
1980 if (PyErr_Occurred()) SWIG_fail
;
1982 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
1989 static PyObject
*_wrap_XmlResource_Set(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
*resultobj
;
1991 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1992 wxXmlResource
*result
;
1993 PyObject
* obj0
= 0 ;
1995 (char *) "res", NULL
1998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1999 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2000 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2003 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
2005 wxPyEndAllowThreads(__tstate
);
2006 if (PyErr_Occurred()) SWIG_fail
;
2008 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
2015 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
*resultobj
;
2017 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2019 PyObject
* obj0
= 0 ;
2021 (char *) "self", NULL
2024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
2025 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2026 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2029 result
= (int)(arg1
)->GetFlags();
2031 wxPyEndAllowThreads(__tstate
);
2032 if (PyErr_Occurred()) SWIG_fail
;
2034 resultobj
= SWIG_From_int((int)result
);
2041 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2042 PyObject
*resultobj
;
2043 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2045 PyObject
* obj0
= 0 ;
2046 PyObject
* obj1
= 0 ;
2048 (char *) "self",(char *) "flags", NULL
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
2052 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlResource
,
2053 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2054 arg2
= (int)SWIG_As_int(obj1
);
2055 if (PyErr_Occurred()) SWIG_fail
;
2057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2058 (arg1
)->SetFlags(arg2
);
2060 wxPyEndAllowThreads(__tstate
);
2061 if (PyErr_Occurred()) SWIG_fail
;
2063 Py_INCREF(Py_None
); resultobj
= Py_None
;
2070 static PyObject
* XmlResource_swigregister(PyObject
*, PyObject
*args
) {
2072 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2073 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
2075 return Py_BuildValue((char *)"");
2077 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
*resultobj
;
2079 wxPyXmlSubclassFactory
*result
;
2084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
2086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2087 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
2089 wxPyEndAllowThreads(__tstate
);
2090 if (PyErr_Occurred()) SWIG_fail
;
2092 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
2099 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2100 PyObject
*resultobj
;
2101 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2102 PyObject
*arg2
= (PyObject
*) 0 ;
2103 PyObject
*arg3
= (PyObject
*) 0 ;
2104 PyObject
* obj0
= 0 ;
2105 PyObject
* obj1
= 0 ;
2106 PyObject
* obj2
= 0 ;
2108 (char *) "self",(char *) "self",(char *) "_class", NULL
2111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2112 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlSubclassFactory
,
2113 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2118 (arg1
)->_setCallbackInfo(arg2
,arg3
);
2120 wxPyEndAllowThreads(__tstate
);
2121 if (PyErr_Occurred()) SWIG_fail
;
2123 Py_INCREF(Py_None
); resultobj
= Py_None
;
2130 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*, PyObject
*args
) {
2132 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2133 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
2135 return Py_BuildValue((char *)"");
2137 static PyObject
*_wrap_new_XmlProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2138 PyObject
*resultobj
;
2139 wxString
const &arg1_defvalue
= wxPyEmptyString
;
2140 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
2141 wxString
const &arg2_defvalue
= wxPyEmptyString
;
2142 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2143 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2144 wxXmlProperty
*result
;
2145 bool temp1
= false ;
2146 bool temp2
= false ;
2147 PyObject
* obj0
= 0 ;
2148 PyObject
* obj1
= 0 ;
2149 PyObject
* obj2
= 0 ;
2151 (char *) "name",(char *) "value",(char *) "next", NULL
2154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2157 arg1
= wxString_in_helper(obj0
);
2158 if (arg1
== NULL
) SWIG_fail
;
2164 arg2
= wxString_in_helper(obj1
);
2165 if (arg2
== NULL
) SWIG_fail
;
2170 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlProperty
,
2171 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2175 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2177 wxPyEndAllowThreads(__tstate
);
2178 if (PyErr_Occurred()) SWIG_fail
;
2180 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
2203 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
*resultobj
;
2205 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2207 PyObject
* obj0
= 0 ;
2209 (char *) "self", NULL
2212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2213 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2214 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2217 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2219 wxPyEndAllowThreads(__tstate
);
2220 if (PyErr_Occurred()) SWIG_fail
;
2224 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2226 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2235 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2236 PyObject
*resultobj
;
2237 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2239 PyObject
* obj0
= 0 ;
2241 (char *) "self", NULL
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2245 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2246 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2248 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2249 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2251 wxPyEndAllowThreads(__tstate
);
2252 if (PyErr_Occurred()) SWIG_fail
;
2256 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2258 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2267 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2268 PyObject
*resultobj
;
2269 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2270 wxXmlProperty
*result
;
2271 PyObject
* obj0
= 0 ;
2273 (char *) "self", NULL
2276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2277 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2278 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2281 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2283 wxPyEndAllowThreads(__tstate
);
2284 if (PyErr_Occurred()) SWIG_fail
;
2286 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2293 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2294 PyObject
*resultobj
;
2295 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2296 wxString
*arg2
= 0 ;
2297 bool temp2
= false ;
2298 PyObject
* obj0
= 0 ;
2299 PyObject
* obj1
= 0 ;
2301 (char *) "self",(char *) "name", NULL
2304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2305 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2306 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2308 arg2
= wxString_in_helper(obj1
);
2309 if (arg2
== NULL
) SWIG_fail
;
2313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2314 (arg1
)->SetName((wxString
const &)*arg2
);
2316 wxPyEndAllowThreads(__tstate
);
2317 if (PyErr_Occurred()) SWIG_fail
;
2319 Py_INCREF(Py_None
); resultobj
= Py_None
;
2334 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2335 PyObject
*resultobj
;
2336 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2337 wxString
*arg2
= 0 ;
2338 bool temp2
= false ;
2339 PyObject
* obj0
= 0 ;
2340 PyObject
* obj1
= 0 ;
2342 (char *) "self",(char *) "value", NULL
2345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2346 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2347 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2349 arg2
= wxString_in_helper(obj1
);
2350 if (arg2
== NULL
) SWIG_fail
;
2354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2355 (arg1
)->SetValue((wxString
const &)*arg2
);
2357 wxPyEndAllowThreads(__tstate
);
2358 if (PyErr_Occurred()) SWIG_fail
;
2360 Py_INCREF(Py_None
); resultobj
= Py_None
;
2375 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2376 PyObject
*resultobj
;
2377 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2378 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2379 PyObject
* obj0
= 0 ;
2380 PyObject
* obj1
= 0 ;
2382 (char *) "self",(char *) "next", NULL
2385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2386 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlProperty
,
2387 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2388 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2389 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2392 (arg1
)->SetNext(arg2
);
2394 wxPyEndAllowThreads(__tstate
);
2395 if (PyErr_Occurred()) SWIG_fail
;
2397 Py_INCREF(Py_None
); resultobj
= Py_None
;
2404 static PyObject
* XmlProperty_swigregister(PyObject
*, PyObject
*args
) {
2406 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2407 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2409 return Py_BuildValue((char *)"");
2411 static PyObject
*_wrap_new_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2412 PyObject
*resultobj
;
2413 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2414 int arg2
= (int) 0 ;
2415 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2416 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2417 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2418 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2419 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2420 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2422 bool temp3
= false ;
2423 bool temp4
= false ;
2424 PyObject
* obj0
= 0 ;
2425 PyObject
* obj1
= 0 ;
2426 PyObject
* obj2
= 0 ;
2427 PyObject
* obj3
= 0 ;
2428 PyObject
* obj4
= 0 ;
2429 PyObject
* obj5
= 0 ;
2431 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2436 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2437 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2440 arg2
= (int)SWIG_As_int(obj1
);
2441 if (PyErr_Occurred()) SWIG_fail
;
2445 arg3
= wxString_in_helper(obj2
);
2446 if (arg3
== NULL
) SWIG_fail
;
2452 arg4
= wxString_in_helper(obj3
);
2453 if (arg4
== NULL
) SWIG_fail
;
2458 if ((SWIG_ConvertPtr(obj4
,(void **)(&arg5
),SWIGTYPE_p_wxXmlProperty
,
2459 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2462 if ((SWIG_ConvertPtr(obj5
,(void **)(&arg6
),SWIGTYPE_p_wxXmlNode
,
2463 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2467 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2469 wxPyEndAllowThreads(__tstate
);
2470 if (PyErr_Occurred()) SWIG_fail
;
2472 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2495 static PyObject
*_wrap_delete_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2496 PyObject
*resultobj
;
2497 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2498 PyObject
* obj0
= 0 ;
2500 (char *) "self", NULL
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2504 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2505 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2510 wxPyEndAllowThreads(__tstate
);
2511 if (PyErr_Occurred()) SWIG_fail
;
2513 Py_INCREF(Py_None
); resultobj
= Py_None
;
2520 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2521 PyObject
*resultobj
;
2523 wxString
*arg2
= 0 ;
2524 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2525 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2527 bool temp2
= false ;
2528 bool temp3
= false ;
2529 PyObject
* obj0
= 0 ;
2530 PyObject
* obj1
= 0 ;
2531 PyObject
* obj2
= 0 ;
2533 (char *) "type",(char *) "name",(char *) "content", NULL
2536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2537 arg1
= (int)SWIG_As_int(obj0
);
2538 if (PyErr_Occurred()) SWIG_fail
;
2540 arg2
= wxString_in_helper(obj1
);
2541 if (arg2
== NULL
) SWIG_fail
;
2546 arg3
= wxString_in_helper(obj2
);
2547 if (arg3
== NULL
) SWIG_fail
;
2552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2553 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2555 wxPyEndAllowThreads(__tstate
);
2556 if (PyErr_Occurred()) SWIG_fail
;
2558 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
2581 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
*resultobj
;
2583 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2584 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2585 PyObject
* obj0
= 0 ;
2586 PyObject
* obj1
= 0 ;
2588 (char *) "self",(char *) "child", NULL
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2592 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2593 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2594 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2595 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2598 (arg1
)->AddChild(arg2
);
2600 wxPyEndAllowThreads(__tstate
);
2601 if (PyErr_Occurred()) SWIG_fail
;
2603 Py_INCREF(Py_None
); resultobj
= Py_None
;
2610 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
*resultobj
;
2612 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2613 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2614 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2615 PyObject
* obj0
= 0 ;
2616 PyObject
* obj1
= 0 ;
2617 PyObject
* obj2
= 0 ;
2619 (char *) "self",(char *) "child",(char *) "before_node", NULL
2622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2623 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2624 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2625 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2626 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2627 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
2628 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 (arg1
)->InsertChild(arg2
,arg3
);
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) SWIG_fail
;
2636 Py_INCREF(Py_None
); resultobj
= Py_None
;
2643 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
*resultobj
;
2645 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2646 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2648 PyObject
* obj0
= 0 ;
2649 PyObject
* obj1
= 0 ;
2651 (char *) "self",(char *) "child", NULL
2654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2655 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2656 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2657 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
2658 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2661 result
= (bool)(arg1
)->RemoveChild(arg2
);
2663 wxPyEndAllowThreads(__tstate
);
2664 if (PyErr_Occurred()) SWIG_fail
;
2667 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2675 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2676 PyObject
*resultobj
;
2677 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2678 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2679 PyObject
* obj0
= 0 ;
2680 PyObject
* obj1
= 0 ;
2682 (char *) "self",(char *) "prop", NULL
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2686 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2687 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2688 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
2689 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2692 (arg1
)->AddProperty(arg2
);
2694 wxPyEndAllowThreads(__tstate
);
2695 if (PyErr_Occurred()) SWIG_fail
;
2697 Py_INCREF(Py_None
); resultobj
= Py_None
;
2704 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
*resultobj
;
2706 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2707 wxString
*arg2
= 0 ;
2708 wxString
*arg3
= 0 ;
2709 bool temp2
= false ;
2710 bool temp3
= false ;
2711 PyObject
* obj0
= 0 ;
2712 PyObject
* obj1
= 0 ;
2713 PyObject
* obj2
= 0 ;
2715 (char *) "self",(char *) "name",(char *) "value", NULL
2718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2719 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2720 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2722 arg2
= wxString_in_helper(obj1
);
2723 if (arg2
== NULL
) SWIG_fail
;
2727 arg3
= wxString_in_helper(obj2
);
2728 if (arg3
== NULL
) SWIG_fail
;
2732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2733 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2735 wxPyEndAllowThreads(__tstate
);
2736 if (PyErr_Occurred()) SWIG_fail
;
2738 Py_INCREF(Py_None
); resultobj
= Py_None
;
2761 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2762 PyObject
*resultobj
;
2763 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2764 wxString
*arg2
= 0 ;
2766 bool temp2
= false ;
2767 PyObject
* obj0
= 0 ;
2768 PyObject
* obj1
= 0 ;
2770 (char *) "self",(char *) "name", NULL
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2774 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2775 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2777 arg2
= wxString_in_helper(obj1
);
2778 if (arg2
== NULL
) SWIG_fail
;
2782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2783 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2785 wxPyEndAllowThreads(__tstate
);
2786 if (PyErr_Occurred()) SWIG_fail
;
2789 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2805 static PyObject
*_wrap_XmlNode_GetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2806 PyObject
*resultobj
;
2807 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2809 PyObject
* obj0
= 0 ;
2811 (char *) "self", NULL
2814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2815 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2816 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2819 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2821 wxPyEndAllowThreads(__tstate
);
2822 if (PyErr_Occurred()) SWIG_fail
;
2824 resultobj
= SWIG_From_int((int)result
);
2831 static PyObject
*_wrap_XmlNode_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2832 PyObject
*resultobj
;
2833 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2835 PyObject
* obj0
= 0 ;
2837 (char *) "self", NULL
2840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2841 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2842 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2845 result
= ((wxXmlNode
const *)arg1
)->GetName();
2847 wxPyEndAllowThreads(__tstate
);
2848 if (PyErr_Occurred()) SWIG_fail
;
2852 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2854 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2863 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2864 PyObject
*resultobj
;
2865 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2867 PyObject
* obj0
= 0 ;
2869 (char *) "self", NULL
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2873 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2874 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2877 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2879 wxPyEndAllowThreads(__tstate
);
2880 if (PyErr_Occurred()) SWIG_fail
;
2884 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2886 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2895 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2896 PyObject
*resultobj
;
2897 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2899 PyObject
* obj0
= 0 ;
2901 (char *) "self", NULL
2904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2905 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2906 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2909 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2911 wxPyEndAllowThreads(__tstate
);
2912 if (PyErr_Occurred()) SWIG_fail
;
2914 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2921 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2922 PyObject
*resultobj
;
2923 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2925 PyObject
* obj0
= 0 ;
2927 (char *) "self", NULL
2930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2931 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2932 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2935 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2937 wxPyEndAllowThreads(__tstate
);
2938 if (PyErr_Occurred()) SWIG_fail
;
2940 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2947 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2948 PyObject
*resultobj
;
2949 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2951 PyObject
* obj0
= 0 ;
2953 (char *) "self", NULL
2956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2957 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2958 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2961 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2963 wxPyEndAllowThreads(__tstate
);
2964 if (PyErr_Occurred()) SWIG_fail
;
2966 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
2973 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2974 PyObject
*resultobj
;
2975 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2976 wxXmlProperty
*result
;
2977 PyObject
* obj0
= 0 ;
2979 (char *) "self", NULL
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2983 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
2984 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
2986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2987 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2989 wxPyEndAllowThreads(__tstate
);
2990 if (PyErr_Occurred()) SWIG_fail
;
2992 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
2999 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3000 PyObject
*resultobj
;
3001 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3002 wxString
*arg2
= 0 ;
3003 wxString
*arg3
= 0 ;
3005 bool temp2
= false ;
3006 bool temp3
= false ;
3007 PyObject
* obj0
= 0 ;
3008 PyObject
* obj1
= 0 ;
3009 PyObject
* obj2
= 0 ;
3011 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
3014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3015 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3016 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3018 arg2
= wxString_in_helper(obj1
);
3019 if (arg2
== NULL
) SWIG_fail
;
3023 arg3
= wxString_in_helper(obj2
);
3024 if (arg3
== NULL
) SWIG_fail
;
3028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3029 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3031 wxPyEndAllowThreads(__tstate
);
3032 if (PyErr_Occurred()) SWIG_fail
;
3036 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3038 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3063 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3064 PyObject
*resultobj
;
3065 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3066 wxString
*arg2
= 0 ;
3068 bool temp2
= false ;
3069 PyObject
* obj0
= 0 ;
3070 PyObject
* obj1
= 0 ;
3072 (char *) "self",(char *) "propName", NULL
3075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
3076 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3077 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3079 arg2
= wxString_in_helper(obj1
);
3080 if (arg2
== NULL
) SWIG_fail
;
3084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3085 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
3087 wxPyEndAllowThreads(__tstate
);
3088 if (PyErr_Occurred()) SWIG_fail
;
3091 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3107 static PyObject
*_wrap_XmlNode_SetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3108 PyObject
*resultobj
;
3109 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3111 PyObject
* obj0
= 0 ;
3112 PyObject
* obj1
= 0 ;
3114 (char *) "self",(char *) "type", NULL
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
3118 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3119 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3120 arg2
= (int)SWIG_As_int(obj1
);
3121 if (PyErr_Occurred()) SWIG_fail
;
3123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3124 (arg1
)->SetType((wxXmlNodeType
)arg2
);
3126 wxPyEndAllowThreads(__tstate
);
3127 if (PyErr_Occurred()) SWIG_fail
;
3129 Py_INCREF(Py_None
); resultobj
= Py_None
;
3136 static PyObject
*_wrap_XmlNode_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3137 PyObject
*resultobj
;
3138 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3139 wxString
*arg2
= 0 ;
3140 bool temp2
= false ;
3141 PyObject
* obj0
= 0 ;
3142 PyObject
* obj1
= 0 ;
3144 (char *) "self",(char *) "name", NULL
3147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3148 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3149 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3151 arg2
= wxString_in_helper(obj1
);
3152 if (arg2
== NULL
) SWIG_fail
;
3156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3157 (arg1
)->SetName((wxString
const &)*arg2
);
3159 wxPyEndAllowThreads(__tstate
);
3160 if (PyErr_Occurred()) SWIG_fail
;
3162 Py_INCREF(Py_None
); resultobj
= Py_None
;
3177 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3178 PyObject
*resultobj
;
3179 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3180 wxString
*arg2
= 0 ;
3181 bool temp2
= false ;
3182 PyObject
* obj0
= 0 ;
3183 PyObject
* obj1
= 0 ;
3185 (char *) "self",(char *) "con", NULL
3188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
3189 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3190 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3192 arg2
= wxString_in_helper(obj1
);
3193 if (arg2
== NULL
) SWIG_fail
;
3197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3198 (arg1
)->SetContent((wxString
const &)*arg2
);
3200 wxPyEndAllowThreads(__tstate
);
3201 if (PyErr_Occurred()) SWIG_fail
;
3203 Py_INCREF(Py_None
); resultobj
= Py_None
;
3218 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3219 PyObject
*resultobj
;
3220 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3221 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3222 PyObject
* obj0
= 0 ;
3223 PyObject
* obj1
= 0 ;
3225 (char *) "self",(char *) "parent", NULL
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3229 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3230 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3231 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3232 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3235 (arg1
)->SetParent(arg2
);
3237 wxPyEndAllowThreads(__tstate
);
3238 if (PyErr_Occurred()) SWIG_fail
;
3240 Py_INCREF(Py_None
); resultobj
= Py_None
;
3247 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3248 PyObject
*resultobj
;
3249 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3250 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3251 PyObject
* obj0
= 0 ;
3252 PyObject
* obj1
= 0 ;
3254 (char *) "self",(char *) "next", NULL
3257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3258 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3259 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3260 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3261 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3264 (arg1
)->SetNext(arg2
);
3266 wxPyEndAllowThreads(__tstate
);
3267 if (PyErr_Occurred()) SWIG_fail
;
3269 Py_INCREF(Py_None
); resultobj
= Py_None
;
3276 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3277 PyObject
*resultobj
;
3278 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3279 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3280 PyObject
* obj0
= 0 ;
3281 PyObject
* obj1
= 0 ;
3283 (char *) "self",(char *) "child", NULL
3286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3287 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3288 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3289 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3290 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3293 (arg1
)->SetChildren(arg2
);
3295 wxPyEndAllowThreads(__tstate
);
3296 if (PyErr_Occurred()) SWIG_fail
;
3298 Py_INCREF(Py_None
); resultobj
= Py_None
;
3305 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3306 PyObject
*resultobj
;
3307 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3308 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3309 PyObject
* obj0
= 0 ;
3310 PyObject
* obj1
= 0 ;
3312 (char *) "self",(char *) "prop", NULL
3315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3316 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlNode
,
3317 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3318 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlProperty
,
3319 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3322 (arg1
)->SetProperties(arg2
);
3324 wxPyEndAllowThreads(__tstate
);
3325 if (PyErr_Occurred()) SWIG_fail
;
3327 Py_INCREF(Py_None
); resultobj
= Py_None
;
3334 static PyObject
* XmlNode_swigregister(PyObject
*, PyObject
*args
) {
3336 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3337 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3339 return Py_BuildValue((char *)"");
3341 static PyObject
*_wrap_new_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3342 PyObject
*resultobj
;
3343 wxString
*arg1
= 0 ;
3344 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3345 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3346 wxXmlDocument
*result
;
3347 bool temp1
= false ;
3348 bool temp2
= false ;
3349 PyObject
* obj0
= 0 ;
3350 PyObject
* obj1
= 0 ;
3352 (char *) "filename",(char *) "encoding", NULL
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3357 arg1
= wxString_in_helper(obj0
);
3358 if (arg1
== NULL
) SWIG_fail
;
3363 arg2
= wxString_in_helper(obj1
);
3364 if (arg2
== NULL
) SWIG_fail
;
3369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3370 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3372 wxPyEndAllowThreads(__tstate
);
3373 if (PyErr_Occurred()) SWIG_fail
;
3375 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3398 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3399 PyObject
*resultobj
;
3400 wxInputStream
*arg1
= 0 ;
3401 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3402 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3403 wxXmlDocument
*result
;
3404 wxPyInputStream
*temp1
;
3406 bool temp2
= false ;
3407 PyObject
* obj0
= 0 ;
3408 PyObject
* obj1
= 0 ;
3410 (char *) "stream",(char *) "encoding", NULL
3413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3415 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3416 arg1
= temp1
->m_wxis
;
3419 PyErr_Clear(); // clear the failure of the wxPyConvert above
3420 arg1
= wxPyCBInputStream_create(obj0
, false);
3422 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3430 arg2
= wxString_in_helper(obj1
);
3431 if (arg2
== NULL
) SWIG_fail
;
3436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3437 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3439 wxPyEndAllowThreads(__tstate
);
3440 if (PyErr_Occurred()) SWIG_fail
;
3442 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3465 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3466 PyObject
*resultobj
;
3467 wxXmlDocument
*result
;
3472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3475 result
= (wxXmlDocument
*)new wxXmlDocument();
3477 wxPyEndAllowThreads(__tstate
);
3478 if (PyErr_Occurred()) SWIG_fail
;
3480 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
3487 static PyObject
*_wrap_delete_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
*resultobj
;
3489 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3490 PyObject
* obj0
= 0 ;
3492 (char *) "self", NULL
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3496 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3497 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3502 wxPyEndAllowThreads(__tstate
);
3503 if (PyErr_Occurred()) SWIG_fail
;
3505 Py_INCREF(Py_None
); resultobj
= Py_None
;
3512 static PyObject
*_wrap_XmlDocument_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3513 PyObject
*resultobj
;
3514 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3515 wxString
*arg2
= 0 ;
3516 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3517 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3519 bool temp2
= false ;
3520 bool temp3
= false ;
3521 PyObject
* obj0
= 0 ;
3522 PyObject
* obj1
= 0 ;
3523 PyObject
* obj2
= 0 ;
3525 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3529 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3530 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3532 arg2
= wxString_in_helper(obj1
);
3533 if (arg2
== NULL
) SWIG_fail
;
3538 arg3
= wxString_in_helper(obj2
);
3539 if (arg3
== NULL
) SWIG_fail
;
3544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3545 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3547 wxPyEndAllowThreads(__tstate
);
3548 if (PyErr_Occurred()) SWIG_fail
;
3551 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3575 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3576 PyObject
*resultobj
;
3577 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3578 wxInputStream
*arg2
= 0 ;
3579 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3580 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3582 wxPyInputStream
*temp2
;
3584 bool temp3
= false ;
3585 PyObject
* obj0
= 0 ;
3586 PyObject
* obj1
= 0 ;
3587 PyObject
* obj2
= 0 ;
3589 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3593 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3594 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3596 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3597 arg2
= temp2
->m_wxis
;
3600 PyErr_Clear(); // clear the failure of the wxPyConvert above
3601 arg2
= wxPyCBInputStream_create(obj1
, false);
3603 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3611 arg3
= wxString_in_helper(obj2
);
3612 if (arg3
== NULL
) SWIG_fail
;
3617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3618 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3620 wxPyEndAllowThreads(__tstate
);
3621 if (PyErr_Occurred()) SWIG_fail
;
3624 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3648 static PyObject
*_wrap_XmlDocument_Save(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
*resultobj
;
3650 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3651 wxString
*arg2
= 0 ;
3653 bool temp2
= false ;
3654 PyObject
* obj0
= 0 ;
3655 PyObject
* obj1
= 0 ;
3657 (char *) "self",(char *) "filename", NULL
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3661 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3662 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3664 arg2
= wxString_in_helper(obj1
);
3665 if (arg2
== NULL
) SWIG_fail
;
3669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3670 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3672 wxPyEndAllowThreads(__tstate
);
3673 if (PyErr_Occurred()) SWIG_fail
;
3676 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3692 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3693 PyObject
*resultobj
;
3694 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3695 wxOutputStream
*arg2
= 0 ;
3697 PyObject
* obj0
= 0 ;
3698 PyObject
* obj1
= 0 ;
3700 (char *) "self",(char *) "stream", NULL
3703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3704 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3705 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3706 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxOutputStream
,
3707 SWIG_POINTER_EXCEPTION
| 0)) == -1)
3710 PyErr_SetString(PyExc_TypeError
,"null reference");
3714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3715 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3717 wxPyEndAllowThreads(__tstate
);
3718 if (PyErr_Occurred()) SWIG_fail
;
3721 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3729 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3730 PyObject
*resultobj
;
3731 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3733 PyObject
* obj0
= 0 ;
3735 (char *) "self", NULL
3738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3739 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3740 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3743 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3745 wxPyEndAllowThreads(__tstate
);
3746 if (PyErr_Occurred()) SWIG_fail
;
3749 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3757 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3758 PyObject
*resultobj
;
3759 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3761 PyObject
* obj0
= 0 ;
3763 (char *) "self", NULL
3766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3767 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3768 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3771 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3773 wxPyEndAllowThreads(__tstate
);
3774 if (PyErr_Occurred()) SWIG_fail
;
3776 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
3783 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3784 PyObject
*resultobj
;
3785 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3787 PyObject
* obj0
= 0 ;
3789 (char *) "self", NULL
3792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3793 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3794 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3797 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3799 wxPyEndAllowThreads(__tstate
);
3800 if (PyErr_Occurred()) SWIG_fail
;
3804 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3806 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3815 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3816 PyObject
*resultobj
;
3817 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3819 PyObject
* obj0
= 0 ;
3821 (char *) "self", NULL
3824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3825 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3826 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3829 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3831 wxPyEndAllowThreads(__tstate
);
3832 if (PyErr_Occurred()) SWIG_fail
;
3836 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3838 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3847 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3848 PyObject
*resultobj
;
3849 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3850 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3851 PyObject
* obj0
= 0 ;
3852 PyObject
* obj1
= 0 ;
3854 (char *) "self",(char *) "node", NULL
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3858 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3859 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3860 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
3861 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3864 (arg1
)->SetRoot(arg2
);
3866 wxPyEndAllowThreads(__tstate
);
3867 if (PyErr_Occurred()) SWIG_fail
;
3869 Py_INCREF(Py_None
); resultobj
= Py_None
;
3876 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
*resultobj
;
3878 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3879 wxString
*arg2
= 0 ;
3880 bool temp2
= false ;
3881 PyObject
* obj0
= 0 ;
3882 PyObject
* obj1
= 0 ;
3884 (char *) "self",(char *) "version", NULL
3887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3888 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3889 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3891 arg2
= wxString_in_helper(obj1
);
3892 if (arg2
== NULL
) SWIG_fail
;
3896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3897 (arg1
)->SetVersion((wxString
const &)*arg2
);
3899 wxPyEndAllowThreads(__tstate
);
3900 if (PyErr_Occurred()) SWIG_fail
;
3902 Py_INCREF(Py_None
); resultobj
= Py_None
;
3917 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3918 PyObject
*resultobj
;
3919 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3920 wxString
*arg2
= 0 ;
3921 bool temp2
= false ;
3922 PyObject
* obj0
= 0 ;
3923 PyObject
* obj1
= 0 ;
3925 (char *) "self",(char *) "encoding", NULL
3928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3929 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxXmlDocument
,
3930 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
3932 arg2
= wxString_in_helper(obj1
);
3933 if (arg2
== NULL
) SWIG_fail
;
3937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3938 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3940 wxPyEndAllowThreads(__tstate
);
3941 if (PyErr_Occurred()) SWIG_fail
;
3943 Py_INCREF(Py_None
); resultobj
= Py_None
;
3958 static PyObject
* XmlDocument_swigregister(PyObject
*, PyObject
*args
) {
3960 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3961 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3963 return Py_BuildValue((char *)"");
3965 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3966 PyObject
*resultobj
;
3967 wxPyXmlResourceHandler
*result
;
3972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3975 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3977 wxPyEndAllowThreads(__tstate
);
3978 if (PyErr_Occurred()) SWIG_fail
;
3980 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3987 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3988 PyObject
*resultobj
;
3989 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3990 PyObject
*arg2
= (PyObject
*) 0 ;
3991 PyObject
*arg3
= (PyObject
*) 0 ;
3992 PyObject
* obj0
= 0 ;
3993 PyObject
* obj1
= 0 ;
3994 PyObject
* obj2
= 0 ;
3996 (char *) "self",(char *) "self",(char *) "_class", NULL
3999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4000 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4001 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4006 (arg1
)->_setCallbackInfo(arg2
,arg3
);
4008 wxPyEndAllowThreads(__tstate
);
4009 if (PyErr_Occurred()) SWIG_fail
;
4011 Py_INCREF(Py_None
); resultobj
= Py_None
;
4018 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4019 PyObject
*resultobj
;
4020 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4021 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4022 wxObject
*arg3
= (wxObject
*) 0 ;
4023 wxObject
*arg4
= (wxObject
*) 0 ;
4025 PyObject
* obj0
= 0 ;
4026 PyObject
* obj1
= 0 ;
4027 PyObject
* obj2
= 0 ;
4028 PyObject
* obj3
= 0 ;
4030 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
4033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4034 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4035 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4036 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4037 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4038 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
4039 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4040 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
4041 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4044 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
4046 wxPyEndAllowThreads(__tstate
);
4047 if (PyErr_Occurred()) SWIG_fail
;
4050 resultobj
= wxPyMake_wxObject(result
, 0);
4058 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4059 PyObject
*resultobj
;
4060 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4061 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
4062 PyObject
* obj0
= 0 ;
4063 PyObject
* obj1
= 0 ;
4065 (char *) "self",(char *) "res", NULL
4068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
4069 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4070 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4071 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlResource
,
4072 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4075 (arg1
)->SetParentResource(arg2
);
4077 wxPyEndAllowThreads(__tstate
);
4078 if (PyErr_Occurred()) SWIG_fail
;
4080 Py_INCREF(Py_None
); resultobj
= Py_None
;
4087 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
*resultobj
;
4089 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4090 wxXmlResource
*result
;
4091 PyObject
* obj0
= 0 ;
4093 (char *) "self", NULL
4096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
4097 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4098 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4101 result
= (wxXmlResource
*)(arg1
)->GetResource();
4103 wxPyEndAllowThreads(__tstate
);
4104 if (PyErr_Occurred()) SWIG_fail
;
4106 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
4113 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4114 PyObject
*resultobj
;
4115 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4117 PyObject
* obj0
= 0 ;
4119 (char *) "self", NULL
4122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
4123 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4124 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4127 result
= (wxXmlNode
*)(arg1
)->GetNode();
4129 wxPyEndAllowThreads(__tstate
);
4130 if (PyErr_Occurred()) SWIG_fail
;
4132 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4139 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*, 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_GetClass",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
= (arg1
)->GetClass();
4155 wxPyEndAllowThreads(__tstate
);
4156 if (PyErr_Occurred()) SWIG_fail
;
4160 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4162 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4171 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4172 PyObject
*resultobj
;
4173 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4175 PyObject
* obj0
= 0 ;
4177 (char *) "self", NULL
4180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
4181 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4182 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4185 result
= (wxObject
*)(arg1
)->GetParent();
4187 wxPyEndAllowThreads(__tstate
);
4188 if (PyErr_Occurred()) SWIG_fail
;
4191 resultobj
= wxPyMake_wxObject(result
, 0);
4199 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
*resultobj
;
4201 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4203 PyObject
* obj0
= 0 ;
4205 (char *) "self", NULL
4208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
4209 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4210 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4213 result
= (wxObject
*)(arg1
)->GetInstance();
4215 wxPyEndAllowThreads(__tstate
);
4216 if (PyErr_Occurred()) SWIG_fail
;
4219 resultobj
= wxPyMake_wxObject(result
, 0);
4227 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4228 PyObject
*resultobj
;
4229 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4231 PyObject
* obj0
= 0 ;
4233 (char *) "self", NULL
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
4237 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4238 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4241 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4243 wxPyEndAllowThreads(__tstate
);
4244 if (PyErr_Occurred()) SWIG_fail
;
4247 resultobj
= wxPyMake_wxObject(result
, 0);
4255 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4256 PyObject
*resultobj
;
4257 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4258 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4259 wxString
*arg3
= 0 ;
4261 bool temp3
= false ;
4262 PyObject
* obj0
= 0 ;
4263 PyObject
* obj1
= 0 ;
4264 PyObject
* obj2
= 0 ;
4266 (char *) "self",(char *) "node",(char *) "classname", NULL
4269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4270 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4271 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4272 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4273 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4275 arg3
= wxString_in_helper(obj2
);
4276 if (arg3
== NULL
) SWIG_fail
;
4280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4281 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4283 wxPyEndAllowThreads(__tstate
);
4284 if (PyErr_Occurred()) SWIG_fail
;
4287 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4303 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4304 PyObject
*resultobj
;
4305 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4306 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4308 PyObject
* obj0
= 0 ;
4309 PyObject
* obj1
= 0 ;
4311 (char *) "self",(char *) "node", NULL
4314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4315 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4316 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4317 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
4318 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4321 result
= (arg1
)->GetNodeContent(arg2
);
4323 wxPyEndAllowThreads(__tstate
);
4324 if (PyErr_Occurred()) SWIG_fail
;
4328 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4330 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4339 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4340 PyObject
*resultobj
;
4341 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4342 wxString
*arg2
= 0 ;
4344 bool temp2
= false ;
4345 PyObject
* obj0
= 0 ;
4346 PyObject
* obj1
= 0 ;
4348 (char *) "self",(char *) "param", NULL
4351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4352 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4353 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4355 arg2
= wxString_in_helper(obj1
);
4356 if (arg2
== NULL
) SWIG_fail
;
4360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4361 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4363 wxPyEndAllowThreads(__tstate
);
4364 if (PyErr_Occurred()) SWIG_fail
;
4367 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4383 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4384 PyObject
*resultobj
;
4385 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4386 wxString
*arg2
= 0 ;
4388 bool temp2
= false ;
4389 PyObject
* obj0
= 0 ;
4390 PyObject
* obj1
= 0 ;
4392 (char *) "self",(char *) "param", NULL
4395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4396 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4397 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4399 arg2
= wxString_in_helper(obj1
);
4400 if (arg2
== NULL
) SWIG_fail
;
4404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4405 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4407 wxPyEndAllowThreads(__tstate
);
4408 if (PyErr_Occurred()) SWIG_fail
;
4410 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4425 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4426 PyObject
*resultobj
;
4427 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4428 wxString
*arg2
= 0 ;
4430 bool temp2
= false ;
4431 PyObject
* obj0
= 0 ;
4432 PyObject
* obj1
= 0 ;
4434 (char *) "self",(char *) "param", NULL
4437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4438 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4439 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4441 arg2
= wxString_in_helper(obj1
);
4442 if (arg2
== NULL
) SWIG_fail
;
4446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4447 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4449 wxPyEndAllowThreads(__tstate
);
4450 if (PyErr_Occurred()) SWIG_fail
;
4454 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4456 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4473 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4474 PyObject
*resultobj
;
4475 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4476 wxString
*arg2
= 0 ;
4478 bool temp2
= false ;
4479 PyObject
* obj0
= 0 ;
4480 PyObject
* obj1
= 0 ;
4481 PyObject
* obj2
= 0 ;
4483 (char *) "self",(char *) "name",(char *) "value", NULL
4486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4487 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4488 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4490 arg2
= wxString_in_helper(obj1
);
4491 if (arg2
== NULL
) SWIG_fail
;
4494 arg3
= (int)SWIG_As_int(obj2
);
4495 if (PyErr_Occurred()) SWIG_fail
;
4497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4498 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4500 wxPyEndAllowThreads(__tstate
);
4501 if (PyErr_Occurred()) SWIG_fail
;
4503 Py_INCREF(Py_None
); resultobj
= Py_None
;
4518 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4519 PyObject
*resultobj
;
4520 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4521 PyObject
* obj0
= 0 ;
4523 (char *) "self", NULL
4526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4527 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4528 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4531 (arg1
)->AddWindowStyles();
4533 wxPyEndAllowThreads(__tstate
);
4534 if (PyErr_Occurred()) SWIG_fail
;
4536 Py_INCREF(Py_None
); resultobj
= Py_None
;
4543 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4544 PyObject
*resultobj
;
4545 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4546 wxString
const &arg2_defvalue
= wxPyStyleString
;
4547 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4548 int arg3
= (int) 0 ;
4550 bool temp2
= false ;
4551 PyObject
* obj0
= 0 ;
4552 PyObject
* obj1
= 0 ;
4553 PyObject
* obj2
= 0 ;
4555 (char *) "self",(char *) "param",(char *) "defaults", NULL
4558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4559 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4560 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4563 arg2
= wxString_in_helper(obj1
);
4564 if (arg2
== NULL
) SWIG_fail
;
4569 arg3
= (int)SWIG_As_int(obj2
);
4570 if (PyErr_Occurred()) SWIG_fail
;
4573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4574 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4576 wxPyEndAllowThreads(__tstate
);
4577 if (PyErr_Occurred()) SWIG_fail
;
4579 resultobj
= SWIG_From_int((int)result
);
4594 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4595 PyObject
*resultobj
;
4596 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4597 wxString
*arg2
= 0 ;
4598 bool arg3
= (bool) true ;
4600 bool temp2
= false ;
4601 PyObject
* obj0
= 0 ;
4602 PyObject
* obj1
= 0 ;
4603 PyObject
* obj2
= 0 ;
4605 (char *) "self",(char *) "param",(char *) "translate", NULL
4608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4609 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4610 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4612 arg2
= wxString_in_helper(obj1
);
4613 if (arg2
== NULL
) SWIG_fail
;
4617 arg3
= (bool)SWIG_As_bool(obj2
);
4618 if (PyErr_Occurred()) SWIG_fail
;
4621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4622 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4624 wxPyEndAllowThreads(__tstate
);
4625 if (PyErr_Occurred()) SWIG_fail
;
4629 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4631 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4648 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4649 PyObject
*resultobj
;
4650 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4652 PyObject
* obj0
= 0 ;
4654 (char *) "self", NULL
4657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4658 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4659 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4662 result
= (int)(arg1
)->GetID();
4664 wxPyEndAllowThreads(__tstate
);
4665 if (PyErr_Occurred()) SWIG_fail
;
4667 resultobj
= SWIG_From_int((int)result
);
4674 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4675 PyObject
*resultobj
;
4676 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4678 PyObject
* obj0
= 0 ;
4680 (char *) "self", NULL
4683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4684 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4685 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4688 result
= (arg1
)->GetName();
4690 wxPyEndAllowThreads(__tstate
);
4691 if (PyErr_Occurred()) SWIG_fail
;
4695 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4697 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4706 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4707 PyObject
*resultobj
;
4708 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4709 wxString
*arg2
= 0 ;
4710 bool arg3
= (bool) false ;
4712 bool temp2
= false ;
4713 PyObject
* obj0
= 0 ;
4714 PyObject
* obj1
= 0 ;
4715 PyObject
* obj2
= 0 ;
4717 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4721 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4722 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4724 arg2
= wxString_in_helper(obj1
);
4725 if (arg2
== NULL
) SWIG_fail
;
4729 arg3
= (bool)SWIG_As_bool(obj2
);
4730 if (PyErr_Occurred()) SWIG_fail
;
4733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4734 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4736 wxPyEndAllowThreads(__tstate
);
4737 if (PyErr_Occurred()) SWIG_fail
;
4740 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4756 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4757 PyObject
*resultobj
;
4758 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4759 wxString
*arg2
= 0 ;
4760 long arg3
= (long) 0 ;
4762 bool temp2
= false ;
4763 PyObject
* obj0
= 0 ;
4764 PyObject
* obj1
= 0 ;
4765 PyObject
* obj2
= 0 ;
4767 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4771 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4772 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4774 arg2
= wxString_in_helper(obj1
);
4775 if (arg2
== NULL
) SWIG_fail
;
4779 arg3
= (long)SWIG_As_long(obj2
);
4780 if (PyErr_Occurred()) SWIG_fail
;
4783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4784 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4786 wxPyEndAllowThreads(__tstate
);
4787 if (PyErr_Occurred()) SWIG_fail
;
4789 resultobj
= SWIG_From_long((long)result
);
4804 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4805 PyObject
*resultobj
;
4806 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4807 wxString
*arg2
= 0 ;
4809 bool temp2
= false ;
4810 PyObject
* obj0
= 0 ;
4811 PyObject
* obj1
= 0 ;
4813 (char *) "self",(char *) "param", NULL
4816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4817 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4818 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4820 arg2
= wxString_in_helper(obj1
);
4821 if (arg2
== NULL
) SWIG_fail
;
4825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4826 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4828 wxPyEndAllowThreads(__tstate
);
4829 if (PyErr_Occurred()) SWIG_fail
;
4832 wxColour
* resultptr
;
4833 resultptr
= new wxColour((wxColour
&) result
);
4834 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
4850 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4851 PyObject
*resultobj
;
4852 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4853 wxString
const &arg2_defvalue
= wxPySizeString
;
4854 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4856 bool temp2
= false ;
4857 PyObject
* obj0
= 0 ;
4858 PyObject
* obj1
= 0 ;
4860 (char *) "self",(char *) "param", NULL
4863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4864 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4865 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4868 arg2
= wxString_in_helper(obj1
);
4869 if (arg2
== NULL
) SWIG_fail
;
4874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4875 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4877 wxPyEndAllowThreads(__tstate
);
4878 if (PyErr_Occurred()) SWIG_fail
;
4882 resultptr
= new wxSize((wxSize
&) result
);
4883 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
4899 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4900 PyObject
*resultobj
;
4901 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4902 wxString
const &arg2_defvalue
= wxPyPosString
;
4903 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4905 bool temp2
= false ;
4906 PyObject
* obj0
= 0 ;
4907 PyObject
* obj1
= 0 ;
4909 (char *) "self",(char *) "param", NULL
4912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4913 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4914 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4917 arg2
= wxString_in_helper(obj1
);
4918 if (arg2
== NULL
) SWIG_fail
;
4923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4924 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4926 wxPyEndAllowThreads(__tstate
);
4927 if (PyErr_Occurred()) SWIG_fail
;
4930 wxPoint
* resultptr
;
4931 resultptr
= new wxPoint((wxPoint
&) result
);
4932 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
4948 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4949 PyObject
*resultobj
;
4950 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4951 wxString
*arg2
= 0 ;
4952 int arg3
= (int) 0 ;
4954 bool temp2
= false ;
4955 PyObject
* obj0
= 0 ;
4956 PyObject
* obj1
= 0 ;
4957 PyObject
* obj2
= 0 ;
4959 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4963 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
4964 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
4966 arg2
= wxString_in_helper(obj1
);
4967 if (arg2
== NULL
) SWIG_fail
;
4971 arg3
= (int)SWIG_As_int(obj2
);
4972 if (PyErr_Occurred()) SWIG_fail
;
4975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4976 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4978 wxPyEndAllowThreads(__tstate
);
4979 if (PyErr_Occurred()) SWIG_fail
;
4981 resultobj
= SWIG_From_int((int)result
);
4996 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4997 PyObject
*resultobj
;
4998 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4999 wxString
const &arg2_defvalue
= wxPyBitmapString
;
5000 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5001 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5002 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5003 wxSize arg4
= (wxSize
) wxDefaultSize
;
5005 bool temp2
= false ;
5007 PyObject
* obj0
= 0 ;
5008 PyObject
* obj1
= 0 ;
5009 PyObject
* obj2
= 0 ;
5010 PyObject
* obj3
= 0 ;
5012 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5016 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5017 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5020 arg2
= wxString_in_helper(obj1
);
5021 if (arg2
== NULL
) SWIG_fail
;
5026 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5027 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5030 PyErr_SetString(PyExc_TypeError
,"null reference");
5035 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5036 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5041 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5043 wxPyEndAllowThreads(__tstate
);
5044 if (PyErr_Occurred()) SWIG_fail
;
5047 wxBitmap
* resultptr
;
5048 resultptr
= new wxBitmap((wxBitmap
&) result
);
5049 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
5065 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
*resultobj
;
5067 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5068 wxString
const &arg2_defvalue
= wxPyIconString
;
5069 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5070 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
5071 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
5072 wxSize arg4
= (wxSize
) wxDefaultSize
;
5074 bool temp2
= false ;
5076 PyObject
* obj0
= 0 ;
5077 PyObject
* obj1
= 0 ;
5078 PyObject
* obj2
= 0 ;
5079 PyObject
* obj3
= 0 ;
5081 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
5084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5085 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5086 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5089 arg2
= wxString_in_helper(obj1
);
5090 if (arg2
== NULL
) SWIG_fail
;
5095 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxArtClient
,
5096 SWIG_POINTER_EXCEPTION
| 0)) == -1)
5099 PyErr_SetString(PyExc_TypeError
,"null reference");
5104 if ((SWIG_ConvertPtr(obj3
,(void **)(&argp4
),SWIGTYPE_p_wxSize
,
5105 SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
5109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5110 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
5112 wxPyEndAllowThreads(__tstate
);
5113 if (PyErr_Occurred()) SWIG_fail
;
5117 resultptr
= new wxIcon((wxIcon
&) result
);
5118 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
5134 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5135 PyObject
*resultobj
;
5136 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5137 wxString
const &arg2_defvalue
= wxPyFontString
;
5138 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5140 bool temp2
= false ;
5141 PyObject
* obj0
= 0 ;
5142 PyObject
* obj1
= 0 ;
5144 (char *) "self",(char *) "param", NULL
5147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
5148 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5149 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5152 arg2
= wxString_in_helper(obj1
);
5153 if (arg2
== NULL
) SWIG_fail
;
5158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5159 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
5161 wxPyEndAllowThreads(__tstate
);
5162 if (PyErr_Occurred()) SWIG_fail
;
5166 resultptr
= new wxFont((wxFont
&) result
);
5167 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
5183 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
*resultobj
;
5185 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5186 wxWindow
*arg2
= (wxWindow
*) 0 ;
5187 PyObject
* obj0
= 0 ;
5188 PyObject
* obj1
= 0 ;
5190 (char *) "self",(char *) "wnd", NULL
5193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
5194 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5195 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5196 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxWindow
,
5197 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5200 (arg1
)->SetupWindow(arg2
);
5202 wxPyEndAllowThreads(__tstate
);
5203 if (PyErr_Occurred()) SWIG_fail
;
5205 Py_INCREF(Py_None
); resultobj
= Py_None
;
5212 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5213 PyObject
*resultobj
;
5214 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5215 wxObject
*arg2
= (wxObject
*) 0 ;
5216 bool arg3
= (bool) false ;
5217 PyObject
* obj0
= 0 ;
5218 PyObject
* obj1
= 0 ;
5219 PyObject
* obj2
= 0 ;
5221 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
5224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5225 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5226 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5227 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5228 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5230 arg3
= (bool)SWIG_As_bool(obj2
);
5231 if (PyErr_Occurred()) SWIG_fail
;
5234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5235 (arg1
)->CreateChildren(arg2
,arg3
);
5237 wxPyEndAllowThreads(__tstate
);
5238 if (PyErr_Occurred()) SWIG_fail
;
5240 Py_INCREF(Py_None
); resultobj
= Py_None
;
5247 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
*resultobj
;
5249 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5250 wxObject
*arg2
= (wxObject
*) 0 ;
5251 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
5252 PyObject
* obj0
= 0 ;
5253 PyObject
* obj1
= 0 ;
5254 PyObject
* obj2
= 0 ;
5256 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
5259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5260 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5261 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5262 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxObject
,
5263 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5265 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxXmlNode
,
5266 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5270 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5272 wxPyEndAllowThreads(__tstate
);
5273 if (PyErr_Occurred()) SWIG_fail
;
5275 Py_INCREF(Py_None
); resultobj
= Py_None
;
5282 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5283 PyObject
*resultobj
;
5284 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5285 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5286 wxObject
*arg3
= (wxObject
*) 0 ;
5287 wxObject
*arg4
= (wxObject
*) NULL
;
5289 PyObject
* obj0
= 0 ;
5290 PyObject
* obj1
= 0 ;
5291 PyObject
* obj2
= 0 ;
5292 PyObject
* obj3
= 0 ;
5294 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5298 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5299 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5300 if ((SWIG_ConvertPtr(obj1
,(void **)(&arg2
),SWIGTYPE_p_wxXmlNode
,
5301 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5302 if ((SWIG_ConvertPtr(obj2
,(void **)(&arg3
),SWIGTYPE_p_wxObject
,
5303 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5305 if ((SWIG_ConvertPtr(obj3
,(void **)(&arg4
),SWIGTYPE_p_wxObject
,
5306 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5310 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5312 wxPyEndAllowThreads(__tstate
);
5313 if (PyErr_Occurred()) SWIG_fail
;
5316 resultobj
= wxPyMake_wxObject(result
, 0);
5324 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5325 PyObject
*resultobj
;
5326 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5327 wxFileSystem
*result
;
5328 PyObject
* obj0
= 0 ;
5330 (char *) "self", NULL
5333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5334 if ((SWIG_ConvertPtr(obj0
,(void **)(&arg1
),SWIGTYPE_p_wxPyXmlResourceHandler
,
5335 SWIG_POINTER_EXCEPTION
| 0)) == -1) SWIG_fail
;
5337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5339 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5340 result
= (wxFileSystem
*) &_result_ref
;
5343 wxPyEndAllowThreads(__tstate
);
5344 if (PyErr_Occurred()) SWIG_fail
;
5346 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
5353 static PyObject
* XmlResourceHandler_swigregister(PyObject
*, PyObject
*args
) {
5355 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5356 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5358 return Py_BuildValue((char *)"");
5360 static PyMethodDef SwigMethods
[] = {
5361 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5362 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5363 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5364 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5365 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5366 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5367 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5368 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5369 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5370 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5371 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5372 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5373 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5374 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5375 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5376 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5377 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5378 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5379 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5380 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5381 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5382 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5383 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5384 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5385 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5386 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5387 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5388 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5389 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5390 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5391 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5392 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5393 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
5394 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5395 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5396 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
5397 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5398 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5399 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5400 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5401 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5402 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5403 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5404 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
5405 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5406 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5407 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5408 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5409 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5410 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5411 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5412 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5413 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5414 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5415 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5416 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5417 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5418 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5419 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5420 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5421 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5422 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5423 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5424 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5425 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5426 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5427 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5428 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5429 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5430 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
5431 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5432 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5433 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5434 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5435 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5436 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5437 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5438 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5439 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5440 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5441 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5442 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5443 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5444 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5445 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5446 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
5447 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5448 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5449 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5450 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5451 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5452 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5453 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5454 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5455 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5456 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5457 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5458 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5459 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5460 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5461 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5462 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5463 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5464 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5465 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5466 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5467 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5468 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5469 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5470 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5471 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5472 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5473 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5474 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5475 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5476 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5477 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5478 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5479 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5480 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5481 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
5482 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
5483 { NULL
, NULL
, 0, NULL
}
5487 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5489 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5490 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5492 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5493 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5495 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5496 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5498 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5499 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5501 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5502 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5504 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5505 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5507 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5508 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5510 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5511 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5513 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5514 return (void *)((wxObject
*) ((wxSizer
*) x
));
5516 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5517 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5519 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5520 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5522 static void *_p_wxEventTo_p_wxObject(void *x
) {
5523 return (void *)((wxObject
*) ((wxEvent
*) x
));
5525 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5526 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5528 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5529 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5531 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5532 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5534 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5535 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5537 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5538 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5540 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5541 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5543 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5544 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5546 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5547 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5549 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5550 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5552 static void *_p_wxControlTo_p_wxObject(void *x
) {
5553 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5555 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5556 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5558 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5559 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5561 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5562 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5564 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5565 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5567 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5568 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5570 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5571 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5573 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5574 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5576 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5577 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5579 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5580 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5582 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5583 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5585 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5586 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5588 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5589 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5591 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5592 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5594 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5595 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5597 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5598 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5600 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5601 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5603 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5604 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5606 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5607 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5609 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5610 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5612 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5613 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5615 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5616 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5618 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5619 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5621 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5622 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5624 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5625 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5627 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5628 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5630 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5631 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5633 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5634 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5636 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5637 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5639 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5640 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5642 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5643 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5645 static void *_p_wxImageTo_p_wxObject(void *x
) {
5646 return (void *)((wxObject
*) ((wxImage
*) x
));
5648 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5649 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5651 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5652 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5654 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5655 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5657 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5658 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5660 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5661 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5663 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5664 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5666 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5667 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5669 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5670 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5672 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5673 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5675 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5676 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5678 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5679 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5681 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5682 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5684 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5685 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5687 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5688 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5690 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5691 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5693 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5694 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5696 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5697 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5699 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5700 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5702 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5703 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5705 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5706 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5708 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5709 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5711 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5712 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5714 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5715 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5717 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5718 return (void *)((wxWindow
*) ((wxControl
*) x
));
5720 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5721 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5723 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5724 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5726 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}};
5727 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}};
5728 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}};
5729 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}};
5730 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}};
5731 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}};
5732 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}};
5733 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}};
5734 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}};
5735 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}};
5736 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}};
5737 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}};
5738 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}};
5739 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}};
5740 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}};
5741 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}};
5742 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}};
5743 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}};
5744 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}};
5745 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}};
5746 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}};
5747 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}};
5749 static swig_type_info
*swig_types_initial
[] = {
5756 _swigt__p_wxArtClient
,
5758 _swigt__p_wxPyXmlSubclassFactory
,
5761 _swigt__p_wxXmlNode
,
5762 _swigt__p_wxInputStream
,
5763 _swigt__p_wxOutputStream
,
5764 _swigt__p_wxPyXmlResourceHandler
,
5765 _swigt__p_wxFileSystem
,
5766 _swigt__p_wxXmlProperty
,
5768 _swigt__p_wxXmlResource
,
5769 _swigt__p_wxXmlDocument
,
5776 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5778 static swig_const_info swig_const_table
[] = {
5779 {0, 0, 0, 0.0, 0, 0}};
5788 SWIGEXPORT(void) SWIG_init(void) {
5789 static PyObject
*SWIG_globals
= 0;
5790 static int typeinit
= 0;
5793 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5794 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5795 d
= PyModule_GetDict(m
);
5798 for (i
= 0; swig_types_initial
[i
]; i
++) {
5799 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5803 SWIG_InstallConstants(d
,swig_const_table
);
5805 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5806 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5807 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5808 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5809 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5810 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5811 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5812 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5813 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MAJOR
));
5814 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MINOR
));
5815 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_RELEASE
));
5816 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_REVISION
));
5817 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_From_int((int)wxXRC_USE_LOCALE
));
5818 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_From_int((int)wxXRC_NO_SUBCLASSING
));
5819 PyDict_SetItemString(d
,"XRC_NO_RELOADING", SWIG_From_int((int)wxXRC_NO_RELOADING
));
5820 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_From_int((int)wxXML_ELEMENT_NODE
));
5821 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_From_int((int)wxXML_ATTRIBUTE_NODE
));
5822 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_From_int((int)wxXML_TEXT_NODE
));
5823 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_From_int((int)wxXML_CDATA_SECTION_NODE
));
5824 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_From_int((int)wxXML_ENTITY_REF_NODE
));
5825 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_From_int((int)wxXML_ENTITY_NODE
));
5826 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_From_int((int)wxXML_PI_NODE
));
5827 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_From_int((int)wxXML_COMMENT_NODE
));
5828 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_DOCUMENT_NODE
));
5829 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int((int)wxXML_DOCUMENT_TYPE_NODE
));
5830 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int((int)wxXML_DOCUMENT_FRAG_NODE
));
5831 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_From_int((int)wxXML_NOTATION_NODE
));
5832 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_HTML_DOCUMENT_NODE
));
5835 wxXmlInitResourceModule();
5836 wxXmlResource::Get()->InitAllHandlers();