1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
52 /***********************************************************************
53 * common.swg for wxPython
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
60 ************************************************************************/
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
111 SWIGIMPORT(swig_type_info
*) SWIG_TypeRegister(swig_type_info
*);
112 SWIGIMPORT(swig_type_info
*) SWIG_TypeCheck(char *c
, swig_type_info
*);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info
*, void *);
114 SWIGIMPORT(swig_type_info
*) SWIG_TypeDynamicCast(swig_type_info
*, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info
*);
116 SWIGIMPORT(swig_type_info
*) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info
*, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
128 /***********************************************************************
129 * pyrun.swg for wxPython
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
136 ************************************************************************/
144 #define SWIG_STATIC_INLINE static inline
146 #define SWIG_STATIC_INLINE static
149 SWIG_STATIC_INLINE
long
150 SPyObj_AsLong(PyObject
* obj
)
152 return PyInt_Check(obj
) ? PyInt_AsLong(obj
) : PyLong_AsLong(obj
);
155 SWIG_STATIC_INLINE
unsigned long
156 SPyObj_AsUnsignedLong(PyObject
* obj
)
158 if (PyLong_Check(obj
)) {
159 return PyLong_AsUnsignedLong(obj
);
161 long i
= PyInt_AsLong(obj
);
162 if ( !PyErr_Occurred() && (i
< 0)) {
163 PyErr_SetString(PyExc_TypeError
, "negative value for unsigned type");
169 #if !defined(_MSC_VER)
170 SWIG_STATIC_INLINE PyObject
*
171 SPyObj_FromLongLong(long long value
)
173 return (value
> (long)(LONG_MAX
)) ?
174 PyLong_FromLongLong(value
) : PyInt_FromLong((long)value
);
178 SWIG_STATIC_INLINE PyObject
*
179 SPyObj_FromUnsignedLong(unsigned long value
)
181 return (value
> (unsigned long)(LONG_MAX
)) ?
182 PyLong_FromUnsignedLong(value
) : PyInt_FromLong((long)value
);
185 #if !defined(_MSC_VER)
186 SWIG_STATIC_INLINE PyObject
*
187 SPyObj_FromUnsignedLongLong(unsigned long long value
)
189 return (value
> (unsigned long long)(LONG_MAX
)) ?
190 PyLong_FromUnsignedLongLong(value
) : PyInt_FromLong((long)value
);
194 SWIG_STATIC_INLINE
long
195 SPyObj_AsLongInRange(PyObject
* obj
, long min_value
, long max_value
)
197 long value
= SPyObj_AsLong(obj
);
198 if (!PyErr_Occurred()) {
199 if (value
< min_value
) {
200 PyErr_SetString(PyExc_OverflowError
,"value is smaller than type minimum");
201 } else if (value
> max_value
) {
202 PyErr_SetString(PyExc_OverflowError
,"value is greater than type maximum");
208 SWIG_STATIC_INLINE
unsigned long
209 SPyObj_AsUnsignedLongInRange(PyObject
*obj
, unsigned long max_value
)
211 unsigned long value
= SPyObj_AsUnsignedLong(obj
);
212 if (!PyErr_Occurred()) {
213 if (value
> max_value
) {
214 PyErr_SetString(PyExc_OverflowError
,"value is greater than type maximum");
220 SWIG_STATIC_INLINE
signed char
221 SPyObj_AsSignedChar(PyObject
*obj
) {
222 return (signed char)SPyObj_AsLongInRange(obj
, SCHAR_MIN
, SCHAR_MAX
);
225 SWIG_STATIC_INLINE
short
226 SPyObj_AsShort(PyObject
*obj
) {
227 return (short)SPyObj_AsLongInRange(obj
, SHRT_MIN
, SHRT_MAX
);
230 SWIG_STATIC_INLINE
int
231 SPyObj_AsInt(PyObject
*obj
) {
232 return SPyObj_AsLongInRange(obj
, INT_MIN
, INT_MAX
);
235 SWIG_STATIC_INLINE
unsigned char
236 SPyObj_AsUnsignedChar(PyObject
*obj
) {
237 return (unsigned char)SPyObj_AsUnsignedLongInRange(obj
, UCHAR_MAX
);
240 SWIG_STATIC_INLINE
unsigned short
241 SPyObj_AsUnsignedShort(PyObject
*obj
) {
242 return (unsigned short)SPyObj_AsUnsignedLongInRange(obj
, USHRT_MAX
);
245 SWIG_STATIC_INLINE
unsigned int
246 SPyObj_AsUnsignedInt(PyObject
*obj
) {
247 return SPyObj_AsUnsignedLongInRange(obj
, UINT_MAX
);
250 #if !defined(_MSC_VER)
251 SWIG_STATIC_INLINE
long long
252 SPyObj_AsLongLong(PyObject
*obj
) {
253 return PyInt_Check(obj
) ?
254 PyInt_AsLong(obj
) : PyLong_AsLongLong(obj
);
257 SWIG_STATIC_INLINE
unsigned long long
258 SPyObj_AsUnsignedLongLong(PyObject
*obj
) {
259 return PyLong_Check(obj
) ?
260 PyLong_AsUnsignedLongLong(obj
) : SPyObj_AsUnsignedLong(obj
);
264 SWIG_STATIC_INLINE
double
265 SPyObj_AsDouble(PyObject
*obj
) {
266 return (PyFloat_Check(obj
)) ? PyFloat_AsDouble(obj
) :
267 (double)((PyInt_Check(obj
)) ? PyInt_AsLong(obj
) : PyLong_AsLongLong(obj
));
270 SWIG_STATIC_INLINE
float
271 SPyObj_AsFloat(PyObject
*obj
) {
272 double value
= SPyObj_AsDouble(obj
);
273 if (!PyErr_Occurred()) {
274 if (value
< FLT_MIN
) {
275 PyErr_SetString(PyExc_OverflowError
,"float is smaller than flt_min");
276 } else if (value
> FLT_MAX
) {
277 PyErr_SetString(PyExc_OverflowError
,"float is greater than flt_max");
280 return (float) value
;
283 SWIG_STATIC_INLINE
char
284 SPyObj_AsChar(PyObject
*obj
) {
285 char c
= (PyString_Check(obj
) && PyString_Size(obj
) == 1) ?
286 PyString_AsString(obj
)[0]
287 : (char) SPyObj_AsLongInRange(obj
, CHAR_MIN
, CHAR_MAX
);
288 if (PyErr_Occurred()) {
290 PyErr_SetString(PyExc_TypeError
, "a char is required");
295 SWIG_STATIC_INLINE PyObject
*
296 SPyObj_FromChar(char c
) {
297 return PyString_FromStringAndSize(&c
,1);
300 SWIG_STATIC_INLINE PyObject
*
301 SPyObj_FromCharPtr(const char* cptr
) {
302 return cptr
? PyString_FromString(cptr
) : Py_BuildValue((char*)"");
305 SWIG_STATIC_INLINE
int
306 SPyObj_AsBool(PyObject
*obj
) {
307 return SPyObj_AsLong
/*Long*/(obj
) ? 1 : 0;
316 #define SWIG_PY_INT 1
317 #define SWIG_PY_FLOAT 2
318 #define SWIG_PY_STRING 3
319 #define SWIG_PY_POINTER 4
320 #define SWIG_PY_BINARY 5
322 /* Flags for pointer conversion */
324 #define SWIG_POINTER_EXCEPTION 0x1
325 #define SWIG_POINTER_DISOWN 0x2
327 /* Exception handling in wrappers */
328 #define SWIG_fail goto fail
330 /* Constant information structure */
331 typedef struct swig_const_info
{
337 swig_type_info
**ptype
;
340 /* Common SWIG API */
341 #define SWIG_ConvertPtr(obj, pp, type, flags) \
342 SWIG_Python_ConvertPtr(obj, pp, type, flags)
343 #define SWIG_NewPointerObj(p, type, flags) \
344 SWIG_Python_NewPointerObj(p, type, flags)
345 #define SWIG_MustGetPtr(p, type, argnum, flags) \
346 SWIG_Python_MustGetPtr(p, type, argnum, flags)
348 /* Python-specific SWIG API */
349 #define SWIG_newvarlink() \
350 SWIG_Python_newvarlink()
351 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
352 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
353 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
354 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
355 #define SWIG_NewPackedObj(ptr, sz, type) \
356 SWIG_Python_NewPackedObj(ptr, sz, type)
357 #define SWIG_InstallConstants(d, constants) \
358 SWIG_Python_InstallConstants(d, constants)
361 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject
*, void **, swig_type_info
*, int);
362 SWIGIMPORT(PyObject
*) SWIG_Python_NewPointerObj(void *, swig_type_info
*,int own
);
363 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject
*, swig_type_info
*, int, int);
364 SWIGIMPORT(PyObject
*) SWIG_Python_newvarlink(void);
365 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
366 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject
*, void *, int sz
, swig_type_info
*, int);
367 SWIGIMPORT(PyObject
*) SWIG_Python_NewPackedObj(void *, int sz
, swig_type_info
*);
368 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]);
372 /* Contract support */
374 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
382 /* -------- TYPES TABLE (BEGIN) -------- */
384 #define SWIGTYPE_p_wxFrame swig_types[0]
385 #define SWIGTYPE_p_wxIcon swig_types[1]
386 #define SWIGTYPE_p_wxObject swig_types[2]
387 #define SWIGTYPE_p_wxDialog swig_types[3]
388 #define SWIGTYPE_p_wxColour swig_types[4]
389 #define SWIGTYPE_p_wxWindow swig_types[5]
390 #define SWIGTYPE_p_wxArtClient swig_types[6]
391 #define SWIGTYPE_p_wxBitmap swig_types[7]
392 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8]
393 #define SWIGTYPE_p_wxPoint swig_types[9]
394 #define SWIGTYPE_p_wxXmlNode swig_types[10]
395 #define SWIGTYPE_p_wxInputStream swig_types[11]
396 #define SWIGTYPE_p_wxOutputStream swig_types[12]
397 #define SWIGTYPE_p_wxString swig_types[13]
398 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14]
399 #define SWIGTYPE_p_wxFileSystem swig_types[15]
400 #define SWIGTYPE_p_wxXmlProperty swig_types[16]
401 #define SWIGTYPE_p_wxFont swig_types[17]
402 #define SWIGTYPE_p_wxXmlResource swig_types[18]
403 #define SWIGTYPE_p_wxXmlDocument swig_types[19]
404 #define SWIGTYPE_p_wxPanel swig_types[20]
405 #define SWIGTYPE_p_wxSize swig_types[21]
406 static swig_type_info
*swig_types
[23];
408 /* -------- TYPES TABLE (END) -------- */
411 /*-----------------------------------------------
413 ------------------------------------------------*/
414 #define SWIG_init init_xrc
416 #define SWIG_name "_xrc"
418 #include "wx/wxPython/wxPython.h"
419 #include "wx/wxPython/pyclasses.h"
420 #include "wx/wxPython/pyistream.h"
422 #include <wx/xml/xml.h>
423 #include <wx/xrc/xmlres.h>
426 static const wxString
wxPyEmptyString(wxEmptyString
);
427 static const wxString
wxPyUTF8String(wxT("UTF-8"));
428 static const wxString
wxPyStyleString(wxT("style"));
429 static const wxString
wxPySizeString(wxT("size"));
430 static const wxString
wxPyPosString(wxT("pos"));
431 static const wxString
wxPyBitmapString(wxT("bitmap"));
432 static const wxString
wxPyIconString(wxT("icon"));
433 static const wxString
wxPyFontString(wxT("font"));
434 bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
435 static int s_memFileIdx
= 0;
437 // Check for memory FS. If not present, load the handler:
438 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
441 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
442 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
446 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
448 // Now put the resource data into the memory FS
449 wxString
filename(wxT("XRC_resource/data_string_"));
450 filename
<< s_memFileIdx
;
452 wxMemoryFSHandler::AddFile(filename
, data
);
454 // Load the "file" into the resource object
455 bool retval
= self
->Load(wxT("memory:") + filename
);
460 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
463 wxPyXmlSubclassFactory() {}
464 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
468 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
470 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
471 // callbacks, as well as to make some protected things public so they can
473 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
475 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
476 //~wxPyXmlResourceHandler();
478 // Base class virtuals
480 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
481 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
484 // accessors for protected members
486 wxXmlResource
* GetResource() { return m_resource
; }
487 wxXmlNode
* GetNode() { return m_node
; }
488 wxString
GetClass() { return m_class
; }
489 wxObject
* GetParent() { return m_parent
; }
490 wxObject
* GetInstance() { return m_instance
; }
491 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
492 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
495 // turn some protected methods into public via delegation
497 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
498 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
500 wxString
GetNodeContent(wxXmlNode
*node
)
501 { return wxXmlResourceHandler::GetNodeContent(node
); }
503 bool HasParam(const wxString
& param
)
504 { return wxXmlResourceHandler::HasParam(param
); }
506 wxXmlNode
*GetParamNode(const wxString
& param
)
507 { return wxXmlResourceHandler::GetParamNode(param
); }
509 wxString
GetParamValue(const wxString
& param
)
510 { return wxXmlResourceHandler::GetParamValue(param
); }
512 void AddStyle(const wxString
& name
, int value
)
513 { wxXmlResourceHandler::AddStyle(name
, value
); }
515 void AddWindowStyles()
516 { wxXmlResourceHandler::AddWindowStyles(); }
518 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
519 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
521 wxString
GetText(const wxString
& param
, bool translate
= True
)
522 { return wxXmlResourceHandler::GetText(param
, translate
); }
525 { return wxXmlResourceHandler::GetID(); }
528 { return wxXmlResourceHandler::GetName(); }
530 bool GetBool(const wxString
& param
, bool defaultv
= False
)
531 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
533 long GetLong( const wxString
& param
, long defaultv
= 0 )
534 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
536 wxColour
GetColour(const wxString
& param
)
537 { return wxXmlResourceHandler::GetColour(param
); }
539 wxSize
GetSize(const wxString
& param
= wxT("size"))
540 { return wxXmlResourceHandler::GetSize(param
); }
542 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
543 { return wxXmlResourceHandler::GetPosition(param
); }
545 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
546 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
548 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
549 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
550 wxSize size
= wxDefaultSize
)
551 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
553 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
554 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
555 wxSize size
= wxDefaultSize
)
556 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
558 wxFont
GetFont(const wxString
& param
= wxT("font"))
559 { return wxXmlResourceHandler::GetFont(param
); }
561 void SetupWindow(wxWindow
*wnd
)
562 { wxXmlResourceHandler::SetupWindow(wnd
); }
564 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= False
)
565 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
567 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
568 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
570 wxObject
*CreateResFromNode(wxXmlNode
*node
,
571 wxObject
*parent
, wxObject
*instance
= NULL
)
572 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
574 wxFileSystem
& GetCurFileSystem()
575 { return wxXmlResourceHandler::GetCurFileSystem(); }
581 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
582 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
588 static int _wrap_UTF8String_set(PyObject
*_val
) {
589 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
594 static PyObject
*_wrap_UTF8String_get() {
599 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
601 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
608 static int _wrap_StyleString_set(PyObject
*_val
) {
609 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
614 static PyObject
*_wrap_StyleString_get() {
619 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
621 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
628 static int _wrap_SizeString_set(PyObject
*_val
) {
629 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
634 static PyObject
*_wrap_SizeString_get() {
639 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
641 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
648 static int _wrap_PosString_set(PyObject
*_val
) {
649 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
654 static PyObject
*_wrap_PosString_get() {
659 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
661 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
668 static int _wrap_BitmapString_set(PyObject
*_val
) {
669 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
674 static PyObject
*_wrap_BitmapString_get() {
679 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
681 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
688 static int _wrap_IconString_set(PyObject
*_val
) {
689 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
694 static PyObject
*_wrap_IconString_get() {
699 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
701 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
708 static int _wrap_FontString_set(PyObject
*_val
) {
709 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
714 static PyObject
*_wrap_FontString_get() {
719 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
721 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
728 static PyObject
*_wrap_new_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
731 int arg2
= (int) wxXRC_USE_LOCALE
;
732 wxXmlResource
*result
;
734 PyObject
* obj0
= 0 ;
736 (char *) "filemask",(char *) "flags", NULL
739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|i:new_XmlResource",kwnames
,&obj0
,&arg2
)) goto fail
;
741 arg1
= wxString_in_helper(obj0
);
742 if (arg1
== NULL
) SWIG_fail
;
746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
747 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
749 wxPyEndAllowThreads(__tstate
);
750 if (PyErr_Occurred()) SWIG_fail
;
752 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
767 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
769 int arg1
= (int) wxXRC_USE_LOCALE
;
770 wxXmlResource
*result
;
772 (char *) "flags", NULL
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|i:new_EmptyXmlResource",kwnames
,&arg1
)) goto fail
;
777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
778 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
780 wxPyEndAllowThreads(__tstate
);
781 if (PyErr_Occurred()) SWIG_fail
;
783 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 1);
790 static PyObject
*_wrap_delete_XmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
792 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
793 PyObject
* obj0
= 0 ;
795 (char *) "self", NULL
798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
799 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
804 wxPyEndAllowThreads(__tstate
);
805 if (PyErr_Occurred()) SWIG_fail
;
807 Py_INCREF(Py_None
); resultobj
= Py_None
;
814 static PyObject
*_wrap_XmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
816 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
820 PyObject
* obj0
= 0 ;
821 PyObject
* obj1
= 0 ;
823 (char *) "self",(char *) "filemask", NULL
826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
827 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
829 arg2
= wxString_in_helper(obj1
);
830 if (arg2
== NULL
) SWIG_fail
;
834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
835 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
837 wxPyEndAllowThreads(__tstate
);
838 if (PyErr_Occurred()) SWIG_fail
;
840 resultobj
= PyInt_FromLong((long)result
);
855 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
857 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
861 PyObject
* obj0
= 0 ;
862 PyObject
* obj1
= 0 ;
864 (char *) "self",(char *) "data", NULL
867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
868 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
870 arg2
= wxString_in_helper(obj1
);
871 if (arg2
== NULL
) SWIG_fail
;
875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
876 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
878 wxPyEndAllowThreads(__tstate
);
879 if (PyErr_Occurred()) SWIG_fail
;
881 resultobj
= PyInt_FromLong((long)result
);
896 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
898 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
899 PyObject
* obj0
= 0 ;
901 (char *) "self", NULL
904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
905 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 (arg1
)->InitAllHandlers();
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) SWIG_fail
;
913 Py_INCREF(Py_None
); resultobj
= Py_None
;
920 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
922 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
923 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
924 PyObject
* obj0
= 0 ;
925 PyObject
* obj1
= 0 ;
927 (char *) "self",(char *) "handler", NULL
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
931 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
932 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
935 (arg1
)->AddHandler(arg2
);
937 wxPyEndAllowThreads(__tstate
);
938 if (PyErr_Occurred()) SWIG_fail
;
940 Py_INCREF(Py_None
); resultobj
= Py_None
;
947 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
949 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
950 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
951 PyObject
* obj0
= 0 ;
952 PyObject
* obj1
= 0 ;
954 (char *) "self",(char *) "handler", NULL
957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
958 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
959 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
962 (arg1
)->InsertHandler(arg2
);
964 wxPyEndAllowThreads(__tstate
);
965 if (PyErr_Occurred()) SWIG_fail
;
967 Py_INCREF(Py_None
); resultobj
= Py_None
;
974 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
976 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
977 PyObject
* obj0
= 0 ;
979 (char *) "self", NULL
982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
983 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
986 (arg1
)->ClearHandlers();
988 wxPyEndAllowThreads(__tstate
);
989 if (PyErr_Occurred()) SWIG_fail
;
991 Py_INCREF(Py_None
); resultobj
= Py_None
;
998 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1001 PyObject
* obj0
= 0 ;
1003 (char *) "factory", NULL
1006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
1007 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1010 wxXmlResource::AddSubclassFactory(arg1
);
1012 wxPyEndAllowThreads(__tstate
);
1013 if (PyErr_Occurred()) SWIG_fail
;
1015 Py_INCREF(Py_None
); resultobj
= Py_None
;
1022 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1023 PyObject
*resultobj
;
1024 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1025 wxString
*arg2
= 0 ;
1027 bool temp2
= False
;
1028 PyObject
* obj0
= 0 ;
1029 PyObject
* obj1
= 0 ;
1031 (char *) "self",(char *) "name", NULL
1034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
1035 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1037 arg2
= wxString_in_helper(obj1
);
1038 if (arg2
== NULL
) SWIG_fail
;
1042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1043 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
1045 wxPyEndAllowThreads(__tstate
);
1046 if (PyErr_Occurred()) SWIG_fail
;
1049 resultobj
= wxPyMake_wxObject(result
);
1065 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1066 PyObject
*resultobj
;
1067 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1068 wxString
*arg2
= 0 ;
1070 bool temp2
= False
;
1071 PyObject
* obj0
= 0 ;
1072 PyObject
* obj1
= 0 ;
1074 (char *) "self",(char *) "name", NULL
1077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
1078 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1080 arg2
= wxString_in_helper(obj1
);
1081 if (arg2
== NULL
) SWIG_fail
;
1085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1086 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
1088 wxPyEndAllowThreads(__tstate
);
1089 if (PyErr_Occurred()) SWIG_fail
;
1092 resultobj
= wxPyMake_wxObject(result
);
1108 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1109 PyObject
*resultobj
;
1110 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1111 wxWindow
*arg2
= (wxWindow
*) 0 ;
1112 wxString
*arg3
= 0 ;
1114 bool temp3
= False
;
1115 PyObject
* obj0
= 0 ;
1116 PyObject
* obj1
= 0 ;
1117 PyObject
* obj2
= 0 ;
1119 (char *) "self",(char *) "parent",(char *) "name", NULL
1122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1123 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1124 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1126 arg3
= wxString_in_helper(obj2
);
1127 if (arg3
== NULL
) SWIG_fail
;
1131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1132 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
1134 wxPyEndAllowThreads(__tstate
);
1135 if (PyErr_Occurred()) SWIG_fail
;
1138 resultobj
= wxPyMake_wxObject(result
);
1154 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1155 PyObject
*resultobj
;
1156 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1157 wxWindow
*arg2
= (wxWindow
*) 0 ;
1158 wxString
*arg3
= 0 ;
1160 bool temp3
= False
;
1161 PyObject
* obj0
= 0 ;
1162 PyObject
* obj1
= 0 ;
1163 PyObject
* obj2
= 0 ;
1165 (char *) "self",(char *) "parent",(char *) "name", NULL
1168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1169 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1170 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1172 arg3
= wxString_in_helper(obj2
);
1173 if (arg3
== NULL
) SWIG_fail
;
1177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1178 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
1180 wxPyEndAllowThreads(__tstate
);
1181 if (PyErr_Occurred()) SWIG_fail
;
1184 resultobj
= wxPyMake_wxObject(result
);
1200 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1201 PyObject
*resultobj
;
1202 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1203 wxWindow
*arg2
= (wxWindow
*) 0 ;
1204 wxString
*arg3
= 0 ;
1206 bool temp3
= False
;
1207 PyObject
* obj0
= 0 ;
1208 PyObject
* obj1
= 0 ;
1209 PyObject
* obj2
= 0 ;
1211 (char *) "self",(char *) "parent",(char *) "name", NULL
1214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1215 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1216 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1218 arg3
= wxString_in_helper(obj2
);
1219 if (arg3
== NULL
) SWIG_fail
;
1223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1224 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
1226 wxPyEndAllowThreads(__tstate
);
1227 if (PyErr_Occurred()) SWIG_fail
;
1229 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxDialog
, 0);
1244 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1245 PyObject
*resultobj
;
1246 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1247 wxDialog
*arg2
= (wxDialog
*) 0 ;
1248 wxWindow
*arg3
= (wxWindow
*) 0 ;
1249 wxString
*arg4
= 0 ;
1251 bool temp4
= False
;
1252 PyObject
* obj0
= 0 ;
1253 PyObject
* obj1
= 0 ;
1254 PyObject
* obj2
= 0 ;
1255 PyObject
* obj3
= 0 ;
1257 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
1260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1261 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1262 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxDialog
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1263 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1265 arg4
= wxString_in_helper(obj3
);
1266 if (arg4
== NULL
) SWIG_fail
;
1270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1271 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
1273 wxPyEndAllowThreads(__tstate
);
1274 if (PyErr_Occurred()) SWIG_fail
;
1276 resultobj
= PyInt_FromLong((long)result
);
1291 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1292 PyObject
*resultobj
;
1293 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1294 wxWindow
*arg2
= (wxWindow
*) 0 ;
1295 wxString
*arg3
= 0 ;
1297 bool temp3
= False
;
1298 PyObject
* obj0
= 0 ;
1299 PyObject
* obj1
= 0 ;
1300 PyObject
* obj2
= 0 ;
1302 (char *) "self",(char *) "parent",(char *) "name", NULL
1305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1306 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1307 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1309 arg3
= wxString_in_helper(obj2
);
1310 if (arg3
== NULL
) SWIG_fail
;
1314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1315 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
1317 wxPyEndAllowThreads(__tstate
);
1318 if (PyErr_Occurred()) SWIG_fail
;
1320 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPanel
, 0);
1335 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
*resultobj
;
1337 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1338 wxPanel
*arg2
= (wxPanel
*) 0 ;
1339 wxWindow
*arg3
= (wxWindow
*) 0 ;
1340 wxString
*arg4
= 0 ;
1342 bool temp4
= False
;
1343 PyObject
* obj0
= 0 ;
1344 PyObject
* obj1
= 0 ;
1345 PyObject
* obj2
= 0 ;
1346 PyObject
* obj3
= 0 ;
1348 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
1351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1352 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1353 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxPanel
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1354 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1356 arg4
= wxString_in_helper(obj3
);
1357 if (arg4
== NULL
) SWIG_fail
;
1361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1362 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
1364 wxPyEndAllowThreads(__tstate
);
1365 if (PyErr_Occurred()) SWIG_fail
;
1367 resultobj
= PyInt_FromLong((long)result
);
1382 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1383 PyObject
*resultobj
;
1384 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1385 wxWindow
*arg2
= (wxWindow
*) 0 ;
1386 wxString
*arg3
= 0 ;
1388 bool temp3
= False
;
1389 PyObject
* obj0
= 0 ;
1390 PyObject
* obj1
= 0 ;
1391 PyObject
* obj2
= 0 ;
1393 (char *) "self",(char *) "parent",(char *) "name", NULL
1396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1397 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1398 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1400 arg3
= wxString_in_helper(obj2
);
1401 if (arg3
== NULL
) SWIG_fail
;
1405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1406 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
1408 wxPyEndAllowThreads(__tstate
);
1409 if (PyErr_Occurred()) SWIG_fail
;
1412 resultobj
= wxPyMake_wxObject(result
);
1428 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1429 PyObject
*resultobj
;
1430 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1431 wxFrame
*arg2
= (wxFrame
*) 0 ;
1432 wxWindow
*arg3
= (wxWindow
*) 0 ;
1433 wxString
*arg4
= 0 ;
1435 bool temp4
= False
;
1436 PyObject
* obj0
= 0 ;
1437 PyObject
* obj1
= 0 ;
1438 PyObject
* obj2
= 0 ;
1439 PyObject
* obj3
= 0 ;
1441 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
1444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1445 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1446 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxFrame
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1447 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1449 arg4
= wxString_in_helper(obj3
);
1450 if (arg4
== NULL
) SWIG_fail
;
1454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1455 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
1457 wxPyEndAllowThreads(__tstate
);
1458 if (PyErr_Occurred()) SWIG_fail
;
1460 resultobj
= PyInt_FromLong((long)result
);
1475 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1476 PyObject
*resultobj
;
1477 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1478 wxWindow
*arg2
= (wxWindow
*) 0 ;
1479 wxString
*arg3
= 0 ;
1480 wxString
*arg4
= 0 ;
1482 bool temp3
= False
;
1483 bool temp4
= False
;
1484 PyObject
* obj0
= 0 ;
1485 PyObject
* obj1
= 0 ;
1486 PyObject
* obj2
= 0 ;
1487 PyObject
* obj3
= 0 ;
1489 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
1492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1493 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1494 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1496 arg3
= wxString_in_helper(obj2
);
1497 if (arg3
== NULL
) SWIG_fail
;
1501 arg4
= wxString_in_helper(obj3
);
1502 if (arg4
== NULL
) SWIG_fail
;
1506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1507 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
1509 wxPyEndAllowThreads(__tstate
);
1510 if (PyErr_Occurred()) SWIG_fail
;
1513 resultobj
= wxPyMake_wxObject(result
);
1537 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1538 PyObject
*resultobj
;
1539 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1540 wxObject
*arg2
= (wxObject
*) 0 ;
1541 wxWindow
*arg3
= (wxWindow
*) 0 ;
1542 wxString
*arg4
= 0 ;
1543 wxString
*arg5
= 0 ;
1545 bool temp4
= False
;
1546 bool temp5
= False
;
1547 PyObject
* obj0
= 0 ;
1548 PyObject
* obj1
= 0 ;
1549 PyObject
* obj2
= 0 ;
1550 PyObject
* obj3
= 0 ;
1551 PyObject
* obj4
= 0 ;
1553 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
1556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1557 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1558 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1559 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1561 arg4
= wxString_in_helper(obj3
);
1562 if (arg4
== NULL
) SWIG_fail
;
1566 arg5
= wxString_in_helper(obj4
);
1567 if (arg5
== NULL
) SWIG_fail
;
1571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1572 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
1574 wxPyEndAllowThreads(__tstate
);
1575 if (PyErr_Occurred()) SWIG_fail
;
1577 resultobj
= PyInt_FromLong((long)result
);
1600 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1601 PyObject
*resultobj
;
1602 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1603 wxString
*arg2
= 0 ;
1605 bool temp2
= False
;
1606 PyObject
* obj0
= 0 ;
1607 PyObject
* obj1
= 0 ;
1609 (char *) "self",(char *) "name", NULL
1612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
1613 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1615 arg2
= wxString_in_helper(obj1
);
1616 if (arg2
== NULL
) SWIG_fail
;
1620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1621 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
1623 wxPyEndAllowThreads(__tstate
);
1624 if (PyErr_Occurred()) SWIG_fail
;
1627 wxBitmap
* resultptr
;
1628 resultptr
= new wxBitmap((wxBitmap
&) result
);
1629 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
1645 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1646 PyObject
*resultobj
;
1647 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1648 wxString
*arg2
= 0 ;
1650 bool temp2
= False
;
1651 PyObject
* obj0
= 0 ;
1652 PyObject
* obj1
= 0 ;
1654 (char *) "self",(char *) "name", NULL
1657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
1658 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1660 arg2
= wxString_in_helper(obj1
);
1661 if (arg2
== NULL
) SWIG_fail
;
1665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1666 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
1668 wxPyEndAllowThreads(__tstate
);
1669 if (PyErr_Occurred()) SWIG_fail
;
1673 resultptr
= new wxIcon((wxIcon
&) result
);
1674 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
1690 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1691 PyObject
*resultobj
;
1692 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1693 wxString
*arg2
= 0 ;
1694 wxWindow
*arg3
= (wxWindow
*) 0 ;
1695 wxWindow
*arg4
= (wxWindow
*) NULL
;
1697 bool temp2
= False
;
1698 PyObject
* obj0
= 0 ;
1699 PyObject
* obj1
= 0 ;
1700 PyObject
* obj2
= 0 ;
1701 PyObject
* obj3
= 0 ;
1703 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
1706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1707 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1709 arg2
= wxString_in_helper(obj1
);
1710 if (arg2
== NULL
) SWIG_fail
;
1713 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1715 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1719 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
1721 wxPyEndAllowThreads(__tstate
);
1722 if (PyErr_Occurred()) SWIG_fail
;
1724 resultobj
= PyInt_FromLong((long)result
);
1739 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1740 PyObject
*resultobj
;
1741 wxString
*arg1
= 0 ;
1743 bool temp1
= False
;
1744 PyObject
* obj0
= 0 ;
1746 (char *) "str_id", NULL
1749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
1751 arg1
= wxString_in_helper(obj0
);
1752 if (arg1
== NULL
) SWIG_fail
;
1756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1757 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
1759 wxPyEndAllowThreads(__tstate
);
1760 if (PyErr_Occurred()) SWIG_fail
;
1762 resultobj
= PyInt_FromLong((long)result
);
1777 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1778 PyObject
*resultobj
;
1779 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1781 PyObject
* obj0
= 0 ;
1783 (char *) "self", NULL
1786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
1787 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1790 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
1792 wxPyEndAllowThreads(__tstate
);
1793 if (PyErr_Occurred()) SWIG_fail
;
1795 resultobj
= PyInt_FromLong((long)result
);
1802 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1803 PyObject
*resultobj
;
1804 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1810 PyObject
* obj0
= 0 ;
1812 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
1815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oiiii:XmlResource_CompareVersion",kwnames
,&obj0
,&arg2
,&arg3
,&arg4
,&arg5
)) goto fail
;
1816 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1819 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
1821 wxPyEndAllowThreads(__tstate
);
1822 if (PyErr_Occurred()) SWIG_fail
;
1824 resultobj
= PyInt_FromLong((long)result
);
1831 static PyObject
*_wrap_XmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
*resultobj
;
1833 wxXmlResource
*result
;
1838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
1840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1841 result
= (wxXmlResource
*)wxXmlResource::Get();
1843 wxPyEndAllowThreads(__tstate
);
1844 if (PyErr_Occurred()) SWIG_fail
;
1846 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1853 static PyObject
*_wrap_XmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1854 PyObject
*resultobj
;
1855 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1856 wxXmlResource
*result
;
1857 PyObject
* obj0
= 0 ;
1859 (char *) "res", NULL
1862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
1863 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1866 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
1868 wxPyEndAllowThreads(__tstate
);
1869 if (PyErr_Occurred()) SWIG_fail
;
1871 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
1878 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1879 PyObject
*resultobj
;
1880 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1882 PyObject
* obj0
= 0 ;
1884 (char *) "self", NULL
1887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
1888 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1891 result
= (int)(arg1
)->GetFlags();
1893 wxPyEndAllowThreads(__tstate
);
1894 if (PyErr_Occurred()) SWIG_fail
;
1896 resultobj
= PyInt_FromLong((long)result
);
1903 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1904 PyObject
*resultobj
;
1905 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1907 PyObject
* obj0
= 0 ;
1909 (char *) "self",(char *) "flags", NULL
1912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlResource_SetFlags",kwnames
,&obj0
,&arg2
)) goto fail
;
1913 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1916 (arg1
)->SetFlags(arg2
);
1918 wxPyEndAllowThreads(__tstate
);
1919 if (PyErr_Occurred()) SWIG_fail
;
1921 Py_INCREF(Py_None
); resultobj
= Py_None
;
1928 static PyObject
* XmlResource_swigregister(PyObject
*self
, PyObject
*args
) {
1930 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1931 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
1933 return Py_BuildValue((char *)"");
1935 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1936 PyObject
*resultobj
;
1937 wxPyXmlSubclassFactory
*result
;
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
1944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1945 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
1947 wxPyEndAllowThreads(__tstate
);
1948 if (PyErr_Occurred()) SWIG_fail
;
1950 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
1957 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
*resultobj
;
1959 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
1960 PyObject
*arg2
= (PyObject
*) 0 ;
1961 PyObject
*arg3
= (PyObject
*) 0 ;
1962 PyObject
* obj0
= 0 ;
1963 PyObject
* obj1
= 0 ;
1964 PyObject
* obj2
= 0 ;
1966 (char *) "self",(char *) "self",(char *) "_class", NULL
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1970 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
1974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1975 (arg1
)->_setCallbackInfo(arg2
,arg3
);
1977 wxPyEndAllowThreads(__tstate
);
1978 if (PyErr_Occurred()) SWIG_fail
;
1980 Py_INCREF(Py_None
); resultobj
= Py_None
;
1987 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*self
, PyObject
*args
) {
1989 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1990 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
1992 return Py_BuildValue((char *)"");
1994 static PyObject
*_wrap_new_XmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
*resultobj
;
1996 wxString
const &arg1_defvalue
= wxPyEmptyString
;
1997 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
1998 wxString
const &arg2_defvalue
= wxPyEmptyString
;
1999 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
2000 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
2001 wxXmlProperty
*result
;
2002 bool temp1
= False
;
2003 bool temp2
= False
;
2004 PyObject
* obj0
= 0 ;
2005 PyObject
* obj1
= 0 ;
2006 PyObject
* obj2
= 0 ;
2008 (char *) "name",(char *) "value",(char *) "next", NULL
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2014 arg1
= wxString_in_helper(obj0
);
2015 if (arg1
== NULL
) SWIG_fail
;
2021 arg2
= wxString_in_helper(obj1
);
2022 if (arg2
== NULL
) SWIG_fail
;
2027 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2031 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
2033 wxPyEndAllowThreads(__tstate
);
2034 if (PyErr_Occurred()) SWIG_fail
;
2036 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 1);
2059 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2060 PyObject
*resultobj
;
2061 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2063 PyObject
* obj0
= 0 ;
2065 (char *) "self", NULL
2068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
2069 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2072 result
= ((wxXmlProperty
const *)arg1
)->GetName();
2074 wxPyEndAllowThreads(__tstate
);
2075 if (PyErr_Occurred()) SWIG_fail
;
2079 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2081 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2090 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2091 PyObject
*resultobj
;
2092 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2094 PyObject
* obj0
= 0 ;
2096 (char *) "self", NULL
2099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
2100 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2103 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
2105 wxPyEndAllowThreads(__tstate
);
2106 if (PyErr_Occurred()) SWIG_fail
;
2110 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2112 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2121 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2122 PyObject
*resultobj
;
2123 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2124 wxXmlProperty
*result
;
2125 PyObject
* obj0
= 0 ;
2127 (char *) "self", NULL
2130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
2131 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2134 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
2136 wxPyEndAllowThreads(__tstate
);
2137 if (PyErr_Occurred()) SWIG_fail
;
2139 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2146 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2147 PyObject
*resultobj
;
2148 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2149 wxString
*arg2
= 0 ;
2150 bool temp2
= False
;
2151 PyObject
* obj0
= 0 ;
2152 PyObject
* obj1
= 0 ;
2154 (char *) "self",(char *) "name", NULL
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2158 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2160 arg2
= wxString_in_helper(obj1
);
2161 if (arg2
== NULL
) SWIG_fail
;
2165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2166 (arg1
)->SetName((wxString
const &)*arg2
);
2168 wxPyEndAllowThreads(__tstate
);
2169 if (PyErr_Occurred()) SWIG_fail
;
2171 Py_INCREF(Py_None
); resultobj
= Py_None
;
2186 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2187 PyObject
*resultobj
;
2188 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2189 wxString
*arg2
= 0 ;
2190 bool temp2
= False
;
2191 PyObject
* obj0
= 0 ;
2192 PyObject
* obj1
= 0 ;
2194 (char *) "self",(char *) "value", NULL
2197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
2198 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2200 arg2
= wxString_in_helper(obj1
);
2201 if (arg2
== NULL
) SWIG_fail
;
2205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2206 (arg1
)->SetValue((wxString
const &)*arg2
);
2208 wxPyEndAllowThreads(__tstate
);
2209 if (PyErr_Occurred()) SWIG_fail
;
2211 Py_INCREF(Py_None
); resultobj
= Py_None
;
2226 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2227 PyObject
*resultobj
;
2228 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
2229 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2230 PyObject
* obj0
= 0 ;
2231 PyObject
* obj1
= 0 ;
2233 (char *) "self",(char *) "next", NULL
2236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
2237 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2238 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2241 (arg1
)->SetNext(arg2
);
2243 wxPyEndAllowThreads(__tstate
);
2244 if (PyErr_Occurred()) SWIG_fail
;
2246 Py_INCREF(Py_None
); resultobj
= Py_None
;
2253 static PyObject
* XmlProperty_swigregister(PyObject
*self
, PyObject
*args
) {
2255 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2256 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
2258 return Py_BuildValue((char *)"");
2260 static PyObject
*_wrap_new_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2261 PyObject
*resultobj
;
2262 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
2263 int arg2
= (int) 0 ;
2264 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2265 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2266 wxString
const &arg4_defvalue
= wxPyEmptyString
;
2267 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
2268 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
2269 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
2271 bool temp3
= False
;
2272 bool temp4
= False
;
2273 PyObject
* obj0
= 0 ;
2274 PyObject
* obj2
= 0 ;
2275 PyObject
* obj3
= 0 ;
2276 PyObject
* obj4
= 0 ;
2277 PyObject
* obj5
= 0 ;
2279 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OiOOOO:new_XmlNode",kwnames
,&obj0
,&arg2
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
2284 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2288 arg3
= wxString_in_helper(obj2
);
2289 if (arg3
== NULL
) SWIG_fail
;
2295 arg4
= wxString_in_helper(obj3
);
2296 if (arg4
== NULL
) SWIG_fail
;
2301 if ((SWIG_ConvertPtr(obj4
,(void **) &arg5
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2304 if ((SWIG_ConvertPtr(obj5
,(void **) &arg6
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2308 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
2310 wxPyEndAllowThreads(__tstate
);
2311 if (PyErr_Occurred()) SWIG_fail
;
2313 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2336 static PyObject
*_wrap_delete_XmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
*resultobj
;
2338 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2339 PyObject
* obj0
= 0 ;
2341 (char *) "self", NULL
2344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
2345 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2350 wxPyEndAllowThreads(__tstate
);
2351 if (PyErr_Occurred()) SWIG_fail
;
2353 Py_INCREF(Py_None
); resultobj
= Py_None
;
2360 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2361 PyObject
*resultobj
;
2363 wxString
*arg2
= 0 ;
2364 wxString
const &arg3_defvalue
= wxPyEmptyString
;
2365 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
2367 bool temp2
= False
;
2368 bool temp3
= False
;
2369 PyObject
* obj1
= 0 ;
2370 PyObject
* obj2
= 0 ;
2372 (char *) "type",(char *) "name",(char *) "content", NULL
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"iO|O:new_XmlNodeEasy",kwnames
,&arg1
,&obj1
,&obj2
)) goto fail
;
2377 arg2
= wxString_in_helper(obj1
);
2378 if (arg2
== NULL
) SWIG_fail
;
2383 arg3
= wxString_in_helper(obj2
);
2384 if (arg3
== NULL
) SWIG_fail
;
2389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2390 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
2392 wxPyEndAllowThreads(__tstate
);
2393 if (PyErr_Occurred()) SWIG_fail
;
2395 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 1);
2418 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2419 PyObject
*resultobj
;
2420 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2421 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2422 PyObject
* obj0
= 0 ;
2423 PyObject
* obj1
= 0 ;
2425 (char *) "self",(char *) "child", NULL
2428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2429 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2430 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2433 (arg1
)->AddChild(arg2
);
2435 wxPyEndAllowThreads(__tstate
);
2436 if (PyErr_Occurred()) SWIG_fail
;
2438 Py_INCREF(Py_None
); resultobj
= Py_None
;
2445 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2446 PyObject
*resultobj
;
2447 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2448 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2449 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
2450 PyObject
* obj0
= 0 ;
2451 PyObject
* obj1
= 0 ;
2452 PyObject
* obj2
= 0 ;
2454 (char *) "self",(char *) "child",(char *) "before_node", NULL
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2458 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2459 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2460 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 (arg1
)->InsertChild(arg2
,arg3
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) SWIG_fail
;
2468 Py_INCREF(Py_None
); resultobj
= Py_None
;
2475 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2476 PyObject
*resultobj
;
2477 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2478 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
2480 PyObject
* obj0
= 0 ;
2481 PyObject
* obj1
= 0 ;
2483 (char *) "self",(char *) "child", NULL
2486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
2487 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2488 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2491 result
= (bool)(arg1
)->RemoveChild(arg2
);
2493 wxPyEndAllowThreads(__tstate
);
2494 if (PyErr_Occurred()) SWIG_fail
;
2496 resultobj
= PyInt_FromLong((long)result
);
2503 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2504 PyObject
*resultobj
;
2505 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2506 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
2507 PyObject
* obj0
= 0 ;
2508 PyObject
* obj1
= 0 ;
2510 (char *) "self",(char *) "prop", NULL
2513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2514 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2515 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2518 (arg1
)->AddProperty(arg2
);
2520 wxPyEndAllowThreads(__tstate
);
2521 if (PyErr_Occurred()) SWIG_fail
;
2523 Py_INCREF(Py_None
); resultobj
= Py_None
;
2530 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2531 PyObject
*resultobj
;
2532 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2533 wxString
*arg2
= 0 ;
2534 wxString
*arg3
= 0 ;
2535 bool temp2
= False
;
2536 bool temp3
= False
;
2537 PyObject
* obj0
= 0 ;
2538 PyObject
* obj1
= 0 ;
2539 PyObject
* obj2
= 0 ;
2541 (char *) "self",(char *) "name",(char *) "value", NULL
2544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2545 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2547 arg2
= wxString_in_helper(obj1
);
2548 if (arg2
== NULL
) SWIG_fail
;
2552 arg3
= wxString_in_helper(obj2
);
2553 if (arg3
== NULL
) SWIG_fail
;
2557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2558 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2560 wxPyEndAllowThreads(__tstate
);
2561 if (PyErr_Occurred()) SWIG_fail
;
2563 Py_INCREF(Py_None
); resultobj
= Py_None
;
2586 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2587 PyObject
*resultobj
;
2588 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2589 wxString
*arg2
= 0 ;
2591 bool temp2
= False
;
2592 PyObject
* obj0
= 0 ;
2593 PyObject
* obj1
= 0 ;
2595 (char *) "self",(char *) "name", NULL
2598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
2599 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2601 arg2
= wxString_in_helper(obj1
);
2602 if (arg2
== NULL
) SWIG_fail
;
2606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2607 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
2609 wxPyEndAllowThreads(__tstate
);
2610 if (PyErr_Occurred()) SWIG_fail
;
2612 resultobj
= PyInt_FromLong((long)result
);
2627 static PyObject
*_wrap_XmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2628 PyObject
*resultobj
;
2629 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2631 PyObject
* obj0
= 0 ;
2633 (char *) "self", NULL
2636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
2637 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2640 result
= (int)((wxXmlNode
const *)arg1
)->GetType();
2642 wxPyEndAllowThreads(__tstate
);
2643 if (PyErr_Occurred()) SWIG_fail
;
2645 resultobj
= PyInt_FromLong((long)result
);
2652 static PyObject
*_wrap_XmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2653 PyObject
*resultobj
;
2654 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2656 PyObject
* obj0
= 0 ;
2658 (char *) "self", NULL
2661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
2662 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2665 result
= ((wxXmlNode
const *)arg1
)->GetName();
2667 wxPyEndAllowThreads(__tstate
);
2668 if (PyErr_Occurred()) SWIG_fail
;
2672 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2674 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2683 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2684 PyObject
*resultobj
;
2685 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2687 PyObject
* obj0
= 0 ;
2689 (char *) "self", NULL
2692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
2693 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2696 result
= ((wxXmlNode
const *)arg1
)->GetContent();
2698 wxPyEndAllowThreads(__tstate
);
2699 if (PyErr_Occurred()) SWIG_fail
;
2703 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2705 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2714 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2715 PyObject
*resultobj
;
2716 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2718 PyObject
* obj0
= 0 ;
2720 (char *) "self", NULL
2723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
2724 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2727 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
2729 wxPyEndAllowThreads(__tstate
);
2730 if (PyErr_Occurred()) SWIG_fail
;
2732 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2739 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2740 PyObject
*resultobj
;
2741 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2743 PyObject
* obj0
= 0 ;
2745 (char *) "self", NULL
2748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
2749 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2752 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
2754 wxPyEndAllowThreads(__tstate
);
2755 if (PyErr_Occurred()) SWIG_fail
;
2757 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2764 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2765 PyObject
*resultobj
;
2766 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2768 PyObject
* obj0
= 0 ;
2770 (char *) "self", NULL
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
2774 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2777 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
2779 wxPyEndAllowThreads(__tstate
);
2780 if (PyErr_Occurred()) SWIG_fail
;
2782 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
2789 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2790 PyObject
*resultobj
;
2791 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2792 wxXmlProperty
*result
;
2793 PyObject
* obj0
= 0 ;
2795 (char *) "self", NULL
2798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
2799 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2802 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
2804 wxPyEndAllowThreads(__tstate
);
2805 if (PyErr_Occurred()) SWIG_fail
;
2807 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlProperty
, 0);
2814 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
*resultobj
;
2816 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2817 wxString
*arg2
= 0 ;
2818 wxString
*arg3
= 0 ;
2820 bool temp2
= False
;
2821 bool temp3
= False
;
2822 PyObject
* obj0
= 0 ;
2823 PyObject
* obj1
= 0 ;
2824 PyObject
* obj2
= 0 ;
2826 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
2829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2830 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2832 arg2
= wxString_in_helper(obj1
);
2833 if (arg2
== NULL
) SWIG_fail
;
2837 arg3
= wxString_in_helper(obj2
);
2838 if (arg3
== NULL
) SWIG_fail
;
2842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2843 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
2845 wxPyEndAllowThreads(__tstate
);
2846 if (PyErr_Occurred()) SWIG_fail
;
2850 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2852 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2877 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2878 PyObject
*resultobj
;
2879 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2880 wxString
*arg2
= 0 ;
2882 bool temp2
= False
;
2883 PyObject
* obj0
= 0 ;
2884 PyObject
* obj1
= 0 ;
2886 (char *) "self",(char *) "propName", NULL
2889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
2890 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2892 arg2
= wxString_in_helper(obj1
);
2893 if (arg2
== NULL
) SWIG_fail
;
2897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2898 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
2900 wxPyEndAllowThreads(__tstate
);
2901 if (PyErr_Occurred()) SWIG_fail
;
2903 resultobj
= PyInt_FromLong((long)result
);
2918 static PyObject
*_wrap_XmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2919 PyObject
*resultobj
;
2920 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2922 PyObject
* obj0
= 0 ;
2924 (char *) "self",(char *) "type", NULL
2927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"Oi:XmlNode_SetType",kwnames
,&obj0
,&arg2
)) goto fail
;
2928 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2931 (arg1
)->SetType((wxXmlNodeType
)arg2
);
2933 wxPyEndAllowThreads(__tstate
);
2934 if (PyErr_Occurred()) SWIG_fail
;
2936 Py_INCREF(Py_None
); resultobj
= Py_None
;
2943 static PyObject
*_wrap_XmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2944 PyObject
*resultobj
;
2945 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2946 wxString
*arg2
= 0 ;
2947 bool temp2
= False
;
2948 PyObject
* obj0
= 0 ;
2949 PyObject
* obj1
= 0 ;
2951 (char *) "self",(char *) "name", NULL
2954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
2955 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2957 arg2
= wxString_in_helper(obj1
);
2958 if (arg2
== NULL
) SWIG_fail
;
2962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2963 (arg1
)->SetName((wxString
const &)*arg2
);
2965 wxPyEndAllowThreads(__tstate
);
2966 if (PyErr_Occurred()) SWIG_fail
;
2968 Py_INCREF(Py_None
); resultobj
= Py_None
;
2983 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2984 PyObject
*resultobj
;
2985 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
2986 wxString
*arg2
= 0 ;
2987 bool temp2
= False
;
2988 PyObject
* obj0
= 0 ;
2989 PyObject
* obj1
= 0 ;
2991 (char *) "self",(char *) "con", NULL
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
2995 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
2997 arg2
= wxString_in_helper(obj1
);
2998 if (arg2
== NULL
) SWIG_fail
;
3002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3003 (arg1
)->SetContent((wxString
const &)*arg2
);
3005 wxPyEndAllowThreads(__tstate
);
3006 if (PyErr_Occurred()) SWIG_fail
;
3008 Py_INCREF(Py_None
); resultobj
= Py_None
;
3023 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3024 PyObject
*resultobj
;
3025 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3026 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3027 PyObject
* obj0
= 0 ;
3028 PyObject
* obj1
= 0 ;
3030 (char *) "self",(char *) "parent", NULL
3033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
3034 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3035 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3038 (arg1
)->SetParent(arg2
);
3040 wxPyEndAllowThreads(__tstate
);
3041 if (PyErr_Occurred()) SWIG_fail
;
3043 Py_INCREF(Py_None
); resultobj
= Py_None
;
3050 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3051 PyObject
*resultobj
;
3052 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3053 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3054 PyObject
* obj0
= 0 ;
3055 PyObject
* obj1
= 0 ;
3057 (char *) "self",(char *) "next", NULL
3060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3061 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3062 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3065 (arg1
)->SetNext(arg2
);
3067 wxPyEndAllowThreads(__tstate
);
3068 if (PyErr_Occurred()) SWIG_fail
;
3070 Py_INCREF(Py_None
); resultobj
= Py_None
;
3077 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3078 PyObject
*resultobj
;
3079 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3080 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3081 PyObject
* obj0
= 0 ;
3082 PyObject
* obj1
= 0 ;
3084 (char *) "self",(char *) "child", NULL
3087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
3088 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3089 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3092 (arg1
)->SetChildren(arg2
);
3094 wxPyEndAllowThreads(__tstate
);
3095 if (PyErr_Occurred()) SWIG_fail
;
3097 Py_INCREF(Py_None
); resultobj
= Py_None
;
3104 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3105 PyObject
*resultobj
;
3106 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3107 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3108 PyObject
* obj0
= 0 ;
3109 PyObject
* obj1
= 0 ;
3111 (char *) "self",(char *) "prop", NULL
3114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
3115 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3116 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlProperty
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3119 (arg1
)->SetProperties(arg2
);
3121 wxPyEndAllowThreads(__tstate
);
3122 if (PyErr_Occurred()) SWIG_fail
;
3124 Py_INCREF(Py_None
); resultobj
= Py_None
;
3131 static PyObject
* XmlNode_swigregister(PyObject
*self
, PyObject
*args
) {
3133 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3134 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
3136 return Py_BuildValue((char *)"");
3138 static PyObject
*_wrap_new_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3139 PyObject
*resultobj
;
3140 wxString
*arg1
= 0 ;
3141 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3142 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3143 wxXmlDocument
*result
;
3144 bool temp1
= False
;
3145 bool temp2
= False
;
3146 PyObject
* obj0
= 0 ;
3147 PyObject
* obj1
= 0 ;
3149 (char *) "filename",(char *) "encoding", NULL
3152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
3154 arg1
= wxString_in_helper(obj0
);
3155 if (arg1
== NULL
) SWIG_fail
;
3160 arg2
= wxString_in_helper(obj1
);
3161 if (arg2
== NULL
) SWIG_fail
;
3166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3167 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
3169 wxPyEndAllowThreads(__tstate
);
3170 if (PyErr_Occurred()) SWIG_fail
;
3172 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3195 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
*resultobj
;
3197 wxInputStream
*arg1
= 0 ;
3198 wxString
const &arg2_defvalue
= wxPyUTF8String
;
3199 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3200 wxXmlDocument
*result
;
3201 wxPyInputStream
*temp1
;
3203 bool temp2
= False
;
3204 PyObject
* obj0
= 0 ;
3205 PyObject
* obj1
= 0 ;
3207 (char *) "stream",(char *) "encoding", NULL
3210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3212 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
3213 arg1
= temp1
->m_wxis
;
3216 PyErr_Clear(); // clear the failure of the wxPyConvert above
3217 arg1
= wxPyCBInputStream_create(obj0
, False
);
3219 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3227 arg2
= wxString_in_helper(obj1
);
3228 if (arg2
== NULL
) SWIG_fail
;
3233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3234 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
3236 wxPyEndAllowThreads(__tstate
);
3237 if (PyErr_Occurred()) SWIG_fail
;
3239 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3262 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3263 PyObject
*resultobj
;
3264 wxXmlDocument
*result
;
3269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
3271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3272 result
= (wxXmlDocument
*)new wxXmlDocument();
3274 wxPyEndAllowThreads(__tstate
);
3275 if (PyErr_Occurred()) SWIG_fail
;
3277 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlDocument
, 1);
3284 static PyObject
*_wrap_delete_XmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
*resultobj
;
3286 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3287 PyObject
* obj0
= 0 ;
3289 (char *) "self", NULL
3292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
3293 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3298 wxPyEndAllowThreads(__tstate
);
3299 if (PyErr_Occurred()) SWIG_fail
;
3301 Py_INCREF(Py_None
); resultobj
= Py_None
;
3308 static PyObject
*_wrap_XmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3309 PyObject
*resultobj
;
3310 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3311 wxString
*arg2
= 0 ;
3312 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3313 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3315 bool temp2
= False
;
3316 bool temp3
= False
;
3317 PyObject
* obj0
= 0 ;
3318 PyObject
* obj1
= 0 ;
3319 PyObject
* obj2
= 0 ;
3321 (char *) "self",(char *) "filename",(char *) "encoding", NULL
3324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3325 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3327 arg2
= wxString_in_helper(obj1
);
3328 if (arg2
== NULL
) SWIG_fail
;
3333 arg3
= wxString_in_helper(obj2
);
3334 if (arg3
== NULL
) SWIG_fail
;
3339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3340 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3342 wxPyEndAllowThreads(__tstate
);
3343 if (PyErr_Occurred()) SWIG_fail
;
3345 resultobj
= PyInt_FromLong((long)result
);
3368 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3369 PyObject
*resultobj
;
3370 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3371 wxInputStream
*arg2
= 0 ;
3372 wxString
const &arg3_defvalue
= wxPyUTF8String
;
3373 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3375 wxPyInputStream
*temp2
;
3377 bool temp3
= False
;
3378 PyObject
* obj0
= 0 ;
3379 PyObject
* obj1
= 0 ;
3380 PyObject
* obj2
= 0 ;
3382 (char *) "self",(char *) "stream",(char *) "encoding", NULL
3385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3386 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3388 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3389 arg2
= temp2
->m_wxis
;
3392 PyErr_Clear(); // clear the failure of the wxPyConvert above
3393 arg2
= wxPyCBInputStream_create(obj1
, False
);
3395 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3403 arg3
= wxString_in_helper(obj2
);
3404 if (arg3
== NULL
) SWIG_fail
;
3409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3410 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
3412 wxPyEndAllowThreads(__tstate
);
3413 if (PyErr_Occurred()) SWIG_fail
;
3415 resultobj
= PyInt_FromLong((long)result
);
3438 static PyObject
*_wrap_XmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3439 PyObject
*resultobj
;
3440 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3441 wxString
*arg2
= 0 ;
3443 bool temp2
= False
;
3444 PyObject
* obj0
= 0 ;
3445 PyObject
* obj1
= 0 ;
3447 (char *) "self",(char *) "filename", NULL
3450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
3451 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3453 arg2
= wxString_in_helper(obj1
);
3454 if (arg2
== NULL
) SWIG_fail
;
3458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3459 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
3461 wxPyEndAllowThreads(__tstate
);
3462 if (PyErr_Occurred()) SWIG_fail
;
3464 resultobj
= PyInt_FromLong((long)result
);
3479 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3480 PyObject
*resultobj
;
3481 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3482 wxOutputStream
*arg2
= 0 ;
3484 PyObject
* obj0
= 0 ;
3485 PyObject
* obj1
= 0 ;
3487 (char *) "self",(char *) "stream", NULL
3490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
3491 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3492 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxOutputStream
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3494 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
3497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3498 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
3500 wxPyEndAllowThreads(__tstate
);
3501 if (PyErr_Occurred()) SWIG_fail
;
3503 resultobj
= PyInt_FromLong((long)result
);
3510 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
*resultobj
;
3512 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3514 PyObject
* obj0
= 0 ;
3516 (char *) "self", NULL
3519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
3520 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3523 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
3525 wxPyEndAllowThreads(__tstate
);
3526 if (PyErr_Occurred()) SWIG_fail
;
3528 resultobj
= PyInt_FromLong((long)result
);
3535 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3536 PyObject
*resultobj
;
3537 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3539 PyObject
* obj0
= 0 ;
3541 (char *) "self", NULL
3544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
3545 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3548 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
3550 wxPyEndAllowThreads(__tstate
);
3551 if (PyErr_Occurred()) SWIG_fail
;
3553 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3560 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3561 PyObject
*resultobj
;
3562 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3564 PyObject
* obj0
= 0 ;
3566 (char *) "self", NULL
3569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
3570 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3573 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
3575 wxPyEndAllowThreads(__tstate
);
3576 if (PyErr_Occurred()) SWIG_fail
;
3580 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3582 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3591 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3592 PyObject
*resultobj
;
3593 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3595 PyObject
* obj0
= 0 ;
3597 (char *) "self", NULL
3600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
3601 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3604 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
3606 wxPyEndAllowThreads(__tstate
);
3607 if (PyErr_Occurred()) SWIG_fail
;
3611 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3613 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3622 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3623 PyObject
*resultobj
;
3624 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3625 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3626 PyObject
* obj0
= 0 ;
3627 PyObject
* obj1
= 0 ;
3629 (char *) "self",(char *) "node", NULL
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
3633 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3634 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3637 (arg1
)->SetRoot(arg2
);
3639 wxPyEndAllowThreads(__tstate
);
3640 if (PyErr_Occurred()) SWIG_fail
;
3642 Py_INCREF(Py_None
); resultobj
= Py_None
;
3649 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3650 PyObject
*resultobj
;
3651 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3652 wxString
*arg2
= 0 ;
3653 bool temp2
= False
;
3654 PyObject
* obj0
= 0 ;
3655 PyObject
* obj1
= 0 ;
3657 (char *) "self",(char *) "version", NULL
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
3661 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3663 arg2
= wxString_in_helper(obj1
);
3664 if (arg2
== NULL
) SWIG_fail
;
3668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3669 (arg1
)->SetVersion((wxString
const &)*arg2
);
3671 wxPyEndAllowThreads(__tstate
);
3672 if (PyErr_Occurred()) SWIG_fail
;
3674 Py_INCREF(Py_None
); resultobj
= Py_None
;
3689 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3690 PyObject
*resultobj
;
3691 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
3692 wxString
*arg2
= 0 ;
3693 bool temp2
= False
;
3694 PyObject
* obj0
= 0 ;
3695 PyObject
* obj1
= 0 ;
3697 (char *) "self",(char *) "encoding", NULL
3700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
3701 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxXmlDocument
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3703 arg2
= wxString_in_helper(obj1
);
3704 if (arg2
== NULL
) SWIG_fail
;
3708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3709 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
3711 wxPyEndAllowThreads(__tstate
);
3712 if (PyErr_Occurred()) SWIG_fail
;
3714 Py_INCREF(Py_None
); resultobj
= Py_None
;
3729 static PyObject
* XmlDocument_swigregister(PyObject
*self
, PyObject
*args
) {
3731 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3732 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
3734 return Py_BuildValue((char *)"");
3736 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3737 PyObject
*resultobj
;
3738 wxPyXmlResourceHandler
*result
;
3743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
3745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3746 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
3748 wxPyEndAllowThreads(__tstate
);
3749 if (PyErr_Occurred()) SWIG_fail
;
3751 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
3758 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3759 PyObject
*resultobj
;
3760 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3761 PyObject
*arg2
= (PyObject
*) 0 ;
3762 PyObject
*arg3
= (PyObject
*) 0 ;
3763 PyObject
* obj0
= 0 ;
3764 PyObject
* obj1
= 0 ;
3765 PyObject
* obj2
= 0 ;
3767 (char *) "self",(char *) "self",(char *) "_class", NULL
3770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3771 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3776 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3778 wxPyEndAllowThreads(__tstate
);
3779 if (PyErr_Occurred()) SWIG_fail
;
3781 Py_INCREF(Py_None
); resultobj
= Py_None
;
3788 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3789 PyObject
*resultobj
;
3790 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3791 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3792 wxObject
*arg3
= (wxObject
*) 0 ;
3793 wxObject
*arg4
= (wxObject
*) 0 ;
3795 PyObject
* obj0
= 0 ;
3796 PyObject
* obj1
= 0 ;
3797 PyObject
* obj2
= 0 ;
3798 PyObject
* obj3
= 0 ;
3800 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
3803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3804 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3805 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3806 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3807 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3810 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
3812 wxPyEndAllowThreads(__tstate
);
3813 if (PyErr_Occurred()) SWIG_fail
;
3816 resultobj
= wxPyMake_wxObject(result
);
3824 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3825 PyObject
*resultobj
;
3826 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3827 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
3828 PyObject
* obj0
= 0 ;
3829 PyObject
* obj1
= 0 ;
3831 (char *) "self",(char *) "res", NULL
3834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
3835 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3836 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlResource
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3839 (arg1
)->SetParentResource(arg2
);
3841 wxPyEndAllowThreads(__tstate
);
3842 if (PyErr_Occurred()) SWIG_fail
;
3844 Py_INCREF(Py_None
); resultobj
= Py_None
;
3851 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3852 PyObject
*resultobj
;
3853 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3854 wxXmlResource
*result
;
3855 PyObject
* obj0
= 0 ;
3857 (char *) "self", NULL
3860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
3861 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3864 result
= (wxXmlResource
*)(arg1
)->GetResource();
3866 wxPyEndAllowThreads(__tstate
);
3867 if (PyErr_Occurred()) SWIG_fail
;
3869 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlResource
, 0);
3876 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
*resultobj
;
3878 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3880 PyObject
* obj0
= 0 ;
3882 (char *) "self", NULL
3885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
3886 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3889 result
= (wxXmlNode
*)(arg1
)->GetNode();
3891 wxPyEndAllowThreads(__tstate
);
3892 if (PyErr_Occurred()) SWIG_fail
;
3894 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
3901 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3902 PyObject
*resultobj
;
3903 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3905 PyObject
* obj0
= 0 ;
3907 (char *) "self", NULL
3910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
3911 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3913 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3914 result
= (arg1
)->GetClass();
3916 wxPyEndAllowThreads(__tstate
);
3917 if (PyErr_Occurred()) SWIG_fail
;
3921 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3923 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3932 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3933 PyObject
*resultobj
;
3934 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3936 PyObject
* obj0
= 0 ;
3938 (char *) "self", NULL
3941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
3942 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3945 result
= (wxObject
*)(arg1
)->GetParent();
3947 wxPyEndAllowThreads(__tstate
);
3948 if (PyErr_Occurred()) SWIG_fail
;
3951 resultobj
= wxPyMake_wxObject(result
);
3959 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3960 PyObject
*resultobj
;
3961 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3963 PyObject
* obj0
= 0 ;
3965 (char *) "self", NULL
3968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
3969 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3972 result
= (wxObject
*)(arg1
)->GetInstance();
3974 wxPyEndAllowThreads(__tstate
);
3975 if (PyErr_Occurred()) SWIG_fail
;
3978 resultobj
= wxPyMake_wxObject(result
);
3986 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3987 PyObject
*resultobj
;
3988 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
3990 PyObject
* obj0
= 0 ;
3992 (char *) "self", NULL
3995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
3996 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
3998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3999 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
4001 wxPyEndAllowThreads(__tstate
);
4002 if (PyErr_Occurred()) SWIG_fail
;
4005 resultobj
= wxPyMake_wxObject(result
);
4013 static PyObject
*_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
*resultobj
;
4015 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4017 PyObject
* obj0
= 0 ;
4019 (char *) "self", NULL
4022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames
,&obj0
)) goto fail
;
4023 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4026 result
= (wxWindow
*)(arg1
)->GetInstanceAsWindow();
4028 wxPyEndAllowThreads(__tstate
);
4029 if (PyErr_Occurred()) SWIG_fail
;
4032 resultobj
= wxPyMake_wxObject(result
);
4040 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4041 PyObject
*resultobj
;
4042 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4043 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4044 wxString
*arg3
= 0 ;
4046 bool temp3
= False
;
4047 PyObject
* obj0
= 0 ;
4048 PyObject
* obj1
= 0 ;
4049 PyObject
* obj2
= 0 ;
4051 (char *) "self",(char *) "node",(char *) "classname", NULL
4054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4055 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4056 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4058 arg3
= wxString_in_helper(obj2
);
4059 if (arg3
== NULL
) SWIG_fail
;
4063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4064 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
4066 wxPyEndAllowThreads(__tstate
);
4067 if (PyErr_Occurred()) SWIG_fail
;
4069 resultobj
= PyInt_FromLong((long)result
);
4084 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4085 PyObject
*resultobj
;
4086 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4087 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4089 PyObject
* obj0
= 0 ;
4090 PyObject
* obj1
= 0 ;
4092 (char *) "self",(char *) "node", NULL
4095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4096 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4097 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4100 result
= (arg1
)->GetNodeContent(arg2
);
4102 wxPyEndAllowThreads(__tstate
);
4103 if (PyErr_Occurred()) SWIG_fail
;
4107 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4109 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4118 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4119 PyObject
*resultobj
;
4120 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4121 wxString
*arg2
= 0 ;
4123 bool temp2
= False
;
4124 PyObject
* obj0
= 0 ;
4125 PyObject
* obj1
= 0 ;
4127 (char *) "self",(char *) "param", NULL
4130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
4131 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4133 arg2
= wxString_in_helper(obj1
);
4134 if (arg2
== NULL
) SWIG_fail
;
4138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4139 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
4141 wxPyEndAllowThreads(__tstate
);
4142 if (PyErr_Occurred()) SWIG_fail
;
4144 resultobj
= PyInt_FromLong((long)result
);
4159 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4160 PyObject
*resultobj
;
4161 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4162 wxString
*arg2
= 0 ;
4164 bool temp2
= False
;
4165 PyObject
* obj0
= 0 ;
4166 PyObject
* obj1
= 0 ;
4168 (char *) "self",(char *) "param", NULL
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
4172 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4174 arg2
= wxString_in_helper(obj1
);
4175 if (arg2
== NULL
) SWIG_fail
;
4179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4180 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
4182 wxPyEndAllowThreads(__tstate
);
4183 if (PyErr_Occurred()) SWIG_fail
;
4185 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxXmlNode
, 0);
4200 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4201 PyObject
*resultobj
;
4202 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4203 wxString
*arg2
= 0 ;
4205 bool temp2
= False
;
4206 PyObject
* obj0
= 0 ;
4207 PyObject
* obj1
= 0 ;
4209 (char *) "self",(char *) "param", NULL
4212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
4213 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4215 arg2
= wxString_in_helper(obj1
);
4216 if (arg2
== NULL
) SWIG_fail
;
4220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4221 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
4223 wxPyEndAllowThreads(__tstate
);
4224 if (PyErr_Occurred()) SWIG_fail
;
4228 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4230 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4247 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4248 PyObject
*resultobj
;
4249 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4250 wxString
*arg2
= 0 ;
4252 bool temp2
= False
;
4253 PyObject
* obj0
= 0 ;
4254 PyObject
* obj1
= 0 ;
4256 (char *) "self",(char *) "name",(char *) "value", NULL
4259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOi:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4260 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4262 arg2
= wxString_in_helper(obj1
);
4263 if (arg2
== NULL
) SWIG_fail
;
4267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4268 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
4270 wxPyEndAllowThreads(__tstate
);
4271 if (PyErr_Occurred()) SWIG_fail
;
4273 Py_INCREF(Py_None
); resultobj
= Py_None
;
4288 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4289 PyObject
*resultobj
;
4290 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4291 PyObject
* obj0
= 0 ;
4293 (char *) "self", NULL
4296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
4297 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4299 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4300 (arg1
)->AddWindowStyles();
4302 wxPyEndAllowThreads(__tstate
);
4303 if (PyErr_Occurred()) SWIG_fail
;
4305 Py_INCREF(Py_None
); resultobj
= Py_None
;
4312 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4313 PyObject
*resultobj
;
4314 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4315 wxString
const &arg2_defvalue
= wxPyStyleString
;
4316 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4317 int arg3
= (int) 0 ;
4319 bool temp2
= False
;
4320 PyObject
* obj0
= 0 ;
4321 PyObject
* obj1
= 0 ;
4323 (char *) "self",(char *) "param",(char *) "defaults", NULL
4326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|Oi:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4327 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4330 arg2
= wxString_in_helper(obj1
);
4331 if (arg2
== NULL
) SWIG_fail
;
4336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4337 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
4339 wxPyEndAllowThreads(__tstate
);
4340 if (PyErr_Occurred()) SWIG_fail
;
4342 resultobj
= PyInt_FromLong((long)result
);
4357 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4358 PyObject
*resultobj
;
4359 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4360 wxString
*arg2
= 0 ;
4361 bool arg3
= (bool) True
;
4363 bool temp2
= False
;
4364 PyObject
* obj0
= 0 ;
4365 PyObject
* obj1
= 0 ;
4366 PyObject
* obj2
= 0 ;
4368 (char *) "self",(char *) "param",(char *) "translate", NULL
4371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4372 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4374 arg2
= wxString_in_helper(obj1
);
4375 if (arg2
== NULL
) SWIG_fail
;
4380 arg3
= (bool) SPyObj_AsBool(obj2
);
4381 if (PyErr_Occurred()) SWIG_fail
;
4385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4386 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
4388 wxPyEndAllowThreads(__tstate
);
4389 if (PyErr_Occurred()) SWIG_fail
;
4393 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4395 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4412 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4413 PyObject
*resultobj
;
4414 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4416 PyObject
* obj0
= 0 ;
4418 (char *) "self", NULL
4421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
4422 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4425 result
= (int)(arg1
)->GetID();
4427 wxPyEndAllowThreads(__tstate
);
4428 if (PyErr_Occurred()) SWIG_fail
;
4430 resultobj
= PyInt_FromLong((long)result
);
4437 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4438 PyObject
*resultobj
;
4439 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4441 PyObject
* obj0
= 0 ;
4443 (char *) "self", NULL
4446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
4447 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4450 result
= (arg1
)->GetName();
4452 wxPyEndAllowThreads(__tstate
);
4453 if (PyErr_Occurred()) SWIG_fail
;
4457 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4459 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4468 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4469 PyObject
*resultobj
;
4470 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4471 wxString
*arg2
= 0 ;
4472 bool arg3
= (bool) False
;
4474 bool temp2
= False
;
4475 PyObject
* obj0
= 0 ;
4476 PyObject
* obj1
= 0 ;
4477 PyObject
* obj2
= 0 ;
4479 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4483 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4485 arg2
= wxString_in_helper(obj1
);
4486 if (arg2
== NULL
) SWIG_fail
;
4491 arg3
= (bool) SPyObj_AsBool(obj2
);
4492 if (PyErr_Occurred()) SWIG_fail
;
4496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4497 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
4499 wxPyEndAllowThreads(__tstate
);
4500 if (PyErr_Occurred()) SWIG_fail
;
4502 resultobj
= PyInt_FromLong((long)result
);
4517 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4518 PyObject
*resultobj
;
4519 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4520 wxString
*arg2
= 0 ;
4521 long arg3
= (long) 0 ;
4523 bool temp2
= False
;
4524 PyObject
* obj0
= 0 ;
4525 PyObject
* obj1
= 0 ;
4527 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|l:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4531 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4533 arg2
= wxString_in_helper(obj1
);
4534 if (arg2
== NULL
) SWIG_fail
;
4538 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4539 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
4541 wxPyEndAllowThreads(__tstate
);
4542 if (PyErr_Occurred()) SWIG_fail
;
4544 resultobj
= PyInt_FromLong((long)result
);
4559 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4560 PyObject
*resultobj
;
4561 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4562 wxString
*arg2
= 0 ;
4564 bool temp2
= False
;
4565 PyObject
* obj0
= 0 ;
4566 PyObject
* obj1
= 0 ;
4568 (char *) "self",(char *) "param", NULL
4571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
4572 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4574 arg2
= wxString_in_helper(obj1
);
4575 if (arg2
== NULL
) SWIG_fail
;
4579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4580 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
4582 wxPyEndAllowThreads(__tstate
);
4583 if (PyErr_Occurred()) SWIG_fail
;
4586 wxColour
* resultptr
;
4587 resultptr
= new wxColour((wxColour
&) result
);
4588 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxColour
, 1);
4604 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4605 PyObject
*resultobj
;
4606 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4607 wxString
const &arg2_defvalue
= wxPySizeString
;
4608 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4610 bool temp2
= False
;
4611 PyObject
* obj0
= 0 ;
4612 PyObject
* obj1
= 0 ;
4614 (char *) "self",(char *) "param", NULL
4617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
4618 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4621 arg2
= wxString_in_helper(obj1
);
4622 if (arg2
== NULL
) SWIG_fail
;
4627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4628 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
4630 wxPyEndAllowThreads(__tstate
);
4631 if (PyErr_Occurred()) SWIG_fail
;
4635 resultptr
= new wxSize((wxSize
&) result
);
4636 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxSize
, 1);
4652 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4653 PyObject
*resultobj
;
4654 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4655 wxString
const &arg2_defvalue
= wxPyPosString
;
4656 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4658 bool temp2
= False
;
4659 PyObject
* obj0
= 0 ;
4660 PyObject
* obj1
= 0 ;
4662 (char *) "self",(char *) "param", NULL
4665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
4666 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4669 arg2
= wxString_in_helper(obj1
);
4670 if (arg2
== NULL
) SWIG_fail
;
4675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4676 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
4678 wxPyEndAllowThreads(__tstate
);
4679 if (PyErr_Occurred()) SWIG_fail
;
4682 wxPoint
* resultptr
;
4683 resultptr
= new wxPoint((wxPoint
&) result
);
4684 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxPoint
, 1);
4700 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
*resultobj
;
4702 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4703 wxString
*arg2
= 0 ;
4704 int arg3
= (int) 0 ;
4706 bool temp2
= False
;
4707 PyObject
* obj0
= 0 ;
4708 PyObject
* obj1
= 0 ;
4710 (char *) "self",(char *) "param",(char *) "defaultv", NULL
4713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|i:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&arg3
)) goto fail
;
4714 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4716 arg2
= wxString_in_helper(obj1
);
4717 if (arg2
== NULL
) SWIG_fail
;
4721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4722 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
4724 wxPyEndAllowThreads(__tstate
);
4725 if (PyErr_Occurred()) SWIG_fail
;
4727 resultobj
= PyInt_FromLong((long)result
);
4742 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4743 PyObject
*resultobj
;
4744 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4745 wxString
const &arg2_defvalue
= wxPyBitmapString
;
4746 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4747 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4748 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4749 wxSize arg4
= (wxSize
) wxDefaultSize
;
4751 bool temp2
= False
;
4753 PyObject
* obj0
= 0 ;
4754 PyObject
* obj1
= 0 ;
4755 PyObject
* obj2
= 0 ;
4756 PyObject
* obj3
= 0 ;
4758 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4762 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4765 arg2
= wxString_in_helper(obj1
);
4766 if (arg2
== NULL
) SWIG_fail
;
4771 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4773 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4777 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4782 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4784 wxPyEndAllowThreads(__tstate
);
4785 if (PyErr_Occurred()) SWIG_fail
;
4788 wxBitmap
* resultptr
;
4789 resultptr
= new wxBitmap((wxBitmap
&) result
);
4790 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxBitmap
, 1);
4806 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4807 PyObject
*resultobj
;
4808 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4809 wxString
const &arg2_defvalue
= wxPyIconString
;
4810 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4811 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
4812 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
4813 wxSize arg4
= (wxSize
) wxDefaultSize
;
4815 bool temp2
= False
;
4817 PyObject
* obj0
= 0 ;
4818 PyObject
* obj1
= 0 ;
4819 PyObject
* obj2
= 0 ;
4820 PyObject
* obj3
= 0 ;
4822 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
4825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
4826 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4829 arg2
= wxString_in_helper(obj1
);
4830 if (arg2
== NULL
) SWIG_fail
;
4835 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxArtClient
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4837 PyErr_SetString(PyExc_TypeError
,"null reference"); SWIG_fail
;
4841 if ((SWIG_ConvertPtr(obj3
,(void **) &argp4
, SWIGTYPE_p_wxSize
,SWIG_POINTER_EXCEPTION
) == -1)) SWIG_fail
;
4845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4846 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
4848 wxPyEndAllowThreads(__tstate
);
4849 if (PyErr_Occurred()) SWIG_fail
;
4853 resultptr
= new wxIcon((wxIcon
&) result
);
4854 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxIcon
, 1);
4870 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4871 PyObject
*resultobj
;
4872 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4873 wxString
const &arg2_defvalue
= wxPyFontString
;
4874 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4876 bool temp2
= False
;
4877 PyObject
* obj0
= 0 ;
4878 PyObject
* obj1
= 0 ;
4880 (char *) "self",(char *) "param", NULL
4883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
4884 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4887 arg2
= wxString_in_helper(obj1
);
4888 if (arg2
== NULL
) SWIG_fail
;
4893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4894 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
4896 wxPyEndAllowThreads(__tstate
);
4897 if (PyErr_Occurred()) SWIG_fail
;
4901 resultptr
= new wxFont((wxFont
&) result
);
4902 resultobj
= SWIG_NewPointerObj((void *) resultptr
, SWIGTYPE_p_wxFont
, 1);
4918 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4919 PyObject
*resultobj
;
4920 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4921 wxWindow
*arg2
= (wxWindow
*) 0 ;
4922 PyObject
* obj0
= 0 ;
4923 PyObject
* obj1
= 0 ;
4925 (char *) "self",(char *) "wnd", NULL
4928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
4929 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4930 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxWindow
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4933 (arg1
)->SetupWindow(arg2
);
4935 wxPyEndAllowThreads(__tstate
);
4936 if (PyErr_Occurred()) SWIG_fail
;
4938 Py_INCREF(Py_None
); resultobj
= Py_None
;
4945 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4946 PyObject
*resultobj
;
4947 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4948 wxObject
*arg2
= (wxObject
*) 0 ;
4949 bool arg3
= (bool) False
;
4950 PyObject
* obj0
= 0 ;
4951 PyObject
* obj1
= 0 ;
4952 PyObject
* obj2
= 0 ;
4954 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
4957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4958 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4959 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4962 arg3
= (bool) SPyObj_AsBool(obj2
);
4963 if (PyErr_Occurred()) SWIG_fail
;
4967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4968 (arg1
)->CreateChildren(arg2
,arg3
);
4970 wxPyEndAllowThreads(__tstate
);
4971 if (PyErr_Occurred()) SWIG_fail
;
4973 Py_INCREF(Py_None
); resultobj
= Py_None
;
4980 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4981 PyObject
*resultobj
;
4982 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
4983 wxObject
*arg2
= (wxObject
*) 0 ;
4984 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
4985 PyObject
* obj0
= 0 ;
4986 PyObject
* obj1
= 0 ;
4987 PyObject
* obj2
= 0 ;
4989 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
4992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4993 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4994 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4996 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
4999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5000 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
5002 wxPyEndAllowThreads(__tstate
);
5003 if (PyErr_Occurred()) SWIG_fail
;
5005 Py_INCREF(Py_None
); resultobj
= Py_None
;
5012 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5013 PyObject
*resultobj
;
5014 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5015 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5016 wxObject
*arg3
= (wxObject
*) 0 ;
5017 wxObject
*arg4
= (wxObject
*) NULL
;
5019 PyObject
* obj0
= 0 ;
5020 PyObject
* obj1
= 0 ;
5021 PyObject
* obj2
= 0 ;
5022 PyObject
* obj3
= 0 ;
5024 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5028 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5029 if ((SWIG_ConvertPtr(obj1
,(void **) &arg2
, SWIGTYPE_p_wxXmlNode
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5030 if ((SWIG_ConvertPtr(obj2
,(void **) &arg3
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5032 if ((SWIG_ConvertPtr(obj3
,(void **) &arg4
, SWIGTYPE_p_wxObject
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5036 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
5038 wxPyEndAllowThreads(__tstate
);
5039 if (PyErr_Occurred()) SWIG_fail
;
5042 resultobj
= wxPyMake_wxObject(result
);
5050 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5051 PyObject
*resultobj
;
5052 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5053 wxFileSystem
*result
;
5054 PyObject
* obj0
= 0 ;
5056 (char *) "self", NULL
5059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
5060 if ((SWIG_ConvertPtr(obj0
,(void **) &arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
,SWIG_POINTER_EXCEPTION
| 0 )) == -1) SWIG_fail
;
5062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5064 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
5065 result
= (wxFileSystem
*) &_result_ref
;
5068 wxPyEndAllowThreads(__tstate
);
5069 if (PyErr_Occurred()) SWIG_fail
;
5071 resultobj
= SWIG_NewPointerObj((void *) result
, SWIGTYPE_p_wxFileSystem
, 0);
5078 static PyObject
* XmlResourceHandler_swigregister(PyObject
*self
, PyObject
*args
) {
5080 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5081 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
5083 return Py_BuildValue((char *)"");
5085 static PyMethodDef SwigMethods
[] = {
5086 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5087 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5088 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5089 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5090 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5091 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5092 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5093 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5094 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5095 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5096 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5097 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5098 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5099 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5100 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5101 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5102 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5103 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5104 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5105 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5106 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5107 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5108 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5109 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5110 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5111 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5112 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5113 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5114 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5115 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5116 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5117 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5118 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
},
5119 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5120 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5121 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
},
5122 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5123 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5124 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5125 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5126 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5127 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5128 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5129 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
},
5130 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5131 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5132 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5133 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5134 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5135 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5136 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5137 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5138 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5139 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5140 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5141 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5142 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5143 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5144 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5145 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5146 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5147 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5148 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5149 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5150 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5151 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5152 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5153 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5154 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5155 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
},
5156 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5157 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5158 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5159 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5160 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5161 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5162 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5163 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5164 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5165 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5166 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5167 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5168 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5169 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5170 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5171 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
},
5172 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5173 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5174 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5175 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5176 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5177 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5178 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5179 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5180 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5181 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5182 { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5183 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5184 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5185 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5186 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5187 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5188 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5189 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5190 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5191 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5192 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5193 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5194 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5195 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5196 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5197 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5198 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5199 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5200 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5201 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5202 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5203 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5204 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5205 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5206 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5207 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5208 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
},
5213 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5215 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
5216 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
5218 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
5219 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
5221 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
5222 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
5224 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
5225 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
5227 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
5228 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
5230 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
5231 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
5233 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
5234 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
5236 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
5237 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
5239 static void *_p_wxSizerTo_p_wxObject(void *x
) {
5240 return (void *)((wxObject
*) ((wxSizer
*) x
));
5242 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
5243 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
5245 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
5246 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5248 static void *_p_wxEventTo_p_wxObject(void *x
) {
5249 return (void *)((wxObject
*) ((wxEvent
*) x
));
5251 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
5252 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
5254 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
5255 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
5257 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
5258 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
5260 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
5261 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
5263 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
5264 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
5266 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
5267 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
5269 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
5270 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
5272 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
5273 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
5275 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
5276 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
5278 static void *_p_wxControlTo_p_wxObject(void *x
) {
5279 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
5281 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
5282 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
5284 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
5285 return (void *)((wxObject
*) ((wxFSFile
*) x
));
5287 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
5288 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
5290 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
5291 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
5293 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
5294 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5296 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
5297 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
5299 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
5300 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
5302 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
5303 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
5305 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
5306 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5308 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
5309 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
5311 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
5312 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
5314 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
5315 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
5317 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
5318 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
5320 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
5321 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
5323 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
5324 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
5326 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5327 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5329 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
5330 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
5332 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
5333 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
5335 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
5336 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
5338 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
5339 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
5341 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
5342 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
5344 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
5345 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
5347 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
5348 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
5350 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
5351 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
5353 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5354 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5356 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5357 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5359 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5360 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5362 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5363 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5365 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
5366 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
5368 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5369 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5371 static void *_p_wxImageTo_p_wxObject(void *x
) {
5372 return (void *)((wxObject
*) ((wxImage
*) x
));
5374 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5375 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5377 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
5378 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
5380 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5381 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5383 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5384 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5386 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5387 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5389 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5390 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5392 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5393 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5395 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5396 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5398 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5399 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5401 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5402 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5404 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5405 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5407 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5408 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5410 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5411 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5413 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5414 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5416 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5417 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5419 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5420 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5422 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5423 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5425 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5426 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5428 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5429 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5431 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5432 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5434 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5435 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5437 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5438 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5440 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5441 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5443 static void *_p_wxControlTo_p_wxWindow(void *x
) {
5444 return (void *)((wxWindow
*) ((wxControl
*) x
));
5446 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
5447 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
5449 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
5450 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
5452 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
5453 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
5454 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
},{"_p_wxEvent", _p_wxEventTo_p_wxObject
},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
},{"_p_wxControl", _p_wxControlTo_p_wxObject
},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
},{"_p_wxImage", _p_wxImageTo_p_wxObject
},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
},{"_p_wxObject"},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
},{0}};
5455 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{0}};
5456 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
5457 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
},{0}};
5458 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0},{"_p_wxArtClient"},{0}};
5459 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
5460 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0},{"_p_wxPyXmlSubclassFactory"},{0}};
5461 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
5462 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0},{"_p_wxXmlNode"},{0}};
5463 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
5464 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
5465 static swig_type_info _swigt__p_wxString
[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
5466 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0},{"_p_wxPyXmlResourceHandler"},{0}};
5467 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
5468 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0},{"_p_wxXmlProperty"},{0}};
5469 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
5470 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0},{"_p_wxXmlResource"},{0}};
5471 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0},{"_p_wxXmlDocument"},{0}};
5472 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{0}};
5473 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
5475 static swig_type_info
*swig_types_initial
[] = {
5482 _swigt__p_wxArtClient
,
5484 _swigt__p_wxPyXmlSubclassFactory
,
5486 _swigt__p_wxXmlNode
,
5487 _swigt__p_wxInputStream
,
5488 _swigt__p_wxOutputStream
,
5490 _swigt__p_wxPyXmlResourceHandler
,
5491 _swigt__p_wxFileSystem
,
5492 _swigt__p_wxXmlProperty
,
5494 _swigt__p_wxXmlResource
,
5495 _swigt__p_wxXmlDocument
,
5502 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5504 static swig_const_info swig_const_table
[] = {
5505 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MAJOR", (long) WX_XMLRES_CURRENT_VERSION_MAJOR
, 0, 0, 0},
5506 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_MINOR", (long) WX_XMLRES_CURRENT_VERSION_MINOR
, 0, 0, 0},
5507 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_RELEASE", (long) WX_XMLRES_CURRENT_VERSION_RELEASE
, 0, 0, 0},
5508 { SWIG_PY_INT
, (char *)"WX_XMLRES_CURRENT_VERSION_REVISION", (long) WX_XMLRES_CURRENT_VERSION_REVISION
, 0, 0, 0},
5509 { SWIG_PY_INT
, (char *)"XRC_USE_LOCALE", (long) wxXRC_USE_LOCALE
, 0, 0, 0},
5510 { SWIG_PY_INT
, (char *)"XRC_NO_SUBCLASSING", (long) wxXRC_NO_SUBCLASSING
, 0, 0, 0},
5511 { SWIG_PY_INT
, (char *)"XML_ELEMENT_NODE", (long) wxXML_ELEMENT_NODE
, 0, 0, 0},
5512 { SWIG_PY_INT
, (char *)"XML_ATTRIBUTE_NODE", (long) wxXML_ATTRIBUTE_NODE
, 0, 0, 0},
5513 { SWIG_PY_INT
, (char *)"XML_TEXT_NODE", (long) wxXML_TEXT_NODE
, 0, 0, 0},
5514 { SWIG_PY_INT
, (char *)"XML_CDATA_SECTION_NODE", (long) wxXML_CDATA_SECTION_NODE
, 0, 0, 0},
5515 { SWIG_PY_INT
, (char *)"XML_ENTITY_REF_NODE", (long) wxXML_ENTITY_REF_NODE
, 0, 0, 0},
5516 { SWIG_PY_INT
, (char *)"XML_ENTITY_NODE", (long) wxXML_ENTITY_NODE
, 0, 0, 0},
5517 { SWIG_PY_INT
, (char *)"XML_PI_NODE", (long) wxXML_PI_NODE
, 0, 0, 0},
5518 { SWIG_PY_INT
, (char *)"XML_COMMENT_NODE", (long) wxXML_COMMENT_NODE
, 0, 0, 0},
5519 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_NODE", (long) wxXML_DOCUMENT_NODE
, 0, 0, 0},
5520 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_TYPE_NODE", (long) wxXML_DOCUMENT_TYPE_NODE
, 0, 0, 0},
5521 { SWIG_PY_INT
, (char *)"XML_DOCUMENT_FRAG_NODE", (long) wxXML_DOCUMENT_FRAG_NODE
, 0, 0, 0},
5522 { SWIG_PY_INT
, (char *)"XML_NOTATION_NODE", (long) wxXML_NOTATION_NODE
, 0, 0, 0},
5523 { SWIG_PY_INT
, (char *)"XML_HTML_DOCUMENT_NODE", (long) wxXML_HTML_DOCUMENT_NODE
, 0, 0, 0},
5533 SWIGEXPORT(void) SWIG_init(void) {
5534 static PyObject
*SWIG_globals
= 0;
5535 static int typeinit
= 0;
5538 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5539 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5540 d
= PyModule_GetDict(m
);
5543 for (i
= 0; swig_types_initial
[i
]; i
++) {
5544 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5548 SWIG_InstallConstants(d
,swig_const_table
);
5550 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5551 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
5552 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
5553 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
5554 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
5555 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
5556 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
5557 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
5560 wxXmlInitResourceModule();
5561 wxXmlResource::Get()->InitAllHandlers();