2 * FILE : contrib/xrc/xrc.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initxrcc
55 #define SWIG_name "xrcc"
58 #include "pyistream.h"
59 #include "wx/xml/xml.h"
60 #include "wx/xrc/xmlres.h"
61 #include <wx/filesys.h>
62 #include <wx/fs_mem.h>
65 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
71 } else if (target
== Py_None
) {
75 if (!PyTuple_Check(target
)) {
77 target
= PyTuple_New(1);
78 PyTuple_SetItem(target
, 0, o2
);
81 PyTuple_SetItem(o3
, 0, o
);
84 target
= PySequence_Concat(o2
, o3
);
91 // Put some wx default wxChar* values into wxStrings.
92 static const wxString
wxPyEmptyString(wxT(""));
93 static const wxString
wxPyUTF8String(wxT("UTF-8"));
94 static const wxString
wxPyStyleString(wxT("style"));
95 static const wxString
wxPySizeString(wxT("size"));
96 static const wxString
wxPyPosString(wxT("pos"));
97 static const wxString
wxPyBitmapString(wxT("bitmap"));
98 static const wxString
wxPyIconString(wxT("icon"));
99 static const wxString
wxPyFontString(wxT("font"));
101 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
104 wxPyXmlSubclassFactory() {}
105 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
109 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
110 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
111 // callbacks, as well as to make some protected things public so they can
113 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
115 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
116 //~wxPyXmlResourceHandler();
118 // Base class virtuals
120 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
121 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
124 // accessors for protected members
126 wxXmlResource
* GetResource() { return m_resource
; }
127 wxXmlNode
* GetNode() { return m_node
; }
128 wxString
GetClass() { return m_class
; }
129 wxObject
* GetParent() { return m_parent
; }
130 wxObject
* GetInstance() { return m_instance
; }
131 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
132 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
135 // turn some protected methods into public via delegation
137 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
138 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
140 wxString
GetNodeContent(wxXmlNode
*node
)
141 { return wxXmlResourceHandler::GetNodeContent(node
); }
143 bool HasParam(const wxString
& param
)
144 { return wxXmlResourceHandler::HasParam(param
); }
146 wxXmlNode
*GetParamNode(const wxString
& param
)
147 { return wxXmlResourceHandler::GetParamNode(param
); }
149 wxString
GetParamValue(const wxString
& param
)
150 { return wxXmlResourceHandler::GetParamValue(param
); }
152 void AddStyle(const wxString
& name
, int value
)
153 { wxXmlResourceHandler::AddStyle(name
, value
); }
155 void AddWindowStyles()
156 { wxXmlResourceHandler::AddWindowStyles(); }
158 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
159 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
161 wxString
GetText(const wxString
& param
, bool translate
= TRUE
)
162 { return wxXmlResourceHandler::GetText(param
, translate
); }
165 { return wxXmlResourceHandler::GetID(); }
168 { return wxXmlResourceHandler::GetName(); }
170 bool GetBool(const wxString
& param
, bool defaultv
= FALSE
)
171 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
173 long GetLong( const wxString
& param
, long defaultv
= 0 )
174 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
176 wxColour
GetColour(const wxString
& param
)
177 { return wxXmlResourceHandler::GetColour(param
); }
179 wxSize
GetSize(const wxString
& param
= wxT("size"))
180 { return wxXmlResourceHandler::GetSize(param
); }
182 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
183 { return wxXmlResourceHandler::GetPosition(param
); }
185 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
186 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
188 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
189 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
190 wxSize size
= wxDefaultSize
)
191 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
193 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
194 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
195 wxSize size
= wxDefaultSize
)
196 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
198 wxFont
GetFont(const wxString
& param
= wxT("font"))
199 { return wxXmlResourceHandler::GetFont(param
); }
201 void SetupWindow(wxWindow
*wnd
)
202 { wxXmlResourceHandler::SetupWindow(wnd
); }
204 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= FALSE
)
205 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
207 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
208 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
210 wxObject
*CreateResFromNode(wxXmlNode
*node
,
211 wxObject
*parent
, wxObject
*instance
= NULL
)
212 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
214 wxFileSystem
& GetCurFileSystem()
215 { return wxXmlResourceHandler::GetCurFileSystem(); }
221 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
222 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
227 static void *SwigwxXmlResourceTowxObject(void *ptr
) {
230 src
= (wxXmlResource
*) ptr
;
231 dest
= (wxObject
*) src
;
232 return (void *) dest
;
235 #define new_wxXmlResource(_swigarg0,_swigarg1) (new wxXmlResource(_swigarg0,_swigarg1))
236 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
237 PyObject
* _resultobj
;
238 wxXmlResource
* _result
;
240 int _arg1
= (int ) (wxXRC_USE_LOCALE
);
241 PyObject
* _obj0
= 0;
242 char *_kwnames
[] = { "filemask","flags", NULL
};
246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&_arg1
))
249 _arg0
= wxString_in_helper(_obj0
);
254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
255 _result
= (wxXmlResource
*)new_wxXmlResource(*_arg0
,_arg1
);
257 wxPyEndAllowThreads(__tstate
);
258 if (PyErr_Occurred()) return NULL
;
260 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
261 _resultobj
= Py_BuildValue("s",_ptemp
);
264 _resultobj
= Py_None
;
273 #define new_wxEmptyXmlResource(_swigarg0) (new wxXmlResource(_swigarg0))
274 static PyObject
*_wrap_new_wxEmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
276 wxXmlResource
* _result
;
277 int _arg0
= (int ) (wxXRC_USE_LOCALE
);
278 char *_kwnames
[] = { "flags", NULL
};
282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxEmptyXmlResource",_kwnames
,&_arg0
))
285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
286 _result
= (wxXmlResource
*)new_wxEmptyXmlResource(_arg0
);
288 wxPyEndAllowThreads(__tstate
);
289 if (PyErr_Occurred()) return NULL
;
291 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
292 _resultobj
= Py_BuildValue("s",_ptemp
);
295 _resultobj
= Py_None
;
300 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
301 static PyObject
*_wrap_delete_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
302 PyObject
* _resultobj
;
303 wxXmlResource
* _arg0
;
304 PyObject
* _argo0
= 0;
305 char *_kwnames
[] = { "self", NULL
};
308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_argo0
))
311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
319 delete_wxXmlResource(_arg0
);
321 wxPyEndAllowThreads(__tstate
);
322 if (PyErr_Occurred()) return NULL
;
323 } Py_INCREF(Py_None
);
324 _resultobj
= Py_None
;
328 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
329 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
330 PyObject
* _resultobj
;
332 wxXmlResource
* _arg0
;
334 PyObject
* _argo0
= 0;
335 PyObject
* _obj1
= 0;
336 char *_kwnames
[] = { "self","filemask", NULL
};
339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
349 _arg1
= wxString_in_helper(_obj1
);
354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
355 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
357 wxPyEndAllowThreads(__tstate
);
358 if (PyErr_Occurred()) return NULL
;
359 } _resultobj
= Py_BuildValue("i",_result
);
367 static bool wxXmlResource_LoadFromString(wxXmlResource
*self
,const wxString
& data
) {
368 static int s_memFileIdx
= 0;
370 // Check for memory FS. If not present, load the handler:
371 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
374 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
375 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
379 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
381 // Now put the resource data into the memory FS
382 wxString
filename(wxT("XRC_resource/data_string_"));
383 filename
<< s_memFileIdx
;
385 wxMemoryFSHandler::AddFile(filename
, data
);
387 // Load the "file" into the resource object
388 bool retval
= self
->Load(wxT("memory:") + filename
);
392 static PyObject
*_wrap_wxXmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
393 PyObject
* _resultobj
;
395 wxXmlResource
* _arg0
;
397 PyObject
* _argo0
= 0;
398 PyObject
* _obj1
= 0;
399 char *_kwnames
[] = { "self","data", NULL
};
402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadFromString",_kwnames
,&_argo0
,&_obj1
))
405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFromString. Expected _wxXmlResource_p.");
412 _arg1
= wxString_in_helper(_obj1
);
417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
418 _result
= (bool )wxXmlResource_LoadFromString(_arg0
,*_arg1
);
420 wxPyEndAllowThreads(__tstate
);
421 if (PyErr_Occurred()) return NULL
;
422 } _resultobj
= Py_BuildValue("i",_result
);
430 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
431 static PyObject
*_wrap_wxXmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
432 PyObject
* _resultobj
;
433 wxXmlResource
* _arg0
;
434 PyObject
* _argo0
= 0;
435 char *_kwnames
[] = { "self", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_argo0
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
449 wxXmlResource_InitAllHandlers(_arg0
);
451 wxPyEndAllowThreads(__tstate
);
452 if (PyErr_Occurred()) return NULL
;
453 } Py_INCREF(Py_None
);
454 _resultobj
= Py_None
;
458 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
459 static PyObject
*_wrap_wxXmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
460 PyObject
* _resultobj
;
461 wxXmlResource
* _arg0
;
462 wxPyXmlResourceHandler
* _arg1
;
463 PyObject
* _argo0
= 0;
464 PyObject
* _argo1
= 0;
465 char *_kwnames
[] = { "self","handler", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
478 if (_argo1
== Py_None
) { _arg1
= NULL
; }
479 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyXmlResourceHandler_p")) {
480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxPyXmlResourceHandler_p.");
485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
486 wxXmlResource_AddHandler(_arg0
,_arg1
);
488 wxPyEndAllowThreads(__tstate
);
489 if (PyErr_Occurred()) return NULL
;
490 } Py_INCREF(Py_None
);
491 _resultobj
= Py_None
;
495 #define wxXmlResource_InsertHandler(_swigobj,_swigarg0) (_swigobj->InsertHandler(_swigarg0))
496 static PyObject
*_wrap_wxXmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
497 PyObject
* _resultobj
;
498 wxXmlResource
* _arg0
;
499 wxPyXmlResourceHandler
* _arg1
;
500 PyObject
* _argo0
= 0;
501 PyObject
* _argo1
= 0;
502 char *_kwnames
[] = { "self","handler", NULL
};
505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_InsertHandler",_kwnames
,&_argo0
,&_argo1
))
508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InsertHandler. Expected _wxXmlResource_p.");
515 if (_argo1
== Py_None
) { _arg1
= NULL
; }
516 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyXmlResourceHandler_p")) {
517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_InsertHandler. Expected _wxPyXmlResourceHandler_p.");
522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
523 wxXmlResource_InsertHandler(_arg0
,_arg1
);
525 wxPyEndAllowThreads(__tstate
);
526 if (PyErr_Occurred()) return NULL
;
527 } Py_INCREF(Py_None
);
528 _resultobj
= Py_None
;
532 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
533 static PyObject
*_wrap_wxXmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
534 PyObject
* _resultobj
;
535 wxXmlResource
* _arg0
;
536 PyObject
* _argo0
= 0;
537 char *_kwnames
[] = { "self", NULL
};
540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_argo0
))
543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
551 wxXmlResource_ClearHandlers(_arg0
);
553 wxPyEndAllowThreads(__tstate
);
554 if (PyErr_Occurred()) return NULL
;
555 } Py_INCREF(Py_None
);
556 _resultobj
= Py_None
;
560 static PyObject
*_wrap_wxXmlResource_AddSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
561 PyObject
* _resultobj
;
562 wxPyXmlSubclassFactory
* _arg0
;
563 PyObject
* _argo0
= 0;
564 char *_kwnames
[] = { "factory", NULL
};
567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_AddSubclassFactory",_kwnames
,&_argo0
))
570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlSubclassFactory_p")) {
572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AddSubclassFactory. Expected _wxPyXmlSubclassFactory_p.");
577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
578 wxXmlResource::AddSubclassFactory(_arg0
);
580 wxPyEndAllowThreads(__tstate
);
581 if (PyErr_Occurred()) return NULL
;
582 } Py_INCREF(Py_None
);
583 _resultobj
= Py_None
;
587 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
588 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
589 PyObject
* _resultobj
;
591 wxXmlResource
* _arg0
;
593 PyObject
* _argo0
= 0;
594 PyObject
* _obj1
= 0;
595 char *_kwnames
[] = { "self","name", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
608 _arg1
= wxString_in_helper(_obj1
);
613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
614 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
616 wxPyEndAllowThreads(__tstate
);
617 if (PyErr_Occurred()) return NULL
;
618 }{ _resultobj
= wxPyMake_wxObject(_result
); }
626 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
627 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
628 PyObject
* _resultobj
;
630 wxXmlResource
* _arg0
;
632 PyObject
* _argo0
= 0;
633 PyObject
* _obj1
= 0;
634 char *_kwnames
[] = { "self","name", NULL
};
637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
647 _arg1
= wxString_in_helper(_obj1
);
652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
653 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
655 wxPyEndAllowThreads(__tstate
);
656 if (PyErr_Occurred()) return NULL
;
657 }{ _resultobj
= wxPyMake_wxObject(_result
); }
665 #define wxXmlResource_LoadMenuBarOnFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadMenuBar(_swigarg0,_swigarg1))
666 static PyObject
*_wrap_wxXmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
667 PyObject
* _resultobj
;
669 wxXmlResource
* _arg0
;
672 PyObject
* _argo0
= 0;
673 PyObject
* _argo1
= 0;
674 PyObject
* _obj2
= 0;
675 char *_kwnames
[] = { "self","parent","name", NULL
};
678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadMenuBarOnFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxXmlResource_p.");
688 if (_argo1
== Py_None
) { _arg1
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxWindow_p.");
695 _arg2
= wxString_in_helper(_obj2
);
700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
701 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBarOnFrame(_arg0
,_arg1
,*_arg2
);
703 wxPyEndAllowThreads(__tstate
);
704 if (PyErr_Occurred()) return NULL
;
705 }{ _resultobj
= wxPyMake_wxObject(_result
); }
713 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
714 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
717 wxXmlResource
* _arg0
;
720 PyObject
* _argo0
= 0;
721 PyObject
* _argo1
= 0;
722 PyObject
* _obj2
= 0;
723 char *_kwnames
[] = { "self","parent","name", NULL
};
726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
736 if (_argo1
== Py_None
) { _arg1
= NULL
; }
737 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
743 _arg2
= wxString_in_helper(_obj2
);
748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
749 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
751 wxPyEndAllowThreads(__tstate
);
752 if (PyErr_Occurred()) return NULL
;
753 }{ _resultobj
= wxPyMake_wxObject(_result
); }
761 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
762 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
763 PyObject
* _resultobj
;
765 wxXmlResource
* _arg0
;
768 PyObject
* _argo0
= 0;
769 PyObject
* _argo1
= 0;
770 PyObject
* _obj2
= 0;
771 char *_kwnames
[] = { "self","parent","name", NULL
};
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
785 if (_argo1
== Py_None
) { _arg1
= NULL
; }
786 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
792 _arg2
= wxString_in_helper(_obj2
);
797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
798 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
800 wxPyEndAllowThreads(__tstate
);
801 if (PyErr_Occurred()) return NULL
;
803 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
804 _resultobj
= Py_BuildValue("s",_ptemp
);
807 _resultobj
= Py_None
;
816 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
817 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
818 PyObject
* _resultobj
;
820 wxXmlResource
* _arg0
;
824 PyObject
* _argo0
= 0;
825 PyObject
* _argo1
= 0;
826 PyObject
* _argo2
= 0;
827 PyObject
* _obj3
= 0;
828 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
841 if (_argo1
== Py_None
) { _arg1
= NULL
; }
842 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDialog_p")) {
843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
848 if (_argo2
== Py_None
) { _arg2
= NULL
; }
849 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
855 _arg3
= wxString_in_helper(_obj3
);
860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
861 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
863 wxPyEndAllowThreads(__tstate
);
864 if (PyErr_Occurred()) return NULL
;
865 } _resultobj
= Py_BuildValue("i",_result
);
873 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
874 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
875 PyObject
* _resultobj
;
877 wxXmlResource
* _arg0
;
880 PyObject
* _argo0
= 0;
881 PyObject
* _argo1
= 0;
882 PyObject
* _obj2
= 0;
883 char *_kwnames
[] = { "self","parent","name", NULL
};
887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
904 _arg2
= wxString_in_helper(_obj2
);
909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
910 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
912 wxPyEndAllowThreads(__tstate
);
913 if (PyErr_Occurred()) return NULL
;
915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
916 _resultobj
= Py_BuildValue("s",_ptemp
);
919 _resultobj
= Py_None
;
928 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
929 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
930 PyObject
* _resultobj
;
932 wxXmlResource
* _arg0
;
936 PyObject
* _argo0
= 0;
937 PyObject
* _argo1
= 0;
938 PyObject
* _argo2
= 0;
939 PyObject
* _obj3
= 0;
940 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
953 if (_argo1
== Py_None
) { _arg1
= NULL
; }
954 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPanel_p")) {
955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
960 if (_argo2
== Py_None
) { _arg2
= NULL
; }
961 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
967 _arg3
= wxString_in_helper(_obj3
);
972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
973 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
975 wxPyEndAllowThreads(__tstate
);
976 if (PyErr_Occurred()) return NULL
;
977 } _resultobj
= Py_BuildValue("i",_result
);
985 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFrame(_swigarg0,_swigarg1))
986 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
987 PyObject
* _resultobj
;
989 wxXmlResource
* _arg0
;
992 PyObject
* _argo0
= 0;
993 PyObject
* _argo1
= 0;
994 PyObject
* _obj2
= 0;
995 char *_kwnames
[] = { "self","parent","name", NULL
};
998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
1008 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1009 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
1015 _arg2
= wxString_in_helper(_obj2
);
1020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1021 _result
= (wxFrame
*)wxXmlResource_LoadFrame(_arg0
,_arg1
,*_arg2
);
1023 wxPyEndAllowThreads(__tstate
);
1024 if (PyErr_Occurred()) return NULL
;
1025 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1033 #define wxXmlResource_LoadOnFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
1034 static PyObject
*_wrap_wxXmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1035 PyObject
* _resultobj
;
1037 wxXmlResource
* _arg0
;
1041 PyObject
* _argo0
= 0;
1042 PyObject
* _argo1
= 0;
1043 PyObject
* _argo2
= 0;
1044 PyObject
* _obj3
= 0;
1045 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
1048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
1051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnFrame. Expected _wxXmlResource_p.");
1058 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1059 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
1060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnFrame. Expected _wxFrame_p.");
1065 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnFrame. Expected _wxWindow_p.");
1072 _arg3
= wxString_in_helper(_obj3
);
1077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1078 _result
= (bool )wxXmlResource_LoadOnFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
1080 wxPyEndAllowThreads(__tstate
);
1081 if (PyErr_Occurred()) return NULL
;
1082 } _resultobj
= Py_BuildValue("i",_result
);
1090 #define wxXmlResource_LoadObject(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2))
1091 static PyObject
*_wrap_wxXmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1092 PyObject
* _resultobj
;
1094 wxXmlResource
* _arg0
;
1098 PyObject
* _argo0
= 0;
1099 PyObject
* _argo1
= 0;
1100 PyObject
* _obj2
= 0;
1101 PyObject
* _obj3
= 0;
1102 char *_kwnames
[] = { "self","parent","name","classname", NULL
};
1105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadObject",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_obj3
))
1108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadObject. Expected _wxXmlResource_p.");
1115 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1116 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadObject. Expected _wxWindow_p.");
1122 _arg2
= wxString_in_helper(_obj2
);
1127 _arg3
= wxString_in_helper(_obj3
);
1132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1133 _result
= (wxObject
*)wxXmlResource_LoadObject(_arg0
,_arg1
,*_arg2
,*_arg3
);
1135 wxPyEndAllowThreads(__tstate
);
1136 if (PyErr_Occurred()) return NULL
;
1137 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1149 #define wxXmlResource_LoadOnObject(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1150 static PyObject
*_wrap_wxXmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1151 PyObject
* _resultobj
;
1153 wxXmlResource
* _arg0
;
1158 PyObject
* _argo0
= 0;
1159 PyObject
* _argo1
= 0;
1160 PyObject
* _argo2
= 0;
1161 PyObject
* _obj3
= 0;
1162 PyObject
* _obj4
= 0;
1163 char *_kwnames
[] = { "self","instance","parent","name","classname", NULL
};
1166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxXmlResource_LoadOnObject",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
,&_obj4
))
1169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnObject. Expected _wxXmlResource_p.");
1176 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1177 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
1178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnObject. Expected _wxObject_p.");
1183 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1184 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnObject. Expected _wxWindow_p.");
1190 _arg3
= wxString_in_helper(_obj3
);
1195 _arg4
= wxString_in_helper(_obj4
);
1200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1201 _result
= (bool )wxXmlResource_LoadOnObject(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
);
1203 wxPyEndAllowThreads(__tstate
);
1204 if (PyErr_Occurred()) return NULL
;
1205 } _resultobj
= Py_BuildValue("i",_result
);
1217 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
1218 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1219 PyObject
* _resultobj
;
1221 wxXmlResource
* _arg0
;
1223 PyObject
* _argo0
= 0;
1224 PyObject
* _obj1
= 0;
1225 char *_kwnames
[] = { "self","name", NULL
};
1229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
1232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
1239 _arg1
= wxString_in_helper(_obj1
);
1244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1245 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
1247 wxPyEndAllowThreads(__tstate
);
1248 if (PyErr_Occurred()) return NULL
;
1249 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1250 _resultobj
= Py_BuildValue("s",_ptemp
);
1258 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
1259 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1260 PyObject
* _resultobj
;
1262 wxXmlResource
* _arg0
;
1264 PyObject
* _argo0
= 0;
1265 PyObject
* _obj1
= 0;
1266 char *_kwnames
[] = { "self","name", NULL
};
1270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
1273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
1280 _arg1
= wxString_in_helper(_obj1
);
1285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1286 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
1288 wxPyEndAllowThreads(__tstate
);
1289 if (PyErr_Occurred()) return NULL
;
1290 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
1291 _resultobj
= Py_BuildValue("s",_ptemp
);
1299 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
1300 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1301 PyObject
* _resultobj
;
1303 wxXmlResource
* _arg0
;
1306 wxWindow
* _arg3
= (wxWindow
*) NULL
;
1307 PyObject
* _argo0
= 0;
1308 PyObject
* _obj1
= 0;
1309 PyObject
* _argo2
= 0;
1310 PyObject
* _argo3
= 0;
1311 char *_kwnames
[] = { "self","name","control","parent", NULL
};
1314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
1317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AttachUnknownControl. Expected _wxXmlResource_p.");
1324 _arg1
= wxString_in_helper(_obj1
);
1329 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1330 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1336 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1337 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxWindow_p")) {
1338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1344 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
1346 wxPyEndAllowThreads(__tstate
);
1347 if (PyErr_Occurred()) return NULL
;
1348 } _resultobj
= Py_BuildValue("i",_result
);
1356 static PyObject
*_wrap_wxXmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1360 PyObject
* _obj0
= 0;
1361 char *_kwnames
[] = { "str_id", NULL
};
1364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetXRCID",_kwnames
,&_obj0
))
1367 _arg0
= wxString_in_helper(_obj0
);
1372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1373 _result
= (int )wxXmlResource::GetXRCID(*_arg0
);
1375 wxPyEndAllowThreads(__tstate
);
1376 if (PyErr_Occurred()) return NULL
;
1377 } _resultobj
= Py_BuildValue("i",_result
);
1385 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1386 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1387 PyObject
* _resultobj
;
1389 wxXmlResource
* _arg0
;
1390 PyObject
* _argo0
= 0;
1391 char *_kwnames
[] = { "self", NULL
};
1394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_argo0
))
1397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
1404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1405 _result
= (long )wxXmlResource_GetVersion(_arg0
);
1407 wxPyEndAllowThreads(__tstate
);
1408 if (PyErr_Occurred()) return NULL
;
1409 } _resultobj
= Py_BuildValue("l",_result
);
1413 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1414 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1415 PyObject
* _resultobj
;
1417 wxXmlResource
* _arg0
;
1422 PyObject
* _argo0
= 0;
1423 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
1426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
1429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
1436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1437 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1439 wxPyEndAllowThreads(__tstate
);
1440 if (PyErr_Occurred()) return NULL
;
1441 } _resultobj
= Py_BuildValue("i",_result
);
1445 static PyObject
*_wrap_wxXmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1446 PyObject
* _resultobj
;
1447 wxXmlResource
* _result
;
1448 char *_kwnames
[] = { NULL
};
1452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxXmlResource_Get",_kwnames
))
1455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1456 _result
= (wxXmlResource
*)wxXmlResource::Get();
1458 wxPyEndAllowThreads(__tstate
);
1459 if (PyErr_Occurred()) return NULL
;
1461 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1462 _resultobj
= Py_BuildValue("s",_ptemp
);
1465 _resultobj
= Py_None
;
1470 static PyObject
*_wrap_wxXmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1472 wxXmlResource
* _result
;
1473 wxXmlResource
* _arg0
;
1474 PyObject
* _argo0
= 0;
1475 char *_kwnames
[] = { "res", NULL
};
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_Set",_kwnames
,&_argo0
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Set. Expected _wxXmlResource_p.");
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 _result
= (wxXmlResource
*)wxXmlResource::Set(_arg0
);
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) return NULL
;
1495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1496 _resultobj
= Py_BuildValue("s",_ptemp
);
1499 _resultobj
= Py_None
;
1504 #define wxXmlResource_GetFlags(_swigobj) (_swigobj->GetFlags())
1505 static PyObject
*_wrap_wxXmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1506 PyObject
* _resultobj
;
1508 wxXmlResource
* _arg0
;
1509 PyObject
* _argo0
= 0;
1510 char *_kwnames
[] = { "self", NULL
};
1513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetFlags",_kwnames
,&_argo0
))
1516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetFlags. Expected _wxXmlResource_p.");
1523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1524 _result
= (int )wxXmlResource_GetFlags(_arg0
);
1526 wxPyEndAllowThreads(__tstate
);
1527 if (PyErr_Occurred()) return NULL
;
1528 } _resultobj
= Py_BuildValue("i",_result
);
1532 #define wxXmlResource_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
1533 static PyObject
*_wrap_wxXmlResource_SetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
* _resultobj
;
1535 wxXmlResource
* _arg0
;
1537 PyObject
* _argo0
= 0;
1538 char *_kwnames
[] = { "self","flags", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxXmlResource_SetFlags",_kwnames
,&_argo0
,&_arg1
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_SetFlags. Expected _wxXmlResource_p.");
1551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1552 wxXmlResource_SetFlags(_arg0
,_arg1
);
1554 wxPyEndAllowThreads(__tstate
);
1555 if (PyErr_Occurred()) return NULL
;
1556 } Py_INCREF(Py_None
);
1557 _resultobj
= Py_None
;
1561 #define new_wxXmlSubclassFactory() (new wxPyXmlSubclassFactory())
1562 static PyObject
*_wrap_new_wxXmlSubclassFactory(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1563 PyObject
* _resultobj
;
1564 wxPyXmlSubclassFactory
* _result
;
1565 char *_kwnames
[] = { NULL
};
1569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxXmlSubclassFactory",_kwnames
))
1572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1573 _result
= (wxPyXmlSubclassFactory
*)new_wxXmlSubclassFactory();
1575 wxPyEndAllowThreads(__tstate
);
1576 if (PyErr_Occurred()) return NULL
;
1578 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyXmlSubclassFactory_p");
1579 _resultobj
= Py_BuildValue("s",_ptemp
);
1582 _resultobj
= Py_None
;
1587 #define wxXmlSubclassFactory__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1588 static PyObject
*_wrap_wxXmlSubclassFactory__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1589 PyObject
* _resultobj
;
1590 wxPyXmlSubclassFactory
* _arg0
;
1593 PyObject
* _argo0
= 0;
1594 PyObject
* _obj1
= 0;
1595 PyObject
* _obj2
= 0;
1596 char *_kwnames
[] = { "self","self","_class", NULL
};
1599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlSubclassFactory__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlSubclassFactory_p")) {
1604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlSubclassFactory__setCallbackInfo. Expected _wxPyXmlSubclassFactory_p.");
1615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1616 wxXmlSubclassFactory__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1618 wxPyEndAllowThreads(__tstate
);
1619 if (PyErr_Occurred()) return NULL
;
1620 } Py_INCREF(Py_None
);
1621 _resultobj
= Py_None
;
1625 #define new_wxXmlProperty(_swigarg0,_swigarg1,_swigarg2) (new wxXmlProperty(_swigarg0,_swigarg1,_swigarg2))
1626 static PyObject
*_wrap_new_wxXmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1627 PyObject
* _resultobj
;
1628 wxXmlProperty
* _result
;
1629 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1630 wxString
* _arg1
= (wxString
*) &wxPyEmptyString
;
1631 wxXmlProperty
* _arg2
= (wxXmlProperty
*) NULL
;
1632 PyObject
* _obj0
= 0;
1633 PyObject
* _obj1
= 0;
1634 PyObject
* _argo2
= 0;
1635 char *_kwnames
[] = { "name","value","next", NULL
};
1639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOO:new_wxXmlProperty",_kwnames
,&_obj0
,&_obj1
,&_argo2
))
1643 _arg0
= wxString_in_helper(_obj0
);
1649 _arg1
= wxString_in_helper(_obj1
);
1654 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1655 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlProperty_p")) {
1656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxXmlProperty. Expected _wxXmlProperty_p.");
1661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1662 _result
= (wxXmlProperty
*)new_wxXmlProperty(*_arg0
,*_arg1
,_arg2
);
1664 wxPyEndAllowThreads(__tstate
);
1665 if (PyErr_Occurred()) return NULL
;
1667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
1668 _resultobj
= Py_BuildValue("s",_ptemp
);
1671 _resultobj
= Py_None
;
1684 #define wxXmlProperty_GetName(_swigobj) (_swigobj->GetName())
1685 static PyObject
*_wrap_wxXmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1686 PyObject
* _resultobj
;
1688 wxXmlProperty
* _arg0
;
1689 PyObject
* _argo0
= 0;
1690 char *_kwnames
[] = { "self", NULL
};
1693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetName",_kwnames
,&_argo0
))
1696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetName. Expected _wxXmlProperty_p.");
1703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1704 _result
= new wxString (wxXmlProperty_GetName(_arg0
));
1706 wxPyEndAllowThreads(__tstate
);
1707 if (PyErr_Occurred()) return NULL
;
1710 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1712 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1721 #define wxXmlProperty_GetValue(_swigobj) (_swigobj->GetValue())
1722 static PyObject
*_wrap_wxXmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1723 PyObject
* _resultobj
;
1725 wxXmlProperty
* _arg0
;
1726 PyObject
* _argo0
= 0;
1727 char *_kwnames
[] = { "self", NULL
};
1730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetValue",_kwnames
,&_argo0
))
1733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetValue. Expected _wxXmlProperty_p.");
1740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1741 _result
= new wxString (wxXmlProperty_GetValue(_arg0
));
1743 wxPyEndAllowThreads(__tstate
);
1744 if (PyErr_Occurred()) return NULL
;
1747 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1749 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1758 #define wxXmlProperty_GetNext(_swigobj) (_swigobj->GetNext())
1759 static PyObject
*_wrap_wxXmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1760 PyObject
* _resultobj
;
1761 wxXmlProperty
* _result
;
1762 wxXmlProperty
* _arg0
;
1763 PyObject
* _argo0
= 0;
1764 char *_kwnames
[] = { "self", NULL
};
1768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetNext",_kwnames
,&_argo0
))
1771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetNext. Expected _wxXmlProperty_p.");
1778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1779 _result
= (wxXmlProperty
*)wxXmlProperty_GetNext(_arg0
);
1781 wxPyEndAllowThreads(__tstate
);
1782 if (PyErr_Occurred()) return NULL
;
1784 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
1785 _resultobj
= Py_BuildValue("s",_ptemp
);
1788 _resultobj
= Py_None
;
1793 #define wxXmlProperty_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
1794 static PyObject
*_wrap_wxXmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1795 PyObject
* _resultobj
;
1796 wxXmlProperty
* _arg0
;
1798 PyObject
* _argo0
= 0;
1799 PyObject
* _obj1
= 0;
1800 char *_kwnames
[] = { "self","name", NULL
};
1803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetName",_kwnames
,&_argo0
,&_obj1
))
1806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetName. Expected _wxXmlProperty_p.");
1813 _arg1
= wxString_in_helper(_obj1
);
1818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1819 wxXmlProperty_SetName(_arg0
,*_arg1
);
1821 wxPyEndAllowThreads(__tstate
);
1822 if (PyErr_Occurred()) return NULL
;
1823 } Py_INCREF(Py_None
);
1824 _resultobj
= Py_None
;
1832 #define wxXmlProperty_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1833 static PyObject
*_wrap_wxXmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1834 PyObject
* _resultobj
;
1835 wxXmlProperty
* _arg0
;
1837 PyObject
* _argo0
= 0;
1838 PyObject
* _obj1
= 0;
1839 char *_kwnames
[] = { "self","value", NULL
};
1842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetValue",_kwnames
,&_argo0
,&_obj1
))
1845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetValue. Expected _wxXmlProperty_p.");
1852 _arg1
= wxString_in_helper(_obj1
);
1857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1858 wxXmlProperty_SetValue(_arg0
,*_arg1
);
1860 wxPyEndAllowThreads(__tstate
);
1861 if (PyErr_Occurred()) return NULL
;
1862 } Py_INCREF(Py_None
);
1863 _resultobj
= Py_None
;
1871 #define wxXmlProperty_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
1872 static PyObject
*_wrap_wxXmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1873 PyObject
* _resultobj
;
1874 wxXmlProperty
* _arg0
;
1875 wxXmlProperty
* _arg1
;
1876 PyObject
* _argo0
= 0;
1877 PyObject
* _argo1
= 0;
1878 char *_kwnames
[] = { "self","next", NULL
};
1881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetNext",_kwnames
,&_argo0
,&_argo1
))
1884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1891 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1899 wxXmlProperty_SetNext(_arg0
,_arg1
);
1901 wxPyEndAllowThreads(__tstate
);
1902 if (PyErr_Occurred()) return NULL
;
1903 } Py_INCREF(Py_None
);
1904 _resultobj
= Py_None
;
1908 #define new_wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1909 static PyObject
*_wrap_new_wxXmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1910 PyObject
* _resultobj
;
1911 wxXmlNode
* _result
;
1912 wxXmlNode
* _arg0
= (wxXmlNode
*) NULL
;
1913 wxXmlNodeType _arg1
= (wxXmlNodeType
) 0;
1914 wxString
* _arg2
= (wxString
*) &wxPyEmptyString
;
1915 wxString
* _arg3
= (wxString
*) &wxPyEmptyString
;
1916 wxXmlProperty
* _arg4
= (wxXmlProperty
*) NULL
;
1917 wxXmlNode
* _arg5
= (wxXmlNode
*) NULL
;
1918 PyObject
* _argo0
= 0;
1919 PyObject
* _obj2
= 0;
1920 PyObject
* _obj3
= 0;
1921 PyObject
* _argo4
= 0;
1922 PyObject
* _argo5
= 0;
1923 char *_kwnames
[] = { "parent","type","name","content","props","next", NULL
};
1927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOOO:new_wxXmlNode",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_argo4
,&_argo5
))
1930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
1932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxXmlNode. Expected _wxXmlNode_p.");
1938 _arg2
= wxString_in_helper(_obj2
);
1944 _arg3
= wxString_in_helper(_obj3
);
1949 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1950 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxXmlProperty_p")) {
1951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxXmlNode. Expected _wxXmlProperty_p.");
1956 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1957 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxXmlNode_p")) {
1958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxXmlNode. Expected _wxXmlNode_p.");
1963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1964 _result
= (wxXmlNode
*)new_wxXmlNode(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
1966 wxPyEndAllowThreads(__tstate
);
1967 if (PyErr_Occurred()) return NULL
;
1969 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
1970 _resultobj
= Py_BuildValue("s",_ptemp
);
1973 _resultobj
= Py_None
;
1986 #define delete_wxXmlNode(_swigobj) (delete _swigobj)
1987 static PyObject
*_wrap_delete_wxXmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1988 PyObject
* _resultobj
;
1990 PyObject
* _argo0
= 0;
1991 char *_kwnames
[] = { "self", NULL
};
1994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlNode",_kwnames
,&_argo0
))
1997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
1999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlNode. Expected _wxXmlNode_p.");
2004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2005 delete_wxXmlNode(_arg0
);
2007 wxPyEndAllowThreads(__tstate
);
2008 if (PyErr_Occurred()) return NULL
;
2009 } Py_INCREF(Py_None
);
2010 _resultobj
= Py_None
;
2014 #define new_wxXmlNodeEasy(_swigarg0,_swigarg1,_swigarg2) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2))
2015 static PyObject
*_wrap_new_wxXmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
* _resultobj
;
2017 wxXmlNode
* _result
;
2018 wxXmlNodeType _arg0
;
2020 wxString
* _arg2
= (wxString
*) &wxPyEmptyString
;
2021 PyObject
* _obj1
= 0;
2022 PyObject
* _obj2
= 0;
2023 char *_kwnames
[] = { "type","name","content", NULL
};
2027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iO|O:new_wxXmlNodeEasy",_kwnames
,&_arg0
,&_obj1
,&_obj2
))
2030 _arg1
= wxString_in_helper(_obj1
);
2036 _arg2
= wxString_in_helper(_obj2
);
2041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2042 _result
= (wxXmlNode
*)new_wxXmlNodeEasy(_arg0
,*_arg1
,*_arg2
);
2044 wxPyEndAllowThreads(__tstate
);
2045 if (PyErr_Occurred()) return NULL
;
2047 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2048 _resultobj
= Py_BuildValue("s",_ptemp
);
2051 _resultobj
= Py_None
;
2064 #define wxXmlNode_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0))
2065 static PyObject
*_wrap_wxXmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2066 PyObject
* _resultobj
;
2069 PyObject
* _argo0
= 0;
2070 PyObject
* _argo1
= 0;
2071 char *_kwnames
[] = { "self","child", NULL
};
2074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_AddChild",_kwnames
,&_argo0
,&_argo1
))
2077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
2084 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2085 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 wxXmlNode_AddChild(_arg0
,_arg1
);
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) return NULL
;
2096 } Py_INCREF(Py_None
);
2097 _resultobj
= Py_None
;
2101 #define wxXmlNode_InsertChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertChild(_swigarg0,_swigarg1))
2102 static PyObject
*_wrap_wxXmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2103 PyObject
* _resultobj
;
2107 PyObject
* _argo0
= 0;
2108 PyObject
* _argo1
= 0;
2109 PyObject
* _argo2
= 0;
2110 char *_kwnames
[] = { "self","child","before_node", NULL
};
2113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_InsertChild",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
2116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2123 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2124 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2130 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2131 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlNode_p")) {
2132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2138 wxXmlNode_InsertChild(_arg0
,_arg1
,_arg2
);
2140 wxPyEndAllowThreads(__tstate
);
2141 if (PyErr_Occurred()) return NULL
;
2142 } Py_INCREF(Py_None
);
2143 _resultobj
= Py_None
;
2147 #define wxXmlNode_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
2148 static PyObject
*_wrap_wxXmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2149 PyObject
* _resultobj
;
2153 PyObject
* _argo0
= 0;
2154 PyObject
* _argo1
= 0;
2155 char *_kwnames
[] = { "self","child", NULL
};
2158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
2161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2168 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2169 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2176 _result
= (bool )wxXmlNode_RemoveChild(_arg0
,_arg1
);
2178 wxPyEndAllowThreads(__tstate
);
2179 if (PyErr_Occurred()) return NULL
;
2180 } _resultobj
= Py_BuildValue("i",_result
);
2184 #define wxXmlNode_AddProperty(_swigobj,_swigarg0) (_swigobj->AddProperty(_swigarg0))
2185 static PyObject
*_wrap_wxXmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2186 PyObject
* _resultobj
;
2188 wxXmlProperty
* _arg1
;
2189 PyObject
* _argo0
= 0;
2190 PyObject
* _argo1
= 0;
2191 char *_kwnames
[] = { "self","prop", NULL
};
2194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_AddProperty",_kwnames
,&_argo0
,&_argo1
))
2197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddProperty. Expected _wxXmlNode_p.");
2204 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2205 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
2206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_AddProperty. Expected _wxXmlProperty_p.");
2211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2212 wxXmlNode_AddProperty(_arg0
,_arg1
);
2214 wxPyEndAllowThreads(__tstate
);
2215 if (PyErr_Occurred()) return NULL
;
2216 } Py_INCREF(Py_None
);
2217 _resultobj
= Py_None
;
2221 #define wxXmlNode_AddPropertyName(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddProperty(_swigarg0,_swigarg1))
2222 static PyObject
*_wrap_wxXmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2223 PyObject
* _resultobj
;
2227 PyObject
* _argo0
= 0;
2228 PyObject
* _obj1
= 0;
2229 PyObject
* _obj2
= 0;
2230 char *_kwnames
[] = { "self","name","value", NULL
};
2233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_AddPropertyName",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddPropertyName. Expected _wxXmlNode_p.");
2243 _arg1
= wxString_in_helper(_obj1
);
2248 _arg2
= wxString_in_helper(_obj2
);
2253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2254 wxXmlNode_AddPropertyName(_arg0
,*_arg1
,*_arg2
);
2256 wxPyEndAllowThreads(__tstate
);
2257 if (PyErr_Occurred()) return NULL
;
2258 } Py_INCREF(Py_None
);
2259 _resultobj
= Py_None
;
2271 #define wxXmlNode_DeleteProperty(_swigobj,_swigarg0) (_swigobj->DeleteProperty(_swigarg0))
2272 static PyObject
*_wrap_wxXmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2273 PyObject
* _resultobj
;
2277 PyObject
* _argo0
= 0;
2278 PyObject
* _obj1
= 0;
2279 char *_kwnames
[] = { "self","name", NULL
};
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_DeleteProperty",_kwnames
,&_argo0
,&_obj1
))
2285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_DeleteProperty. Expected _wxXmlNode_p.");
2292 _arg1
= wxString_in_helper(_obj1
);
2297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2298 _result
= (bool )wxXmlNode_DeleteProperty(_arg0
,*_arg1
);
2300 wxPyEndAllowThreads(__tstate
);
2301 if (PyErr_Occurred()) return NULL
;
2302 } _resultobj
= Py_BuildValue("i",_result
);
2310 #define wxXmlNode_GetType(_swigobj) (_swigobj->GetType())
2311 static PyObject
*_wrap_wxXmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2312 PyObject
* _resultobj
;
2313 wxXmlNodeType _result
;
2315 PyObject
* _argo0
= 0;
2316 char *_kwnames
[] = { "self", NULL
};
2319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetType",_kwnames
,&_argo0
))
2322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetType. Expected _wxXmlNode_p.");
2329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2330 _result
= (wxXmlNodeType
)wxXmlNode_GetType(_arg0
);
2332 wxPyEndAllowThreads(__tstate
);
2333 if (PyErr_Occurred()) return NULL
;
2334 } _resultobj
= Py_BuildValue("i",_result
);
2338 #define wxXmlNode_GetName(_swigobj) (_swigobj->GetName())
2339 static PyObject
*_wrap_wxXmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2340 PyObject
* _resultobj
;
2343 PyObject
* _argo0
= 0;
2344 char *_kwnames
[] = { "self", NULL
};
2347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetName",_kwnames
,&_argo0
))
2350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetName. Expected _wxXmlNode_p.");
2357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2358 _result
= new wxString (wxXmlNode_GetName(_arg0
));
2360 wxPyEndAllowThreads(__tstate
);
2361 if (PyErr_Occurred()) return NULL
;
2364 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2366 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2375 #define wxXmlNode_GetContent(_swigobj) (_swigobj->GetContent())
2376 static PyObject
*_wrap_wxXmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2377 PyObject
* _resultobj
;
2380 PyObject
* _argo0
= 0;
2381 char *_kwnames
[] = { "self", NULL
};
2384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetContent",_kwnames
,&_argo0
))
2387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetContent. Expected _wxXmlNode_p.");
2394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2395 _result
= new wxString (wxXmlNode_GetContent(_arg0
));
2397 wxPyEndAllowThreads(__tstate
);
2398 if (PyErr_Occurred()) return NULL
;
2401 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2403 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2412 #define wxXmlNode_GetParent(_swigobj) (_swigobj->GetParent())
2413 static PyObject
*_wrap_wxXmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2414 PyObject
* _resultobj
;
2415 wxXmlNode
* _result
;
2417 PyObject
* _argo0
= 0;
2418 char *_kwnames
[] = { "self", NULL
};
2422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetParent",_kwnames
,&_argo0
))
2425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetParent. Expected _wxXmlNode_p.");
2432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2433 _result
= (wxXmlNode
*)wxXmlNode_GetParent(_arg0
);
2435 wxPyEndAllowThreads(__tstate
);
2436 if (PyErr_Occurred()) return NULL
;
2438 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2439 _resultobj
= Py_BuildValue("s",_ptemp
);
2442 _resultobj
= Py_None
;
2447 #define wxXmlNode_GetNext(_swigobj) (_swigobj->GetNext())
2448 static PyObject
*_wrap_wxXmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2449 PyObject
* _resultobj
;
2450 wxXmlNode
* _result
;
2452 PyObject
* _argo0
= 0;
2453 char *_kwnames
[] = { "self", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetNext",_kwnames
,&_argo0
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetNext. Expected _wxXmlNode_p.");
2467 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2468 _result
= (wxXmlNode
*)wxXmlNode_GetNext(_arg0
);
2470 wxPyEndAllowThreads(__tstate
);
2471 if (PyErr_Occurred()) return NULL
;
2473 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2474 _resultobj
= Py_BuildValue("s",_ptemp
);
2477 _resultobj
= Py_None
;
2482 #define wxXmlNode_GetChildren(_swigobj) (_swigobj->GetChildren())
2483 static PyObject
*_wrap_wxXmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2484 PyObject
* _resultobj
;
2485 wxXmlNode
* _result
;
2487 PyObject
* _argo0
= 0;
2488 char *_kwnames
[] = { "self", NULL
};
2492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetChildren",_kwnames
,&_argo0
))
2495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetChildren. Expected _wxXmlNode_p.");
2502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2503 _result
= (wxXmlNode
*)wxXmlNode_GetChildren(_arg0
);
2505 wxPyEndAllowThreads(__tstate
);
2506 if (PyErr_Occurred()) return NULL
;
2508 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2509 _resultobj
= Py_BuildValue("s",_ptemp
);
2512 _resultobj
= Py_None
;
2517 #define wxXmlNode_GetProperties(_swigobj) (_swigobj->GetProperties())
2518 static PyObject
*_wrap_wxXmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2519 PyObject
* _resultobj
;
2520 wxXmlProperty
* _result
;
2522 PyObject
* _argo0
= 0;
2523 char *_kwnames
[] = { "self", NULL
};
2527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetProperties",_kwnames
,&_argo0
))
2530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetProperties. Expected _wxXmlNode_p.");
2537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2538 _result
= (wxXmlProperty
*)wxXmlNode_GetProperties(_arg0
);
2540 wxPyEndAllowThreads(__tstate
);
2541 if (PyErr_Occurred()) return NULL
;
2543 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
2544 _resultobj
= Py_BuildValue("s",_ptemp
);
2547 _resultobj
= Py_None
;
2552 #define wxXmlNode_GetPropVal(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPropVal(_swigarg0,_swigarg1))
2553 static PyObject
*_wrap_wxXmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2559 PyObject
* _argo0
= 0;
2560 PyObject
* _obj1
= 0;
2561 PyObject
* _obj2
= 0;
2562 char *_kwnames
[] = { "self","propName","defaultVal", NULL
};
2565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_GetPropVal",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetPropVal. Expected _wxXmlNode_p.");
2575 _arg1
= wxString_in_helper(_obj1
);
2580 _arg2
= wxString_in_helper(_obj2
);
2585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2586 _result
= new wxString (wxXmlNode_GetPropVal(_arg0
,*_arg1
,*_arg2
));
2588 wxPyEndAllowThreads(__tstate
);
2589 if (PyErr_Occurred()) return NULL
;
2592 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2594 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2611 #define wxXmlNode_HasProp(_swigobj,_swigarg0) (_swigobj->HasProp(_swigarg0))
2612 static PyObject
*_wrap_wxXmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2613 PyObject
* _resultobj
;
2617 PyObject
* _argo0
= 0;
2618 PyObject
* _obj1
= 0;
2619 char *_kwnames
[] = { "self","propName", NULL
};
2622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_HasProp",_kwnames
,&_argo0
,&_obj1
))
2625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_HasProp. Expected _wxXmlNode_p.");
2632 _arg1
= wxString_in_helper(_obj1
);
2637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2638 _result
= (bool )wxXmlNode_HasProp(_arg0
,*_arg1
);
2640 wxPyEndAllowThreads(__tstate
);
2641 if (PyErr_Occurred()) return NULL
;
2642 } _resultobj
= Py_BuildValue("i",_result
);
2650 #define wxXmlNode_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
2651 static PyObject
*_wrap_wxXmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2652 PyObject
* _resultobj
;
2654 wxXmlNodeType _arg1
;
2655 PyObject
* _argo0
= 0;
2656 char *_kwnames
[] = { "self","type", NULL
};
2659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxXmlNode_SetType",_kwnames
,&_argo0
,&_arg1
))
2662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetType. Expected _wxXmlNode_p.");
2669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2670 wxXmlNode_SetType(_arg0
,_arg1
);
2672 wxPyEndAllowThreads(__tstate
);
2673 if (PyErr_Occurred()) return NULL
;
2674 } Py_INCREF(Py_None
);
2675 _resultobj
= Py_None
;
2679 #define wxXmlNode_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
2680 static PyObject
*_wrap_wxXmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2681 PyObject
* _resultobj
;
2684 PyObject
* _argo0
= 0;
2685 PyObject
* _obj1
= 0;
2686 char *_kwnames
[] = { "self","name", NULL
};
2689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetName",_kwnames
,&_argo0
,&_obj1
))
2692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetName. Expected _wxXmlNode_p.");
2699 _arg1
= wxString_in_helper(_obj1
);
2704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2705 wxXmlNode_SetName(_arg0
,*_arg1
);
2707 wxPyEndAllowThreads(__tstate
);
2708 if (PyErr_Occurred()) return NULL
;
2709 } Py_INCREF(Py_None
);
2710 _resultobj
= Py_None
;
2718 #define wxXmlNode_SetContent(_swigobj,_swigarg0) (_swigobj->SetContent(_swigarg0))
2719 static PyObject
*_wrap_wxXmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2720 PyObject
* _resultobj
;
2723 PyObject
* _argo0
= 0;
2724 PyObject
* _obj1
= 0;
2725 char *_kwnames
[] = { "self","con", NULL
};
2728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetContent",_kwnames
,&_argo0
,&_obj1
))
2731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetContent. Expected _wxXmlNode_p.");
2738 _arg1
= wxString_in_helper(_obj1
);
2743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2744 wxXmlNode_SetContent(_arg0
,*_arg1
);
2746 wxPyEndAllowThreads(__tstate
);
2747 if (PyErr_Occurred()) return NULL
;
2748 } Py_INCREF(Py_None
);
2749 _resultobj
= Py_None
;
2757 #define wxXmlNode_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
2758 static PyObject
*_wrap_wxXmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2762 PyObject
* _argo0
= 0;
2763 PyObject
* _argo1
= 0;
2764 char *_kwnames
[] = { "self","parent", NULL
};
2767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetParent",_kwnames
,&_argo0
,&_argo1
))
2770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2777 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2778 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2785 wxXmlNode_SetParent(_arg0
,_arg1
);
2787 wxPyEndAllowThreads(__tstate
);
2788 if (PyErr_Occurred()) return NULL
;
2789 } Py_INCREF(Py_None
);
2790 _resultobj
= Py_None
;
2794 #define wxXmlNode_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
2795 static PyObject
*_wrap_wxXmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2796 PyObject
* _resultobj
;
2799 PyObject
* _argo0
= 0;
2800 PyObject
* _argo1
= 0;
2801 char *_kwnames
[] = { "self","next", NULL
};
2804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetNext",_kwnames
,&_argo0
,&_argo1
))
2807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2814 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2815 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2822 wxXmlNode_SetNext(_arg0
,_arg1
);
2824 wxPyEndAllowThreads(__tstate
);
2825 if (PyErr_Occurred()) return NULL
;
2826 } Py_INCREF(Py_None
);
2827 _resultobj
= Py_None
;
2831 #define wxXmlNode_SetChildren(_swigobj,_swigarg0) (_swigobj->SetChildren(_swigarg0))
2832 static PyObject
*_wrap_wxXmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2833 PyObject
* _resultobj
;
2836 PyObject
* _argo0
= 0;
2837 PyObject
* _argo1
= 0;
2838 char *_kwnames
[] = { "self","child", NULL
};
2841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetChildren",_kwnames
,&_argo0
,&_argo1
))
2844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2851 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2852 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2859 wxXmlNode_SetChildren(_arg0
,_arg1
);
2861 wxPyEndAllowThreads(__tstate
);
2862 if (PyErr_Occurred()) return NULL
;
2863 } Py_INCREF(Py_None
);
2864 _resultobj
= Py_None
;
2868 #define wxXmlNode_SetProperties(_swigobj,_swigarg0) (_swigobj->SetProperties(_swigarg0))
2869 static PyObject
*_wrap_wxXmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2872 wxXmlProperty
* _arg1
;
2873 PyObject
* _argo0
= 0;
2874 PyObject
* _argo1
= 0;
2875 char *_kwnames
[] = { "self","prop", NULL
};
2878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetProperties",_kwnames
,&_argo0
,&_argo1
))
2881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetProperties. Expected _wxXmlNode_p.");
2888 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetProperties. Expected _wxXmlProperty_p.");
2895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2896 wxXmlNode_SetProperties(_arg0
,_arg1
);
2898 wxPyEndAllowThreads(__tstate
);
2899 if (PyErr_Occurred()) return NULL
;
2900 } Py_INCREF(Py_None
);
2901 _resultobj
= Py_None
;
2905 static void *SwigwxXmlDocumentTowxObject(void *ptr
) {
2908 src
= (wxXmlDocument
*) ptr
;
2909 dest
= (wxObject
*) src
;
2910 return (void *) dest
;
2913 #define new_wxXmlDocument(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2914 static PyObject
*_wrap_new_wxXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2915 PyObject
* _resultobj
;
2916 wxXmlDocument
* _result
;
2918 wxString
* _arg1
= (wxString
*) &wxPyUTF8String
;
2919 PyObject
* _obj0
= 0;
2920 PyObject
* _obj1
= 0;
2921 char *_kwnames
[] = { "filename","encoding", NULL
};
2925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxXmlDocument",_kwnames
,&_obj0
,&_obj1
))
2928 _arg0
= wxString_in_helper(_obj0
);
2934 _arg1
= wxString_in_helper(_obj1
);
2939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2940 _result
= (wxXmlDocument
*)new_wxXmlDocument(*_arg0
,*_arg1
);
2942 wxPyEndAllowThreads(__tstate
);
2943 if (PyErr_Occurred()) return NULL
;
2945 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
2946 _resultobj
= Py_BuildValue("s",_ptemp
);
2949 _resultobj
= Py_None
;
2962 #define new_wxXmlDocumentFromStream(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2963 static PyObject
*_wrap_new_wxXmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2964 PyObject
* _resultobj
;
2965 wxXmlDocument
* _result
;
2966 wxInputStream
* _arg0
;
2967 wxString
* _arg1
= (wxString
*) &wxPyUTF8String
;
2968 wxPyInputStream
* temp
;
2970 PyObject
* _obj0
= 0;
2971 PyObject
* _obj1
= 0;
2972 char *_kwnames
[] = { "stream","encoding", NULL
};
2976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxXmlDocumentFromStream",_kwnames
,&_obj0
,&_obj1
))
2979 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2980 _arg0
= temp
->m_wxis
;
2983 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
2984 if (_arg0
== NULL
) {
2985 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2993 _arg1
= wxString_in_helper(_obj1
);
2998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2999 _result
= (wxXmlDocument
*)new_wxXmlDocumentFromStream(*_arg0
,*_arg1
);
3001 wxPyEndAllowThreads(__tstate
);
3002 if (PyErr_Occurred()) return NULL
;
3004 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
3005 _resultobj
= Py_BuildValue("s",_ptemp
);
3008 _resultobj
= Py_None
;
3021 #define new_wxEmptyXmlDocument() (new wxXmlDocument())
3022 static PyObject
*_wrap_new_wxEmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3023 PyObject
* _resultobj
;
3024 wxXmlDocument
* _result
;
3025 char *_kwnames
[] = { NULL
};
3029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEmptyXmlDocument",_kwnames
))
3032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3033 _result
= (wxXmlDocument
*)new_wxEmptyXmlDocument();
3035 wxPyEndAllowThreads(__tstate
);
3036 if (PyErr_Occurred()) return NULL
;
3038 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
3039 _resultobj
= Py_BuildValue("s",_ptemp
);
3042 _resultobj
= Py_None
;
3047 #define delete_wxXmlDocument(_swigobj) (delete _swigobj)
3048 static PyObject
*_wrap_delete_wxXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3049 PyObject
* _resultobj
;
3050 wxXmlDocument
* _arg0
;
3051 PyObject
* _argo0
= 0;
3052 char *_kwnames
[] = { "self", NULL
};
3055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlDocument",_kwnames
,&_argo0
))
3058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlDocument. Expected _wxXmlDocument_p.");
3065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3066 delete_wxXmlDocument(_arg0
);
3068 wxPyEndAllowThreads(__tstate
);
3069 if (PyErr_Occurred()) return NULL
;
3070 } Py_INCREF(Py_None
);
3071 _resultobj
= Py_None
;
3075 #define wxXmlDocument_Load(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
3076 static PyObject
*_wrap_wxXmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3077 PyObject
* _resultobj
;
3079 wxXmlDocument
* _arg0
;
3081 wxString
* _arg2
= (wxString
*) &wxPyUTF8String
;
3082 PyObject
* _argo0
= 0;
3083 PyObject
* _obj1
= 0;
3084 PyObject
* _obj2
= 0;
3085 char *_kwnames
[] = { "self","filename","encoding", NULL
};
3088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlDocument_Load",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_Load. Expected _wxXmlDocument_p.");
3098 _arg1
= wxString_in_helper(_obj1
);
3104 _arg2
= wxString_in_helper(_obj2
);
3109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3110 _result
= (bool )wxXmlDocument_Load(_arg0
,*_arg1
,*_arg2
);
3112 wxPyEndAllowThreads(__tstate
);
3113 if (PyErr_Occurred()) return NULL
;
3114 } _resultobj
= Py_BuildValue("i",_result
);
3126 #define wxXmlDocument_LoadFromStream(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
3127 static PyObject
*_wrap_wxXmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3128 PyObject
* _resultobj
;
3130 wxXmlDocument
* _arg0
;
3131 wxInputStream
* _arg1
;
3132 wxString
* _arg2
= (wxString
*) &wxPyUTF8String
;
3133 PyObject
* _argo0
= 0;
3134 wxPyInputStream
* temp
;
3136 PyObject
* _obj1
= 0;
3137 PyObject
* _obj2
= 0;
3138 char *_kwnames
[] = { "self","stream","encoding", NULL
};
3141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlDocument_LoadFromStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_LoadFromStream. Expected _wxXmlDocument_p.");
3151 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
3152 _arg1
= temp
->m_wxis
;
3155 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
3156 if (_arg1
== NULL
) {
3157 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
3165 _arg2
= wxString_in_helper(_obj2
);
3170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3171 _result
= (bool )wxXmlDocument_LoadFromStream(_arg0
,*_arg1
,*_arg2
);
3173 wxPyEndAllowThreads(__tstate
);
3174 if (PyErr_Occurred()) return NULL
;
3175 } _resultobj
= Py_BuildValue("i",_result
);
3187 #define wxXmlDocument_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3188 static PyObject
*_wrap_wxXmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3189 PyObject
* _resultobj
;
3191 wxXmlDocument
* _arg0
;
3193 PyObject
* _argo0
= 0;
3194 PyObject
* _obj1
= 0;
3195 char *_kwnames
[] = { "self","filename", NULL
};
3198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_Save",_kwnames
,&_argo0
,&_obj1
))
3201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_Save. Expected _wxXmlDocument_p.");
3208 _arg1
= wxString_in_helper(_obj1
);
3213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3214 _result
= (bool )wxXmlDocument_Save(_arg0
,*_arg1
);
3216 wxPyEndAllowThreads(__tstate
);
3217 if (PyErr_Occurred()) return NULL
;
3218 } _resultobj
= Py_BuildValue("i",_result
);
3226 #define wxXmlDocument_SaveToStream(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3227 static PyObject
*_wrap_wxXmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3228 PyObject
* _resultobj
;
3230 wxXmlDocument
* _arg0
;
3231 wxOutputStream
* _arg1
;
3232 PyObject
* _argo0
= 0;
3233 PyObject
* _argo1
= 0;
3234 char *_kwnames
[] = { "self","stream", NULL
};
3237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SaveToStream",_kwnames
,&_argo0
,&_argo1
))
3240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SaveToStream. Expected _wxXmlDocument_p.");
3247 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxOutputStream_p")) {
3248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlDocument_SaveToStream. Expected _wxOutputStream_p.");
3253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3254 _result
= (bool )wxXmlDocument_SaveToStream(_arg0
,*_arg1
);
3256 wxPyEndAllowThreads(__tstate
);
3257 if (PyErr_Occurred()) return NULL
;
3258 } _resultobj
= Py_BuildValue("i",_result
);
3262 #define wxXmlDocument_IsOk(_swigobj) (_swigobj->IsOk())
3263 static PyObject
*_wrap_wxXmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3264 PyObject
* _resultobj
;
3266 wxXmlDocument
* _arg0
;
3267 PyObject
* _argo0
= 0;
3268 char *_kwnames
[] = { "self", NULL
};
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_IsOk",_kwnames
,&_argo0
))
3274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_IsOk. Expected _wxXmlDocument_p.");
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 _result
= (bool )wxXmlDocument_IsOk(_arg0
);
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) return NULL
;
3286 } _resultobj
= Py_BuildValue("i",_result
);
3290 #define wxXmlDocument_GetRoot(_swigobj) (_swigobj->GetRoot())
3291 static PyObject
*_wrap_wxXmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3292 PyObject
* _resultobj
;
3293 wxXmlNode
* _result
;
3294 wxXmlDocument
* _arg0
;
3295 PyObject
* _argo0
= 0;
3296 char *_kwnames
[] = { "self", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetRoot",_kwnames
,&_argo0
))
3303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetRoot. Expected _wxXmlDocument_p.");
3310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3311 _result
= (wxXmlNode
*)wxXmlDocument_GetRoot(_arg0
);
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) return NULL
;
3316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
3317 _resultobj
= Py_BuildValue("s",_ptemp
);
3320 _resultobj
= Py_None
;
3325 #define wxXmlDocument_GetVersion(_swigobj) (_swigobj->GetVersion())
3326 static PyObject
*_wrap_wxXmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3327 PyObject
* _resultobj
;
3329 wxXmlDocument
* _arg0
;
3330 PyObject
* _argo0
= 0;
3331 char *_kwnames
[] = { "self", NULL
};
3334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetVersion",_kwnames
,&_argo0
))
3337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetVersion. Expected _wxXmlDocument_p.");
3344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3345 _result
= new wxString (wxXmlDocument_GetVersion(_arg0
));
3347 wxPyEndAllowThreads(__tstate
);
3348 if (PyErr_Occurred()) return NULL
;
3351 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3353 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3362 #define wxXmlDocument_GetFileEncoding(_swigobj) (_swigobj->GetFileEncoding())
3363 static PyObject
*_wrap_wxXmlDocument_GetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3364 PyObject
* _resultobj
;
3366 wxXmlDocument
* _arg0
;
3367 PyObject
* _argo0
= 0;
3368 char *_kwnames
[] = { "self", NULL
};
3371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetFileEncoding",_kwnames
,&_argo0
))
3374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetFileEncoding. Expected _wxXmlDocument_p.");
3381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3382 _result
= new wxString (wxXmlDocument_GetFileEncoding(_arg0
));
3384 wxPyEndAllowThreads(__tstate
);
3385 if (PyErr_Occurred()) return NULL
;
3388 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3390 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3399 #define wxXmlDocument_SetRoot(_swigobj,_swigarg0) (_swigobj->SetRoot(_swigarg0))
3400 static PyObject
*_wrap_wxXmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3401 PyObject
* _resultobj
;
3402 wxXmlDocument
* _arg0
;
3404 PyObject
* _argo0
= 0;
3405 PyObject
* _argo1
= 0;
3406 char *_kwnames
[] = { "self","node", NULL
};
3409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetRoot",_kwnames
,&_argo0
,&_argo1
))
3412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetRoot. Expected _wxXmlDocument_p.");
3419 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3420 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlDocument_SetRoot. Expected _wxXmlNode_p.");
3426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3427 wxXmlDocument_SetRoot(_arg0
,_arg1
);
3429 wxPyEndAllowThreads(__tstate
);
3430 if (PyErr_Occurred()) return NULL
;
3431 } Py_INCREF(Py_None
);
3432 _resultobj
= Py_None
;
3436 #define wxXmlDocument_SetVersion(_swigobj,_swigarg0) (_swigobj->SetVersion(_swigarg0))
3437 static PyObject
*_wrap_wxXmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3438 PyObject
* _resultobj
;
3439 wxXmlDocument
* _arg0
;
3441 PyObject
* _argo0
= 0;
3442 PyObject
* _obj1
= 0;
3443 char *_kwnames
[] = { "self","version", NULL
};
3446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetVersion",_kwnames
,&_argo0
,&_obj1
))
3449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetVersion. Expected _wxXmlDocument_p.");
3456 _arg1
= wxString_in_helper(_obj1
);
3461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3462 wxXmlDocument_SetVersion(_arg0
,*_arg1
);
3464 wxPyEndAllowThreads(__tstate
);
3465 if (PyErr_Occurred()) return NULL
;
3466 } Py_INCREF(Py_None
);
3467 _resultobj
= Py_None
;
3475 #define wxXmlDocument_SetFileEncoding(_swigobj,_swigarg0) (_swigobj->SetFileEncoding(_swigarg0))
3476 static PyObject
*_wrap_wxXmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3477 PyObject
* _resultobj
;
3478 wxXmlDocument
* _arg0
;
3480 PyObject
* _argo0
= 0;
3481 PyObject
* _obj1
= 0;
3482 char *_kwnames
[] = { "self","encoding", NULL
};
3485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetFileEncoding",_kwnames
,&_argo0
,&_obj1
))
3488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetFileEncoding. Expected _wxXmlDocument_p.");
3495 _arg1
= wxString_in_helper(_obj1
);
3500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3501 wxXmlDocument_SetFileEncoding(_arg0
,*_arg1
);
3503 wxPyEndAllowThreads(__tstate
);
3504 if (PyErr_Occurred()) return NULL
;
3505 } Py_INCREF(Py_None
);
3506 _resultobj
= Py_None
;
3514 static wxString
wxXmlDocument_GetEncoding(wxXmlDocument
*self
) {
3516 return wxPyEmptyString
;
3518 return self
->GetEncoding();
3521 static PyObject
*_wrap_wxXmlDocument_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3522 PyObject
* _resultobj
;
3524 wxXmlDocument
* _arg0
;
3525 PyObject
* _argo0
= 0;
3526 char *_kwnames
[] = { "self", NULL
};
3529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetEncoding",_kwnames
,&_argo0
))
3532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetEncoding. Expected _wxXmlDocument_p.");
3539 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3540 _result
= new wxString (wxXmlDocument_GetEncoding(_arg0
));
3542 wxPyEndAllowThreads(__tstate
);
3543 if (PyErr_Occurred()) return NULL
;
3546 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3548 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3557 static void wxXmlDocument_SetEncoding(wxXmlDocument
*self
,const wxString
& enc
) {
3561 self
->SetEncoding(enc
);
3564 static PyObject
*_wrap_wxXmlDocument_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3565 PyObject
* _resultobj
;
3566 wxXmlDocument
* _arg0
;
3568 PyObject
* _argo0
= 0;
3569 PyObject
* _obj1
= 0;
3570 char *_kwnames
[] = { "self","enc", NULL
};
3573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetEncoding",_kwnames
,&_argo0
,&_obj1
))
3576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetEncoding. Expected _wxXmlDocument_p.");
3583 _arg1
= wxString_in_helper(_obj1
);
3588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3589 wxXmlDocument_SetEncoding(_arg0
,*_arg1
);
3591 wxPyEndAllowThreads(__tstate
);
3592 if (PyErr_Occurred()) return NULL
;
3593 } Py_INCREF(Py_None
);
3594 _resultobj
= Py_None
;
3602 static void *SwigwxPyXmlResourceHandlerTowxObject(void *ptr
) {
3603 wxPyXmlResourceHandler
*src
;
3605 src
= (wxPyXmlResourceHandler
*) ptr
;
3606 dest
= (wxObject
*) src
;
3607 return (void *) dest
;
3610 #define new_wxXmlResourceHandler() (new wxPyXmlResourceHandler())
3611 static PyObject
*_wrap_new_wxXmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3612 PyObject
* _resultobj
;
3613 wxPyXmlResourceHandler
* _result
;
3614 char *_kwnames
[] = { NULL
};
3618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxXmlResourceHandler",_kwnames
))
3621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3622 _result
= (wxPyXmlResourceHandler
*)new_wxXmlResourceHandler();
3624 wxPyEndAllowThreads(__tstate
);
3625 if (PyErr_Occurred()) return NULL
;
3627 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyXmlResourceHandler_p");
3628 _resultobj
= Py_BuildValue("s",_ptemp
);
3631 _resultobj
= Py_None
;
3636 #define wxXmlResourceHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3637 static PyObject
*_wrap_wxXmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3638 PyObject
* _resultobj
;
3639 wxPyXmlResourceHandler
* _arg0
;
3642 PyObject
* _argo0
= 0;
3643 PyObject
* _obj1
= 0;
3644 PyObject
* _obj2
= 0;
3645 char *_kwnames
[] = { "self","self","_class", NULL
};
3648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResourceHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler__setCallbackInfo. Expected _wxPyXmlResourceHandler_p.");
3664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3665 wxXmlResourceHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3667 wxPyEndAllowThreads(__tstate
);
3668 if (PyErr_Occurred()) return NULL
;
3669 } Py_INCREF(Py_None
);
3670 _resultobj
= Py_None
;
3674 #define wxXmlResourceHandler_CreateResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResource(_swigarg0,_swigarg1,_swigarg2))
3675 static PyObject
*_wrap_wxXmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3676 PyObject
* _resultobj
;
3678 wxPyXmlResourceHandler
* _arg0
;
3682 PyObject
* _argo0
= 0;
3683 PyObject
* _argo1
= 0;
3684 PyObject
* _argo2
= 0;
3685 PyObject
* _argo3
= 0;
3686 char *_kwnames
[] = { "self","node","parent","instance", NULL
};
3689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResourceHandler_CreateResource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
3692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateResource. Expected _wxPyXmlResourceHandler_p.");
3699 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3700 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateResource. Expected _wxXmlNode_p.");
3706 if (_argo2
== Py_None
) { _arg2
= NULL
; }
3707 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxObject_p")) {
3708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3713 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3714 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxObject_p")) {
3715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3721 _result
= (wxObject
*)wxXmlResourceHandler_CreateResource(_arg0
,_arg1
,_arg2
,_arg3
);
3723 wxPyEndAllowThreads(__tstate
);
3724 if (PyErr_Occurred()) return NULL
;
3725 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3729 #define wxXmlResourceHandler_SetParentResource(_swigobj,_swigarg0) (_swigobj->SetParentResource(_swigarg0))
3730 static PyObject
*_wrap_wxXmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3731 PyObject
* _resultobj
;
3732 wxPyXmlResourceHandler
* _arg0
;
3733 wxXmlResource
* _arg1
;
3734 PyObject
* _argo0
= 0;
3735 PyObject
* _argo1
= 0;
3736 char *_kwnames
[] = { "self","res", NULL
};
3739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_SetParentResource",_kwnames
,&_argo0
,&_argo1
))
3742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_SetParentResource. Expected _wxPyXmlResourceHandler_p.");
3749 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3750 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlResource_p")) {
3751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_SetParentResource. Expected _wxXmlResource_p.");
3756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3757 wxXmlResourceHandler_SetParentResource(_arg0
,_arg1
);
3759 wxPyEndAllowThreads(__tstate
);
3760 if (PyErr_Occurred()) return NULL
;
3761 } Py_INCREF(Py_None
);
3762 _resultobj
= Py_None
;
3766 #define wxXmlResourceHandler_GetResource(_swigobj) (_swigobj->GetResource())
3767 static PyObject
*_wrap_wxXmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3768 PyObject
* _resultobj
;
3769 wxXmlResource
* _result
;
3770 wxPyXmlResourceHandler
* _arg0
;
3771 PyObject
* _argo0
= 0;
3772 char *_kwnames
[] = { "self", NULL
};
3776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetResource",_kwnames
,&_argo0
))
3779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetResource. Expected _wxPyXmlResourceHandler_p.");
3786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3787 _result
= (wxXmlResource
*)wxXmlResourceHandler_GetResource(_arg0
);
3789 wxPyEndAllowThreads(__tstate
);
3790 if (PyErr_Occurred()) return NULL
;
3792 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
3793 _resultobj
= Py_BuildValue("s",_ptemp
);
3796 _resultobj
= Py_None
;
3801 #define wxXmlResourceHandler_GetNode(_swigobj) (_swigobj->GetNode())
3802 static PyObject
*_wrap_wxXmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3803 PyObject
* _resultobj
;
3804 wxXmlNode
* _result
;
3805 wxPyXmlResourceHandler
* _arg0
;
3806 PyObject
* _argo0
= 0;
3807 char *_kwnames
[] = { "self", NULL
};
3811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetNode",_kwnames
,&_argo0
))
3814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetNode. Expected _wxPyXmlResourceHandler_p.");
3821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3822 _result
= (wxXmlNode
*)wxXmlResourceHandler_GetNode(_arg0
);
3824 wxPyEndAllowThreads(__tstate
);
3825 if (PyErr_Occurred()) return NULL
;
3827 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
3828 _resultobj
= Py_BuildValue("s",_ptemp
);
3831 _resultobj
= Py_None
;
3836 #define wxXmlResourceHandler_GetClass(_swigobj) (_swigobj->GetClass())
3837 static PyObject
*_wrap_wxXmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3840 wxPyXmlResourceHandler
* _arg0
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetClass",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetClass. Expected _wxPyXmlResourceHandler_p.");
3855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3856 _result
= new wxString (wxXmlResourceHandler_GetClass(_arg0
));
3858 wxPyEndAllowThreads(__tstate
);
3859 if (PyErr_Occurred()) return NULL
;
3862 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3864 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3873 #define wxXmlResourceHandler_GetParent(_swigobj) (_swigobj->GetParent())
3874 static PyObject
*_wrap_wxXmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3875 PyObject
* _resultobj
;
3877 wxPyXmlResourceHandler
* _arg0
;
3878 PyObject
* _argo0
= 0;
3879 char *_kwnames
[] = { "self", NULL
};
3882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetParent",_kwnames
,&_argo0
))
3885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParent. Expected _wxPyXmlResourceHandler_p.");
3892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3893 _result
= (wxObject
*)wxXmlResourceHandler_GetParent(_arg0
);
3895 wxPyEndAllowThreads(__tstate
);
3896 if (PyErr_Occurred()) return NULL
;
3897 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3901 #define wxXmlResourceHandler_GetInstance(_swigobj) (_swigobj->GetInstance())
3902 static PyObject
*_wrap_wxXmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3903 PyObject
* _resultobj
;
3905 wxPyXmlResourceHandler
* _arg0
;
3906 PyObject
* _argo0
= 0;
3907 char *_kwnames
[] = { "self", NULL
};
3910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetInstance",_kwnames
,&_argo0
))
3913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetInstance. Expected _wxPyXmlResourceHandler_p.");
3920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3921 _result
= (wxObject
*)wxXmlResourceHandler_GetInstance(_arg0
);
3923 wxPyEndAllowThreads(__tstate
);
3924 if (PyErr_Occurred()) return NULL
;
3925 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3929 #define wxXmlResourceHandler_GetParentAsWindow(_swigobj) (_swigobj->GetParentAsWindow())
3930 static PyObject
*_wrap_wxXmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3931 PyObject
* _resultobj
;
3933 wxPyXmlResourceHandler
* _arg0
;
3934 PyObject
* _argo0
= 0;
3935 char *_kwnames
[] = { "self", NULL
};
3938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetParentAsWindow",_kwnames
,&_argo0
))
3941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParentAsWindow. Expected _wxPyXmlResourceHandler_p.");
3948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3949 _result
= (wxWindow
*)wxXmlResourceHandler_GetParentAsWindow(_arg0
);
3951 wxPyEndAllowThreads(__tstate
);
3952 if (PyErr_Occurred()) return NULL
;
3953 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3957 #define wxXmlResourceHandler_GetInstanceAsWindow(_swigobj) (_swigobj->GetInstanceAsWindow())
3958 static PyObject
*_wrap_wxXmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3959 PyObject
* _resultobj
;
3961 wxPyXmlResourceHandler
* _arg0
;
3962 PyObject
* _argo0
= 0;
3963 char *_kwnames
[] = { "self", NULL
};
3966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetInstanceAsWindow",_kwnames
,&_argo0
))
3969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetInstanceAsWindow. Expected _wxPyXmlResourceHandler_p.");
3976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3977 _result
= (wxWindow
*)wxXmlResourceHandler_GetInstanceAsWindow(_arg0
);
3979 wxPyEndAllowThreads(__tstate
);
3980 if (PyErr_Occurred()) return NULL
;
3981 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3985 #define wxXmlResourceHandler_IsOfClass(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsOfClass(_swigarg0,_swigarg1))
3986 static PyObject
*_wrap_wxXmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3987 PyObject
* _resultobj
;
3989 wxPyXmlResourceHandler
* _arg0
;
3992 PyObject
* _argo0
= 0;
3993 PyObject
* _argo1
= 0;
3994 PyObject
* _obj2
= 0;
3995 char *_kwnames
[] = { "self","node","classname", NULL
};
3998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResourceHandler_IsOfClass",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
4001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_IsOfClass. Expected _wxPyXmlResourceHandler_p.");
4008 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4009 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
4010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_IsOfClass. Expected _wxXmlNode_p.");
4015 _arg2
= wxString_in_helper(_obj2
);
4020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4021 _result
= (bool )wxXmlResourceHandler_IsOfClass(_arg0
,_arg1
,*_arg2
);
4023 wxPyEndAllowThreads(__tstate
);
4024 if (PyErr_Occurred()) return NULL
;
4025 } _resultobj
= Py_BuildValue("i",_result
);
4033 #define wxXmlResourceHandler_GetNodeContent(_swigobj,_swigarg0) (_swigobj->GetNodeContent(_swigarg0))
4034 static PyObject
*_wrap_wxXmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4035 PyObject
* _resultobj
;
4037 wxPyXmlResourceHandler
* _arg0
;
4039 PyObject
* _argo0
= 0;
4040 PyObject
* _argo1
= 0;
4041 char *_kwnames
[] = { "self","node", NULL
};
4044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetNodeContent",_kwnames
,&_argo0
,&_argo1
))
4047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetNodeContent. Expected _wxPyXmlResourceHandler_p.");
4054 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4055 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
4056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_GetNodeContent. Expected _wxXmlNode_p.");
4061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4062 _result
= new wxString (wxXmlResourceHandler_GetNodeContent(_arg0
,_arg1
));
4064 wxPyEndAllowThreads(__tstate
);
4065 if (PyErr_Occurred()) return NULL
;
4068 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
4070 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4079 #define wxXmlResourceHandler_HasParam(_swigobj,_swigarg0) (_swigobj->HasParam(_swigarg0))
4080 static PyObject
*_wrap_wxXmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4081 PyObject
* _resultobj
;
4083 wxPyXmlResourceHandler
* _arg0
;
4085 PyObject
* _argo0
= 0;
4086 PyObject
* _obj1
= 0;
4087 char *_kwnames
[] = { "self","param", NULL
};
4090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_HasParam",_kwnames
,&_argo0
,&_obj1
))
4093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_HasParam. Expected _wxPyXmlResourceHandler_p.");
4100 _arg1
= wxString_in_helper(_obj1
);
4105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4106 _result
= (bool )wxXmlResourceHandler_HasParam(_arg0
,*_arg1
);
4108 wxPyEndAllowThreads(__tstate
);
4109 if (PyErr_Occurred()) return NULL
;
4110 } _resultobj
= Py_BuildValue("i",_result
);
4118 #define wxXmlResourceHandler_GetParamNode(_swigobj,_swigarg0) (_swigobj->GetParamNode(_swigarg0))
4119 static PyObject
*_wrap_wxXmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4120 PyObject
* _resultobj
;
4121 wxXmlNode
* _result
;
4122 wxPyXmlResourceHandler
* _arg0
;
4124 PyObject
* _argo0
= 0;
4125 PyObject
* _obj1
= 0;
4126 char *_kwnames
[] = { "self","param", NULL
};
4130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetParamNode",_kwnames
,&_argo0
,&_obj1
))
4133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParamNode. Expected _wxPyXmlResourceHandler_p.");
4140 _arg1
= wxString_in_helper(_obj1
);
4145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4146 _result
= (wxXmlNode
*)wxXmlResourceHandler_GetParamNode(_arg0
,*_arg1
);
4148 wxPyEndAllowThreads(__tstate
);
4149 if (PyErr_Occurred()) return NULL
;
4151 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
4152 _resultobj
= Py_BuildValue("s",_ptemp
);
4155 _resultobj
= Py_None
;
4164 #define wxXmlResourceHandler_GetParamValue(_swigobj,_swigarg0) (_swigobj->GetParamValue(_swigarg0))
4165 static PyObject
*_wrap_wxXmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4166 PyObject
* _resultobj
;
4168 wxPyXmlResourceHandler
* _arg0
;
4170 PyObject
* _argo0
= 0;
4171 PyObject
* _obj1
= 0;
4172 char *_kwnames
[] = { "self","param", NULL
};
4175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetParamValue",_kwnames
,&_argo0
,&_obj1
))
4178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParamValue. Expected _wxPyXmlResourceHandler_p.");
4185 _arg1
= wxString_in_helper(_obj1
);
4190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4191 _result
= new wxString (wxXmlResourceHandler_GetParamValue(_arg0
,*_arg1
));
4193 wxPyEndAllowThreads(__tstate
);
4194 if (PyErr_Occurred()) return NULL
;
4197 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
4199 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4212 #define wxXmlResourceHandler_AddStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddStyle(_swigarg0,_swigarg1))
4213 static PyObject
*_wrap_wxXmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4214 PyObject
* _resultobj
;
4215 wxPyXmlResourceHandler
* _arg0
;
4218 PyObject
* _argo0
= 0;
4219 PyObject
* _obj1
= 0;
4220 char *_kwnames
[] = { "self","name","value", NULL
};
4223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxXmlResourceHandler_AddStyle",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_AddStyle. Expected _wxPyXmlResourceHandler_p.");
4233 _arg1
= wxString_in_helper(_obj1
);
4238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4239 wxXmlResourceHandler_AddStyle(_arg0
,*_arg1
,_arg2
);
4241 wxPyEndAllowThreads(__tstate
);
4242 if (PyErr_Occurred()) return NULL
;
4243 } Py_INCREF(Py_None
);
4244 _resultobj
= Py_None
;
4252 #define wxXmlResourceHandler_AddWindowStyles(_swigobj) (_swigobj->AddWindowStyles())
4253 static PyObject
*_wrap_wxXmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4254 PyObject
* _resultobj
;
4255 wxPyXmlResourceHandler
* _arg0
;
4256 PyObject
* _argo0
= 0;
4257 char *_kwnames
[] = { "self", NULL
};
4260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_AddWindowStyles",_kwnames
,&_argo0
))
4263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_AddWindowStyles. Expected _wxPyXmlResourceHandler_p.");
4270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4271 wxXmlResourceHandler_AddWindowStyles(_arg0
);
4273 wxPyEndAllowThreads(__tstate
);
4274 if (PyErr_Occurred()) return NULL
;
4275 } Py_INCREF(Py_None
);
4276 _resultobj
= Py_None
;
4280 #define wxXmlResourceHandler_GetStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyle(_swigarg0,_swigarg1))
4281 static PyObject
*_wrap_wxXmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4282 PyObject
* _resultobj
;
4284 wxPyXmlResourceHandler
* _arg0
;
4285 wxString
* _arg1
= (wxString
*) &wxPyStyleString
;
4286 int _arg2
= (int ) 0;
4287 PyObject
* _argo0
= 0;
4288 PyObject
* _obj1
= 0;
4289 char *_kwnames
[] = { "self","param","defaults", NULL
};
4292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|Oi:wxXmlResourceHandler_GetStyle",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetStyle. Expected _wxPyXmlResourceHandler_p.");
4303 _arg1
= wxString_in_helper(_obj1
);
4308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4309 _result
= (int )wxXmlResourceHandler_GetStyle(_arg0
,*_arg1
,_arg2
);
4311 wxPyEndAllowThreads(__tstate
);
4312 if (PyErr_Occurred()) return NULL
;
4313 } _resultobj
= Py_BuildValue("i",_result
);
4321 #define wxXmlResourceHandler_GetText(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetText(_swigarg0,_swigarg1))
4322 static PyObject
*_wrap_wxXmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4323 PyObject
* _resultobj
;
4325 wxPyXmlResourceHandler
* _arg0
;
4327 bool _arg2
= (bool ) TRUE
;
4328 PyObject
* _argo0
= 0;
4329 PyObject
* _obj1
= 0;
4330 int tempbool2
= (int) TRUE
;
4331 char *_kwnames
[] = { "self","param","translate", NULL
};
4334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetText",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetText. Expected _wxPyXmlResourceHandler_p.");
4344 _arg1
= wxString_in_helper(_obj1
);
4348 _arg2
= (bool ) tempbool2
;
4350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4351 _result
= new wxString (wxXmlResourceHandler_GetText(_arg0
,*_arg1
,_arg2
));
4353 wxPyEndAllowThreads(__tstate
);
4354 if (PyErr_Occurred()) return NULL
;
4357 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
4359 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4372 #define wxXmlResourceHandler_GetID(_swigobj) (_swigobj->GetID())
4373 static PyObject
*_wrap_wxXmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4374 PyObject
* _resultobj
;
4376 wxPyXmlResourceHandler
* _arg0
;
4377 PyObject
* _argo0
= 0;
4378 char *_kwnames
[] = { "self", NULL
};
4381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetID",_kwnames
,&_argo0
))
4384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetID. Expected _wxPyXmlResourceHandler_p.");
4391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4392 _result
= (int )wxXmlResourceHandler_GetID(_arg0
);
4394 wxPyEndAllowThreads(__tstate
);
4395 if (PyErr_Occurred()) return NULL
;
4396 } _resultobj
= Py_BuildValue("i",_result
);
4400 #define wxXmlResourceHandler_GetName(_swigobj) (_swigobj->GetName())
4401 static PyObject
*_wrap_wxXmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4402 PyObject
* _resultobj
;
4404 wxPyXmlResourceHandler
* _arg0
;
4405 PyObject
* _argo0
= 0;
4406 char *_kwnames
[] = { "self", NULL
};
4409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetName",_kwnames
,&_argo0
))
4412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetName. Expected _wxPyXmlResourceHandler_p.");
4419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4420 _result
= new wxString (wxXmlResourceHandler_GetName(_arg0
));
4422 wxPyEndAllowThreads(__tstate
);
4423 if (PyErr_Occurred()) return NULL
;
4426 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
4428 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4437 #define wxXmlResourceHandler_GetBool(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBool(_swigarg0,_swigarg1))
4438 static PyObject
*_wrap_wxXmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4439 PyObject
* _resultobj
;
4441 wxPyXmlResourceHandler
* _arg0
;
4443 bool _arg2
= (bool ) FALSE
;
4444 PyObject
* _argo0
= 0;
4445 PyObject
* _obj1
= 0;
4446 int tempbool2
= (int) FALSE
;
4447 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetBool",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetBool. Expected _wxPyXmlResourceHandler_p.");
4460 _arg1
= wxString_in_helper(_obj1
);
4464 _arg2
= (bool ) tempbool2
;
4466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4467 _result
= (bool )wxXmlResourceHandler_GetBool(_arg0
,*_arg1
,_arg2
);
4469 wxPyEndAllowThreads(__tstate
);
4470 if (PyErr_Occurred()) return NULL
;
4471 } _resultobj
= Py_BuildValue("i",_result
);
4479 #define wxXmlResourceHandler_GetLong(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLong(_swigarg0,_swigarg1))
4480 static PyObject
*_wrap_wxXmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4481 PyObject
* _resultobj
;
4483 wxPyXmlResourceHandler
* _arg0
;
4485 long _arg2
= (long ) 0;
4486 PyObject
* _argo0
= 0;
4487 PyObject
* _obj1
= 0;
4488 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxXmlResourceHandler_GetLong",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetLong. Expected _wxPyXmlResourceHandler_p.");
4501 _arg1
= wxString_in_helper(_obj1
);
4506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4507 _result
= (long )wxXmlResourceHandler_GetLong(_arg0
,*_arg1
,_arg2
);
4509 wxPyEndAllowThreads(__tstate
);
4510 if (PyErr_Occurred()) return NULL
;
4511 } _resultobj
= Py_BuildValue("l",_result
);
4519 #define wxXmlResourceHandler_GetColour(_swigobj,_swigarg0) (_swigobj->GetColour(_swigarg0))
4520 static PyObject
*_wrap_wxXmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4521 PyObject
* _resultobj
;
4523 wxPyXmlResourceHandler
* _arg0
;
4525 PyObject
* _argo0
= 0;
4526 PyObject
* _obj1
= 0;
4527 char *_kwnames
[] = { "self","param", NULL
};
4531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetColour",_kwnames
,&_argo0
,&_obj1
))
4534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetColour. Expected _wxPyXmlResourceHandler_p.");
4541 _arg1
= wxString_in_helper(_obj1
);
4546 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4547 _result
= new wxColour (wxXmlResourceHandler_GetColour(_arg0
,*_arg1
));
4549 wxPyEndAllowThreads(__tstate
);
4550 if (PyErr_Occurred()) return NULL
;
4551 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4552 _resultobj
= Py_BuildValue("s",_ptemp
);
4560 #define wxXmlResourceHandler_GetSize(_swigobj,_swigarg0) (_swigobj->GetSize(_swigarg0))
4561 static PyObject
*_wrap_wxXmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4562 PyObject
* _resultobj
;
4564 wxPyXmlResourceHandler
* _arg0
;
4565 wxString
* _arg1
= (wxString
*) &wxPySizeString
;
4566 PyObject
* _argo0
= 0;
4567 PyObject
* _obj1
= 0;
4568 char *_kwnames
[] = { "self","param", NULL
};
4572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetSize",_kwnames
,&_argo0
,&_obj1
))
4575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetSize. Expected _wxPyXmlResourceHandler_p.");
4583 _arg1
= wxString_in_helper(_obj1
);
4588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4589 _result
= new wxSize (wxXmlResourceHandler_GetSize(_arg0
,*_arg1
));
4591 wxPyEndAllowThreads(__tstate
);
4592 if (PyErr_Occurred()) return NULL
;
4593 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4594 _resultobj
= Py_BuildValue("s",_ptemp
);
4602 #define wxXmlResourceHandler_GetPosition(_swigobj,_swigarg0) (_swigobj->GetPosition(_swigarg0))
4603 static PyObject
*_wrap_wxXmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4604 PyObject
* _resultobj
;
4606 wxPyXmlResourceHandler
* _arg0
;
4607 wxString
* _arg1
= (wxString
*) &wxPyPosString
;
4608 PyObject
* _argo0
= 0;
4609 PyObject
* _obj1
= 0;
4610 char *_kwnames
[] = { "self","param", NULL
};
4614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetPosition",_kwnames
,&_argo0
,&_obj1
))
4617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetPosition. Expected _wxPyXmlResourceHandler_p.");
4625 _arg1
= wxString_in_helper(_obj1
);
4630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4631 _result
= new wxPoint (wxXmlResourceHandler_GetPosition(_arg0
,*_arg1
));
4633 wxPyEndAllowThreads(__tstate
);
4634 if (PyErr_Occurred()) return NULL
;
4635 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4636 _resultobj
= Py_BuildValue("s",_ptemp
);
4644 #define wxXmlResourceHandler_GetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDimension(_swigarg0,_swigarg1))
4645 static PyObject
*_wrap_wxXmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4646 PyObject
* _resultobj
;
4648 wxPyXmlResourceHandler
* _arg0
;
4650 wxCoord _arg2
= (wxCoord
) 0;
4651 PyObject
* _argo0
= 0;
4652 PyObject
* _obj1
= 0;
4653 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetDimension",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetDimension. Expected _wxPyXmlResourceHandler_p.");
4666 _arg1
= wxString_in_helper(_obj1
);
4671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4672 _result
= (wxCoord
)wxXmlResourceHandler_GetDimension(_arg0
,*_arg1
,_arg2
);
4674 wxPyEndAllowThreads(__tstate
);
4675 if (PyErr_Occurred()) return NULL
;
4676 } _resultobj
= Py_BuildValue("i",_result
);
4684 #define wxXmlResourceHandler_GetBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetBitmap(_swigarg0,_swigarg1,_swigarg2))
4685 static PyObject
*_wrap_wxXmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4686 PyObject
* _resultobj
;
4688 wxPyXmlResourceHandler
* _arg0
;
4689 wxString
* _arg1
= (wxString
*) &wxPyBitmapString
;
4690 wxArtClient
* _arg2
= (wxArtClient
*) &wxART_OTHER
;
4691 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
4692 PyObject
* _argo0
= 0;
4693 PyObject
* _obj1
= 0;
4694 PyObject
* _argo2
= 0;
4696 PyObject
* _obj3
= 0;
4697 char *_kwnames
[] = { "self","param","defaultArtClient","size", NULL
};
4701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OOO:wxXmlResourceHandler_GetBitmap",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
))
4704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetBitmap. Expected _wxPyXmlResourceHandler_p.");
4712 _arg1
= wxString_in_helper(_obj1
);
4717 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxArtClient_p")) {
4718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_GetBitmap. Expected _wxArtClient_p.");
4725 if (! wxSize_helper(_obj3
, &_arg3
))
4729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4730 _result
= new wxBitmap (wxXmlResourceHandler_GetBitmap(_arg0
,*_arg1
,*_arg2
,*_arg3
));
4732 wxPyEndAllowThreads(__tstate
);
4733 if (PyErr_Occurred()) return NULL
;
4734 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
4735 _resultobj
= Py_BuildValue("s",_ptemp
);
4743 #define wxXmlResourceHandler_GetIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetIcon(_swigarg0,_swigarg1,_swigarg2))
4744 static PyObject
*_wrap_wxXmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4745 PyObject
* _resultobj
;
4747 wxPyXmlResourceHandler
* _arg0
;
4748 wxString
* _arg1
= (wxString
*) &wxPyIconString
;
4749 wxArtClient
* _arg2
= (wxArtClient
*) &wxART_OTHER
;
4750 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
4751 PyObject
* _argo0
= 0;
4752 PyObject
* _obj1
= 0;
4753 PyObject
* _argo2
= 0;
4755 PyObject
* _obj3
= 0;
4756 char *_kwnames
[] = { "self","param","defaultArtClient","size", NULL
};
4760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OOO:wxXmlResourceHandler_GetIcon",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
))
4763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetIcon. Expected _wxPyXmlResourceHandler_p.");
4771 _arg1
= wxString_in_helper(_obj1
);
4776 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxArtClient_p")) {
4777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_GetIcon. Expected _wxArtClient_p.");
4784 if (! wxSize_helper(_obj3
, &_arg3
))
4788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4789 _result
= new wxIcon (wxXmlResourceHandler_GetIcon(_arg0
,*_arg1
,*_arg2
,*_arg3
));
4791 wxPyEndAllowThreads(__tstate
);
4792 if (PyErr_Occurred()) return NULL
;
4793 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
4794 _resultobj
= Py_BuildValue("s",_ptemp
);
4802 #define wxXmlResourceHandler_GetFont(_swigobj,_swigarg0) (_swigobj->GetFont(_swigarg0))
4803 static PyObject
*_wrap_wxXmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4804 PyObject
* _resultobj
;
4806 wxPyXmlResourceHandler
* _arg0
;
4807 wxString
* _arg1
= (wxString
*) &wxPyFontString
;
4808 PyObject
* _argo0
= 0;
4809 PyObject
* _obj1
= 0;
4810 char *_kwnames
[] = { "self","param", NULL
};
4814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetFont",_kwnames
,&_argo0
,&_obj1
))
4817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetFont. Expected _wxPyXmlResourceHandler_p.");
4825 _arg1
= wxString_in_helper(_obj1
);
4830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4831 _result
= new wxFont (wxXmlResourceHandler_GetFont(_arg0
,*_arg1
));
4833 wxPyEndAllowThreads(__tstate
);
4834 if (PyErr_Occurred()) return NULL
;
4835 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
4836 _resultobj
= Py_BuildValue("s",_ptemp
);
4844 #define wxXmlResourceHandler_SetupWindow(_swigobj,_swigarg0) (_swigobj->SetupWindow(_swigarg0))
4845 static PyObject
*_wrap_wxXmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4846 PyObject
* _resultobj
;
4847 wxPyXmlResourceHandler
* _arg0
;
4849 PyObject
* _argo0
= 0;
4850 PyObject
* _argo1
= 0;
4851 char *_kwnames
[] = { "self","wnd", NULL
};
4854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_SetupWindow",_kwnames
,&_argo0
,&_argo1
))
4857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_SetupWindow. Expected _wxPyXmlResourceHandler_p.");
4864 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4865 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_SetupWindow. Expected _wxWindow_p.");
4871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4872 wxXmlResourceHandler_SetupWindow(_arg0
,_arg1
);
4874 wxPyEndAllowThreads(__tstate
);
4875 if (PyErr_Occurred()) return NULL
;
4876 } Py_INCREF(Py_None
);
4877 _resultobj
= Py_None
;
4881 #define wxXmlResourceHandler_CreateChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildren(_swigarg0,_swigarg1))
4882 static PyObject
*_wrap_wxXmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4883 PyObject
* _resultobj
;
4884 wxPyXmlResourceHandler
* _arg0
;
4886 bool _arg2
= (bool ) FALSE
;
4887 PyObject
* _argo0
= 0;
4888 PyObject
* _argo1
= 0;
4889 int tempbool2
= (int) FALSE
;
4890 char *_kwnames
[] = { "self","parent","this_hnd_only", NULL
};
4893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_CreateChildren",_kwnames
,&_argo0
,&_argo1
,&tempbool2
))
4896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateChildren. Expected _wxPyXmlResourceHandler_p.");
4903 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4904 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
4905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateChildren. Expected _wxObject_p.");
4909 _arg2
= (bool ) tempbool2
;
4911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4912 wxXmlResourceHandler_CreateChildren(_arg0
,_arg1
,_arg2
);
4914 wxPyEndAllowThreads(__tstate
);
4915 if (PyErr_Occurred()) return NULL
;
4916 } Py_INCREF(Py_None
);
4917 _resultobj
= Py_None
;
4921 #define wxXmlResourceHandler_CreateChildrenPrivately(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildrenPrivately(_swigarg0,_swigarg1))
4922 static PyObject
*_wrap_wxXmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4923 PyObject
* _resultobj
;
4924 wxPyXmlResourceHandler
* _arg0
;
4926 wxXmlNode
* _arg2
= (wxXmlNode
*) NULL
;
4927 PyObject
* _argo0
= 0;
4928 PyObject
* _argo1
= 0;
4929 PyObject
* _argo2
= 0;
4930 char *_kwnames
[] = { "self","parent","rootnode", NULL
};
4933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlResourceHandler_CreateChildrenPrivately",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxPyXmlResourceHandler_p.");
4943 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4944 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
4945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxObject_p.");
4950 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4951 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlNode_p")) {
4952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxXmlNode_p.");
4957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4958 wxXmlResourceHandler_CreateChildrenPrivately(_arg0
,_arg1
,_arg2
);
4960 wxPyEndAllowThreads(__tstate
);
4961 if (PyErr_Occurred()) return NULL
;
4962 } Py_INCREF(Py_None
);
4963 _resultobj
= Py_None
;
4967 #define wxXmlResourceHandler_CreateResFromNode(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResFromNode(_swigarg0,_swigarg1,_swigarg2))
4968 static PyObject
*_wrap_wxXmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4969 PyObject
* _resultobj
;
4971 wxPyXmlResourceHandler
* _arg0
;
4974 wxObject
* _arg3
= (wxObject
*) NULL
;
4975 PyObject
* _argo0
= 0;
4976 PyObject
* _argo1
= 0;
4977 PyObject
* _argo2
= 0;
4978 PyObject
* _argo3
= 0;
4979 char *_kwnames
[] = { "self","node","parent","instance", NULL
};
4982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResourceHandler_CreateResFromNode",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
4985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateResFromNode. Expected _wxPyXmlResourceHandler_p.");
4992 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4993 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
4994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateResFromNode. Expected _wxXmlNode_p.");
4999 if (_argo2
== Py_None
) { _arg2
= NULL
; }
5000 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxObject_p")) {
5001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
5006 if (_argo3
== Py_None
) { _arg3
= NULL
; }
5007 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxObject_p")) {
5008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
5013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5014 _result
= (wxObject
*)wxXmlResourceHandler_CreateResFromNode(_arg0
,_arg1
,_arg2
,_arg3
);
5016 wxPyEndAllowThreads(__tstate
);
5017 if (PyErr_Occurred()) return NULL
;
5018 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5022 #define wxXmlResourceHandler_GetCurFileSystem(_swigobj) (_swigobj->GetCurFileSystem())
5023 static PyObject
*_wrap_wxXmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5024 PyObject
* _resultobj
;
5025 wxFileSystem
* _result
;
5026 wxPyXmlResourceHandler
* _arg0
;
5027 PyObject
* _argo0
= 0;
5028 char *_kwnames
[] = { "self", NULL
};
5031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetCurFileSystem",_kwnames
,&_argo0
))
5034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
5036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetCurFileSystem. Expected _wxPyXmlResourceHandler_p.");
5041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5042 wxFileSystem
& _result_ref
= wxXmlResourceHandler_GetCurFileSystem(_arg0
);
5043 _result
= (wxFileSystem
*) &_result_ref
;
5045 wxPyEndAllowThreads(__tstate
);
5046 if (PyErr_Occurred()) return NULL
;
5047 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5051 static PyMethodDef xrccMethods
[] = {
5052 { "wxXmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_wxXmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
5053 { "wxXmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
5054 { "wxXmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
5055 { "wxXmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
5056 { "wxXmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
5057 { "wxXmlResourceHandler_GetFont", (PyCFunction
) _wrap_wxXmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
5058 { "wxXmlResourceHandler_GetIcon", (PyCFunction
) _wrap_wxXmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
5059 { "wxXmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_wxXmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5060 { "wxXmlResourceHandler_GetDimension", (PyCFunction
) _wrap_wxXmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
5061 { "wxXmlResourceHandler_GetPosition", (PyCFunction
) _wrap_wxXmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
5062 { "wxXmlResourceHandler_GetSize", (PyCFunction
) _wrap_wxXmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
5063 { "wxXmlResourceHandler_GetColour", (PyCFunction
) _wrap_wxXmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5064 { "wxXmlResourceHandler_GetLong", (PyCFunction
) _wrap_wxXmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
5065 { "wxXmlResourceHandler_GetBool", (PyCFunction
) _wrap_wxXmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
5066 { "wxXmlResourceHandler_GetName", (PyCFunction
) _wrap_wxXmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5067 { "wxXmlResourceHandler_GetID", (PyCFunction
) _wrap_wxXmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
5068 { "wxXmlResourceHandler_GetText", (PyCFunction
) _wrap_wxXmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
5069 { "wxXmlResourceHandler_GetStyle", (PyCFunction
) _wrap_wxXmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
5070 { "wxXmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_wxXmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
5071 { "wxXmlResourceHandler_AddStyle", (PyCFunction
) _wrap_wxXmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
5072 { "wxXmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
5073 { "wxXmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
5074 { "wxXmlResourceHandler_HasParam", (PyCFunction
) _wrap_wxXmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
5075 { "wxXmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_wxXmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
5076 { "wxXmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_wxXmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
5077 { "wxXmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5078 { "wxXmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
5079 { "wxXmlResourceHandler_GetInstance", (PyCFunction
) _wrap_wxXmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
5080 { "wxXmlResourceHandler_GetParent", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5081 { "wxXmlResourceHandler_GetClass", (PyCFunction
) _wrap_wxXmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
5082 { "wxXmlResourceHandler_GetNode", (PyCFunction
) _wrap_wxXmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
5083 { "wxXmlResourceHandler_GetResource", (PyCFunction
) _wrap_wxXmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
5084 { "wxXmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_wxXmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
5085 { "wxXmlResourceHandler_CreateResource", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
5086 { "wxXmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_wxXmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5087 { "new_wxXmlResourceHandler", (PyCFunction
) _wrap_new_wxXmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
5088 { "wxXmlDocument_SetEncoding", (PyCFunction
) _wrap_wxXmlDocument_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5089 { "wxXmlDocument_GetEncoding", (PyCFunction
) _wrap_wxXmlDocument_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5090 { "wxXmlDocument_SetFileEncoding", (PyCFunction
) _wrap_wxXmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5091 { "wxXmlDocument_SetVersion", (PyCFunction
) _wrap_wxXmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5092 { "wxXmlDocument_SetRoot", (PyCFunction
) _wrap_wxXmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5093 { "wxXmlDocument_GetFileEncoding", (PyCFunction
) _wrap_wxXmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
5094 { "wxXmlDocument_GetVersion", (PyCFunction
) _wrap_wxXmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5095 { "wxXmlDocument_GetRoot", (PyCFunction
) _wrap_wxXmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
5096 { "wxXmlDocument_IsOk", (PyCFunction
) _wrap_wxXmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
5097 { "wxXmlDocument_SaveToStream", (PyCFunction
) _wrap_wxXmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
5098 { "wxXmlDocument_Save", (PyCFunction
) _wrap_wxXmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
5099 { "wxXmlDocument_LoadFromStream", (PyCFunction
) _wrap_wxXmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5100 { "wxXmlDocument_Load", (PyCFunction
) _wrap_wxXmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
5101 { "delete_wxXmlDocument", (PyCFunction
) _wrap_delete_wxXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5102 { "new_wxEmptyXmlDocument", (PyCFunction
) _wrap_new_wxEmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5103 { "new_wxXmlDocumentFromStream", (PyCFunction
) _wrap_new_wxXmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
5104 { "new_wxXmlDocument", (PyCFunction
) _wrap_new_wxXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
5105 { "wxXmlNode_SetProperties", (PyCFunction
) _wrap_wxXmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5106 { "wxXmlNode_SetChildren", (PyCFunction
) _wrap_wxXmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5107 { "wxXmlNode_SetNext", (PyCFunction
) _wrap_wxXmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5108 { "wxXmlNode_SetParent", (PyCFunction
) _wrap_wxXmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
5109 { "wxXmlNode_SetContent", (PyCFunction
) _wrap_wxXmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
5110 { "wxXmlNode_SetName", (PyCFunction
) _wrap_wxXmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5111 { "wxXmlNode_SetType", (PyCFunction
) _wrap_wxXmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
5112 { "wxXmlNode_HasProp", (PyCFunction
) _wrap_wxXmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
5113 { "wxXmlNode_GetPropVal", (PyCFunction
) _wrap_wxXmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
5114 { "wxXmlNode_GetProperties", (PyCFunction
) _wrap_wxXmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
5115 { "wxXmlNode_GetChildren", (PyCFunction
) _wrap_wxXmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
5116 { "wxXmlNode_GetNext", (PyCFunction
) _wrap_wxXmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5117 { "wxXmlNode_GetParent", (PyCFunction
) _wrap_wxXmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
5118 { "wxXmlNode_GetContent", (PyCFunction
) _wrap_wxXmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
5119 { "wxXmlNode_GetName", (PyCFunction
) _wrap_wxXmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5120 { "wxXmlNode_GetType", (PyCFunction
) _wrap_wxXmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
5121 { "wxXmlNode_DeleteProperty", (PyCFunction
) _wrap_wxXmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
5122 { "wxXmlNode_AddPropertyName", (PyCFunction
) _wrap_wxXmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
5123 { "wxXmlNode_AddProperty", (PyCFunction
) _wrap_wxXmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
5124 { "wxXmlNode_RemoveChild", (PyCFunction
) _wrap_wxXmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
5125 { "wxXmlNode_InsertChild", (PyCFunction
) _wrap_wxXmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
5126 { "wxXmlNode_AddChild", (PyCFunction
) _wrap_wxXmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
5127 { "new_wxXmlNodeEasy", (PyCFunction
) _wrap_new_wxXmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
5128 { "delete_wxXmlNode", (PyCFunction
) _wrap_delete_wxXmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5129 { "new_wxXmlNode", (PyCFunction
) _wrap_new_wxXmlNode
, METH_VARARGS
| METH_KEYWORDS
},
5130 { "wxXmlProperty_SetNext", (PyCFunction
) _wrap_wxXmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
5131 { "wxXmlProperty_SetValue", (PyCFunction
) _wrap_wxXmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
5132 { "wxXmlProperty_SetName", (PyCFunction
) _wrap_wxXmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
5133 { "wxXmlProperty_GetNext", (PyCFunction
) _wrap_wxXmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
5134 { "wxXmlProperty_GetValue", (PyCFunction
) _wrap_wxXmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
5135 { "wxXmlProperty_GetName", (PyCFunction
) _wrap_wxXmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
5136 { "new_wxXmlProperty", (PyCFunction
) _wrap_new_wxXmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
5137 { "wxXmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_wxXmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
5138 { "new_wxXmlSubclassFactory", (PyCFunction
) _wrap_new_wxXmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5139 { "wxXmlResource_SetFlags", (PyCFunction
) _wrap_wxXmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5140 { "wxXmlResource_GetFlags", (PyCFunction
) _wrap_wxXmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
5141 { "wxXmlResource_Set", (PyCFunction
) _wrap_wxXmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
5142 { "wxXmlResource_Get", (PyCFunction
) _wrap_wxXmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
5143 { "wxXmlResource_CompareVersion", (PyCFunction
) _wrap_wxXmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
5144 { "wxXmlResource_GetVersion", (PyCFunction
) _wrap_wxXmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
5145 { "wxXmlResource_GetXRCID", (PyCFunction
) _wrap_wxXmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
5146 { "wxXmlResource_AttachUnknownControl", (PyCFunction
) _wrap_wxXmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5147 { "wxXmlResource_LoadIcon", (PyCFunction
) _wrap_wxXmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5148 { "wxXmlResource_LoadBitmap", (PyCFunction
) _wrap_wxXmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5149 { "wxXmlResource_LoadOnObject", (PyCFunction
) _wrap_wxXmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5150 { "wxXmlResource_LoadObject", (PyCFunction
) _wrap_wxXmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5151 { "wxXmlResource_LoadOnFrame", (PyCFunction
) _wrap_wxXmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5152 { "wxXmlResource_LoadFrame", (PyCFunction
) _wrap_wxXmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5153 { "wxXmlResource_LoadOnPanel", (PyCFunction
) _wrap_wxXmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5154 { "wxXmlResource_LoadPanel", (PyCFunction
) _wrap_wxXmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5155 { "wxXmlResource_LoadOnDialog", (PyCFunction
) _wrap_wxXmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5156 { "wxXmlResource_LoadDialog", (PyCFunction
) _wrap_wxXmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5157 { "wxXmlResource_LoadToolBar", (PyCFunction
) _wrap_wxXmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5158 { "wxXmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5159 { "wxXmlResource_LoadMenuBar", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5160 { "wxXmlResource_LoadMenu", (PyCFunction
) _wrap_wxXmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5161 { "wxXmlResource_AddSubclassFactory", (PyCFunction
) _wrap_wxXmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
},
5162 { "wxXmlResource_ClearHandlers", (PyCFunction
) _wrap_wxXmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5163 { "wxXmlResource_InsertHandler", (PyCFunction
) _wrap_wxXmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5164 { "wxXmlResource_AddHandler", (PyCFunction
) _wrap_wxXmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5165 { "wxXmlResource_InitAllHandlers", (PyCFunction
) _wrap_wxXmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5166 { "wxXmlResource_LoadFromString", (PyCFunction
) _wrap_wxXmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5167 { "wxXmlResource_Load", (PyCFunction
) _wrap_wxXmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5168 { "delete_wxXmlResource", (PyCFunction
) _wrap_delete_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5169 { "new_wxEmptyXmlResource", (PyCFunction
) _wrap_new_wxEmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5170 { "new_wxXmlResource", (PyCFunction
) _wrap_new_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5177 * This table is used by the pointer type-checker
5179 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
5180 { "_signed_long","_long",0},
5181 { "_wxPrintQuality","_wxCoord",0},
5182 { "_wxPrintQuality","_int",0},
5183 { "_wxPrintQuality","_signed_int",0},
5184 { "_wxPrintQuality","_unsigned_int",0},
5185 { "_wxPrintQuality","_wxWindowID",0},
5186 { "_wxPrintQuality","_uint",0},
5187 { "_wxPrintQuality","_EBool",0},
5188 { "_wxPrintQuality","_size_t",0},
5189 { "_wxPrintQuality","_time_t",0},
5190 { "_byte","_unsigned_char",0},
5191 { "_long","_unsigned_long",0},
5192 { "_long","_signed_long",0},
5193 { "_size_t","_wxCoord",0},
5194 { "_size_t","_wxPrintQuality",0},
5195 { "_size_t","_time_t",0},
5196 { "_size_t","_unsigned_int",0},
5197 { "_size_t","_int",0},
5198 { "_size_t","_wxWindowID",0},
5199 { "_size_t","_uint",0},
5200 { "_uint","_wxCoord",0},
5201 { "_uint","_wxPrintQuality",0},
5202 { "_uint","_time_t",0},
5203 { "_uint","_size_t",0},
5204 { "_uint","_unsigned_int",0},
5205 { "_uint","_int",0},
5206 { "_uint","_wxWindowID",0},
5207 { "_wxChar","_char",0},
5208 { "_char","_wxChar",0},
5209 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
5210 { "_EBool","_wxCoord",0},
5211 { "_EBool","_wxPrintQuality",0},
5212 { "_EBool","_signed_int",0},
5213 { "_EBool","_int",0},
5214 { "_EBool","_wxWindowID",0},
5215 { "_unsigned_long","_long",0},
5216 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
5217 { "_signed_int","_wxCoord",0},
5218 { "_signed_int","_wxPrintQuality",0},
5219 { "_signed_int","_EBool",0},
5220 { "_signed_int","_wxWindowID",0},
5221 { "_signed_int","_int",0},
5222 { "_WXTYPE","_wxDateTime_t",0},
5223 { "_WXTYPE","_short",0},
5224 { "_WXTYPE","_signed_short",0},
5225 { "_WXTYPE","_unsigned_short",0},
5226 { "_unsigned_short","_wxDateTime_t",0},
5227 { "_unsigned_short","_WXTYPE",0},
5228 { "_unsigned_short","_short",0},
5229 { "_wxObject","_wxPyXmlResourceHandler",SwigwxPyXmlResourceHandlerTowxObject
},
5230 { "_wxObject","_wxXmlDocument",SwigwxXmlDocumentTowxObject
},
5231 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject
},
5232 { "_signed_short","_WXTYPE",0},
5233 { "_signed_short","_short",0},
5234 { "_unsigned_char","_byte",0},
5235 { "_unsigned_int","_wxCoord",0},
5236 { "_unsigned_int","_wxPrintQuality",0},
5237 { "_unsigned_int","_time_t",0},
5238 { "_unsigned_int","_size_t",0},
5239 { "_unsigned_int","_uint",0},
5240 { "_unsigned_int","_wxWindowID",0},
5241 { "_unsigned_int","_int",0},
5242 { "_short","_wxDateTime_t",0},
5243 { "_short","_WXTYPE",0},
5244 { "_short","_unsigned_short",0},
5245 { "_short","_signed_short",0},
5246 { "_wxWindowID","_wxCoord",0},
5247 { "_wxWindowID","_wxPrintQuality",0},
5248 { "_wxWindowID","_time_t",0},
5249 { "_wxWindowID","_size_t",0},
5250 { "_wxWindowID","_EBool",0},
5251 { "_wxWindowID","_uint",0},
5252 { "_wxWindowID","_int",0},
5253 { "_wxWindowID","_signed_int",0},
5254 { "_wxWindowID","_unsigned_int",0},
5255 { "_int","_wxCoord",0},
5256 { "_int","_wxPrintQuality",0},
5257 { "_int","_time_t",0},
5258 { "_int","_size_t",0},
5259 { "_int","_EBool",0},
5260 { "_int","_uint",0},
5261 { "_int","_wxWindowID",0},
5262 { "_int","_unsigned_int",0},
5263 { "_int","_signed_int",0},
5264 { "_wxDateTime_t","_unsigned_short",0},
5265 { "_wxDateTime_t","_short",0},
5266 { "_wxDateTime_t","_WXTYPE",0},
5267 { "_time_t","_wxCoord",0},
5268 { "_time_t","_wxPrintQuality",0},
5269 { "_time_t","_unsigned_int",0},
5270 { "_time_t","_int",0},
5271 { "_time_t","_wxWindowID",0},
5272 { "_time_t","_uint",0},
5273 { "_time_t","_size_t",0},
5274 { "_wxCoord","_int",0},
5275 { "_wxCoord","_signed_int",0},
5276 { "_wxCoord","_unsigned_int",0},
5277 { "_wxCoord","_wxWindowID",0},
5278 { "_wxCoord","_uint",0},
5279 { "_wxCoord","_EBool",0},
5280 { "_wxCoord","_size_t",0},
5281 { "_wxCoord","_time_t",0},
5282 { "_wxCoord","_wxPrintQuality",0},
5285 static PyObject
*SWIG_globals
;
5289 SWIGEXPORT(void) initxrcc() {
5291 SWIG_globals
= SWIG_newvarlink();
5292 m
= Py_InitModule("xrcc", xrccMethods
);
5293 d
= PyModule_GetDict(m
);
5294 PyDict_SetItemString(d
,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE
));
5295 PyDict_SetItemString(d
,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING
));
5296 PyDict_SetItemString(d
,"wxXML_ELEMENT_NODE", PyInt_FromLong((long) wxXML_ELEMENT_NODE
));
5297 PyDict_SetItemString(d
,"wxXML_ATTRIBUTE_NODE", PyInt_FromLong((long) wxXML_ATTRIBUTE_NODE
));
5298 PyDict_SetItemString(d
,"wxXML_TEXT_NODE", PyInt_FromLong((long) wxXML_TEXT_NODE
));
5299 PyDict_SetItemString(d
,"wxXML_CDATA_SECTION_NODE", PyInt_FromLong((long) wxXML_CDATA_SECTION_NODE
));
5300 PyDict_SetItemString(d
,"wxXML_ENTITY_REF_NODE", PyInt_FromLong((long) wxXML_ENTITY_REF_NODE
));
5301 PyDict_SetItemString(d
,"wxXML_ENTITY_NODE", PyInt_FromLong((long) wxXML_ENTITY_NODE
));
5302 PyDict_SetItemString(d
,"wxXML_PI_NODE", PyInt_FromLong((long) wxXML_PI_NODE
));
5303 PyDict_SetItemString(d
,"wxXML_COMMENT_NODE", PyInt_FromLong((long) wxXML_COMMENT_NODE
));
5304 PyDict_SetItemString(d
,"wxXML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_NODE
));
5305 PyDict_SetItemString(d
,"wxXML_DOCUMENT_TYPE_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_TYPE_NODE
));
5306 PyDict_SetItemString(d
,"wxXML_DOCUMENT_FRAG_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_FRAG_NODE
));
5307 PyDict_SetItemString(d
,"wxXML_NOTATION_NODE", PyInt_FromLong((long) wxXML_NOTATION_NODE
));
5308 PyDict_SetItemString(d
,"wxXML_HTML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_HTML_DOCUMENT_NODE
));
5311 wxClassInfo::CleanUpClasses();
5312 wxClassInfo::InitializeClasses();
5314 wxXmlInitResourceModule();
5315 wxXmlResource::Get()->InitAllHandlers();
5319 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
5320 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);