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 */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initxrcc
56 #define SWIG_name "xrcc"
59 #include "pyistream.h"
60 #include "wx/xrc/xml.h"
61 #include "wx/xrc/xmlres.h"
62 #include <wx/filesys.h>
63 #include <wx/fs_mem.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 // Put some wx default wxChar* values into wxStrings.
93 static const wxString
wxPyEmptyString(wxT(""));
94 static const wxString
wxPyUTF8String(wxT("UTF-8"));
95 static const wxString
wxPyStyleString(wxT("style"));
96 static const wxString
wxPySizeString(wxT("size"));
97 static const wxString
wxPyPosString(wxT("pos"));
98 static const wxString
wxPyBitmapString(wxT("bitmap"));
99 static const wxString
wxPyIconString(wxT("icon"));
100 static const wxString
wxPyFontString(wxT("font"));
101 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
102 // callbacks, as well as to make some protected things public so they can
104 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
106 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
107 //~wxPyXmlResourceHandler();
109 // Base class virtuals
111 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
112 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
114 // wxObject* DoCreateResource() {
115 // wxObject* rv = NULL;
116 // wxPyBeginBlockThreads();
117 // if (wxPyCBH_findCallback(m_myInst, "DoCreateResource")) {
119 // ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
121 // SWIG_GetPtrObj(ro, (void **)&rv, "_wxObject_p");
125 // wxPyEndBlockThreads();
129 // bool CanHandle(wxXmlNode* a) {
131 // wxPyBeginBlockThreads();
132 // if (wxPyCBH_findCallback(m_myInst, "CanHandle")) {
133 // PyObject* obj = wxPyConstructObject((void*)a, "wxXmlNode", 0);
134 // rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
137 // wxPyEndBlockThreads();
143 // accessors for protected members
145 wxXmlResource
* GetResource() { return m_resource
; }
146 wxXmlNode
* GetNode() { return m_node
; }
147 wxString
GetClass() { return m_class
; }
148 wxObject
* GetParent() { return m_parent
; }
149 wxObject
* GetInstance() { return m_instance
; }
150 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
151 wxWindow
* GetInstanceAsWindow() { return m_instanceAsWindow
; }
154 // turn some protected methods into public via delegation
156 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
157 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
159 wxString
GetNodeContent(wxXmlNode
*node
)
160 { return wxXmlResourceHandler::GetNodeContent(node
); }
162 bool HasParam(const wxString
& param
)
163 { return wxXmlResourceHandler::HasParam(param
); }
165 wxXmlNode
*GetParamNode(const wxString
& param
)
166 { return wxXmlResourceHandler::GetParamNode(param
); }
168 wxString
GetParamValue(const wxString
& param
)
169 { return wxXmlResourceHandler::GetParamValue(param
); }
171 void AddStyle(const wxString
& name
, int value
)
172 { wxXmlResourceHandler::AddStyle(name
, value
); }
174 void AddWindowStyles()
175 { wxXmlResourceHandler::AddWindowStyles(); }
177 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
178 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
180 wxString
GetText(const wxString
& param
, bool translate
= TRUE
)
181 { return wxXmlResourceHandler::GetText(param
, translate
); }
184 { return wxXmlResourceHandler::GetID(); }
187 { return wxXmlResourceHandler::GetName(); }
189 bool GetBool(const wxString
& param
, bool defaultv
= FALSE
)
190 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
192 long GetLong( const wxString
& param
, long defaultv
= 0 )
193 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
195 wxColour
GetColour(const wxString
& param
)
196 { return wxXmlResourceHandler::GetColour(param
); }
198 wxSize
GetSize(const wxString
& param
= wxT("size"))
199 { return wxXmlResourceHandler::GetSize(param
); }
201 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
202 { return wxXmlResourceHandler::GetPosition(param
); }
204 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
205 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
207 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
208 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
209 wxSize size
= wxDefaultSize
)
210 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
212 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
213 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
214 wxSize size
= wxDefaultSize
)
215 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
217 wxFont
GetFont(const wxString
& param
= wxT("font"))
218 { return wxXmlResourceHandler::GetFont(param
); }
220 void SetupWindow(wxWindow
*wnd
)
221 { wxXmlResourceHandler::SetupWindow(wnd
); }
223 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= FALSE
)
224 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
226 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
227 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
229 wxObject
*CreateResFromNode(wxXmlNode
*node
,
230 wxObject
*parent
, wxObject
*instance
= NULL
)
231 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
233 wxFileSystem
& GetCurFileSystem()
234 { return wxXmlResourceHandler::GetCurFileSystem(); }
240 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
241 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
246 static void *SwigwxXmlResourceTowxObject(void *ptr
) {
249 src
= (wxXmlResource
*) ptr
;
250 dest
= (wxObject
*) src
;
251 return (void *) dest
;
254 #define new_wxXmlResource(_swigarg0,_swigarg1) (new wxXmlResource(_swigarg0,_swigarg1))
255 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
256 PyObject
* _resultobj
;
257 wxXmlResource
* _result
;
259 int _arg1
= (int ) (wxXRC_USE_LOCALE
);
260 PyObject
* _obj0
= 0;
261 char *_kwnames
[] = { "filemask","flags", NULL
};
265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&_arg1
))
268 _arg0
= wxString_in_helper(_obj0
);
273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
274 _result
= (wxXmlResource
*)new_wxXmlResource(*_arg0
,_arg1
);
276 wxPyEndAllowThreads(__tstate
);
277 if (PyErr_Occurred()) return NULL
;
279 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
280 _resultobj
= Py_BuildValue("s",_ptemp
);
283 _resultobj
= Py_None
;
292 #define new_wxEmptyXmlResource(_swigarg0) (new wxXmlResource(_swigarg0))
293 static PyObject
*_wrap_new_wxEmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
294 PyObject
* _resultobj
;
295 wxXmlResource
* _result
;
296 int _arg0
= (int ) (wxXRC_USE_LOCALE
);
297 char *_kwnames
[] = { "flags", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxEmptyXmlResource",_kwnames
,&_arg0
))
304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
305 _result
= (wxXmlResource
*)new_wxEmptyXmlResource(_arg0
);
307 wxPyEndAllowThreads(__tstate
);
308 if (PyErr_Occurred()) return NULL
;
310 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
311 _resultobj
= Py_BuildValue("s",_ptemp
);
314 _resultobj
= Py_None
;
319 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
320 static PyObject
*_wrap_delete_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
321 PyObject
* _resultobj
;
322 wxXmlResource
* _arg0
;
323 PyObject
* _argo0
= 0;
324 char *_kwnames
[] = { "self", NULL
};
327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_argo0
))
330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
338 delete_wxXmlResource(_arg0
);
340 wxPyEndAllowThreads(__tstate
);
341 if (PyErr_Occurred()) return NULL
;
342 } Py_INCREF(Py_None
);
343 _resultobj
= Py_None
;
347 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
348 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
349 PyObject
* _resultobj
;
351 wxXmlResource
* _arg0
;
353 PyObject
* _argo0
= 0;
354 PyObject
* _obj1
= 0;
355 char *_kwnames
[] = { "self","filemask", NULL
};
358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
368 _arg1
= wxString_in_helper(_obj1
);
373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
374 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
376 wxPyEndAllowThreads(__tstate
);
377 if (PyErr_Occurred()) return NULL
;
378 } _resultobj
= Py_BuildValue("i",_result
);
386 static bool wxXmlResource_LoadFromString(wxXmlResource
*self
,const wxString
& data
) {
387 static int s_memFileIdx
= 0;
389 // Check for memory FS. If not present, load the handler:
390 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
393 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
394 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
398 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
400 // Now put the resource data into the memory FS
401 wxString
filename(wxT("XRC_resource/data_string_"));
402 filename
<< s_memFileIdx
;
404 wxMemoryFSHandler::AddFile(filename
, data
);
406 // Load the "file" into the resource object
407 bool retval
= self
->Load(wxT("memory:") + filename
);
411 static PyObject
*_wrap_wxXmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
412 PyObject
* _resultobj
;
414 wxXmlResource
* _arg0
;
416 PyObject
* _argo0
= 0;
417 PyObject
* _obj1
= 0;
418 char *_kwnames
[] = { "self","data", NULL
};
421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadFromString",_kwnames
,&_argo0
,&_obj1
))
424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFromString. Expected _wxXmlResource_p.");
431 _arg1
= wxString_in_helper(_obj1
);
436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
437 _result
= (bool )wxXmlResource_LoadFromString(_arg0
,*_arg1
);
439 wxPyEndAllowThreads(__tstate
);
440 if (PyErr_Occurred()) return NULL
;
441 } _resultobj
= Py_BuildValue("i",_result
);
449 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
450 static PyObject
*_wrap_wxXmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
451 PyObject
* _resultobj
;
452 wxXmlResource
* _arg0
;
453 PyObject
* _argo0
= 0;
454 char *_kwnames
[] = { "self", NULL
};
457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_argo0
))
460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
467 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
468 wxXmlResource_InitAllHandlers(_arg0
);
470 wxPyEndAllowThreads(__tstate
);
471 if (PyErr_Occurred()) return NULL
;
472 } Py_INCREF(Py_None
);
473 _resultobj
= Py_None
;
477 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
478 static PyObject
*_wrap_wxXmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
480 wxXmlResource
* _arg0
;
481 wxPyXmlResourceHandler
* _arg1
;
482 PyObject
* _argo0
= 0;
483 PyObject
* _argo1
= 0;
484 char *_kwnames
[] = { "self","handler", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
497 if (_argo1
== Py_None
) { _arg1
= NULL
; }
498 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyXmlResourceHandler_p")) {
499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxPyXmlResourceHandler_p.");
504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
505 wxXmlResource_AddHandler(_arg0
,_arg1
);
507 wxPyEndAllowThreads(__tstate
);
508 if (PyErr_Occurred()) return NULL
;
509 } Py_INCREF(Py_None
);
510 _resultobj
= Py_None
;
514 #define wxXmlResource_InsertHandler(_swigobj,_swigarg0) (_swigobj->InsertHandler(_swigarg0))
515 static PyObject
*_wrap_wxXmlResource_InsertHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
517 wxXmlResource
* _arg0
;
518 wxPyXmlResourceHandler
* _arg1
;
519 PyObject
* _argo0
= 0;
520 PyObject
* _argo1
= 0;
521 char *_kwnames
[] = { "self","handler", NULL
};
524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_InsertHandler",_kwnames
,&_argo0
,&_argo1
))
527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InsertHandler. Expected _wxXmlResource_p.");
534 if (_argo1
== Py_None
) { _arg1
= NULL
; }
535 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyXmlResourceHandler_p")) {
536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_InsertHandler. Expected _wxPyXmlResourceHandler_p.");
541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
542 wxXmlResource_InsertHandler(_arg0
,_arg1
);
544 wxPyEndAllowThreads(__tstate
);
545 if (PyErr_Occurred()) return NULL
;
546 } Py_INCREF(Py_None
);
547 _resultobj
= Py_None
;
551 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
552 static PyObject
*_wrap_wxXmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
554 wxXmlResource
* _arg0
;
555 PyObject
* _argo0
= 0;
556 char *_kwnames
[] = { "self", NULL
};
559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_argo0
))
562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
570 wxXmlResource_ClearHandlers(_arg0
);
572 wxPyEndAllowThreads(__tstate
);
573 if (PyErr_Occurred()) return NULL
;
574 } Py_INCREF(Py_None
);
575 _resultobj
= Py_None
;
579 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
580 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
583 wxXmlResource
* _arg0
;
585 PyObject
* _argo0
= 0;
586 PyObject
* _obj1
= 0;
587 char *_kwnames
[] = { "self","name", NULL
};
590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
600 _arg1
= wxString_in_helper(_obj1
);
605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
606 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
608 wxPyEndAllowThreads(__tstate
);
609 if (PyErr_Occurred()) return NULL
;
610 }{ _resultobj
= wxPyMake_wxObject(_result
); }
618 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
619 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
620 PyObject
* _resultobj
;
622 wxXmlResource
* _arg0
;
624 PyObject
* _argo0
= 0;
625 PyObject
* _obj1
= 0;
626 char *_kwnames
[] = { "self","name", NULL
};
629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
639 _arg1
= wxString_in_helper(_obj1
);
644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
645 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
647 wxPyEndAllowThreads(__tstate
);
648 if (PyErr_Occurred()) return NULL
;
649 }{ _resultobj
= wxPyMake_wxObject(_result
); }
657 #define wxXmlResource_LoadMenuBarOnFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadMenuBar(_swigarg0,_swigarg1))
658 static PyObject
*_wrap_wxXmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
659 PyObject
* _resultobj
;
661 wxXmlResource
* _arg0
;
664 PyObject
* _argo0
= 0;
665 PyObject
* _argo1
= 0;
666 PyObject
* _obj2
= 0;
667 char *_kwnames
[] = { "self","parent","name", NULL
};
670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadMenuBarOnFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxXmlResource_p.");
680 if (_argo1
== Py_None
) { _arg1
= NULL
; }
681 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxWindow_p.");
687 _arg2
= wxString_in_helper(_obj2
);
692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
693 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBarOnFrame(_arg0
,_arg1
,*_arg2
);
695 wxPyEndAllowThreads(__tstate
);
696 if (PyErr_Occurred()) return NULL
;
697 }{ _resultobj
= wxPyMake_wxObject(_result
); }
705 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
706 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
707 PyObject
* _resultobj
;
709 wxXmlResource
* _arg0
;
712 PyObject
* _argo0
= 0;
713 PyObject
* _argo1
= 0;
714 PyObject
* _obj2
= 0;
715 char *_kwnames
[] = { "self","parent","name", NULL
};
718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
728 if (_argo1
== Py_None
) { _arg1
= NULL
; }
729 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
735 _arg2
= wxString_in_helper(_obj2
);
740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
741 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
743 wxPyEndAllowThreads(__tstate
);
744 if (PyErr_Occurred()) return NULL
;
745 }{ _resultobj
= wxPyMake_wxObject(_result
); }
753 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
754 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
755 PyObject
* _resultobj
;
757 wxXmlResource
* _arg0
;
760 PyObject
* _argo0
= 0;
761 PyObject
* _argo1
= 0;
762 PyObject
* _obj2
= 0;
763 char *_kwnames
[] = { "self","parent","name", NULL
};
767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
777 if (_argo1
== Py_None
) { _arg1
= NULL
; }
778 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
784 _arg2
= wxString_in_helper(_obj2
);
789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
790 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
792 wxPyEndAllowThreads(__tstate
);
793 if (PyErr_Occurred()) return NULL
;
795 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
796 _resultobj
= Py_BuildValue("s",_ptemp
);
799 _resultobj
= Py_None
;
808 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
809 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
810 PyObject
* _resultobj
;
812 wxXmlResource
* _arg0
;
816 PyObject
* _argo0
= 0;
817 PyObject
* _argo1
= 0;
818 PyObject
* _argo2
= 0;
819 PyObject
* _obj3
= 0;
820 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
833 if (_argo1
== Py_None
) { _arg1
= NULL
; }
834 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDialog_p")) {
835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
840 if (_argo2
== Py_None
) { _arg2
= NULL
; }
841 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
847 _arg3
= wxString_in_helper(_obj3
);
852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
853 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
855 wxPyEndAllowThreads(__tstate
);
856 if (PyErr_Occurred()) return NULL
;
857 } _resultobj
= Py_BuildValue("i",_result
);
865 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
866 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
867 PyObject
* _resultobj
;
869 wxXmlResource
* _arg0
;
872 PyObject
* _argo0
= 0;
873 PyObject
* _argo1
= 0;
874 PyObject
* _obj2
= 0;
875 char *_kwnames
[] = { "self","parent","name", NULL
};
879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
889 if (_argo1
== Py_None
) { _arg1
= NULL
; }
890 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
896 _arg2
= wxString_in_helper(_obj2
);
901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
902 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
904 wxPyEndAllowThreads(__tstate
);
905 if (PyErr_Occurred()) return NULL
;
907 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
908 _resultobj
= Py_BuildValue("s",_ptemp
);
911 _resultobj
= Py_None
;
920 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
921 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
922 PyObject
* _resultobj
;
924 wxXmlResource
* _arg0
;
928 PyObject
* _argo0
= 0;
929 PyObject
* _argo1
= 0;
930 PyObject
* _argo2
= 0;
931 PyObject
* _obj3
= 0;
932 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
945 if (_argo1
== Py_None
) { _arg1
= NULL
; }
946 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPanel_p")) {
947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
952 if (_argo2
== Py_None
) { _arg2
= NULL
; }
953 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
959 _arg3
= wxString_in_helper(_obj3
);
964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
965 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
967 wxPyEndAllowThreads(__tstate
);
968 if (PyErr_Occurred()) return NULL
;
969 } _resultobj
= Py_BuildValue("i",_result
);
977 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFrame(_swigarg0,_swigarg1))
978 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
979 PyObject
* _resultobj
;
981 wxXmlResource
* _arg0
;
984 PyObject
* _argo0
= 0;
985 PyObject
* _argo1
= 0;
986 PyObject
* _obj2
= 0;
987 char *_kwnames
[] = { "self","parent","name", NULL
};
990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
1000 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1001 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
1007 _arg2
= wxString_in_helper(_obj2
);
1012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1013 _result
= (wxFrame
*)wxXmlResource_LoadFrame(_arg0
,_arg1
,*_arg2
);
1015 wxPyEndAllowThreads(__tstate
);
1016 if (PyErr_Occurred()) return NULL
;
1017 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1025 #define wxXmlResource_LoadOnFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
1026 static PyObject
*_wrap_wxXmlResource_LoadOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1027 PyObject
* _resultobj
;
1029 wxXmlResource
* _arg0
;
1033 PyObject
* _argo0
= 0;
1034 PyObject
* _argo1
= 0;
1035 PyObject
* _argo2
= 0;
1036 PyObject
* _obj3
= 0;
1037 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
1040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
1043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnFrame. Expected _wxXmlResource_p.");
1050 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1051 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
1052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnFrame. Expected _wxFrame_p.");
1057 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1058 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnFrame. Expected _wxWindow_p.");
1064 _arg3
= wxString_in_helper(_obj3
);
1069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1070 _result
= (bool )wxXmlResource_LoadOnFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
1072 wxPyEndAllowThreads(__tstate
);
1073 if (PyErr_Occurred()) return NULL
;
1074 } _resultobj
= Py_BuildValue("i",_result
);
1082 #define wxXmlResource_LoadObject(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2))
1083 static PyObject
*_wrap_wxXmlResource_LoadObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1084 PyObject
* _resultobj
;
1086 wxXmlResource
* _arg0
;
1090 PyObject
* _argo0
= 0;
1091 PyObject
* _argo1
= 0;
1092 PyObject
* _obj2
= 0;
1093 PyObject
* _obj3
= 0;
1094 char *_kwnames
[] = { "self","parent","name","classname", NULL
};
1097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadObject",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_obj3
))
1100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadObject. Expected _wxXmlResource_p.");
1107 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1108 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadObject. Expected _wxWindow_p.");
1114 _arg2
= wxString_in_helper(_obj2
);
1119 _arg3
= wxString_in_helper(_obj3
);
1124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1125 _result
= (wxObject
*)wxXmlResource_LoadObject(_arg0
,_arg1
,*_arg2
,*_arg3
);
1127 wxPyEndAllowThreads(__tstate
);
1128 if (PyErr_Occurred()) return NULL
;
1129 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1141 #define wxXmlResource_LoadOnObject(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1142 static PyObject
*_wrap_wxXmlResource_LoadOnObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1143 PyObject
* _resultobj
;
1145 wxXmlResource
* _arg0
;
1150 PyObject
* _argo0
= 0;
1151 PyObject
* _argo1
= 0;
1152 PyObject
* _argo2
= 0;
1153 PyObject
* _obj3
= 0;
1154 PyObject
* _obj4
= 0;
1155 char *_kwnames
[] = { "self","instance","parent","name","classname", NULL
};
1158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxXmlResource_LoadOnObject",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
,&_obj4
))
1161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnObject. Expected _wxXmlResource_p.");
1168 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1169 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
1170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnObject. Expected _wxObject_p.");
1175 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1176 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnObject. Expected _wxWindow_p.");
1182 _arg3
= wxString_in_helper(_obj3
);
1187 _arg4
= wxString_in_helper(_obj4
);
1192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1193 _result
= (bool )wxXmlResource_LoadOnObject(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
);
1195 wxPyEndAllowThreads(__tstate
);
1196 if (PyErr_Occurred()) return NULL
;
1197 } _resultobj
= Py_BuildValue("i",_result
);
1209 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
1210 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1211 PyObject
* _resultobj
;
1213 wxXmlResource
* _arg0
;
1215 PyObject
* _argo0
= 0;
1216 PyObject
* _obj1
= 0;
1217 char *_kwnames
[] = { "self","name", NULL
};
1221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
1224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
1231 _arg1
= wxString_in_helper(_obj1
);
1236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1237 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
1239 wxPyEndAllowThreads(__tstate
);
1240 if (PyErr_Occurred()) return NULL
;
1241 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1242 _resultobj
= Py_BuildValue("s",_ptemp
);
1250 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
1251 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1252 PyObject
* _resultobj
;
1254 wxXmlResource
* _arg0
;
1256 PyObject
* _argo0
= 0;
1257 PyObject
* _obj1
= 0;
1258 char *_kwnames
[] = { "self","name", NULL
};
1262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
1265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
1272 _arg1
= wxString_in_helper(_obj1
);
1277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1278 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
1280 wxPyEndAllowThreads(__tstate
);
1281 if (PyErr_Occurred()) return NULL
;
1282 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
1283 _resultobj
= Py_BuildValue("s",_ptemp
);
1291 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
1292 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1293 PyObject
* _resultobj
;
1295 wxXmlResource
* _arg0
;
1298 wxWindow
* _arg3
= (wxWindow
*) NULL
;
1299 PyObject
* _argo0
= 0;
1300 PyObject
* _obj1
= 0;
1301 PyObject
* _argo2
= 0;
1302 PyObject
* _argo3
= 0;
1303 char *_kwnames
[] = { "self","name","control","parent", NULL
};
1306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
1309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AttachUnknownControl. Expected _wxXmlResource_p.");
1316 _arg1
= wxString_in_helper(_obj1
);
1321 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1322 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
1323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1328 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1329 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxWindow_p")) {
1330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1336 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
1338 wxPyEndAllowThreads(__tstate
);
1339 if (PyErr_Occurred()) return NULL
;
1340 } _resultobj
= Py_BuildValue("i",_result
);
1348 static PyObject
*_wrap_wxXmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1349 PyObject
* _resultobj
;
1352 PyObject
* _obj0
= 0;
1353 char *_kwnames
[] = { "str_id", NULL
};
1356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetXRCID",_kwnames
,&_obj0
))
1359 _arg0
= wxString_in_helper(_obj0
);
1364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1365 _result
= (int )wxXmlResource::GetXRCID(*_arg0
);
1367 wxPyEndAllowThreads(__tstate
);
1368 if (PyErr_Occurred()) return NULL
;
1369 } _resultobj
= Py_BuildValue("i",_result
);
1377 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1378 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1379 PyObject
* _resultobj
;
1381 wxXmlResource
* _arg0
;
1382 PyObject
* _argo0
= 0;
1383 char *_kwnames
[] = { "self", NULL
};
1386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_argo0
))
1389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
1396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1397 _result
= (long )wxXmlResource_GetVersion(_arg0
);
1399 wxPyEndAllowThreads(__tstate
);
1400 if (PyErr_Occurred()) return NULL
;
1401 } _resultobj
= Py_BuildValue("l",_result
);
1405 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1406 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1407 PyObject
* _resultobj
;
1409 wxXmlResource
* _arg0
;
1414 PyObject
* _argo0
= 0;
1415 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
1418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
1421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
1428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1429 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1431 wxPyEndAllowThreads(__tstate
);
1432 if (PyErr_Occurred()) return NULL
;
1433 } _resultobj
= Py_BuildValue("i",_result
);
1437 static PyObject
*_wrap_wxXmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1438 PyObject
* _resultobj
;
1439 wxXmlResource
* _result
;
1440 char *_kwnames
[] = { NULL
};
1444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxXmlResource_Get",_kwnames
))
1447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1448 _result
= (wxXmlResource
*)wxXmlResource::Get();
1450 wxPyEndAllowThreads(__tstate
);
1451 if (PyErr_Occurred()) return NULL
;
1453 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1454 _resultobj
= Py_BuildValue("s",_ptemp
);
1457 _resultobj
= Py_None
;
1462 static PyObject
*_wrap_wxXmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1463 PyObject
* _resultobj
;
1464 wxXmlResource
* _result
;
1465 wxXmlResource
* _arg0
;
1466 PyObject
* _argo0
= 0;
1467 char *_kwnames
[] = { "res", NULL
};
1471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_Set",_kwnames
,&_argo0
))
1474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Set. Expected _wxXmlResource_p.");
1481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1482 _result
= (wxXmlResource
*)wxXmlResource::Set(_arg0
);
1484 wxPyEndAllowThreads(__tstate
);
1485 if (PyErr_Occurred()) return NULL
;
1487 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1488 _resultobj
= Py_BuildValue("s",_ptemp
);
1491 _resultobj
= Py_None
;
1496 #define wxXmlResource_GetFlags(_swigobj) (_swigobj->GetFlags())
1497 static PyObject
*_wrap_wxXmlResource_GetFlags(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1498 PyObject
* _resultobj
;
1500 wxXmlResource
* _arg0
;
1501 PyObject
* _argo0
= 0;
1502 char *_kwnames
[] = { "self", NULL
};
1505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetFlags",_kwnames
,&_argo0
))
1508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetFlags. Expected _wxXmlResource_p.");
1515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1516 _result
= (int )wxXmlResource_GetFlags(_arg0
);
1518 wxPyEndAllowThreads(__tstate
);
1519 if (PyErr_Occurred()) return NULL
;
1520 } _resultobj
= Py_BuildValue("i",_result
);
1524 #define new_wxXmlProperty(_swigarg0,_swigarg1,_swigarg2) (new wxXmlProperty(_swigarg0,_swigarg1,_swigarg2))
1525 static PyObject
*_wrap_new_wxXmlProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1526 PyObject
* _resultobj
;
1527 wxXmlProperty
* _result
;
1528 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1529 wxString
* _arg1
= (wxString
*) &wxPyEmptyString
;
1530 wxXmlProperty
* _arg2
= (wxXmlProperty
*) NULL
;
1531 PyObject
* _obj0
= 0;
1532 PyObject
* _obj1
= 0;
1533 PyObject
* _argo2
= 0;
1534 char *_kwnames
[] = { "name","value","next", NULL
};
1538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOO:new_wxXmlProperty",_kwnames
,&_obj0
,&_obj1
,&_argo2
))
1542 _arg0
= wxString_in_helper(_obj0
);
1548 _arg1
= wxString_in_helper(_obj1
);
1553 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1554 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlProperty_p")) {
1555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxXmlProperty. Expected _wxXmlProperty_p.");
1560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1561 _result
= (wxXmlProperty
*)new_wxXmlProperty(*_arg0
,*_arg1
,_arg2
);
1563 wxPyEndAllowThreads(__tstate
);
1564 if (PyErr_Occurred()) return NULL
;
1566 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
1567 _resultobj
= Py_BuildValue("s",_ptemp
);
1570 _resultobj
= Py_None
;
1583 #define wxXmlProperty_GetName(_swigobj) (_swigobj->GetName())
1584 static PyObject
*_wrap_wxXmlProperty_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1585 PyObject
* _resultobj
;
1587 wxXmlProperty
* _arg0
;
1588 PyObject
* _argo0
= 0;
1589 char *_kwnames
[] = { "self", NULL
};
1592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetName",_kwnames
,&_argo0
))
1595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetName. Expected _wxXmlProperty_p.");
1602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1603 _result
= new wxString (wxXmlProperty_GetName(_arg0
));
1605 wxPyEndAllowThreads(__tstate
);
1606 if (PyErr_Occurred()) return NULL
;
1609 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1611 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1620 #define wxXmlProperty_GetValue(_swigobj) (_swigobj->GetValue())
1621 static PyObject
*_wrap_wxXmlProperty_GetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1622 PyObject
* _resultobj
;
1624 wxXmlProperty
* _arg0
;
1625 PyObject
* _argo0
= 0;
1626 char *_kwnames
[] = { "self", NULL
};
1629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetValue",_kwnames
,&_argo0
))
1632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetValue. Expected _wxXmlProperty_p.");
1639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1640 _result
= new wxString (wxXmlProperty_GetValue(_arg0
));
1642 wxPyEndAllowThreads(__tstate
);
1643 if (PyErr_Occurred()) return NULL
;
1646 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1648 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1657 #define wxXmlProperty_GetNext(_swigobj) (_swigobj->GetNext())
1658 static PyObject
*_wrap_wxXmlProperty_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1659 PyObject
* _resultobj
;
1660 wxXmlProperty
* _result
;
1661 wxXmlProperty
* _arg0
;
1662 PyObject
* _argo0
= 0;
1663 char *_kwnames
[] = { "self", NULL
};
1667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlProperty_GetNext",_kwnames
,&_argo0
))
1670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_GetNext. Expected _wxXmlProperty_p.");
1677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1678 _result
= (wxXmlProperty
*)wxXmlProperty_GetNext(_arg0
);
1680 wxPyEndAllowThreads(__tstate
);
1681 if (PyErr_Occurred()) return NULL
;
1683 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
1684 _resultobj
= Py_BuildValue("s",_ptemp
);
1687 _resultobj
= Py_None
;
1692 #define wxXmlProperty_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
1693 static PyObject
*_wrap_wxXmlProperty_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1694 PyObject
* _resultobj
;
1695 wxXmlProperty
* _arg0
;
1697 PyObject
* _argo0
= 0;
1698 PyObject
* _obj1
= 0;
1699 char *_kwnames
[] = { "self","name", NULL
};
1702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetName",_kwnames
,&_argo0
,&_obj1
))
1705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetName. Expected _wxXmlProperty_p.");
1712 _arg1
= wxString_in_helper(_obj1
);
1717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1718 wxXmlProperty_SetName(_arg0
,*_arg1
);
1720 wxPyEndAllowThreads(__tstate
);
1721 if (PyErr_Occurred()) return NULL
;
1722 } Py_INCREF(Py_None
);
1723 _resultobj
= Py_None
;
1731 #define wxXmlProperty_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1732 static PyObject
*_wrap_wxXmlProperty_SetValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1733 PyObject
* _resultobj
;
1734 wxXmlProperty
* _arg0
;
1736 PyObject
* _argo0
= 0;
1737 PyObject
* _obj1
= 0;
1738 char *_kwnames
[] = { "self","value", NULL
};
1741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetValue",_kwnames
,&_argo0
,&_obj1
))
1744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetValue. Expected _wxXmlProperty_p.");
1751 _arg1
= wxString_in_helper(_obj1
);
1756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1757 wxXmlProperty_SetValue(_arg0
,*_arg1
);
1759 wxPyEndAllowThreads(__tstate
);
1760 if (PyErr_Occurred()) return NULL
;
1761 } Py_INCREF(Py_None
);
1762 _resultobj
= Py_None
;
1770 #define wxXmlProperty_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
1771 static PyObject
*_wrap_wxXmlProperty_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1772 PyObject
* _resultobj
;
1773 wxXmlProperty
* _arg0
;
1774 wxXmlProperty
* _arg1
;
1775 PyObject
* _argo0
= 0;
1776 PyObject
* _argo1
= 0;
1777 char *_kwnames
[] = { "self","next", NULL
};
1780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlProperty_SetNext",_kwnames
,&_argo0
,&_argo1
))
1783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlProperty_p")) {
1785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1790 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1798 wxXmlProperty_SetNext(_arg0
,_arg1
);
1800 wxPyEndAllowThreads(__tstate
);
1801 if (PyErr_Occurred()) return NULL
;
1802 } Py_INCREF(Py_None
);
1803 _resultobj
= Py_None
;
1807 #define new_wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1808 static PyObject
*_wrap_new_wxXmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1809 PyObject
* _resultobj
;
1810 wxXmlNode
* _result
;
1811 wxXmlNode
* _arg0
= (wxXmlNode
*) NULL
;
1812 wxXmlNodeType _arg1
= (wxXmlNodeType
) 0;
1813 wxString
* _arg2
= (wxString
*) &wxPyEmptyString
;
1814 wxString
* _arg3
= (wxString
*) &wxPyEmptyString
;
1815 wxXmlProperty
* _arg4
= (wxXmlProperty
*) NULL
;
1816 wxXmlNode
* _arg5
= (wxXmlNode
*) NULL
;
1817 PyObject
* _argo0
= 0;
1818 PyObject
* _obj2
= 0;
1819 PyObject
* _obj3
= 0;
1820 PyObject
* _argo4
= 0;
1821 PyObject
* _argo5
= 0;
1822 char *_kwnames
[] = { "parent","type","name","content","props","next", NULL
};
1826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOOO:new_wxXmlNode",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_argo4
,&_argo5
))
1829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
1831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxXmlNode. Expected _wxXmlNode_p.");
1837 _arg2
= wxString_in_helper(_obj2
);
1843 _arg3
= wxString_in_helper(_obj3
);
1848 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1849 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxXmlProperty_p")) {
1850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxXmlNode. Expected _wxXmlProperty_p.");
1855 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1856 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxXmlNode_p")) {
1857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxXmlNode. Expected _wxXmlNode_p.");
1862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1863 _result
= (wxXmlNode
*)new_wxXmlNode(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
1865 wxPyEndAllowThreads(__tstate
);
1866 if (PyErr_Occurred()) return NULL
;
1868 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
1869 _resultobj
= Py_BuildValue("s",_ptemp
);
1872 _resultobj
= Py_None
;
1885 #define delete_wxXmlNode(_swigobj) (delete _swigobj)
1886 static PyObject
*_wrap_delete_wxXmlNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1887 PyObject
* _resultobj
;
1889 PyObject
* _argo0
= 0;
1890 char *_kwnames
[] = { "self", NULL
};
1893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlNode",_kwnames
,&_argo0
))
1896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
1898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlNode. Expected _wxXmlNode_p.");
1903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1904 delete_wxXmlNode(_arg0
);
1906 wxPyEndAllowThreads(__tstate
);
1907 if (PyErr_Occurred()) return NULL
;
1908 } Py_INCREF(Py_None
);
1909 _resultobj
= Py_None
;
1913 #define new_wxXmlNodeEasy(_swigarg0,_swigarg1,_swigarg2) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2))
1914 static PyObject
*_wrap_new_wxXmlNodeEasy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1915 PyObject
* _resultobj
;
1916 wxXmlNode
* _result
;
1917 wxXmlNodeType _arg0
;
1919 wxString
* _arg2
= (wxString
*) &wxPyEmptyString
;
1920 PyObject
* _obj1
= 0;
1921 PyObject
* _obj2
= 0;
1922 char *_kwnames
[] = { "type","name","content", NULL
};
1926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iO|O:new_wxXmlNodeEasy",_kwnames
,&_arg0
,&_obj1
,&_obj2
))
1929 _arg1
= wxString_in_helper(_obj1
);
1935 _arg2
= wxString_in_helper(_obj2
);
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 _result
= (wxXmlNode
*)new_wxXmlNodeEasy(_arg0
,*_arg1
,*_arg2
);
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) return NULL
;
1946 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
1947 _resultobj
= Py_BuildValue("s",_ptemp
);
1950 _resultobj
= Py_None
;
1963 #define wxXmlNode_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0))
1964 static PyObject
*_wrap_wxXmlNode_AddChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1965 PyObject
* _resultobj
;
1968 PyObject
* _argo0
= 0;
1969 PyObject
* _argo1
= 0;
1970 char *_kwnames
[] = { "self","child", NULL
};
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_AddChild",_kwnames
,&_argo0
,&_argo1
))
1976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
1978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
1983 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1984 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
1985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
1990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1991 wxXmlNode_AddChild(_arg0
,_arg1
);
1993 wxPyEndAllowThreads(__tstate
);
1994 if (PyErr_Occurred()) return NULL
;
1995 } Py_INCREF(Py_None
);
1996 _resultobj
= Py_None
;
2000 #define wxXmlNode_InsertChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertChild(_swigarg0,_swigarg1))
2001 static PyObject
*_wrap_wxXmlNode_InsertChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2002 PyObject
* _resultobj
;
2006 PyObject
* _argo0
= 0;
2007 PyObject
* _argo1
= 0;
2008 PyObject
* _argo2
= 0;
2009 char *_kwnames
[] = { "self","child","before_node", NULL
};
2012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_InsertChild",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
2015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2022 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2023 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2029 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2030 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlNode_p")) {
2031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2037 wxXmlNode_InsertChild(_arg0
,_arg1
,_arg2
);
2039 wxPyEndAllowThreads(__tstate
);
2040 if (PyErr_Occurred()) return NULL
;
2041 } Py_INCREF(Py_None
);
2042 _resultobj
= Py_None
;
2046 #define wxXmlNode_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
2047 static PyObject
*_wrap_wxXmlNode_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2048 PyObject
* _resultobj
;
2052 PyObject
* _argo0
= 0;
2053 PyObject
* _argo1
= 0;
2054 char *_kwnames
[] = { "self","child", NULL
};
2057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
2060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2067 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2068 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2075 _result
= (bool )wxXmlNode_RemoveChild(_arg0
,_arg1
);
2077 wxPyEndAllowThreads(__tstate
);
2078 if (PyErr_Occurred()) return NULL
;
2079 } _resultobj
= Py_BuildValue("i",_result
);
2083 #define wxXmlNode_AddProperty(_swigobj,_swigarg0) (_swigobj->AddProperty(_swigarg0))
2084 static PyObject
*_wrap_wxXmlNode_AddProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2085 PyObject
* _resultobj
;
2087 wxXmlProperty
* _arg1
;
2088 PyObject
* _argo0
= 0;
2089 PyObject
* _argo1
= 0;
2090 char *_kwnames
[] = { "self","prop", NULL
};
2093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_AddProperty",_kwnames
,&_argo0
,&_argo1
))
2096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddProperty. Expected _wxXmlNode_p.");
2103 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2104 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
2105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_AddProperty. Expected _wxXmlProperty_p.");
2110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2111 wxXmlNode_AddProperty(_arg0
,_arg1
);
2113 wxPyEndAllowThreads(__tstate
);
2114 if (PyErr_Occurred()) return NULL
;
2115 } Py_INCREF(Py_None
);
2116 _resultobj
= Py_None
;
2120 #define wxXmlNode_AddPropertyName(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddProperty(_swigarg0,_swigarg1))
2121 static PyObject
*_wrap_wxXmlNode_AddPropertyName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2122 PyObject
* _resultobj
;
2126 PyObject
* _argo0
= 0;
2127 PyObject
* _obj1
= 0;
2128 PyObject
* _obj2
= 0;
2129 char *_kwnames
[] = { "self","name","value", NULL
};
2132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_AddPropertyName",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_AddPropertyName. Expected _wxXmlNode_p.");
2142 _arg1
= wxString_in_helper(_obj1
);
2147 _arg2
= wxString_in_helper(_obj2
);
2152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2153 wxXmlNode_AddPropertyName(_arg0
,*_arg1
,*_arg2
);
2155 wxPyEndAllowThreads(__tstate
);
2156 if (PyErr_Occurred()) return NULL
;
2157 } Py_INCREF(Py_None
);
2158 _resultobj
= Py_None
;
2170 #define wxXmlNode_DeleteProperty(_swigobj,_swigarg0) (_swigobj->DeleteProperty(_swigarg0))
2171 static PyObject
*_wrap_wxXmlNode_DeleteProperty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2176 PyObject
* _argo0
= 0;
2177 PyObject
* _obj1
= 0;
2178 char *_kwnames
[] = { "self","name", NULL
};
2181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_DeleteProperty",_kwnames
,&_argo0
,&_obj1
))
2184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_DeleteProperty. Expected _wxXmlNode_p.");
2191 _arg1
= wxString_in_helper(_obj1
);
2196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2197 _result
= (bool )wxXmlNode_DeleteProperty(_arg0
,*_arg1
);
2199 wxPyEndAllowThreads(__tstate
);
2200 if (PyErr_Occurred()) return NULL
;
2201 } _resultobj
= Py_BuildValue("i",_result
);
2209 #define wxXmlNode_GetType(_swigobj) (_swigobj->GetType())
2210 static PyObject
*_wrap_wxXmlNode_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2211 PyObject
* _resultobj
;
2212 wxXmlNodeType _result
;
2214 PyObject
* _argo0
= 0;
2215 char *_kwnames
[] = { "self", NULL
};
2218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetType",_kwnames
,&_argo0
))
2221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetType. Expected _wxXmlNode_p.");
2228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2229 _result
= (wxXmlNodeType
)wxXmlNode_GetType(_arg0
);
2231 wxPyEndAllowThreads(__tstate
);
2232 if (PyErr_Occurred()) return NULL
;
2233 } _resultobj
= Py_BuildValue("i",_result
);
2237 #define wxXmlNode_GetName(_swigobj) (_swigobj->GetName())
2238 static PyObject
*_wrap_wxXmlNode_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2242 PyObject
* _argo0
= 0;
2243 char *_kwnames
[] = { "self", NULL
};
2246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetName",_kwnames
,&_argo0
))
2249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetName. Expected _wxXmlNode_p.");
2256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2257 _result
= new wxString (wxXmlNode_GetName(_arg0
));
2259 wxPyEndAllowThreads(__tstate
);
2260 if (PyErr_Occurred()) return NULL
;
2263 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2265 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2274 #define wxXmlNode_GetContent(_swigobj) (_swigobj->GetContent())
2275 static PyObject
*_wrap_wxXmlNode_GetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2276 PyObject
* _resultobj
;
2279 PyObject
* _argo0
= 0;
2280 char *_kwnames
[] = { "self", NULL
};
2283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetContent",_kwnames
,&_argo0
))
2286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetContent. Expected _wxXmlNode_p.");
2293 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2294 _result
= new wxString (wxXmlNode_GetContent(_arg0
));
2296 wxPyEndAllowThreads(__tstate
);
2297 if (PyErr_Occurred()) return NULL
;
2300 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2302 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2311 #define wxXmlNode_GetParent(_swigobj) (_swigobj->GetParent())
2312 static PyObject
*_wrap_wxXmlNode_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2313 PyObject
* _resultobj
;
2314 wxXmlNode
* _result
;
2316 PyObject
* _argo0
= 0;
2317 char *_kwnames
[] = { "self", NULL
};
2321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetParent",_kwnames
,&_argo0
))
2324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetParent. Expected _wxXmlNode_p.");
2331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2332 _result
= (wxXmlNode
*)wxXmlNode_GetParent(_arg0
);
2334 wxPyEndAllowThreads(__tstate
);
2335 if (PyErr_Occurred()) return NULL
;
2337 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2338 _resultobj
= Py_BuildValue("s",_ptemp
);
2341 _resultobj
= Py_None
;
2346 #define wxXmlNode_GetNext(_swigobj) (_swigobj->GetNext())
2347 static PyObject
*_wrap_wxXmlNode_GetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
* _resultobj
;
2349 wxXmlNode
* _result
;
2351 PyObject
* _argo0
= 0;
2352 char *_kwnames
[] = { "self", NULL
};
2356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetNext",_kwnames
,&_argo0
))
2359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetNext. Expected _wxXmlNode_p.");
2366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2367 _result
= (wxXmlNode
*)wxXmlNode_GetNext(_arg0
);
2369 wxPyEndAllowThreads(__tstate
);
2370 if (PyErr_Occurred()) return NULL
;
2372 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2373 _resultobj
= Py_BuildValue("s",_ptemp
);
2376 _resultobj
= Py_None
;
2381 #define wxXmlNode_GetChildren(_swigobj) (_swigobj->GetChildren())
2382 static PyObject
*_wrap_wxXmlNode_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2383 PyObject
* _resultobj
;
2384 wxXmlNode
* _result
;
2386 PyObject
* _argo0
= 0;
2387 char *_kwnames
[] = { "self", NULL
};
2391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetChildren",_kwnames
,&_argo0
))
2394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetChildren. Expected _wxXmlNode_p.");
2401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2402 _result
= (wxXmlNode
*)wxXmlNode_GetChildren(_arg0
);
2404 wxPyEndAllowThreads(__tstate
);
2405 if (PyErr_Occurred()) return NULL
;
2407 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
2408 _resultobj
= Py_BuildValue("s",_ptemp
);
2411 _resultobj
= Py_None
;
2416 #define wxXmlNode_GetProperties(_swigobj) (_swigobj->GetProperties())
2417 static PyObject
*_wrap_wxXmlNode_GetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
* _resultobj
;
2419 wxXmlProperty
* _result
;
2421 PyObject
* _argo0
= 0;
2422 char *_kwnames
[] = { "self", NULL
};
2426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlNode_GetProperties",_kwnames
,&_argo0
))
2429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetProperties. Expected _wxXmlNode_p.");
2436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2437 _result
= (wxXmlProperty
*)wxXmlNode_GetProperties(_arg0
);
2439 wxPyEndAllowThreads(__tstate
);
2440 if (PyErr_Occurred()) return NULL
;
2442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlProperty_p");
2443 _resultobj
= Py_BuildValue("s",_ptemp
);
2446 _resultobj
= Py_None
;
2451 #define wxXmlNode_GetPropVal(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPropVal(_swigarg0,_swigarg1))
2452 static PyObject
*_wrap_wxXmlNode_GetPropVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2453 PyObject
* _resultobj
;
2458 PyObject
* _argo0
= 0;
2459 PyObject
* _obj1
= 0;
2460 PyObject
* _obj2
= 0;
2461 char *_kwnames
[] = { "self","propName","defaultVal", NULL
};
2464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlNode_GetPropVal",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_GetPropVal. Expected _wxXmlNode_p.");
2474 _arg1
= wxString_in_helper(_obj1
);
2479 _arg2
= wxString_in_helper(_obj2
);
2484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2485 _result
= new wxString (wxXmlNode_GetPropVal(_arg0
,*_arg1
,*_arg2
));
2487 wxPyEndAllowThreads(__tstate
);
2488 if (PyErr_Occurred()) return NULL
;
2491 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2493 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2510 #define wxXmlNode_HasProp(_swigobj,_swigarg0) (_swigobj->HasProp(_swigarg0))
2511 static PyObject
*_wrap_wxXmlNode_HasProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2512 PyObject
* _resultobj
;
2516 PyObject
* _argo0
= 0;
2517 PyObject
* _obj1
= 0;
2518 char *_kwnames
[] = { "self","propName", NULL
};
2521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_HasProp",_kwnames
,&_argo0
,&_obj1
))
2524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_HasProp. Expected _wxXmlNode_p.");
2531 _arg1
= wxString_in_helper(_obj1
);
2536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2537 _result
= (bool )wxXmlNode_HasProp(_arg0
,*_arg1
);
2539 wxPyEndAllowThreads(__tstate
);
2540 if (PyErr_Occurred()) return NULL
;
2541 } _resultobj
= Py_BuildValue("i",_result
);
2549 #define wxXmlNode_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
2550 static PyObject
*_wrap_wxXmlNode_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
* _resultobj
;
2553 wxXmlNodeType _arg1
;
2554 PyObject
* _argo0
= 0;
2555 char *_kwnames
[] = { "self","type", NULL
};
2558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxXmlNode_SetType",_kwnames
,&_argo0
,&_arg1
))
2561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetType. Expected _wxXmlNode_p.");
2568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2569 wxXmlNode_SetType(_arg0
,_arg1
);
2571 wxPyEndAllowThreads(__tstate
);
2572 if (PyErr_Occurred()) return NULL
;
2573 } Py_INCREF(Py_None
);
2574 _resultobj
= Py_None
;
2578 #define wxXmlNode_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
2579 static PyObject
*_wrap_wxXmlNode_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2580 PyObject
* _resultobj
;
2583 PyObject
* _argo0
= 0;
2584 PyObject
* _obj1
= 0;
2585 char *_kwnames
[] = { "self","name", NULL
};
2588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetName",_kwnames
,&_argo0
,&_obj1
))
2591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetName. Expected _wxXmlNode_p.");
2598 _arg1
= wxString_in_helper(_obj1
);
2603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2604 wxXmlNode_SetName(_arg0
,*_arg1
);
2606 wxPyEndAllowThreads(__tstate
);
2607 if (PyErr_Occurred()) return NULL
;
2608 } Py_INCREF(Py_None
);
2609 _resultobj
= Py_None
;
2617 #define wxXmlNode_SetContent(_swigobj,_swigarg0) (_swigobj->SetContent(_swigarg0))
2618 static PyObject
*_wrap_wxXmlNode_SetContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2622 PyObject
* _argo0
= 0;
2623 PyObject
* _obj1
= 0;
2624 char *_kwnames
[] = { "self","con", NULL
};
2627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetContent",_kwnames
,&_argo0
,&_obj1
))
2630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetContent. Expected _wxXmlNode_p.");
2637 _arg1
= wxString_in_helper(_obj1
);
2642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2643 wxXmlNode_SetContent(_arg0
,*_arg1
);
2645 wxPyEndAllowThreads(__tstate
);
2646 if (PyErr_Occurred()) return NULL
;
2647 } Py_INCREF(Py_None
);
2648 _resultobj
= Py_None
;
2656 #define wxXmlNode_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
2657 static PyObject
*_wrap_wxXmlNode_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2658 PyObject
* _resultobj
;
2661 PyObject
* _argo0
= 0;
2662 PyObject
* _argo1
= 0;
2663 char *_kwnames
[] = { "self","parent", NULL
};
2666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetParent",_kwnames
,&_argo0
,&_argo1
))
2669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2676 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2677 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2684 wxXmlNode_SetParent(_arg0
,_arg1
);
2686 wxPyEndAllowThreads(__tstate
);
2687 if (PyErr_Occurred()) return NULL
;
2688 } Py_INCREF(Py_None
);
2689 _resultobj
= Py_None
;
2693 #define wxXmlNode_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
2694 static PyObject
*_wrap_wxXmlNode_SetNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2695 PyObject
* _resultobj
;
2698 PyObject
* _argo0
= 0;
2699 PyObject
* _argo1
= 0;
2700 char *_kwnames
[] = { "self","next", NULL
};
2703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetNext",_kwnames
,&_argo0
,&_argo1
))
2706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2713 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2714 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2721 wxXmlNode_SetNext(_arg0
,_arg1
);
2723 wxPyEndAllowThreads(__tstate
);
2724 if (PyErr_Occurred()) return NULL
;
2725 } Py_INCREF(Py_None
);
2726 _resultobj
= Py_None
;
2730 #define wxXmlNode_SetChildren(_swigobj,_swigarg0) (_swigobj->SetChildren(_swigarg0))
2731 static PyObject
*_wrap_wxXmlNode_SetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2732 PyObject
* _resultobj
;
2735 PyObject
* _argo0
= 0;
2736 PyObject
* _argo1
= 0;
2737 char *_kwnames
[] = { "self","child", NULL
};
2740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetChildren",_kwnames
,&_argo0
,&_argo1
))
2743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2750 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2751 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
2752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2758 wxXmlNode_SetChildren(_arg0
,_arg1
);
2760 wxPyEndAllowThreads(__tstate
);
2761 if (PyErr_Occurred()) return NULL
;
2762 } Py_INCREF(Py_None
);
2763 _resultobj
= Py_None
;
2767 #define wxXmlNode_SetProperties(_swigobj,_swigarg0) (_swigobj->SetProperties(_swigarg0))
2768 static PyObject
*_wrap_wxXmlNode_SetProperties(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2769 PyObject
* _resultobj
;
2771 wxXmlProperty
* _arg1
;
2772 PyObject
* _argo0
= 0;
2773 PyObject
* _argo1
= 0;
2774 char *_kwnames
[] = { "self","prop", NULL
};
2777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlNode_SetProperties",_kwnames
,&_argo0
,&_argo1
))
2780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlNode_p")) {
2782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlNode_SetProperties. Expected _wxXmlNode_p.");
2787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlProperty_p")) {
2789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlNode_SetProperties. Expected _wxXmlProperty_p.");
2794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2795 wxXmlNode_SetProperties(_arg0
,_arg1
);
2797 wxPyEndAllowThreads(__tstate
);
2798 if (PyErr_Occurred()) return NULL
;
2799 } Py_INCREF(Py_None
);
2800 _resultobj
= Py_None
;
2804 static void *SwigwxXmlDocumentTowxObject(void *ptr
) {
2807 src
= (wxXmlDocument
*) ptr
;
2808 dest
= (wxObject
*) src
;
2809 return (void *) dest
;
2812 #define new_wxXmlDocument(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2813 static PyObject
*_wrap_new_wxXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2814 PyObject
* _resultobj
;
2815 wxXmlDocument
* _result
;
2817 wxString
* _arg1
= (wxString
*) &wxPyUTF8String
;
2818 PyObject
* _obj0
= 0;
2819 PyObject
* _obj1
= 0;
2820 char *_kwnames
[] = { "filename","encoding", NULL
};
2824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxXmlDocument",_kwnames
,&_obj0
,&_obj1
))
2827 _arg0
= wxString_in_helper(_obj0
);
2833 _arg1
= wxString_in_helper(_obj1
);
2838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2839 _result
= (wxXmlDocument
*)new_wxXmlDocument(*_arg0
,*_arg1
);
2841 wxPyEndAllowThreads(__tstate
);
2842 if (PyErr_Occurred()) return NULL
;
2844 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
2845 _resultobj
= Py_BuildValue("s",_ptemp
);
2848 _resultobj
= Py_None
;
2861 #define new_wxXmlDocumentFromStream(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2862 static PyObject
*_wrap_new_wxXmlDocumentFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2863 PyObject
* _resultobj
;
2864 wxXmlDocument
* _result
;
2865 wxInputStream
* _arg0
;
2866 wxString
* _arg1
= (wxString
*) &wxPyUTF8String
;
2867 wxPyInputStream
* temp
;
2869 PyObject
* _obj0
= 0;
2870 PyObject
* _obj1
= 0;
2871 char *_kwnames
[] = { "stream","encoding", NULL
};
2875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxXmlDocumentFromStream",_kwnames
,&_obj0
,&_obj1
))
2878 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
2879 _arg0
= temp
->m_wxis
;
2882 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
2883 if (_arg0
== NULL
) {
2884 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
2892 _arg1
= wxString_in_helper(_obj1
);
2897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2898 _result
= (wxXmlDocument
*)new_wxXmlDocumentFromStream(*_arg0
,*_arg1
);
2900 wxPyEndAllowThreads(__tstate
);
2901 if (PyErr_Occurred()) return NULL
;
2903 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
2904 _resultobj
= Py_BuildValue("s",_ptemp
);
2907 _resultobj
= Py_None
;
2920 #define new_wxEmptyXmlDocument() (new wxXmlDocument())
2921 static PyObject
*_wrap_new_wxEmptyXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2922 PyObject
* _resultobj
;
2923 wxXmlDocument
* _result
;
2924 char *_kwnames
[] = { NULL
};
2928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEmptyXmlDocument",_kwnames
))
2931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2932 _result
= (wxXmlDocument
*)new_wxEmptyXmlDocument();
2934 wxPyEndAllowThreads(__tstate
);
2935 if (PyErr_Occurred()) return NULL
;
2937 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlDocument_p");
2938 _resultobj
= Py_BuildValue("s",_ptemp
);
2941 _resultobj
= Py_None
;
2946 #define delete_wxXmlDocument(_swigobj) (delete _swigobj)
2947 static PyObject
*_wrap_delete_wxXmlDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2948 PyObject
* _resultobj
;
2949 wxXmlDocument
* _arg0
;
2950 PyObject
* _argo0
= 0;
2951 char *_kwnames
[] = { "self", NULL
};
2954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlDocument",_kwnames
,&_argo0
))
2957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
2959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlDocument. Expected _wxXmlDocument_p.");
2964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2965 delete_wxXmlDocument(_arg0
);
2967 wxPyEndAllowThreads(__tstate
);
2968 if (PyErr_Occurred()) return NULL
;
2969 } Py_INCREF(Py_None
);
2970 _resultobj
= Py_None
;
2974 #define wxXmlDocument_Load(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
2975 static PyObject
*_wrap_wxXmlDocument_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2976 PyObject
* _resultobj
;
2978 wxXmlDocument
* _arg0
;
2980 wxString
* _arg2
= (wxString
*) &wxPyUTF8String
;
2981 PyObject
* _argo0
= 0;
2982 PyObject
* _obj1
= 0;
2983 PyObject
* _obj2
= 0;
2984 char *_kwnames
[] = { "self","filename","encoding", NULL
};
2987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlDocument_Load",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
2992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_Load. Expected _wxXmlDocument_p.");
2997 _arg1
= wxString_in_helper(_obj1
);
3003 _arg2
= wxString_in_helper(_obj2
);
3008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3009 _result
= (bool )wxXmlDocument_Load(_arg0
,*_arg1
,*_arg2
);
3011 wxPyEndAllowThreads(__tstate
);
3012 if (PyErr_Occurred()) return NULL
;
3013 } _resultobj
= Py_BuildValue("i",_result
);
3025 #define wxXmlDocument_LoadFromStream(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
3026 static PyObject
*_wrap_wxXmlDocument_LoadFromStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3027 PyObject
* _resultobj
;
3029 wxXmlDocument
* _arg0
;
3030 wxInputStream
* _arg1
;
3031 wxString
* _arg2
= (wxString
*) &wxPyUTF8String
;
3032 PyObject
* _argo0
= 0;
3033 wxPyInputStream
* temp
;
3035 PyObject
* _obj1
= 0;
3036 PyObject
* _obj2
= 0;
3037 char *_kwnames
[] = { "self","stream","encoding", NULL
};
3040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlDocument_LoadFromStream",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_LoadFromStream. Expected _wxXmlDocument_p.");
3050 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
3051 _arg1
= temp
->m_wxis
;
3054 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
3055 if (_arg1
== NULL
) {
3056 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
3064 _arg2
= wxString_in_helper(_obj2
);
3069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3070 _result
= (bool )wxXmlDocument_LoadFromStream(_arg0
,*_arg1
,*_arg2
);
3072 wxPyEndAllowThreads(__tstate
);
3073 if (PyErr_Occurred()) return NULL
;
3074 } _resultobj
= Py_BuildValue("i",_result
);
3086 #define wxXmlDocument_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3087 static PyObject
*_wrap_wxXmlDocument_Save(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3088 PyObject
* _resultobj
;
3090 wxXmlDocument
* _arg0
;
3092 PyObject
* _argo0
= 0;
3093 PyObject
* _obj1
= 0;
3094 char *_kwnames
[] = { "self","filename", NULL
};
3097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_Save",_kwnames
,&_argo0
,&_obj1
))
3100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_Save. Expected _wxXmlDocument_p.");
3107 _arg1
= wxString_in_helper(_obj1
);
3112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3113 _result
= (bool )wxXmlDocument_Save(_arg0
,*_arg1
);
3115 wxPyEndAllowThreads(__tstate
);
3116 if (PyErr_Occurred()) return NULL
;
3117 } _resultobj
= Py_BuildValue("i",_result
);
3125 #define wxXmlDocument_SaveToStream(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3126 static PyObject
*_wrap_wxXmlDocument_SaveToStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
* _resultobj
;
3129 wxXmlDocument
* _arg0
;
3130 wxOutputStream
* _arg1
;
3131 PyObject
* _argo0
= 0;
3132 PyObject
* _argo1
= 0;
3133 char *_kwnames
[] = { "self","stream", NULL
};
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SaveToStream",_kwnames
,&_argo0
,&_argo1
))
3139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SaveToStream. Expected _wxXmlDocument_p.");
3146 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3147 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxOutputStream_p")) {
3148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlDocument_SaveToStream. Expected _wxOutputStream_p.");
3153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3154 _result
= (bool )wxXmlDocument_SaveToStream(_arg0
,*_arg1
);
3156 wxPyEndAllowThreads(__tstate
);
3157 if (PyErr_Occurred()) return NULL
;
3158 } _resultobj
= Py_BuildValue("i",_result
);
3162 #define wxXmlDocument_IsOk(_swigobj) (_swigobj->IsOk())
3163 static PyObject
*_wrap_wxXmlDocument_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3166 wxXmlDocument
* _arg0
;
3167 PyObject
* _argo0
= 0;
3168 char *_kwnames
[] = { "self", NULL
};
3171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_IsOk",_kwnames
,&_argo0
))
3174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_IsOk. Expected _wxXmlDocument_p.");
3181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3182 _result
= (bool )wxXmlDocument_IsOk(_arg0
);
3184 wxPyEndAllowThreads(__tstate
);
3185 if (PyErr_Occurred()) return NULL
;
3186 } _resultobj
= Py_BuildValue("i",_result
);
3190 #define wxXmlDocument_GetRoot(_swigobj) (_swigobj->GetRoot())
3191 static PyObject
*_wrap_wxXmlDocument_GetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3192 PyObject
* _resultobj
;
3193 wxXmlNode
* _result
;
3194 wxXmlDocument
* _arg0
;
3195 PyObject
* _argo0
= 0;
3196 char *_kwnames
[] = { "self", NULL
};
3200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetRoot",_kwnames
,&_argo0
))
3203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetRoot. Expected _wxXmlDocument_p.");
3210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3211 _result
= (wxXmlNode
*)wxXmlDocument_GetRoot(_arg0
);
3213 wxPyEndAllowThreads(__tstate
);
3214 if (PyErr_Occurred()) return NULL
;
3216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
3217 _resultobj
= Py_BuildValue("s",_ptemp
);
3220 _resultobj
= Py_None
;
3225 #define wxXmlDocument_GetVersion(_swigobj) (_swigobj->GetVersion())
3226 static PyObject
*_wrap_wxXmlDocument_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3229 wxXmlDocument
* _arg0
;
3230 PyObject
* _argo0
= 0;
3231 char *_kwnames
[] = { "self", NULL
};
3234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetVersion",_kwnames
,&_argo0
))
3237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetVersion. Expected _wxXmlDocument_p.");
3244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3245 _result
= new wxString (wxXmlDocument_GetVersion(_arg0
));
3247 wxPyEndAllowThreads(__tstate
);
3248 if (PyErr_Occurred()) return NULL
;
3251 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3253 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3262 #define wxXmlDocument_GetFileEncoding(_swigobj) (_swigobj->GetFileEncoding())
3263 static PyObject
*_wrap_wxXmlDocument_GetFileEncoding(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_GetFileEncoding",_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_GetFileEncoding. Expected _wxXmlDocument_p.");
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 _result
= new wxString (wxXmlDocument_GetFileEncoding(_arg0
));
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) return NULL
;
3288 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3290 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3299 #define wxXmlDocument_SetRoot(_swigobj,_swigarg0) (_swigobj->SetRoot(_swigarg0))
3300 static PyObject
*_wrap_wxXmlDocument_SetRoot(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3301 PyObject
* _resultobj
;
3302 wxXmlDocument
* _arg0
;
3304 PyObject
* _argo0
= 0;
3305 PyObject
* _argo1
= 0;
3306 char *_kwnames
[] = { "self","node", NULL
};
3309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetRoot",_kwnames
,&_argo0
,&_argo1
))
3312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetRoot. Expected _wxXmlDocument_p.");
3319 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3320 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlDocument_SetRoot. Expected _wxXmlNode_p.");
3326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3327 wxXmlDocument_SetRoot(_arg0
,_arg1
);
3329 wxPyEndAllowThreads(__tstate
);
3330 if (PyErr_Occurred()) return NULL
;
3331 } Py_INCREF(Py_None
);
3332 _resultobj
= Py_None
;
3336 #define wxXmlDocument_SetVersion(_swigobj,_swigarg0) (_swigobj->SetVersion(_swigarg0))
3337 static PyObject
*_wrap_wxXmlDocument_SetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
* _resultobj
;
3339 wxXmlDocument
* _arg0
;
3341 PyObject
* _argo0
= 0;
3342 PyObject
* _obj1
= 0;
3343 char *_kwnames
[] = { "self","version", NULL
};
3346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetVersion",_kwnames
,&_argo0
,&_obj1
))
3349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetVersion. Expected _wxXmlDocument_p.");
3356 _arg1
= wxString_in_helper(_obj1
);
3361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3362 wxXmlDocument_SetVersion(_arg0
,*_arg1
);
3364 wxPyEndAllowThreads(__tstate
);
3365 if (PyErr_Occurred()) return NULL
;
3366 } Py_INCREF(Py_None
);
3367 _resultobj
= Py_None
;
3375 #define wxXmlDocument_SetFileEncoding(_swigobj,_swigarg0) (_swigobj->SetFileEncoding(_swigarg0))
3376 static PyObject
*_wrap_wxXmlDocument_SetFileEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3377 PyObject
* _resultobj
;
3378 wxXmlDocument
* _arg0
;
3380 PyObject
* _argo0
= 0;
3381 PyObject
* _obj1
= 0;
3382 char *_kwnames
[] = { "self","encoding", NULL
};
3385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlDocument_SetFileEncoding",_kwnames
,&_argo0
,&_obj1
))
3388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_SetFileEncoding. Expected _wxXmlDocument_p.");
3395 _arg1
= wxString_in_helper(_obj1
);
3400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3401 wxXmlDocument_SetFileEncoding(_arg0
,*_arg1
);
3403 wxPyEndAllowThreads(__tstate
);
3404 if (PyErr_Occurred()) return NULL
;
3405 } Py_INCREF(Py_None
);
3406 _resultobj
= Py_None
;
3414 static wxString
wxXmlDocument_GetEncoding(wxXmlDocument
*self
) {
3416 return wxPyEmptyString
;
3418 return self
->GetEncoding();
3421 static PyObject
*_wrap_wxXmlDocument_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3422 PyObject
* _resultobj
;
3424 wxXmlDocument
* _arg0
;
3425 PyObject
* _argo0
= 0;
3426 char *_kwnames
[] = { "self", NULL
};
3429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlDocument_GetEncoding",_kwnames
,&_argo0
))
3432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlDocument_p")) {
3434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlDocument_GetEncoding. Expected _wxXmlDocument_p.");
3439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3440 _result
= new wxString (wxXmlDocument_GetEncoding(_arg0
));
3442 wxPyEndAllowThreads(__tstate
);
3443 if (PyErr_Occurred()) return NULL
;
3446 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3448 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3457 static void *SwigwxPyXmlResourceHandlerTowxObject(void *ptr
) {
3458 wxPyXmlResourceHandler
*src
;
3460 src
= (wxPyXmlResourceHandler
*) ptr
;
3461 dest
= (wxObject
*) src
;
3462 return (void *) dest
;
3465 #define new_wxXmlResourceHandler() (new wxPyXmlResourceHandler())
3466 static PyObject
*_wrap_new_wxXmlResourceHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3467 PyObject
* _resultobj
;
3468 wxPyXmlResourceHandler
* _result
;
3469 char *_kwnames
[] = { NULL
};
3473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxXmlResourceHandler",_kwnames
))
3476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3477 _result
= (wxPyXmlResourceHandler
*)new_wxXmlResourceHandler();
3479 wxPyEndAllowThreads(__tstate
);
3480 if (PyErr_Occurred()) return NULL
;
3482 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyXmlResourceHandler_p");
3483 _resultobj
= Py_BuildValue("s",_ptemp
);
3486 _resultobj
= Py_None
;
3491 #define wxXmlResourceHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3492 static PyObject
*_wrap_wxXmlResourceHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3493 PyObject
* _resultobj
;
3494 wxPyXmlResourceHandler
* _arg0
;
3497 PyObject
* _argo0
= 0;
3498 PyObject
* _obj1
= 0;
3499 PyObject
* _obj2
= 0;
3500 char *_kwnames
[] = { "self","self","_class", NULL
};
3503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResourceHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler__setCallbackInfo. Expected _wxPyXmlResourceHandler_p.");
3519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3520 wxXmlResourceHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3522 wxPyEndAllowThreads(__tstate
);
3523 if (PyErr_Occurred()) return NULL
;
3524 } Py_INCREF(Py_None
);
3525 _resultobj
= Py_None
;
3529 #define wxXmlResourceHandler_CreateResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResource(_swigarg0,_swigarg1,_swigarg2))
3530 static PyObject
*_wrap_wxXmlResourceHandler_CreateResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3531 PyObject
* _resultobj
;
3533 wxPyXmlResourceHandler
* _arg0
;
3537 PyObject
* _argo0
= 0;
3538 PyObject
* _argo1
= 0;
3539 PyObject
* _argo2
= 0;
3540 PyObject
* _argo3
= 0;
3541 char *_kwnames
[] = { "self","node","parent","instance", NULL
};
3544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResourceHandler_CreateResource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
3547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateResource. Expected _wxPyXmlResourceHandler_p.");
3554 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3555 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateResource. Expected _wxXmlNode_p.");
3561 if (_argo2
== Py_None
) { _arg2
= NULL
; }
3562 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxObject_p")) {
3563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3568 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3569 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxObject_p")) {
3570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3576 _result
= (wxObject
*)wxXmlResourceHandler_CreateResource(_arg0
,_arg1
,_arg2
,_arg3
);
3578 wxPyEndAllowThreads(__tstate
);
3579 if (PyErr_Occurred()) return NULL
;
3580 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3584 #define wxXmlResourceHandler_SetParentResource(_swigobj,_swigarg0) (_swigobj->SetParentResource(_swigarg0))
3585 static PyObject
*_wrap_wxXmlResourceHandler_SetParentResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3586 PyObject
* _resultobj
;
3587 wxPyXmlResourceHandler
* _arg0
;
3588 wxXmlResource
* _arg1
;
3589 PyObject
* _argo0
= 0;
3590 PyObject
* _argo1
= 0;
3591 char *_kwnames
[] = { "self","res", NULL
};
3594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_SetParentResource",_kwnames
,&_argo0
,&_argo1
))
3597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_SetParentResource. Expected _wxPyXmlResourceHandler_p.");
3604 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3605 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlResource_p")) {
3606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_SetParentResource. Expected _wxXmlResource_p.");
3611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3612 wxXmlResourceHandler_SetParentResource(_arg0
,_arg1
);
3614 wxPyEndAllowThreads(__tstate
);
3615 if (PyErr_Occurred()) return NULL
;
3616 } Py_INCREF(Py_None
);
3617 _resultobj
= Py_None
;
3621 #define wxXmlResourceHandler_GetResource(_swigobj) (_swigobj->GetResource())
3622 static PyObject
*_wrap_wxXmlResourceHandler_GetResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3623 PyObject
* _resultobj
;
3624 wxXmlResource
* _result
;
3625 wxPyXmlResourceHandler
* _arg0
;
3626 PyObject
* _argo0
= 0;
3627 char *_kwnames
[] = { "self", NULL
};
3631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetResource",_kwnames
,&_argo0
))
3634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetResource. Expected _wxPyXmlResourceHandler_p.");
3641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3642 _result
= (wxXmlResource
*)wxXmlResourceHandler_GetResource(_arg0
);
3644 wxPyEndAllowThreads(__tstate
);
3645 if (PyErr_Occurred()) return NULL
;
3647 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
3648 _resultobj
= Py_BuildValue("s",_ptemp
);
3651 _resultobj
= Py_None
;
3656 #define wxXmlResourceHandler_GetNode(_swigobj) (_swigobj->GetNode())
3657 static PyObject
*_wrap_wxXmlResourceHandler_GetNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3658 PyObject
* _resultobj
;
3659 wxXmlNode
* _result
;
3660 wxPyXmlResourceHandler
* _arg0
;
3661 PyObject
* _argo0
= 0;
3662 char *_kwnames
[] = { "self", NULL
};
3666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetNode",_kwnames
,&_argo0
))
3669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetNode. Expected _wxPyXmlResourceHandler_p.");
3676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3677 _result
= (wxXmlNode
*)wxXmlResourceHandler_GetNode(_arg0
);
3679 wxPyEndAllowThreads(__tstate
);
3680 if (PyErr_Occurred()) return NULL
;
3682 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
3683 _resultobj
= Py_BuildValue("s",_ptemp
);
3686 _resultobj
= Py_None
;
3691 #define wxXmlResourceHandler_GetClass(_swigobj) (_swigobj->GetClass())
3692 static PyObject
*_wrap_wxXmlResourceHandler_GetClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3693 PyObject
* _resultobj
;
3695 wxPyXmlResourceHandler
* _arg0
;
3696 PyObject
* _argo0
= 0;
3697 char *_kwnames
[] = { "self", NULL
};
3700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetClass",_kwnames
,&_argo0
))
3703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetClass. Expected _wxPyXmlResourceHandler_p.");
3710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3711 _result
= new wxString (wxXmlResourceHandler_GetClass(_arg0
));
3713 wxPyEndAllowThreads(__tstate
);
3714 if (PyErr_Occurred()) return NULL
;
3717 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3719 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3728 #define wxXmlResourceHandler_GetParent(_swigobj) (_swigobj->GetParent())
3729 static PyObject
*_wrap_wxXmlResourceHandler_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3730 PyObject
* _resultobj
;
3732 wxPyXmlResourceHandler
* _arg0
;
3733 PyObject
* _argo0
= 0;
3734 char *_kwnames
[] = { "self", NULL
};
3737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetParent",_kwnames
,&_argo0
))
3740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParent. Expected _wxPyXmlResourceHandler_p.");
3747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3748 _result
= (wxObject
*)wxXmlResourceHandler_GetParent(_arg0
);
3750 wxPyEndAllowThreads(__tstate
);
3751 if (PyErr_Occurred()) return NULL
;
3752 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3756 #define wxXmlResourceHandler_GetInstance(_swigobj) (_swigobj->GetInstance())
3757 static PyObject
*_wrap_wxXmlResourceHandler_GetInstance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3758 PyObject
* _resultobj
;
3760 wxPyXmlResourceHandler
* _arg0
;
3761 PyObject
* _argo0
= 0;
3762 char *_kwnames
[] = { "self", NULL
};
3765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetInstance",_kwnames
,&_argo0
))
3768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetInstance. Expected _wxPyXmlResourceHandler_p.");
3775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3776 _result
= (wxObject
*)wxXmlResourceHandler_GetInstance(_arg0
);
3778 wxPyEndAllowThreads(__tstate
);
3779 if (PyErr_Occurred()) return NULL
;
3780 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3784 #define wxXmlResourceHandler_GetParentAsWindow(_swigobj) (_swigobj->GetParentAsWindow())
3785 static PyObject
*_wrap_wxXmlResourceHandler_GetParentAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3786 PyObject
* _resultobj
;
3788 wxPyXmlResourceHandler
* _arg0
;
3789 PyObject
* _argo0
= 0;
3790 char *_kwnames
[] = { "self", NULL
};
3793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetParentAsWindow",_kwnames
,&_argo0
))
3796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParentAsWindow. Expected _wxPyXmlResourceHandler_p.");
3803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3804 _result
= (wxWindow
*)wxXmlResourceHandler_GetParentAsWindow(_arg0
);
3806 wxPyEndAllowThreads(__tstate
);
3807 if (PyErr_Occurred()) return NULL
;
3808 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3812 #define wxXmlResourceHandler_GetInstanceAsWindow(_swigobj) (_swigobj->GetInstanceAsWindow())
3813 static PyObject
*_wrap_wxXmlResourceHandler_GetInstanceAsWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3814 PyObject
* _resultobj
;
3816 wxPyXmlResourceHandler
* _arg0
;
3817 PyObject
* _argo0
= 0;
3818 char *_kwnames
[] = { "self", NULL
};
3821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetInstanceAsWindow",_kwnames
,&_argo0
))
3824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetInstanceAsWindow. Expected _wxPyXmlResourceHandler_p.");
3831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3832 _result
= (wxWindow
*)wxXmlResourceHandler_GetInstanceAsWindow(_arg0
);
3834 wxPyEndAllowThreads(__tstate
);
3835 if (PyErr_Occurred()) return NULL
;
3836 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3840 #define wxXmlResourceHandler_IsOfClass(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsOfClass(_swigarg0,_swigarg1))
3841 static PyObject
*_wrap_wxXmlResourceHandler_IsOfClass(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3842 PyObject
* _resultobj
;
3844 wxPyXmlResourceHandler
* _arg0
;
3847 PyObject
* _argo0
= 0;
3848 PyObject
* _argo1
= 0;
3849 PyObject
* _obj2
= 0;
3850 char *_kwnames
[] = { "self","node","classname", NULL
};
3853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResourceHandler_IsOfClass",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_IsOfClass. Expected _wxPyXmlResourceHandler_p.");
3863 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3864 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_IsOfClass. Expected _wxXmlNode_p.");
3870 _arg2
= wxString_in_helper(_obj2
);
3875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3876 _result
= (bool )wxXmlResourceHandler_IsOfClass(_arg0
,_arg1
,*_arg2
);
3878 wxPyEndAllowThreads(__tstate
);
3879 if (PyErr_Occurred()) return NULL
;
3880 } _resultobj
= Py_BuildValue("i",_result
);
3888 #define wxXmlResourceHandler_GetNodeContent(_swigobj,_swigarg0) (_swigobj->GetNodeContent(_swigarg0))
3889 static PyObject
*_wrap_wxXmlResourceHandler_GetNodeContent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3890 PyObject
* _resultobj
;
3892 wxPyXmlResourceHandler
* _arg0
;
3894 PyObject
* _argo0
= 0;
3895 PyObject
* _argo1
= 0;
3896 char *_kwnames
[] = { "self","node", NULL
};
3899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetNodeContent",_kwnames
,&_argo0
,&_argo1
))
3902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetNodeContent. Expected _wxPyXmlResourceHandler_p.");
3909 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3910 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
3911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_GetNodeContent. Expected _wxXmlNode_p.");
3916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3917 _result
= new wxString (wxXmlResourceHandler_GetNodeContent(_arg0
,_arg1
));
3919 wxPyEndAllowThreads(__tstate
);
3920 if (PyErr_Occurred()) return NULL
;
3923 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3925 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3934 #define wxXmlResourceHandler_HasParam(_swigobj,_swigarg0) (_swigobj->HasParam(_swigarg0))
3935 static PyObject
*_wrap_wxXmlResourceHandler_HasParam(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3936 PyObject
* _resultobj
;
3938 wxPyXmlResourceHandler
* _arg0
;
3940 PyObject
* _argo0
= 0;
3941 PyObject
* _obj1
= 0;
3942 char *_kwnames
[] = { "self","param", NULL
};
3945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_HasParam",_kwnames
,&_argo0
,&_obj1
))
3948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_HasParam. Expected _wxPyXmlResourceHandler_p.");
3955 _arg1
= wxString_in_helper(_obj1
);
3960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3961 _result
= (bool )wxXmlResourceHandler_HasParam(_arg0
,*_arg1
);
3963 wxPyEndAllowThreads(__tstate
);
3964 if (PyErr_Occurred()) return NULL
;
3965 } _resultobj
= Py_BuildValue("i",_result
);
3973 #define wxXmlResourceHandler_GetParamNode(_swigobj,_swigarg0) (_swigobj->GetParamNode(_swigarg0))
3974 static PyObject
*_wrap_wxXmlResourceHandler_GetParamNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3975 PyObject
* _resultobj
;
3976 wxXmlNode
* _result
;
3977 wxPyXmlResourceHandler
* _arg0
;
3979 PyObject
* _argo0
= 0;
3980 PyObject
* _obj1
= 0;
3981 char *_kwnames
[] = { "self","param", NULL
};
3985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetParamNode",_kwnames
,&_argo0
,&_obj1
))
3988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
3990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParamNode. Expected _wxPyXmlResourceHandler_p.");
3995 _arg1
= wxString_in_helper(_obj1
);
4000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4001 _result
= (wxXmlNode
*)wxXmlResourceHandler_GetParamNode(_arg0
,*_arg1
);
4003 wxPyEndAllowThreads(__tstate
);
4004 if (PyErr_Occurred()) return NULL
;
4006 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlNode_p");
4007 _resultobj
= Py_BuildValue("s",_ptemp
);
4010 _resultobj
= Py_None
;
4019 #define wxXmlResourceHandler_GetParamValue(_swigobj,_swigarg0) (_swigobj->GetParamValue(_swigarg0))
4020 static PyObject
*_wrap_wxXmlResourceHandler_GetParamValue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4021 PyObject
* _resultobj
;
4023 wxPyXmlResourceHandler
* _arg0
;
4025 PyObject
* _argo0
= 0;
4026 PyObject
* _obj1
= 0;
4027 char *_kwnames
[] = { "self","param", NULL
};
4030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetParamValue",_kwnames
,&_argo0
,&_obj1
))
4033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetParamValue. Expected _wxPyXmlResourceHandler_p.");
4040 _arg1
= wxString_in_helper(_obj1
);
4045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4046 _result
= new wxString (wxXmlResourceHandler_GetParamValue(_arg0
,*_arg1
));
4048 wxPyEndAllowThreads(__tstate
);
4049 if (PyErr_Occurred()) return NULL
;
4052 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
4054 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4067 #define wxXmlResourceHandler_AddStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddStyle(_swigarg0,_swigarg1))
4068 static PyObject
*_wrap_wxXmlResourceHandler_AddStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4069 PyObject
* _resultobj
;
4070 wxPyXmlResourceHandler
* _arg0
;
4073 PyObject
* _argo0
= 0;
4074 PyObject
* _obj1
= 0;
4075 char *_kwnames
[] = { "self","name","value", NULL
};
4078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxXmlResourceHandler_AddStyle",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_AddStyle. Expected _wxPyXmlResourceHandler_p.");
4088 _arg1
= wxString_in_helper(_obj1
);
4093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4094 wxXmlResourceHandler_AddStyle(_arg0
,*_arg1
,_arg2
);
4096 wxPyEndAllowThreads(__tstate
);
4097 if (PyErr_Occurred()) return NULL
;
4098 } Py_INCREF(Py_None
);
4099 _resultobj
= Py_None
;
4107 #define wxXmlResourceHandler_AddWindowStyles(_swigobj) (_swigobj->AddWindowStyles())
4108 static PyObject
*_wrap_wxXmlResourceHandler_AddWindowStyles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4109 PyObject
* _resultobj
;
4110 wxPyXmlResourceHandler
* _arg0
;
4111 PyObject
* _argo0
= 0;
4112 char *_kwnames
[] = { "self", NULL
};
4115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_AddWindowStyles",_kwnames
,&_argo0
))
4118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_AddWindowStyles. Expected _wxPyXmlResourceHandler_p.");
4125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4126 wxXmlResourceHandler_AddWindowStyles(_arg0
);
4128 wxPyEndAllowThreads(__tstate
);
4129 if (PyErr_Occurred()) return NULL
;
4130 } Py_INCREF(Py_None
);
4131 _resultobj
= Py_None
;
4135 #define wxXmlResourceHandler_GetStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyle(_swigarg0,_swigarg1))
4136 static PyObject
*_wrap_wxXmlResourceHandler_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4137 PyObject
* _resultobj
;
4139 wxPyXmlResourceHandler
* _arg0
;
4140 wxString
* _arg1
= (wxString
*) &wxPyStyleString
;
4141 int _arg2
= (int ) 0;
4142 PyObject
* _argo0
= 0;
4143 PyObject
* _obj1
= 0;
4144 char *_kwnames
[] = { "self","param","defaults", NULL
};
4147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|Oi:wxXmlResourceHandler_GetStyle",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetStyle. Expected _wxPyXmlResourceHandler_p.");
4158 _arg1
= wxString_in_helper(_obj1
);
4163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4164 _result
= (int )wxXmlResourceHandler_GetStyle(_arg0
,*_arg1
,_arg2
);
4166 wxPyEndAllowThreads(__tstate
);
4167 if (PyErr_Occurred()) return NULL
;
4168 } _resultobj
= Py_BuildValue("i",_result
);
4176 #define wxXmlResourceHandler_GetText(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetText(_swigarg0,_swigarg1))
4177 static PyObject
*_wrap_wxXmlResourceHandler_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4178 PyObject
* _resultobj
;
4180 wxPyXmlResourceHandler
* _arg0
;
4182 bool _arg2
= (bool ) TRUE
;
4183 PyObject
* _argo0
= 0;
4184 PyObject
* _obj1
= 0;
4185 int tempbool2
= (int) TRUE
;
4186 char *_kwnames
[] = { "self","param","translate", NULL
};
4189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetText",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetText. Expected _wxPyXmlResourceHandler_p.");
4199 _arg1
= wxString_in_helper(_obj1
);
4203 _arg2
= (bool ) tempbool2
;
4205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4206 _result
= new wxString (wxXmlResourceHandler_GetText(_arg0
,*_arg1
,_arg2
));
4208 wxPyEndAllowThreads(__tstate
);
4209 if (PyErr_Occurred()) return NULL
;
4212 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
4214 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4227 #define wxXmlResourceHandler_GetID(_swigobj) (_swigobj->GetID())
4228 static PyObject
*_wrap_wxXmlResourceHandler_GetID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4229 PyObject
* _resultobj
;
4231 wxPyXmlResourceHandler
* _arg0
;
4232 PyObject
* _argo0
= 0;
4233 char *_kwnames
[] = { "self", NULL
};
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetID",_kwnames
,&_argo0
))
4239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetID. Expected _wxPyXmlResourceHandler_p.");
4246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4247 _result
= (int )wxXmlResourceHandler_GetID(_arg0
);
4249 wxPyEndAllowThreads(__tstate
);
4250 if (PyErr_Occurred()) return NULL
;
4251 } _resultobj
= Py_BuildValue("i",_result
);
4255 #define wxXmlResourceHandler_GetName(_swigobj) (_swigobj->GetName())
4256 static PyObject
*_wrap_wxXmlResourceHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4257 PyObject
* _resultobj
;
4259 wxPyXmlResourceHandler
* _arg0
;
4260 PyObject
* _argo0
= 0;
4261 char *_kwnames
[] = { "self", NULL
};
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetName",_kwnames
,&_argo0
))
4267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetName. Expected _wxPyXmlResourceHandler_p.");
4274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4275 _result
= new wxString (wxXmlResourceHandler_GetName(_arg0
));
4277 wxPyEndAllowThreads(__tstate
);
4278 if (PyErr_Occurred()) return NULL
;
4281 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
4283 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4292 #define wxXmlResourceHandler_GetBool(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBool(_swigarg0,_swigarg1))
4293 static PyObject
*_wrap_wxXmlResourceHandler_GetBool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4294 PyObject
* _resultobj
;
4296 wxPyXmlResourceHandler
* _arg0
;
4298 bool _arg2
= (bool ) FALSE
;
4299 PyObject
* _argo0
= 0;
4300 PyObject
* _obj1
= 0;
4301 int tempbool2
= (int) FALSE
;
4302 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetBool",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetBool. Expected _wxPyXmlResourceHandler_p.");
4315 _arg1
= wxString_in_helper(_obj1
);
4319 _arg2
= (bool ) tempbool2
;
4321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4322 _result
= (bool )wxXmlResourceHandler_GetBool(_arg0
,*_arg1
,_arg2
);
4324 wxPyEndAllowThreads(__tstate
);
4325 if (PyErr_Occurred()) return NULL
;
4326 } _resultobj
= Py_BuildValue("i",_result
);
4334 #define wxXmlResourceHandler_GetLong(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLong(_swigarg0,_swigarg1))
4335 static PyObject
*_wrap_wxXmlResourceHandler_GetLong(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4336 PyObject
* _resultobj
;
4338 wxPyXmlResourceHandler
* _arg0
;
4340 long _arg2
= (long ) 0;
4341 PyObject
* _argo0
= 0;
4342 PyObject
* _obj1
= 0;
4343 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxXmlResourceHandler_GetLong",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetLong. Expected _wxPyXmlResourceHandler_p.");
4356 _arg1
= wxString_in_helper(_obj1
);
4361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4362 _result
= (long )wxXmlResourceHandler_GetLong(_arg0
,*_arg1
,_arg2
);
4364 wxPyEndAllowThreads(__tstate
);
4365 if (PyErr_Occurred()) return NULL
;
4366 } _resultobj
= Py_BuildValue("l",_result
);
4374 #define wxXmlResourceHandler_GetColour(_swigobj,_swigarg0) (_swigobj->GetColour(_swigarg0))
4375 static PyObject
*_wrap_wxXmlResourceHandler_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4376 PyObject
* _resultobj
;
4378 wxPyXmlResourceHandler
* _arg0
;
4380 PyObject
* _argo0
= 0;
4381 PyObject
* _obj1
= 0;
4382 char *_kwnames
[] = { "self","param", NULL
};
4386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_GetColour",_kwnames
,&_argo0
,&_obj1
))
4389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetColour. Expected _wxPyXmlResourceHandler_p.");
4396 _arg1
= wxString_in_helper(_obj1
);
4401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4402 _result
= new wxColour (wxXmlResourceHandler_GetColour(_arg0
,*_arg1
));
4404 wxPyEndAllowThreads(__tstate
);
4405 if (PyErr_Occurred()) return NULL
;
4406 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4407 _resultobj
= Py_BuildValue("s",_ptemp
);
4415 #define wxXmlResourceHandler_GetSize(_swigobj,_swigarg0) (_swigobj->GetSize(_swigarg0))
4416 static PyObject
*_wrap_wxXmlResourceHandler_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4417 PyObject
* _resultobj
;
4419 wxPyXmlResourceHandler
* _arg0
;
4420 wxString
* _arg1
= (wxString
*) &wxPySizeString
;
4421 PyObject
* _argo0
= 0;
4422 PyObject
* _obj1
= 0;
4423 char *_kwnames
[] = { "self","param", NULL
};
4427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetSize",_kwnames
,&_argo0
,&_obj1
))
4430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetSize. Expected _wxPyXmlResourceHandler_p.");
4438 _arg1
= wxString_in_helper(_obj1
);
4443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4444 _result
= new wxSize (wxXmlResourceHandler_GetSize(_arg0
,*_arg1
));
4446 wxPyEndAllowThreads(__tstate
);
4447 if (PyErr_Occurred()) return NULL
;
4448 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4449 _resultobj
= Py_BuildValue("s",_ptemp
);
4457 #define wxXmlResourceHandler_GetPosition(_swigobj,_swigarg0) (_swigobj->GetPosition(_swigarg0))
4458 static PyObject
*_wrap_wxXmlResourceHandler_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4459 PyObject
* _resultobj
;
4461 wxPyXmlResourceHandler
* _arg0
;
4462 wxString
* _arg1
= (wxString
*) &wxPyPosString
;
4463 PyObject
* _argo0
= 0;
4464 PyObject
* _obj1
= 0;
4465 char *_kwnames
[] = { "self","param", NULL
};
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetPosition",_kwnames
,&_argo0
,&_obj1
))
4472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetPosition. Expected _wxPyXmlResourceHandler_p.");
4480 _arg1
= wxString_in_helper(_obj1
);
4485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4486 _result
= new wxPoint (wxXmlResourceHandler_GetPosition(_arg0
,*_arg1
));
4488 wxPyEndAllowThreads(__tstate
);
4489 if (PyErr_Occurred()) return NULL
;
4490 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4491 _resultobj
= Py_BuildValue("s",_ptemp
);
4499 #define wxXmlResourceHandler_GetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDimension(_swigarg0,_swigarg1))
4500 static PyObject
*_wrap_wxXmlResourceHandler_GetDimension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4501 PyObject
* _resultobj
;
4503 wxPyXmlResourceHandler
* _arg0
;
4505 wxCoord _arg2
= (wxCoord
) 0;
4506 PyObject
* _argo0
= 0;
4507 PyObject
* _obj1
= 0;
4508 char *_kwnames
[] = { "self","param","defaultv", NULL
};
4511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_GetDimension",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetDimension. Expected _wxPyXmlResourceHandler_p.");
4521 _arg1
= wxString_in_helper(_obj1
);
4526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4527 _result
= (wxCoord
)wxXmlResourceHandler_GetDimension(_arg0
,*_arg1
,_arg2
);
4529 wxPyEndAllowThreads(__tstate
);
4530 if (PyErr_Occurred()) return NULL
;
4531 } _resultobj
= Py_BuildValue("i",_result
);
4539 #define wxXmlResourceHandler_GetBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetBitmap(_swigarg0,_swigarg1,_swigarg2))
4540 static PyObject
*_wrap_wxXmlResourceHandler_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4541 PyObject
* _resultobj
;
4543 wxPyXmlResourceHandler
* _arg0
;
4544 wxString
* _arg1
= (wxString
*) &wxPyBitmapString
;
4545 wxArtClient
* _arg2
= (wxArtClient
*) &wxART_OTHER
;
4546 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
4547 PyObject
* _argo0
= 0;
4548 PyObject
* _obj1
= 0;
4549 PyObject
* _argo2
= 0;
4551 PyObject
* _obj3
= 0;
4552 char *_kwnames
[] = { "self","param","defaultArtClient","size", NULL
};
4556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OOO:wxXmlResourceHandler_GetBitmap",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
))
4559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetBitmap. Expected _wxPyXmlResourceHandler_p.");
4567 _arg1
= wxString_in_helper(_obj1
);
4572 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4573 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxArtClient_p")) {
4574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_GetBitmap. Expected _wxArtClient_p.");
4581 if (! wxSize_helper(_obj3
, &_arg3
))
4585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4586 _result
= new wxBitmap (wxXmlResourceHandler_GetBitmap(_arg0
,*_arg1
,*_arg2
,*_arg3
));
4588 wxPyEndAllowThreads(__tstate
);
4589 if (PyErr_Occurred()) return NULL
;
4590 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
4591 _resultobj
= Py_BuildValue("s",_ptemp
);
4599 #define wxXmlResourceHandler_GetIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetIcon(_swigarg0,_swigarg1,_swigarg2))
4600 static PyObject
*_wrap_wxXmlResourceHandler_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4601 PyObject
* _resultobj
;
4603 wxPyXmlResourceHandler
* _arg0
;
4604 wxString
* _arg1
= (wxString
*) &wxPyIconString
;
4605 wxArtClient
* _arg2
= (wxArtClient
*) &wxART_OTHER
;
4606 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
4607 PyObject
* _argo0
= 0;
4608 PyObject
* _obj1
= 0;
4609 PyObject
* _argo2
= 0;
4611 PyObject
* _obj3
= 0;
4612 char *_kwnames
[] = { "self","param","defaultArtClient","size", NULL
};
4616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OOO:wxXmlResourceHandler_GetIcon",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
))
4619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetIcon. Expected _wxPyXmlResourceHandler_p.");
4627 _arg1
= wxString_in_helper(_obj1
);
4632 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4633 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxArtClient_p")) {
4634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_GetIcon. Expected _wxArtClient_p.");
4641 if (! wxSize_helper(_obj3
, &_arg3
))
4645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4646 _result
= new wxIcon (wxXmlResourceHandler_GetIcon(_arg0
,*_arg1
,*_arg2
,*_arg3
));
4648 wxPyEndAllowThreads(__tstate
);
4649 if (PyErr_Occurred()) return NULL
;
4650 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
4651 _resultobj
= Py_BuildValue("s",_ptemp
);
4659 #define wxXmlResourceHandler_GetFont(_swigobj,_swigarg0) (_swigobj->GetFont(_swigarg0))
4660 static PyObject
*_wrap_wxXmlResourceHandler_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4661 PyObject
* _resultobj
;
4663 wxPyXmlResourceHandler
* _arg0
;
4664 wxString
* _arg1
= (wxString
*) &wxPyFontString
;
4665 PyObject
* _argo0
= 0;
4666 PyObject
* _obj1
= 0;
4667 char *_kwnames
[] = { "self","param", NULL
};
4671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxXmlResourceHandler_GetFont",_kwnames
,&_argo0
,&_obj1
))
4674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetFont. Expected _wxPyXmlResourceHandler_p.");
4682 _arg1
= wxString_in_helper(_obj1
);
4687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4688 _result
= new wxFont (wxXmlResourceHandler_GetFont(_arg0
,*_arg1
));
4690 wxPyEndAllowThreads(__tstate
);
4691 if (PyErr_Occurred()) return NULL
;
4692 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
4693 _resultobj
= Py_BuildValue("s",_ptemp
);
4701 #define wxXmlResourceHandler_SetupWindow(_swigobj,_swigarg0) (_swigobj->SetupWindow(_swigarg0))
4702 static PyObject
*_wrap_wxXmlResourceHandler_SetupWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4703 PyObject
* _resultobj
;
4704 wxPyXmlResourceHandler
* _arg0
;
4706 PyObject
* _argo0
= 0;
4707 PyObject
* _argo1
= 0;
4708 char *_kwnames
[] = { "self","wnd", NULL
};
4711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResourceHandler_SetupWindow",_kwnames
,&_argo0
,&_argo1
))
4714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_SetupWindow. Expected _wxPyXmlResourceHandler_p.");
4721 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4722 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_SetupWindow. Expected _wxWindow_p.");
4728 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4729 wxXmlResourceHandler_SetupWindow(_arg0
,_arg1
);
4731 wxPyEndAllowThreads(__tstate
);
4732 if (PyErr_Occurred()) return NULL
;
4733 } Py_INCREF(Py_None
);
4734 _resultobj
= Py_None
;
4738 #define wxXmlResourceHandler_CreateChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildren(_swigarg0,_swigarg1))
4739 static PyObject
*_wrap_wxXmlResourceHandler_CreateChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4740 PyObject
* _resultobj
;
4741 wxPyXmlResourceHandler
* _arg0
;
4743 bool _arg2
= (bool ) FALSE
;
4744 PyObject
* _argo0
= 0;
4745 PyObject
* _argo1
= 0;
4746 int tempbool2
= (int) FALSE
;
4747 char *_kwnames
[] = { "self","parent","this_hnd_only", NULL
};
4750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxXmlResourceHandler_CreateChildren",_kwnames
,&_argo0
,&_argo1
,&tempbool2
))
4753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateChildren. Expected _wxPyXmlResourceHandler_p.");
4760 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4761 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
4762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateChildren. Expected _wxObject_p.");
4766 _arg2
= (bool ) tempbool2
;
4768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4769 wxXmlResourceHandler_CreateChildren(_arg0
,_arg1
,_arg2
);
4771 wxPyEndAllowThreads(__tstate
);
4772 if (PyErr_Occurred()) return NULL
;
4773 } Py_INCREF(Py_None
);
4774 _resultobj
= Py_None
;
4778 #define wxXmlResourceHandler_CreateChildrenPrivately(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildrenPrivately(_swigarg0,_swigarg1))
4779 static PyObject
*_wrap_wxXmlResourceHandler_CreateChildrenPrivately(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4780 PyObject
* _resultobj
;
4781 wxPyXmlResourceHandler
* _arg0
;
4783 wxXmlNode
* _arg2
= (wxXmlNode
*) NULL
;
4784 PyObject
* _argo0
= 0;
4785 PyObject
* _argo1
= 0;
4786 PyObject
* _argo2
= 0;
4787 char *_kwnames
[] = { "self","parent","rootnode", NULL
};
4790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxXmlResourceHandler_CreateChildrenPrivately",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxPyXmlResourceHandler_p.");
4800 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4801 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxObject_p")) {
4802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxObject_p.");
4807 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4808 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxXmlNode_p")) {
4809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxXmlNode_p.");
4814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4815 wxXmlResourceHandler_CreateChildrenPrivately(_arg0
,_arg1
,_arg2
);
4817 wxPyEndAllowThreads(__tstate
);
4818 if (PyErr_Occurred()) return NULL
;
4819 } Py_INCREF(Py_None
);
4820 _resultobj
= Py_None
;
4824 #define wxXmlResourceHandler_CreateResFromNode(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResFromNode(_swigarg0,_swigarg1,_swigarg2))
4825 static PyObject
*_wrap_wxXmlResourceHandler_CreateResFromNode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4826 PyObject
* _resultobj
;
4828 wxPyXmlResourceHandler
* _arg0
;
4831 wxObject
* _arg3
= (wxObject
*) NULL
;
4832 PyObject
* _argo0
= 0;
4833 PyObject
* _argo1
= 0;
4834 PyObject
* _argo2
= 0;
4835 PyObject
* _argo3
= 0;
4836 char *_kwnames
[] = { "self","node","parent","instance", NULL
};
4839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResourceHandler_CreateResFromNode",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
4842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_CreateResFromNode. Expected _wxPyXmlResourceHandler_p.");
4849 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4850 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlNode_p")) {
4851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResourceHandler_CreateResFromNode. Expected _wxXmlNode_p.");
4856 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4857 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxObject_p")) {
4858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
4863 if (_argo3
== Py_None
) { _arg3
= NULL
; }
4864 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxObject_p")) {
4865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
4870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4871 _result
= (wxObject
*)wxXmlResourceHandler_CreateResFromNode(_arg0
,_arg1
,_arg2
,_arg3
);
4873 wxPyEndAllowThreads(__tstate
);
4874 if (PyErr_Occurred()) return NULL
;
4875 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4879 #define wxXmlResourceHandler_GetCurFileSystem(_swigobj) (_swigobj->GetCurFileSystem())
4880 static PyObject
*_wrap_wxXmlResourceHandler_GetCurFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
* _resultobj
;
4882 wxFileSystem
* _result
;
4883 wxPyXmlResourceHandler
* _arg0
;
4884 PyObject
* _argo0
= 0;
4885 char *_kwnames
[] = { "self", NULL
};
4888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResourceHandler_GetCurFileSystem",_kwnames
,&_argo0
))
4891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyXmlResourceHandler_p")) {
4893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResourceHandler_GetCurFileSystem. Expected _wxPyXmlResourceHandler_p.");
4898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4899 wxFileSystem
& _result_ref
= wxXmlResourceHandler_GetCurFileSystem(_arg0
);
4900 _result
= (wxFileSystem
*) &_result_ref
;
4902 wxPyEndAllowThreads(__tstate
);
4903 if (PyErr_Occurred()) return NULL
;
4904 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4908 static PyMethodDef xrccMethods
[] = {
4909 { "wxXmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_wxXmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
4910 { "wxXmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
},
4911 { "wxXmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
},
4912 { "wxXmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
},
4913 { "wxXmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
},
4914 { "wxXmlResourceHandler_GetFont", (PyCFunction
) _wrap_wxXmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
4915 { "wxXmlResourceHandler_GetIcon", (PyCFunction
) _wrap_wxXmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
4916 { "wxXmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_wxXmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
4917 { "wxXmlResourceHandler_GetDimension", (PyCFunction
) _wrap_wxXmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
},
4918 { "wxXmlResourceHandler_GetPosition", (PyCFunction
) _wrap_wxXmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
4919 { "wxXmlResourceHandler_GetSize", (PyCFunction
) _wrap_wxXmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
4920 { "wxXmlResourceHandler_GetColour", (PyCFunction
) _wrap_wxXmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
4921 { "wxXmlResourceHandler_GetLong", (PyCFunction
) _wrap_wxXmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
},
4922 { "wxXmlResourceHandler_GetBool", (PyCFunction
) _wrap_wxXmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
},
4923 { "wxXmlResourceHandler_GetName", (PyCFunction
) _wrap_wxXmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4924 { "wxXmlResourceHandler_GetID", (PyCFunction
) _wrap_wxXmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
},
4925 { "wxXmlResourceHandler_GetText", (PyCFunction
) _wrap_wxXmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
},
4926 { "wxXmlResourceHandler_GetStyle", (PyCFunction
) _wrap_wxXmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
4927 { "wxXmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_wxXmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
},
4928 { "wxXmlResourceHandler_AddStyle", (PyCFunction
) _wrap_wxXmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
},
4929 { "wxXmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
},
4930 { "wxXmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
},
4931 { "wxXmlResourceHandler_HasParam", (PyCFunction
) _wrap_wxXmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
},
4932 { "wxXmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_wxXmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
},
4933 { "wxXmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_wxXmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
},
4934 { "wxXmlResourceHandler_GetInstanceAsWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_GetInstanceAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4935 { "wxXmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
},
4936 { "wxXmlResourceHandler_GetInstance", (PyCFunction
) _wrap_wxXmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
},
4937 { "wxXmlResourceHandler_GetParent", (PyCFunction
) _wrap_wxXmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4938 { "wxXmlResourceHandler_GetClass", (PyCFunction
) _wrap_wxXmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
},
4939 { "wxXmlResourceHandler_GetNode", (PyCFunction
) _wrap_wxXmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
},
4940 { "wxXmlResourceHandler_GetResource", (PyCFunction
) _wrap_wxXmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
},
4941 { "wxXmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_wxXmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
},
4942 { "wxXmlResourceHandler_CreateResource", (PyCFunction
) _wrap_wxXmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
},
4943 { "wxXmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_wxXmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
4944 { "new_wxXmlResourceHandler", (PyCFunction
) _wrap_new_wxXmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
},
4945 { "wxXmlDocument_GetEncoding", (PyCFunction
) _wrap_wxXmlDocument_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4946 { "wxXmlDocument_SetFileEncoding", (PyCFunction
) _wrap_wxXmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4947 { "wxXmlDocument_SetVersion", (PyCFunction
) _wrap_wxXmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4948 { "wxXmlDocument_SetRoot", (PyCFunction
) _wrap_wxXmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4949 { "wxXmlDocument_GetFileEncoding", (PyCFunction
) _wrap_wxXmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
},
4950 { "wxXmlDocument_GetVersion", (PyCFunction
) _wrap_wxXmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4951 { "wxXmlDocument_GetRoot", (PyCFunction
) _wrap_wxXmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
},
4952 { "wxXmlDocument_IsOk", (PyCFunction
) _wrap_wxXmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
4953 { "wxXmlDocument_SaveToStream", (PyCFunction
) _wrap_wxXmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
},
4954 { "wxXmlDocument_Save", (PyCFunction
) _wrap_wxXmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
},
4955 { "wxXmlDocument_LoadFromStream", (PyCFunction
) _wrap_wxXmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4956 { "wxXmlDocument_Load", (PyCFunction
) _wrap_wxXmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
},
4957 { "delete_wxXmlDocument", (PyCFunction
) _wrap_delete_wxXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4958 { "new_wxEmptyXmlDocument", (PyCFunction
) _wrap_new_wxEmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4959 { "new_wxXmlDocumentFromStream", (PyCFunction
) _wrap_new_wxXmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
},
4960 { "new_wxXmlDocument", (PyCFunction
) _wrap_new_wxXmlDocument
, METH_VARARGS
| METH_KEYWORDS
},
4961 { "wxXmlNode_SetProperties", (PyCFunction
) _wrap_wxXmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4962 { "wxXmlNode_SetChildren", (PyCFunction
) _wrap_wxXmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4963 { "wxXmlNode_SetNext", (PyCFunction
) _wrap_wxXmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4964 { "wxXmlNode_SetParent", (PyCFunction
) _wrap_wxXmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
4965 { "wxXmlNode_SetContent", (PyCFunction
) _wrap_wxXmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
},
4966 { "wxXmlNode_SetName", (PyCFunction
) _wrap_wxXmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4967 { "wxXmlNode_SetType", (PyCFunction
) _wrap_wxXmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
},
4968 { "wxXmlNode_HasProp", (PyCFunction
) _wrap_wxXmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
},
4969 { "wxXmlNode_GetPropVal", (PyCFunction
) _wrap_wxXmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
},
4970 { "wxXmlNode_GetProperties", (PyCFunction
) _wrap_wxXmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
},
4971 { "wxXmlNode_GetChildren", (PyCFunction
) _wrap_wxXmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
4972 { "wxXmlNode_GetNext", (PyCFunction
) _wrap_wxXmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4973 { "wxXmlNode_GetParent", (PyCFunction
) _wrap_wxXmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
4974 { "wxXmlNode_GetContent", (PyCFunction
) _wrap_wxXmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
},
4975 { "wxXmlNode_GetName", (PyCFunction
) _wrap_wxXmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4976 { "wxXmlNode_GetType", (PyCFunction
) _wrap_wxXmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
},
4977 { "wxXmlNode_DeleteProperty", (PyCFunction
) _wrap_wxXmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
},
4978 { "wxXmlNode_AddPropertyName", (PyCFunction
) _wrap_wxXmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
},
4979 { "wxXmlNode_AddProperty", (PyCFunction
) _wrap_wxXmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
},
4980 { "wxXmlNode_RemoveChild", (PyCFunction
) _wrap_wxXmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
4981 { "wxXmlNode_InsertChild", (PyCFunction
) _wrap_wxXmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
},
4982 { "wxXmlNode_AddChild", (PyCFunction
) _wrap_wxXmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
},
4983 { "new_wxXmlNodeEasy", (PyCFunction
) _wrap_new_wxXmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
},
4984 { "delete_wxXmlNode", (PyCFunction
) _wrap_delete_wxXmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4985 { "new_wxXmlNode", (PyCFunction
) _wrap_new_wxXmlNode
, METH_VARARGS
| METH_KEYWORDS
},
4986 { "wxXmlProperty_SetNext", (PyCFunction
) _wrap_wxXmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
},
4987 { "wxXmlProperty_SetValue", (PyCFunction
) _wrap_wxXmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
},
4988 { "wxXmlProperty_SetName", (PyCFunction
) _wrap_wxXmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
},
4989 { "wxXmlProperty_GetNext", (PyCFunction
) _wrap_wxXmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
},
4990 { "wxXmlProperty_GetValue", (PyCFunction
) _wrap_wxXmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
},
4991 { "wxXmlProperty_GetName", (PyCFunction
) _wrap_wxXmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
},
4992 { "new_wxXmlProperty", (PyCFunction
) _wrap_new_wxXmlProperty
, METH_VARARGS
| METH_KEYWORDS
},
4993 { "wxXmlResource_GetFlags", (PyCFunction
) _wrap_wxXmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
},
4994 { "wxXmlResource_Set", (PyCFunction
) _wrap_wxXmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
4995 { "wxXmlResource_Get", (PyCFunction
) _wrap_wxXmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
4996 { "wxXmlResource_CompareVersion", (PyCFunction
) _wrap_wxXmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
4997 { "wxXmlResource_GetVersion", (PyCFunction
) _wrap_wxXmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
4998 { "wxXmlResource_GetXRCID", (PyCFunction
) _wrap_wxXmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
4999 { "wxXmlResource_AttachUnknownControl", (PyCFunction
) _wrap_wxXmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
5000 { "wxXmlResource_LoadIcon", (PyCFunction
) _wrap_wxXmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
5001 { "wxXmlResource_LoadBitmap", (PyCFunction
) _wrap_wxXmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
5002 { "wxXmlResource_LoadOnObject", (PyCFunction
) _wrap_wxXmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
},
5003 { "wxXmlResource_LoadObject", (PyCFunction
) _wrap_wxXmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
},
5004 { "wxXmlResource_LoadOnFrame", (PyCFunction
) _wrap_wxXmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5005 { "wxXmlResource_LoadFrame", (PyCFunction
) _wrap_wxXmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
5006 { "wxXmlResource_LoadOnPanel", (PyCFunction
) _wrap_wxXmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
5007 { "wxXmlResource_LoadPanel", (PyCFunction
) _wrap_wxXmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
5008 { "wxXmlResource_LoadOnDialog", (PyCFunction
) _wrap_wxXmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
5009 { "wxXmlResource_LoadDialog", (PyCFunction
) _wrap_wxXmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
5010 { "wxXmlResource_LoadToolBar", (PyCFunction
) _wrap_wxXmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
5011 { "wxXmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
5012 { "wxXmlResource_LoadMenuBar", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
5013 { "wxXmlResource_LoadMenu", (PyCFunction
) _wrap_wxXmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
5014 { "wxXmlResource_ClearHandlers", (PyCFunction
) _wrap_wxXmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5015 { "wxXmlResource_InsertHandler", (PyCFunction
) _wrap_wxXmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
},
5016 { "wxXmlResource_AddHandler", (PyCFunction
) _wrap_wxXmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
5017 { "wxXmlResource_InitAllHandlers", (PyCFunction
) _wrap_wxXmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
5018 { "wxXmlResource_LoadFromString", (PyCFunction
) _wrap_wxXmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
5019 { "wxXmlResource_Load", (PyCFunction
) _wrap_wxXmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
5020 { "delete_wxXmlResource", (PyCFunction
) _wrap_delete_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5021 { "new_wxEmptyXmlResource", (PyCFunction
) _wrap_new_wxEmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5022 { "new_wxXmlResource", (PyCFunction
) _wrap_new_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
5029 * This table is used by the pointer type-checker
5031 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
5032 { "_signed_long","_long",0},
5033 { "_wxPrintQuality","_wxCoord",0},
5034 { "_wxPrintQuality","_int",0},
5035 { "_wxPrintQuality","_signed_int",0},
5036 { "_wxPrintQuality","_unsigned_int",0},
5037 { "_wxPrintQuality","_wxWindowID",0},
5038 { "_wxPrintQuality","_uint",0},
5039 { "_wxPrintQuality","_EBool",0},
5040 { "_wxPrintQuality","_size_t",0},
5041 { "_wxPrintQuality","_time_t",0},
5042 { "_byte","_unsigned_char",0},
5043 { "_long","_unsigned_long",0},
5044 { "_long","_signed_long",0},
5045 { "_size_t","_wxCoord",0},
5046 { "_size_t","_wxPrintQuality",0},
5047 { "_size_t","_time_t",0},
5048 { "_size_t","_unsigned_int",0},
5049 { "_size_t","_int",0},
5050 { "_size_t","_wxWindowID",0},
5051 { "_size_t","_uint",0},
5052 { "_uint","_wxCoord",0},
5053 { "_uint","_wxPrintQuality",0},
5054 { "_uint","_time_t",0},
5055 { "_uint","_size_t",0},
5056 { "_uint","_unsigned_int",0},
5057 { "_uint","_int",0},
5058 { "_uint","_wxWindowID",0},
5059 { "_wxChar","_char",0},
5060 { "_char","_wxChar",0},
5061 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
5062 { "_EBool","_wxCoord",0},
5063 { "_EBool","_wxPrintQuality",0},
5064 { "_EBool","_signed_int",0},
5065 { "_EBool","_int",0},
5066 { "_EBool","_wxWindowID",0},
5067 { "_unsigned_long","_long",0},
5068 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
5069 { "_signed_int","_wxCoord",0},
5070 { "_signed_int","_wxPrintQuality",0},
5071 { "_signed_int","_EBool",0},
5072 { "_signed_int","_wxWindowID",0},
5073 { "_signed_int","_int",0},
5074 { "_WXTYPE","_wxDateTime_t",0},
5075 { "_WXTYPE","_short",0},
5076 { "_WXTYPE","_signed_short",0},
5077 { "_WXTYPE","_unsigned_short",0},
5078 { "_unsigned_short","_wxDateTime_t",0},
5079 { "_unsigned_short","_WXTYPE",0},
5080 { "_unsigned_short","_short",0},
5081 { "_wxObject","_wxPyXmlResourceHandler",SwigwxPyXmlResourceHandlerTowxObject
},
5082 { "_wxObject","_wxXmlDocument",SwigwxXmlDocumentTowxObject
},
5083 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject
},
5084 { "_signed_short","_WXTYPE",0},
5085 { "_signed_short","_short",0},
5086 { "_unsigned_char","_byte",0},
5087 { "_unsigned_int","_wxCoord",0},
5088 { "_unsigned_int","_wxPrintQuality",0},
5089 { "_unsigned_int","_time_t",0},
5090 { "_unsigned_int","_size_t",0},
5091 { "_unsigned_int","_uint",0},
5092 { "_unsigned_int","_wxWindowID",0},
5093 { "_unsigned_int","_int",0},
5094 { "_short","_wxDateTime_t",0},
5095 { "_short","_WXTYPE",0},
5096 { "_short","_unsigned_short",0},
5097 { "_short","_signed_short",0},
5098 { "_wxWindowID","_wxCoord",0},
5099 { "_wxWindowID","_wxPrintQuality",0},
5100 { "_wxWindowID","_time_t",0},
5101 { "_wxWindowID","_size_t",0},
5102 { "_wxWindowID","_EBool",0},
5103 { "_wxWindowID","_uint",0},
5104 { "_wxWindowID","_int",0},
5105 { "_wxWindowID","_signed_int",0},
5106 { "_wxWindowID","_unsigned_int",0},
5107 { "_int","_wxCoord",0},
5108 { "_int","_wxPrintQuality",0},
5109 { "_int","_time_t",0},
5110 { "_int","_size_t",0},
5111 { "_int","_EBool",0},
5112 { "_int","_uint",0},
5113 { "_int","_wxWindowID",0},
5114 { "_int","_unsigned_int",0},
5115 { "_int","_signed_int",0},
5116 { "_wxDateTime_t","_unsigned_short",0},
5117 { "_wxDateTime_t","_short",0},
5118 { "_wxDateTime_t","_WXTYPE",0},
5119 { "_time_t","_wxCoord",0},
5120 { "_time_t","_wxPrintQuality",0},
5121 { "_time_t","_unsigned_int",0},
5122 { "_time_t","_int",0},
5123 { "_time_t","_wxWindowID",0},
5124 { "_time_t","_uint",0},
5125 { "_time_t","_size_t",0},
5126 { "_wxCoord","_int",0},
5127 { "_wxCoord","_signed_int",0},
5128 { "_wxCoord","_unsigned_int",0},
5129 { "_wxCoord","_wxWindowID",0},
5130 { "_wxCoord","_uint",0},
5131 { "_wxCoord","_EBool",0},
5132 { "_wxCoord","_size_t",0},
5133 { "_wxCoord","_time_t",0},
5134 { "_wxCoord","_wxPrintQuality",0},
5137 static PyObject
*SWIG_globals
;
5141 SWIGEXPORT(void) initxrcc() {
5143 SWIG_globals
= SWIG_newvarlink();
5144 m
= Py_InitModule("xrcc", xrccMethods
);
5145 d
= PyModule_GetDict(m
);
5146 PyDict_SetItemString(d
,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE
));
5147 PyDict_SetItemString(d
,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING
));
5148 PyDict_SetItemString(d
,"wxXML_ELEMENT_NODE", PyInt_FromLong((long) wxXML_ELEMENT_NODE
));
5149 PyDict_SetItemString(d
,"wxXML_ATTRIBUTE_NODE", PyInt_FromLong((long) wxXML_ATTRIBUTE_NODE
));
5150 PyDict_SetItemString(d
,"wxXML_TEXT_NODE", PyInt_FromLong((long) wxXML_TEXT_NODE
));
5151 PyDict_SetItemString(d
,"wxXML_CDATA_SECTION_NODE", PyInt_FromLong((long) wxXML_CDATA_SECTION_NODE
));
5152 PyDict_SetItemString(d
,"wxXML_ENTITY_REF_NODE", PyInt_FromLong((long) wxXML_ENTITY_REF_NODE
));
5153 PyDict_SetItemString(d
,"wxXML_ENTITY_NODE", PyInt_FromLong((long) wxXML_ENTITY_NODE
));
5154 PyDict_SetItemString(d
,"wxXML_PI_NODE", PyInt_FromLong((long) wxXML_PI_NODE
));
5155 PyDict_SetItemString(d
,"wxXML_COMMENT_NODE", PyInt_FromLong((long) wxXML_COMMENT_NODE
));
5156 PyDict_SetItemString(d
,"wxXML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_NODE
));
5157 PyDict_SetItemString(d
,"wxXML_DOCUMENT_TYPE_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_TYPE_NODE
));
5158 PyDict_SetItemString(d
,"wxXML_DOCUMENT_FRAG_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_FRAG_NODE
));
5159 PyDict_SetItemString(d
,"wxXML_NOTATION_NODE", PyInt_FromLong((long) wxXML_NOTATION_NODE
));
5160 PyDict_SetItemString(d
,"wxXML_HTML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_HTML_DOCUMENT_NODE
));
5163 wxClassInfo::CleanUpClasses();
5164 wxClassInfo::InitializeClasses();
5166 wxXmlInitResourceModule();
5167 wxXmlResource::Get()->InitAllHandlers();
5171 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
5172 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);