]>
Commit | Line | Data |
---|---|---|
2ef75293 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName | |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); | |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
128 | ||
129 | /*********************************************************************** | |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxFrame swig_types[0] | |
212 | #define SWIGTYPE_p_wxIcon swig_types[1] | |
213 | #define SWIGTYPE_p_wxObject swig_types[2] | |
214 | #define SWIGTYPE_p_wxDialog swig_types[3] | |
215 | #define SWIGTYPE_p_wxColour swig_types[4] | |
216 | #define SWIGTYPE_p_wxWindow swig_types[5] | |
217 | #define SWIGTYPE_p_wxArtClient swig_types[6] | |
218 | #define SWIGTYPE_p_wxBitmap swig_types[7] | |
219 | #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8] | |
220 | #define SWIGTYPE_p_char swig_types[9] | |
221 | #define SWIGTYPE_p_wxPoint swig_types[10] | |
222 | #define SWIGTYPE_p_wxXmlNode swig_types[11] | |
223 | #define SWIGTYPE_p_wxInputStream swig_types[12] | |
224 | #define SWIGTYPE_p_wxOutputStream swig_types[13] | |
225 | #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14] | |
226 | #define SWIGTYPE_p_wxFileSystem swig_types[15] | |
227 | #define SWIGTYPE_p_wxXmlProperty swig_types[16] | |
228 | #define SWIGTYPE_p_wxFont swig_types[17] | |
229 | #define SWIGTYPE_p_wxXmlResource swig_types[18] | |
230 | #define SWIGTYPE_p_wxXmlDocument swig_types[19] | |
231 | #define SWIGTYPE_p_wxPanel swig_types[20] | |
232 | #define SWIGTYPE_p_wxSize swig_types[21] | |
233 | static swig_type_info *swig_types[23]; | |
234 | ||
235 | /* -------- TYPES TABLE (END) -------- */ | |
236 | ||
237 | ||
238 | /*----------------------------------------------- | |
239 | @(target):= _xrc.so | |
240 | ------------------------------------------------*/ | |
241 | #define SWIG_init init_xrc | |
242 | ||
243 | #define SWIG_name "_xrc" | |
244 | ||
245 | /* Auxiliar swig macros that appear in the header */ | |
246 | ||
247 | #define SWIG_OLDOBJ 1 | |
248 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
249 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
250 | ||
251 | #ifdef __cplusplus | |
252 | #define SWIGSTATICINLINE(a) static inline a | |
253 | #define SWIGSTATIC(a) static a | |
254 | #define swig_new_array(size,Type) (new Type[(size)]) | |
255 | #define swig_delete(cptr) delete cptr | |
256 | #define swig_delete_array(cptr) delete[] cptr | |
257 | #define swig_const_cast(a,Type) const_cast<Type >(a) | |
258 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
259 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
260 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
261 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
262 | ||
263 | #else /* C case */ | |
264 | ||
265 | #define SWIGSTATICINLINE(a) static a | |
266 | #define SWIGSTATIC(a) static a | |
267 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) | |
268 | #define swig_delete(cptr) free((char*)cptr) | |
269 | #define swig_delete_array(cptr) free((char*)cptr) | |
270 | #define swig_const_cast(a,Type) (Type)(a) | |
271 | #define swig_static_cast(a,Type) (Type)(a) | |
272 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
273 | #define swig_numeric_cast(a,Type) (Type)(a) | |
274 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
275 | ||
276 | #endif /* __cplusplus */ | |
277 | ||
278 | ||
279 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
280 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
281 | /*@@*/ | |
282 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
283 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
284 | /*@@*/ | |
285 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
286 | #define SWIG_From_short PyInt_FromLong | |
287 | /*@@*/ | |
288 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
289 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
290 | /*@@*/ | |
291 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
292 | #define SWIG_From_int PyInt_FromLong | |
293 | /*@@*/ | |
294 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
295 | #define SWIG_From_long PyInt_FromLong | |
296 | /*@@*/ | |
297 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
298 | #define SWIG_From_float PyFloat_FromDouble | |
299 | /*@@*/ | |
300 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
301 | #define SWIG_From_double PyFloat_FromDouble | |
302 | /*@@*/ | |
303 | ||
304 | ||
305 | #include "wx/wxPython/wxPython.h" | |
306 | #include "wx/wxPython/pyclasses.h" | |
307 | #include "wx/wxPython/pyistream.h" | |
308 | ||
309 | #include <wx/xml/xml.h> | |
310 | #include <wx/xrc/xmlres.h> | |
311 | ||
312 | static const wxString wxPyEmptyString(wxEmptyString); | |
313 | static const wxString wxPyUTF8String(wxT("UTF-8")); | |
314 | static const wxString wxPyStyleString(wxT("style")); | |
315 | static const wxString wxPySizeString(wxT("size")); | |
316 | static const wxString wxPyPosString(wxT("pos")); | |
317 | static const wxString wxPyBitmapString(wxT("bitmap")); | |
318 | static const wxString wxPyIconString(wxT("icon")); | |
319 | static const wxString wxPyFontString(wxT("font")); | |
320 | ||
321 | #include <limits.h> | |
322 | ||
323 | ||
324 | SWIGSTATICINLINE(int) | |
325 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
326 | const char *errmsg) | |
327 | { | |
328 | if (value < min_value) { | |
329 | if (errmsg) { | |
330 | PyErr_Format(PyExc_OverflowError, | |
331 | "value %ld is less than '%s' minimum %ld", | |
332 | value, errmsg, min_value); | |
333 | } | |
334 | return 0; | |
335 | } else if (value > max_value) { | |
336 | if (errmsg) { | |
337 | PyErr_Format(PyExc_OverflowError, | |
338 | "value %ld is greater than '%s' maximum %ld", | |
339 | value, errmsg, max_value); | |
340 | } | |
341 | return 0; | |
342 | } | |
343 | return 1; | |
344 | } | |
345 | ||
346 | ||
347 | // See my_fragments.i | |
348 | SWIGSTATICINLINE(int) | |
349 | SWIG_AsVal_long(PyObject* obj, long* val) | |
350 | { | |
351 | if (PyNumber_Check(obj)) { | |
352 | if (val) *val = PyInt_AsLong(obj); | |
353 | return 1; | |
354 | } | |
355 | else { | |
356 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
357 | obj->ob_type->tp_name); | |
358 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
359 | Py_DECREF(errmsg); | |
360 | } | |
361 | return 0; | |
362 | } | |
363 | ||
364 | ||
365 | #if INT_MAX != LONG_MAX | |
366 | SWIGSTATICINLINE(int) | |
367 | SWIG_AsVal_int(PyObject *obj, int *val) | |
368 | { | |
369 | const char* errmsg = val ? "int" : 0; | |
370 | long v; | |
371 | if (SWIG_AsVal_long(obj, &v)) { | |
372 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
373 | if (val) *val = swig_numeric_cast(v, int); | |
374 | return 1; | |
375 | } else { | |
376 | return 0; | |
377 | } | |
378 | } else { | |
379 | PyErr_Clear(); | |
380 | } | |
381 | if (val) { | |
382 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
383 | } | |
384 | return 0; | |
385 | } | |
386 | #else | |
387 | SWIGSTATICINLINE(int) | |
388 | SWIG_AsVal_int(PyObject *obj, int *val) | |
389 | { | |
390 | return SWIG_AsVal_long(obj,(long*)val); | |
391 | } | |
392 | #endif | |
393 | ||
394 | ||
395 | SWIGSTATICINLINE(int) | |
396 | SWIG_As_int(PyObject* obj) | |
397 | { | |
398 | int v; | |
399 | if (!SWIG_AsVal_int(obj, &v)) { | |
400 | /* | |
401 | this is needed to make valgrind/purify happier. the other | |
402 | solution is throw an exception, but since this code should work | |
403 | with plain C .... | |
404 | */ | |
405 | memset((void*)&v, 0, sizeof(int)); | |
406 | } | |
407 | return v; | |
408 | } | |
409 | ||
410 | ||
411 | SWIGSTATICINLINE(int) | |
412 | SWIG_Check_int(PyObject* obj) | |
413 | { | |
414 | return SWIG_AsVal_int(obj, (int*)0); | |
415 | } | |
416 | ||
417 | bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){ | |
418 | static int s_memFileIdx = 0; | |
419 | ||
420 | // Check for memory FS. If not present, load the handler: | |
421 | wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), | |
422 | wxT("dummy data")); | |
423 | wxFileSystem fsys; | |
424 | wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); | |
425 | wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); | |
426 | if (f) | |
427 | delete f; | |
428 | else | |
429 | wxFileSystem::AddHandler(new wxMemoryFSHandler); | |
430 | ||
431 | // Now put the resource data into the memory FS | |
432 | wxString filename(wxT("XRC_resource/data_string_")); | |
433 | filename << s_memFileIdx; | |
434 | s_memFileIdx += 1; | |
435 | wxMemoryFSHandler::AddFile(filename, data); | |
436 | ||
437 | // Load the "file" into the resource object | |
438 | bool retval = self->Load(wxT("memory:") + filename ); | |
439 | ||
440 | return retval; | |
441 | } | |
442 | ||
443 | class wxPyXmlSubclassFactory : public wxXmlSubclassFactory | |
444 | { | |
445 | public: | |
446 | wxPyXmlSubclassFactory() {} | |
447 | DEC_PYCALLBACK_OBJECT_STRING_pure(Create); | |
448 | PYPRIVATE; | |
449 | }; | |
450 | ||
451 | IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create); | |
452 | ||
453 | // C++ version of Python aware wxXmlResourceHandler, for the pure virtual | |
454 | // callbacks, as well as to make some protected things public so they can | |
455 | // be wrapped. | |
456 | class wxPyXmlResourceHandler : public wxXmlResourceHandler { | |
457 | public: | |
458 | wxPyXmlResourceHandler() : wxXmlResourceHandler() {} | |
459 | //~wxPyXmlResourceHandler(); | |
460 | ||
461 | // Base class virtuals | |
462 | ||
463 | DEC_PYCALLBACK_OBJECT__pure(DoCreateResource); | |
464 | DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle); | |
465 | ||
466 | ||
467 | // accessors for protected members | |
468 | ||
469 | wxXmlResource* GetResource() { return m_resource; } | |
470 | wxXmlNode* GetNode() { return m_node; } | |
471 | wxString GetClass() { return m_class; } | |
472 | wxObject* GetParent() { return m_parent; } | |
473 | wxObject* GetInstance() { return m_instance; } | |
474 | wxWindow* GetParentAsWindow() { return m_parentAsWindow; } | |
d3b6e4ff | 475 | // wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; } |
2ef75293 RD |
476 | |
477 | ||
478 | // turn some protected methods into public via delegation | |
479 | ||
480 | bool IsOfClass(wxXmlNode *node, const wxString& classname) | |
481 | { return wxXmlResourceHandler::IsOfClass(node, classname); } | |
482 | ||
483 | wxString GetNodeContent(wxXmlNode *node) | |
484 | { return wxXmlResourceHandler::GetNodeContent(node); } | |
485 | ||
486 | bool HasParam(const wxString& param) | |
487 | { return wxXmlResourceHandler::HasParam(param); } | |
488 | ||
489 | wxXmlNode *GetParamNode(const wxString& param) | |
490 | { return wxXmlResourceHandler::GetParamNode(param); } | |
491 | ||
492 | wxString GetParamValue(const wxString& param) | |
493 | { return wxXmlResourceHandler::GetParamValue(param); } | |
494 | ||
495 | void AddStyle(const wxString& name, int value) | |
496 | { wxXmlResourceHandler::AddStyle(name, value); } | |
497 | ||
498 | void AddWindowStyles() | |
499 | { wxXmlResourceHandler::AddWindowStyles(); } | |
500 | ||
501 | int GetStyle(const wxString& param = wxT("style"), int defaults = 0) | |
502 | { return wxXmlResourceHandler::GetStyle(param, defaults); } | |
503 | ||
ae8162c8 | 504 | wxString GetText(const wxString& param, bool translate = true) |
2ef75293 RD |
505 | { return wxXmlResourceHandler::GetText(param, translate); } |
506 | ||
507 | int GetID() | |
508 | { return wxXmlResourceHandler::GetID(); } | |
509 | ||
510 | wxString GetName() | |
511 | { return wxXmlResourceHandler::GetName(); } | |
512 | ||
ae8162c8 | 513 | bool GetBool(const wxString& param, bool defaultv = false) |
2ef75293 RD |
514 | { return wxXmlResourceHandler::GetBool(param, defaultv); } |
515 | ||
516 | long GetLong( const wxString& param, long defaultv = 0 ) | |
517 | { return wxXmlResourceHandler::GetLong(param, defaultv); } | |
518 | ||
519 | wxColour GetColour(const wxString& param) | |
520 | { return wxXmlResourceHandler::GetColour(param); } | |
521 | ||
522 | wxSize GetSize(const wxString& param = wxT("size")) | |
523 | { return wxXmlResourceHandler::GetSize(param); } | |
524 | ||
525 | wxPoint GetPosition(const wxString& param = wxT("pos")) | |
526 | { return wxXmlResourceHandler::GetPosition(param); } | |
527 | ||
528 | wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) | |
529 | { return wxXmlResourceHandler::GetDimension(param, defaultv); } | |
530 | ||
531 | wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), | |
532 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
533 | wxSize size = wxDefaultSize) | |
534 | { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); } | |
535 | ||
536 | wxIcon GetIcon(const wxString& param = wxT("icon"), | |
537 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
538 | wxSize size = wxDefaultSize) | |
539 | { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } | |
540 | ||
541 | wxFont GetFont(const wxString& param = wxT("font")) | |
542 | { return wxXmlResourceHandler::GetFont(param); } | |
543 | ||
544 | void SetupWindow(wxWindow *wnd) | |
545 | { wxXmlResourceHandler::SetupWindow(wnd); } | |
546 | ||
ae8162c8 | 547 | void CreateChildren(wxObject *parent, bool this_hnd_only = false) |
2ef75293 RD |
548 | { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } |
549 | ||
550 | void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) | |
551 | { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); } | |
552 | ||
553 | wxObject *CreateResFromNode(wxXmlNode *node, | |
554 | wxObject *parent, wxObject *instance = NULL) | |
555 | { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); } | |
556 | ||
557 | wxFileSystem& GetCurFileSystem() | |
558 | { return wxXmlResourceHandler::GetCurFileSystem(); } | |
559 | ||
560 | ||
561 | PYPRIVATE; | |
562 | }; | |
563 | ||
564 | IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource); | |
565 | IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle); | |
566 | ||
567 | ||
568 | ||
569 | SWIGSTATICINLINE(int) | |
570 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
571 | { | |
572 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
573 | if (obj == Py_True) { | |
574 | if (val) *val = true; | |
575 | return 1; | |
576 | } | |
577 | if (obj == Py_False) { | |
578 | if (val) *val = false; | |
579 | return 1; | |
580 | } | |
581 | int res = 0; | |
582 | if (SWIG_AsVal_int(obj, &res)) { | |
583 | if (val) *val = (bool)res; | |
584 | return 1; | |
585 | } | |
586 | if (val) { | |
587 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
588 | } | |
589 | return 0; | |
590 | } | |
591 | ||
592 | ||
593 | SWIGSTATICINLINE(bool) | |
594 | SWIG_As_bool(PyObject* obj) | |
595 | { | |
596 | bool v; | |
597 | if (!SWIG_AsVal_bool(obj, &v)) { | |
598 | /* | |
599 | this is needed to make valgrind/purify happier. the other | |
600 | solution is throw an exception, but since this code should work | |
601 | with plain C .... | |
602 | */ | |
603 | memset((void*)&v, 0, sizeof(bool)); | |
604 | } | |
605 | return v; | |
606 | } | |
607 | ||
608 | ||
609 | SWIGSTATICINLINE(int) | |
610 | SWIG_Check_bool(PyObject* obj) | |
611 | { | |
612 | return SWIG_AsVal_bool(obj, (bool*)0); | |
613 | } | |
614 | ||
615 | ||
616 | SWIGSTATICINLINE(long) | |
617 | SWIG_As_long(PyObject* obj) | |
618 | { | |
619 | long v; | |
620 | if (!SWIG_AsVal_long(obj, &v)) { | |
621 | /* | |
622 | this is needed to make valgrind/purify happier. the other | |
623 | solution is throw an exception, but since this code should work | |
624 | with plain C .... | |
625 | */ | |
626 | memset((void*)&v, 0, sizeof(long)); | |
627 | } | |
628 | return v; | |
629 | } | |
630 | ||
631 | ||
632 | SWIGSTATICINLINE(int) | |
633 | SWIG_Check_long(PyObject* obj) | |
634 | { | |
635 | return SWIG_AsVal_long(obj, (long*)0); | |
636 | } | |
637 | ||
638 | #ifdef __cplusplus | |
639 | extern "C" { | |
640 | #endif | |
641 | static int _wrap_UTF8String_set(PyObject *) { | |
642 | PyErr_SetString(PyExc_TypeError,"Variable UTF8String is read-only."); | |
643 | return 1; | |
644 | } | |
645 | ||
646 | ||
647 | static PyObject *_wrap_UTF8String_get() { | |
648 | PyObject *pyobj; | |
649 | ||
650 | { | |
651 | #if wxUSE_UNICODE | |
652 | pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); | |
653 | #else | |
654 | pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); | |
655 | #endif | |
656 | } | |
657 | return pyobj; | |
658 | } | |
659 | ||
660 | ||
661 | static int _wrap_StyleString_set(PyObject *) { | |
662 | PyErr_SetString(PyExc_TypeError,"Variable StyleString is read-only."); | |
663 | return 1; | |
664 | } | |
665 | ||
666 | ||
667 | static PyObject *_wrap_StyleString_get() { | |
668 | PyObject *pyobj; | |
669 | ||
670 | { | |
671 | #if wxUSE_UNICODE | |
672 | pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); | |
673 | #else | |
674 | pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); | |
675 | #endif | |
676 | } | |
677 | return pyobj; | |
678 | } | |
679 | ||
680 | ||
681 | static int _wrap_SizeString_set(PyObject *) { | |
682 | PyErr_SetString(PyExc_TypeError,"Variable SizeString is read-only."); | |
683 | return 1; | |
684 | } | |
685 | ||
686 | ||
687 | static PyObject *_wrap_SizeString_get() { | |
688 | PyObject *pyobj; | |
689 | ||
690 | { | |
691 | #if wxUSE_UNICODE | |
692 | pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); | |
693 | #else | |
694 | pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); | |
695 | #endif | |
696 | } | |
697 | return pyobj; | |
698 | } | |
699 | ||
700 | ||
701 | static int _wrap_PosString_set(PyObject *) { | |
702 | PyErr_SetString(PyExc_TypeError,"Variable PosString is read-only."); | |
703 | return 1; | |
704 | } | |
705 | ||
706 | ||
707 | static PyObject *_wrap_PosString_get() { | |
708 | PyObject *pyobj; | |
709 | ||
710 | { | |
711 | #if wxUSE_UNICODE | |
712 | pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); | |
713 | #else | |
714 | pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); | |
715 | #endif | |
716 | } | |
717 | return pyobj; | |
718 | } | |
719 | ||
720 | ||
721 | static int _wrap_BitmapString_set(PyObject *) { | |
722 | PyErr_SetString(PyExc_TypeError,"Variable BitmapString is read-only."); | |
723 | return 1; | |
724 | } | |
725 | ||
726 | ||
727 | static PyObject *_wrap_BitmapString_get() { | |
728 | PyObject *pyobj; | |
729 | ||
730 | { | |
731 | #if wxUSE_UNICODE | |
732 | pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); | |
733 | #else | |
734 | pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); | |
735 | #endif | |
736 | } | |
737 | return pyobj; | |
738 | } | |
739 | ||
740 | ||
741 | static int _wrap_IconString_set(PyObject *) { | |
742 | PyErr_SetString(PyExc_TypeError,"Variable IconString is read-only."); | |
743 | return 1; | |
744 | } | |
745 | ||
746 | ||
747 | static PyObject *_wrap_IconString_get() { | |
748 | PyObject *pyobj; | |
749 | ||
750 | { | |
751 | #if wxUSE_UNICODE | |
752 | pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); | |
753 | #else | |
754 | pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); | |
755 | #endif | |
756 | } | |
757 | return pyobj; | |
758 | } | |
759 | ||
760 | ||
761 | static int _wrap_FontString_set(PyObject *) { | |
762 | PyErr_SetString(PyExc_TypeError,"Variable FontString is read-only."); | |
763 | return 1; | |
764 | } | |
765 | ||
766 | ||
767 | static PyObject *_wrap_FontString_get() { | |
768 | PyObject *pyobj; | |
769 | ||
770 | { | |
771 | #if wxUSE_UNICODE | |
772 | pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); | |
773 | #else | |
774 | pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); | |
775 | #endif | |
776 | } | |
777 | return pyobj; | |
778 | } | |
779 | ||
780 | ||
781 | static PyObject *_wrap_new_XmlResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
782 | PyObject *resultobj; | |
783 | wxString *arg1 = 0 ; | |
784 | int arg2 = (int) wxXRC_USE_LOCALE ; | |
785 | wxXmlResource *result; | |
ae8162c8 | 786 | bool temp1 = false ; |
2ef75293 RD |
787 | PyObject * obj0 = 0 ; |
788 | PyObject * obj1 = 0 ; | |
789 | char *kwnames[] = { | |
790 | (char *) "filemask",(char *) "flags", NULL | |
791 | }; | |
792 | ||
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlResource",kwnames,&obj0,&obj1)) goto fail; | |
794 | { | |
795 | arg1 = wxString_in_helper(obj0); | |
796 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 797 | temp1 = true; |
2ef75293 RD |
798 | } |
799 | if (obj1) { | |
800 | arg2 = (int)SWIG_As_int(obj1); | |
801 | if (PyErr_Occurred()) SWIG_fail; | |
802 | } | |
803 | { | |
804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
805 | result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2); | |
806 | ||
807 | wxPyEndAllowThreads(__tstate); | |
808 | if (PyErr_Occurred()) SWIG_fail; | |
809 | } | |
810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1); | |
811 | { | |
812 | if (temp1) | |
813 | delete arg1; | |
814 | } | |
815 | return resultobj; | |
816 | fail: | |
817 | { | |
818 | if (temp1) | |
819 | delete arg1; | |
820 | } | |
821 | return NULL; | |
822 | } | |
823 | ||
824 | ||
825 | static PyObject *_wrap_new_EmptyXmlResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
826 | PyObject *resultobj; | |
827 | int arg1 = (int) wxXRC_USE_LOCALE ; | |
828 | wxXmlResource *result; | |
829 | PyObject * obj0 = 0 ; | |
830 | char *kwnames[] = { | |
831 | (char *) "flags", NULL | |
832 | }; | |
833 | ||
834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_EmptyXmlResource",kwnames,&obj0)) goto fail; | |
835 | if (obj0) { | |
836 | arg1 = (int)SWIG_As_int(obj0); | |
837 | if (PyErr_Occurred()) SWIG_fail; | |
838 | } | |
839 | { | |
840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
841 | result = (wxXmlResource *)new wxXmlResource(arg1); | |
842 | ||
843 | wxPyEndAllowThreads(__tstate); | |
844 | if (PyErr_Occurred()) SWIG_fail; | |
845 | } | |
846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1); | |
847 | return resultobj; | |
848 | fail: | |
849 | return NULL; | |
850 | } | |
851 | ||
852 | ||
853 | static PyObject *_wrap_delete_XmlResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
854 | PyObject *resultobj; | |
855 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
856 | PyObject * obj0 = 0 ; | |
857 | char *kwnames[] = { | |
858 | (char *) "self", NULL | |
859 | }; | |
860 | ||
861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlResource",kwnames,&obj0)) goto fail; | |
862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
864 | { | |
865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
866 | delete arg1; | |
867 | ||
868 | wxPyEndAllowThreads(__tstate); | |
869 | if (PyErr_Occurred()) SWIG_fail; | |
870 | } | |
871 | Py_INCREF(Py_None); resultobj = Py_None; | |
872 | return resultobj; | |
873 | fail: | |
874 | return NULL; | |
875 | } | |
876 | ||
877 | ||
878 | static PyObject *_wrap_XmlResource_Load(PyObject *, PyObject *args, PyObject *kwargs) { | |
879 | PyObject *resultobj; | |
880 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
881 | wxString *arg2 = 0 ; | |
882 | bool result; | |
ae8162c8 | 883 | bool temp2 = false ; |
2ef75293 RD |
884 | PyObject * obj0 = 0 ; |
885 | PyObject * obj1 = 0 ; | |
886 | char *kwnames[] = { | |
887 | (char *) "self",(char *) "filemask", NULL | |
888 | }; | |
889 | ||
890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) goto fail; | |
891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
893 | { | |
894 | arg2 = wxString_in_helper(obj1); | |
895 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 896 | temp2 = true; |
2ef75293 RD |
897 | } |
898 | { | |
899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
900 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
901 | ||
902 | wxPyEndAllowThreads(__tstate); | |
903 | if (PyErr_Occurred()) SWIG_fail; | |
904 | } | |
905 | { | |
906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
907 | } | |
908 | { | |
909 | if (temp2) | |
910 | delete arg2; | |
911 | } | |
912 | return resultobj; | |
913 | fail: | |
914 | { | |
915 | if (temp2) | |
916 | delete arg2; | |
917 | } | |
918 | return NULL; | |
919 | } | |
920 | ||
921 | ||
922 | static PyObject *_wrap_XmlResource_LoadFromString(PyObject *, PyObject *args, PyObject *kwargs) { | |
923 | PyObject *resultobj; | |
924 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
925 | wxString *arg2 = 0 ; | |
926 | bool result; | |
ae8162c8 | 927 | bool temp2 = false ; |
2ef75293 RD |
928 | PyObject * obj0 = 0 ; |
929 | PyObject * obj1 = 0 ; | |
930 | char *kwnames[] = { | |
931 | (char *) "self",(char *) "data", NULL | |
932 | }; | |
933 | ||
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) goto fail; | |
935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
937 | { | |
938 | arg2 = wxString_in_helper(obj1); | |
939 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 940 | temp2 = true; |
2ef75293 RD |
941 | } |
942 | { | |
943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
944 | result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2); | |
945 | ||
946 | wxPyEndAllowThreads(__tstate); | |
947 | if (PyErr_Occurred()) SWIG_fail; | |
948 | } | |
949 | { | |
950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
951 | } | |
952 | { | |
953 | if (temp2) | |
954 | delete arg2; | |
955 | } | |
956 | return resultobj; | |
957 | fail: | |
958 | { | |
959 | if (temp2) | |
960 | delete arg2; | |
961 | } | |
962 | return NULL; | |
963 | } | |
964 | ||
965 | ||
966 | static PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *, PyObject *args, PyObject *kwargs) { | |
967 | PyObject *resultobj; | |
968 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
969 | PyObject * obj0 = 0 ; | |
970 | char *kwnames[] = { | |
971 | (char *) "self", NULL | |
972 | }; | |
973 | ||
974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_InitAllHandlers",kwnames,&obj0)) goto fail; | |
975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
977 | { | |
978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
979 | (arg1)->InitAllHandlers(); | |
980 | ||
981 | wxPyEndAllowThreads(__tstate); | |
982 | if (PyErr_Occurred()) SWIG_fail; | |
983 | } | |
984 | Py_INCREF(Py_None); resultobj = Py_None; | |
985 | return resultobj; | |
986 | fail: | |
987 | return NULL; | |
988 | } | |
989 | ||
990 | ||
991 | static PyObject *_wrap_XmlResource_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
992 | PyObject *resultobj; | |
993 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
994 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
995 | PyObject * obj0 = 0 ; | |
996 | PyObject * obj1 = 0 ; | |
997 | char *kwnames[] = { | |
998 | (char *) "self",(char *) "handler", NULL | |
999 | }; | |
1000 | ||
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) goto fail; | |
1002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyXmlResourceHandler, | |
1005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1006 | { | |
1007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1008 | (arg1)->AddHandler(arg2); | |
1009 | ||
1010 | wxPyEndAllowThreads(__tstate); | |
1011 | if (PyErr_Occurred()) SWIG_fail; | |
1012 | } | |
1013 | Py_INCREF(Py_None); resultobj = Py_None; | |
1014 | return resultobj; | |
1015 | fail: | |
1016 | return NULL; | |
1017 | } | |
1018 | ||
1019 | ||
1020 | static PyObject *_wrap_XmlResource_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
1021 | PyObject *resultobj; | |
1022 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1023 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
1024 | PyObject * obj0 = 0 ; | |
1025 | PyObject * obj1 = 0 ; | |
1026 | char *kwnames[] = { | |
1027 | (char *) "self",(char *) "handler", NULL | |
1028 | }; | |
1029 | ||
1030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) goto fail; | |
1031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1033 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyXmlResourceHandler, | |
1034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1035 | { | |
1036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1037 | (arg1)->InsertHandler(arg2); | |
1038 | ||
1039 | wxPyEndAllowThreads(__tstate); | |
1040 | if (PyErr_Occurred()) SWIG_fail; | |
1041 | } | |
1042 | Py_INCREF(Py_None); resultobj = Py_None; | |
1043 | return resultobj; | |
1044 | fail: | |
1045 | return NULL; | |
1046 | } | |
1047 | ||
1048 | ||
1049 | static PyObject *_wrap_XmlResource_ClearHandlers(PyObject *, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject *resultobj; | |
1051 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1052 | PyObject * obj0 = 0 ; | |
1053 | char *kwnames[] = { | |
1054 | (char *) "self", NULL | |
1055 | }; | |
1056 | ||
1057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_ClearHandlers",kwnames,&obj0)) goto fail; | |
1058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1060 | { | |
1061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1062 | (arg1)->ClearHandlers(); | |
1063 | ||
1064 | wxPyEndAllowThreads(__tstate); | |
1065 | if (PyErr_Occurred()) SWIG_fail; | |
1066 | } | |
1067 | Py_INCREF(Py_None); resultobj = Py_None; | |
1068 | return resultobj; | |
1069 | fail: | |
1070 | return NULL; | |
1071 | } | |
1072 | ||
1073 | ||
1074 | static PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *, PyObject *args, PyObject *kwargs) { | |
1075 | PyObject *resultobj; | |
1076 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
1077 | PyObject * obj0 = 0 ; | |
1078 | char *kwnames[] = { | |
1079 | (char *) "factory", NULL | |
1080 | }; | |
1081 | ||
1082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) goto fail; | |
1083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlSubclassFactory, | |
1084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1085 | { | |
1086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1087 | wxXmlResource::AddSubclassFactory(arg1); | |
1088 | ||
1089 | wxPyEndAllowThreads(__tstate); | |
1090 | if (PyErr_Occurred()) SWIG_fail; | |
1091 | } | |
1092 | Py_INCREF(Py_None); resultobj = Py_None; | |
1093 | return resultobj; | |
1094 | fail: | |
1095 | return NULL; | |
1096 | } | |
1097 | ||
1098 | ||
1099 | static PyObject *_wrap_XmlResource_LoadMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
1100 | PyObject *resultobj; | |
1101 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1102 | wxString *arg2 = 0 ; | |
1103 | wxMenu *result; | |
ae8162c8 | 1104 | bool temp2 = false ; |
2ef75293 RD |
1105 | PyObject * obj0 = 0 ; |
1106 | PyObject * obj1 = 0 ; | |
1107 | char *kwnames[] = { | |
1108 | (char *) "self",(char *) "name", NULL | |
1109 | }; | |
1110 | ||
1111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) goto fail; | |
1112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1114 | { | |
1115 | arg2 = wxString_in_helper(obj1); | |
1116 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1117 | temp2 = true; |
2ef75293 RD |
1118 | } |
1119 | { | |
1120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1121 | result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2); | |
1122 | ||
1123 | wxPyEndAllowThreads(__tstate); | |
1124 | if (PyErr_Occurred()) SWIG_fail; | |
1125 | } | |
1126 | { | |
1127 | resultobj = wxPyMake_wxObject(result, 0); | |
1128 | } | |
1129 | { | |
1130 | if (temp2) | |
1131 | delete arg2; | |
1132 | } | |
1133 | return resultobj; | |
1134 | fail: | |
1135 | { | |
1136 | if (temp2) | |
1137 | delete arg2; | |
1138 | } | |
1139 | return NULL; | |
1140 | } | |
1141 | ||
1142 | ||
1143 | static PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
1144 | PyObject *resultobj; | |
1145 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1146 | wxString *arg2 = 0 ; | |
1147 | wxMenuBar *result; | |
ae8162c8 | 1148 | bool temp2 = false ; |
2ef75293 RD |
1149 | PyObject * obj0 = 0 ; |
1150 | PyObject * obj1 = 0 ; | |
1151 | char *kwnames[] = { | |
1152 | (char *) "self",(char *) "name", NULL | |
1153 | }; | |
1154 | ||
1155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
1156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1158 | { | |
1159 | arg2 = wxString_in_helper(obj1); | |
1160 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1161 | temp2 = true; |
2ef75293 RD |
1162 | } |
1163 | { | |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1165 | result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2); | |
1166 | ||
1167 | wxPyEndAllowThreads(__tstate); | |
1168 | if (PyErr_Occurred()) SWIG_fail; | |
1169 | } | |
1170 | { | |
1171 | resultobj = wxPyMake_wxObject(result, 0); | |
1172 | } | |
1173 | { | |
1174 | if (temp2) | |
1175 | delete arg2; | |
1176 | } | |
1177 | return resultobj; | |
1178 | fail: | |
1179 | { | |
1180 | if (temp2) | |
1181 | delete arg2; | |
1182 | } | |
1183 | return NULL; | |
1184 | } | |
1185 | ||
1186 | ||
1187 | static PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
1188 | PyObject *resultobj; | |
1189 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1190 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1191 | wxString *arg3 = 0 ; | |
1192 | wxMenuBar *result; | |
ae8162c8 | 1193 | bool temp3 = false ; |
2ef75293 RD |
1194 | PyObject * obj0 = 0 ; |
1195 | PyObject * obj1 = 0 ; | |
1196 | PyObject * obj2 = 0 ; | |
1197 | char *kwnames[] = { | |
1198 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1199 | }; | |
1200 | ||
1201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1206 | { | |
1207 | arg3 = wxString_in_helper(obj2); | |
1208 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1209 | temp3 = true; |
2ef75293 RD |
1210 | } |
1211 | { | |
1212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1213 | result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3); | |
1214 | ||
1215 | wxPyEndAllowThreads(__tstate); | |
1216 | if (PyErr_Occurred()) SWIG_fail; | |
1217 | } | |
1218 | { | |
1219 | resultobj = wxPyMake_wxObject(result, 0); | |
1220 | } | |
1221 | { | |
1222 | if (temp3) | |
1223 | delete arg3; | |
1224 | } | |
1225 | return resultobj; | |
1226 | fail: | |
1227 | { | |
1228 | if (temp3) | |
1229 | delete arg3; | |
1230 | } | |
1231 | return NULL; | |
1232 | } | |
1233 | ||
1234 | ||
1235 | static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
1236 | PyObject *resultobj; | |
1237 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1239 | wxString *arg3 = 0 ; | |
1240 | wxToolBar *result; | |
ae8162c8 | 1241 | bool temp3 = false ; |
2ef75293 RD |
1242 | PyObject * obj0 = 0 ; |
1243 | PyObject * obj1 = 0 ; | |
1244 | PyObject * obj2 = 0 ; | |
1245 | char *kwnames[] = { | |
1246 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1247 | }; | |
1248 | ||
1249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1254 | { | |
1255 | arg3 = wxString_in_helper(obj2); | |
1256 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1257 | temp3 = true; |
2ef75293 RD |
1258 | } |
1259 | { | |
1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1261 | result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3); | |
1262 | ||
1263 | wxPyEndAllowThreads(__tstate); | |
1264 | if (PyErr_Occurred()) SWIG_fail; | |
1265 | } | |
1266 | { | |
1267 | resultobj = wxPyMake_wxObject(result, 0); | |
1268 | } | |
1269 | { | |
1270 | if (temp3) | |
1271 | delete arg3; | |
1272 | } | |
1273 | return resultobj; | |
1274 | fail: | |
1275 | { | |
1276 | if (temp3) | |
1277 | delete arg3; | |
1278 | } | |
1279 | return NULL; | |
1280 | } | |
1281 | ||
1282 | ||
1283 | static PyObject *_wrap_XmlResource_LoadDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
1284 | PyObject *resultobj; | |
1285 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1287 | wxString *arg3 = 0 ; | |
1288 | wxDialog *result; | |
ae8162c8 | 1289 | bool temp3 = false ; |
2ef75293 RD |
1290 | PyObject * obj0 = 0 ; |
1291 | PyObject * obj1 = 0 ; | |
1292 | PyObject * obj2 = 0 ; | |
1293 | char *kwnames[] = { | |
1294 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1302 | { | |
1303 | arg3 = wxString_in_helper(obj2); | |
1304 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1305 | temp3 = true; |
2ef75293 RD |
1306 | } |
1307 | { | |
1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1309 | result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3); | |
1310 | ||
1311 | wxPyEndAllowThreads(__tstate); | |
1312 | if (PyErr_Occurred()) SWIG_fail; | |
1313 | } | |
1314 | { | |
1315 | resultobj = wxPyMake_wxObject(result, 0); | |
1316 | } | |
1317 | { | |
1318 | if (temp3) | |
1319 | delete arg3; | |
1320 | } | |
1321 | return resultobj; | |
1322 | fail: | |
1323 | { | |
1324 | if (temp3) | |
1325 | delete arg3; | |
1326 | } | |
1327 | return NULL; | |
1328 | } | |
1329 | ||
1330 | ||
1331 | static PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject *resultobj; | |
1333 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1334 | wxDialog *arg2 = (wxDialog *) 0 ; | |
1335 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1336 | wxString *arg4 = 0 ; | |
1337 | bool result; | |
ae8162c8 | 1338 | bool temp4 = false ; |
2ef75293 RD |
1339 | PyObject * obj0 = 0 ; |
1340 | PyObject * obj1 = 0 ; | |
1341 | PyObject * obj2 = 0 ; | |
1342 | PyObject * obj3 = 0 ; | |
1343 | char *kwnames[] = { | |
1344 | (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL | |
1345 | }; | |
1346 | ||
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDialog, | |
1351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1352 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1354 | { | |
1355 | arg4 = wxString_in_helper(obj3); | |
1356 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1357 | temp4 = true; |
2ef75293 RD |
1358 | } |
1359 | { | |
1360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1361 | result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4); | |
1362 | ||
1363 | wxPyEndAllowThreads(__tstate); | |
1364 | if (PyErr_Occurred()) SWIG_fail; | |
1365 | } | |
1366 | { | |
1367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1368 | } | |
1369 | { | |
1370 | if (temp4) | |
1371 | delete arg4; | |
1372 | } | |
1373 | return resultobj; | |
1374 | fail: | |
1375 | { | |
1376 | if (temp4) | |
1377 | delete arg4; | |
1378 | } | |
1379 | return NULL; | |
1380 | } | |
1381 | ||
1382 | ||
1383 | static PyObject *_wrap_XmlResource_LoadPanel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1384 | PyObject *resultobj; | |
1385 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1386 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1387 | wxString *arg3 = 0 ; | |
1388 | wxPanel *result; | |
ae8162c8 | 1389 | bool temp3 = false ; |
2ef75293 RD |
1390 | PyObject * obj0 = 0 ; |
1391 | PyObject * obj1 = 0 ; | |
1392 | PyObject * obj2 = 0 ; | |
1393 | char *kwnames[] = { | |
1394 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1395 | }; | |
1396 | ||
1397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1402 | { | |
1403 | arg3 = wxString_in_helper(obj2); | |
1404 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1405 | temp3 = true; |
2ef75293 RD |
1406 | } |
1407 | { | |
1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1409 | result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3); | |
1410 | ||
1411 | wxPyEndAllowThreads(__tstate); | |
1412 | if (PyErr_Occurred()) SWIG_fail; | |
1413 | } | |
1414 | { | |
1415 | resultobj = wxPyMake_wxObject(result, 0); | |
1416 | } | |
1417 | { | |
1418 | if (temp3) | |
1419 | delete arg3; | |
1420 | } | |
1421 | return resultobj; | |
1422 | fail: | |
1423 | { | |
1424 | if (temp3) | |
1425 | delete arg3; | |
1426 | } | |
1427 | return NULL; | |
1428 | } | |
1429 | ||
1430 | ||
1431 | static PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject *resultobj; | |
1433 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1434 | wxPanel *arg2 = (wxPanel *) 0 ; | |
1435 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1436 | wxString *arg4 = 0 ; | |
1437 | bool result; | |
ae8162c8 | 1438 | bool temp4 = false ; |
2ef75293 RD |
1439 | PyObject * obj0 = 0 ; |
1440 | PyObject * obj1 = 0 ; | |
1441 | PyObject * obj2 = 0 ; | |
1442 | PyObject * obj3 = 0 ; | |
1443 | char *kwnames[] = { | |
1444 | (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL | |
1445 | }; | |
1446 | ||
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPanel, | |
1451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1452 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1454 | { | |
1455 | arg4 = wxString_in_helper(obj3); | |
1456 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1457 | temp4 = true; |
2ef75293 RD |
1458 | } |
1459 | { | |
1460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1461 | result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4); | |
1462 | ||
1463 | wxPyEndAllowThreads(__tstate); | |
1464 | if (PyErr_Occurred()) SWIG_fail; | |
1465 | } | |
1466 | { | |
1467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1468 | } | |
1469 | { | |
1470 | if (temp4) | |
1471 | delete arg4; | |
1472 | } | |
1473 | return resultobj; | |
1474 | fail: | |
1475 | { | |
1476 | if (temp4) | |
1477 | delete arg4; | |
1478 | } | |
1479 | return NULL; | |
1480 | } | |
1481 | ||
1482 | ||
1483 | static PyObject *_wrap_XmlResource_LoadFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject *resultobj; | |
1485 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1486 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1487 | wxString *arg3 = 0 ; | |
1488 | wxFrame *result; | |
ae8162c8 | 1489 | bool temp3 = false ; |
2ef75293 RD |
1490 | PyObject * obj0 = 0 ; |
1491 | PyObject * obj1 = 0 ; | |
1492 | PyObject * obj2 = 0 ; | |
1493 | char *kwnames[] = { | |
1494 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1495 | }; | |
1496 | ||
1497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1502 | { | |
1503 | arg3 = wxString_in_helper(obj2); | |
1504 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1505 | temp3 = true; |
2ef75293 RD |
1506 | } |
1507 | { | |
1508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1509 | result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3); | |
1510 | ||
1511 | wxPyEndAllowThreads(__tstate); | |
1512 | if (PyErr_Occurred()) SWIG_fail; | |
1513 | } | |
1514 | { | |
1515 | resultobj = wxPyMake_wxObject(result, 0); | |
1516 | } | |
1517 | { | |
1518 | if (temp3) | |
1519 | delete arg3; | |
1520 | } | |
1521 | return resultobj; | |
1522 | fail: | |
1523 | { | |
1524 | if (temp3) | |
1525 | delete arg3; | |
1526 | } | |
1527 | return NULL; | |
1528 | } | |
1529 | ||
1530 | ||
1531 | static PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject *resultobj; | |
1533 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1534 | wxFrame *arg2 = (wxFrame *) 0 ; | |
1535 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1536 | wxString *arg4 = 0 ; | |
1537 | bool result; | |
ae8162c8 | 1538 | bool temp4 = false ; |
2ef75293 RD |
1539 | PyObject * obj0 = 0 ; |
1540 | PyObject * obj1 = 0 ; | |
1541 | PyObject * obj2 = 0 ; | |
1542 | PyObject * obj3 = 0 ; | |
1543 | char *kwnames[] = { | |
1544 | (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL | |
1545 | }; | |
1546 | ||
1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
1551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1552 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1554 | { | |
1555 | arg4 = wxString_in_helper(obj3); | |
1556 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1557 | temp4 = true; |
2ef75293 RD |
1558 | } |
1559 | { | |
1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1561 | result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4); | |
1562 | ||
1563 | wxPyEndAllowThreads(__tstate); | |
1564 | if (PyErr_Occurred()) SWIG_fail; | |
1565 | } | |
1566 | { | |
1567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1568 | } | |
1569 | { | |
1570 | if (temp4) | |
1571 | delete arg4; | |
1572 | } | |
1573 | return resultobj; | |
1574 | fail: | |
1575 | { | |
1576 | if (temp4) | |
1577 | delete arg4; | |
1578 | } | |
1579 | return NULL; | |
1580 | } | |
1581 | ||
1582 | ||
1583 | static PyObject *_wrap_XmlResource_LoadObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
1584 | PyObject *resultobj; | |
1585 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1586 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1587 | wxString *arg3 = 0 ; | |
1588 | wxString *arg4 = 0 ; | |
1589 | wxObject *result; | |
ae8162c8 RD |
1590 | bool temp3 = false ; |
1591 | bool temp4 = false ; | |
2ef75293 RD |
1592 | PyObject * obj0 = 0 ; |
1593 | PyObject * obj1 = 0 ; | |
1594 | PyObject * obj2 = 0 ; | |
1595 | PyObject * obj3 = 0 ; | |
1596 | char *kwnames[] = { | |
1597 | (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
1598 | }; | |
1599 | ||
1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1603 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1605 | { | |
1606 | arg3 = wxString_in_helper(obj2); | |
1607 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1608 | temp3 = true; |
2ef75293 RD |
1609 | } |
1610 | { | |
1611 | arg4 = wxString_in_helper(obj3); | |
1612 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1613 | temp4 = true; |
2ef75293 RD |
1614 | } |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) SWIG_fail; | |
1621 | } | |
1622 | { | |
1623 | resultobj = wxPyMake_wxObject(result, 0); | |
1624 | } | |
1625 | { | |
1626 | if (temp3) | |
1627 | delete arg3; | |
1628 | } | |
1629 | { | |
1630 | if (temp4) | |
1631 | delete arg4; | |
1632 | } | |
1633 | return resultobj; | |
1634 | fail: | |
1635 | { | |
1636 | if (temp3) | |
1637 | delete arg3; | |
1638 | } | |
1639 | { | |
1640 | if (temp4) | |
1641 | delete arg4; | |
1642 | } | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_XmlResource_LoadOnObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1650 | wxObject *arg2 = (wxObject *) 0 ; | |
1651 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1652 | wxString *arg4 = 0 ; | |
1653 | wxString *arg5 = 0 ; | |
1654 | bool result; | |
ae8162c8 RD |
1655 | bool temp4 = false ; |
1656 | bool temp5 = false ; | |
2ef75293 RD |
1657 | PyObject * obj0 = 0 ; |
1658 | PyObject * obj1 = 0 ; | |
1659 | PyObject * obj2 = 0 ; | |
1660 | PyObject * obj3 = 0 ; | |
1661 | PyObject * obj4 = 0 ; | |
1662 | char *kwnames[] = { | |
1663 | (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
1664 | }; | |
1665 | ||
1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
1667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
1670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1671 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1673 | { | |
1674 | arg4 = wxString_in_helper(obj3); | |
1675 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1676 | temp4 = true; |
2ef75293 RD |
1677 | } |
1678 | { | |
1679 | arg5 = wxString_in_helper(obj4); | |
1680 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 1681 | temp5 = true; |
2ef75293 RD |
1682 | } |
1683 | { | |
1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1685 | result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
1686 | ||
1687 | wxPyEndAllowThreads(__tstate); | |
1688 | if (PyErr_Occurred()) SWIG_fail; | |
1689 | } | |
1690 | { | |
1691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1692 | } | |
1693 | { | |
1694 | if (temp4) | |
1695 | delete arg4; | |
1696 | } | |
1697 | { | |
1698 | if (temp5) | |
1699 | delete arg5; | |
1700 | } | |
1701 | return resultobj; | |
1702 | fail: | |
1703 | { | |
1704 | if (temp4) | |
1705 | delete arg4; | |
1706 | } | |
1707 | { | |
1708 | if (temp5) | |
1709 | delete arg5; | |
1710 | } | |
1711 | return NULL; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject *_wrap_XmlResource_LoadBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
1716 | PyObject *resultobj; | |
1717 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1718 | wxString *arg2 = 0 ; | |
1719 | wxBitmap result; | |
ae8162c8 | 1720 | bool temp2 = false ; |
2ef75293 RD |
1721 | PyObject * obj0 = 0 ; |
1722 | PyObject * obj1 = 0 ; | |
1723 | char *kwnames[] = { | |
1724 | (char *) "self",(char *) "name", NULL | |
1725 | }; | |
1726 | ||
1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) goto fail; | |
1728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1730 | { | |
1731 | arg2 = wxString_in_helper(obj1); | |
1732 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1733 | temp2 = true; |
2ef75293 RD |
1734 | } |
1735 | { | |
1736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1737 | result = (arg1)->LoadBitmap((wxString const &)*arg2); | |
1738 | ||
1739 | wxPyEndAllowThreads(__tstate); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | } | |
1742 | { | |
1743 | wxBitmap * resultptr; | |
1744 | resultptr = new wxBitmap((wxBitmap &) result); | |
1745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1746 | } | |
1747 | { | |
1748 | if (temp2) | |
1749 | delete arg2; | |
1750 | } | |
1751 | return resultobj; | |
1752 | fail: | |
1753 | { | |
1754 | if (temp2) | |
1755 | delete arg2; | |
1756 | } | |
1757 | return NULL; | |
1758 | } | |
1759 | ||
1760 | ||
1761 | static PyObject *_wrap_XmlResource_LoadIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
1762 | PyObject *resultobj; | |
1763 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1764 | wxString *arg2 = 0 ; | |
1765 | wxIcon result; | |
ae8162c8 | 1766 | bool temp2 = false ; |
2ef75293 RD |
1767 | PyObject * obj0 = 0 ; |
1768 | PyObject * obj1 = 0 ; | |
1769 | char *kwnames[] = { | |
1770 | (char *) "self",(char *) "name", NULL | |
1771 | }; | |
1772 | ||
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) goto fail; | |
1774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1776 | { | |
1777 | arg2 = wxString_in_helper(obj1); | |
1778 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1779 | temp2 = true; |
2ef75293 RD |
1780 | } |
1781 | { | |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1783 | result = (arg1)->LoadIcon((wxString const &)*arg2); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
1788 | { | |
1789 | wxIcon * resultptr; | |
1790 | resultptr = new wxIcon((wxIcon &) result); | |
1791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
1792 | } | |
1793 | { | |
1794 | if (temp2) | |
1795 | delete arg2; | |
1796 | } | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | { | |
1800 | if (temp2) | |
1801 | delete arg2; | |
1802 | } | |
1803 | return NULL; | |
1804 | } | |
1805 | ||
1806 | ||
1807 | static PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
1808 | PyObject *resultobj; | |
1809 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1810 | wxString *arg2 = 0 ; | |
1811 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1812 | wxWindow *arg4 = (wxWindow *) NULL ; | |
1813 | bool result; | |
ae8162c8 | 1814 | bool temp2 = false ; |
2ef75293 RD |
1815 | PyObject * obj0 = 0 ; |
1816 | PyObject * obj1 = 0 ; | |
1817 | PyObject * obj2 = 0 ; | |
1818 | PyObject * obj3 = 0 ; | |
1819 | char *kwnames[] = { | |
1820 | (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL | |
1821 | }; | |
1822 | ||
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1826 | { | |
1827 | arg2 = wxString_in_helper(obj1); | |
1828 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 1829 | temp2 = true; |
2ef75293 RD |
1830 | } |
1831 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1833 | if (obj3) { | |
1834 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
1835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1836 | } | |
1837 | { | |
1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1839 | result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4); | |
1840 | ||
1841 | wxPyEndAllowThreads(__tstate); | |
1842 | if (PyErr_Occurred()) SWIG_fail; | |
1843 | } | |
1844 | { | |
1845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1846 | } | |
1847 | { | |
1848 | if (temp2) | |
1849 | delete arg2; | |
1850 | } | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | { | |
1854 | if (temp2) | |
1855 | delete arg2; | |
1856 | } | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
1861 | static PyObject *_wrap_XmlResource_GetXRCID(PyObject *, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject *resultobj; | |
1863 | wxString *arg1 = 0 ; | |
1864 | int result; | |
ae8162c8 | 1865 | bool temp1 = false ; |
2ef75293 RD |
1866 | PyObject * obj0 = 0 ; |
1867 | char *kwnames[] = { | |
1868 | (char *) "str_id", NULL | |
1869 | }; | |
1870 | ||
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetXRCID",kwnames,&obj0)) goto fail; | |
1872 | { | |
1873 | arg1 = wxString_in_helper(obj0); | |
1874 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 1875 | temp1 = true; |
2ef75293 RD |
1876 | } |
1877 | { | |
1878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1879 | result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1); | |
1880 | ||
1881 | wxPyEndAllowThreads(__tstate); | |
1882 | if (PyErr_Occurred()) SWIG_fail; | |
1883 | } | |
1884 | resultobj = SWIG_From_int((int)result); | |
1885 | { | |
1886 | if (temp1) | |
1887 | delete arg1; | |
1888 | } | |
1889 | return resultobj; | |
1890 | fail: | |
1891 | { | |
1892 | if (temp1) | |
1893 | delete arg1; | |
1894 | } | |
1895 | return NULL; | |
1896 | } | |
1897 | ||
1898 | ||
1899 | static PyObject *_wrap_XmlResource_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject *resultobj; | |
1901 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1902 | long result; | |
1903 | PyObject * obj0 = 0 ; | |
1904 | char *kwnames[] = { | |
1905 | (char *) "self", NULL | |
1906 | }; | |
1907 | ||
1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetVersion",kwnames,&obj0)) goto fail; | |
1909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1911 | { | |
1912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1913 | result = (long)((wxXmlResource const *)arg1)->GetVersion(); | |
1914 | ||
1915 | wxPyEndAllowThreads(__tstate); | |
1916 | if (PyErr_Occurred()) SWIG_fail; | |
1917 | } | |
1918 | resultobj = SWIG_From_long((long)result); | |
1919 | return resultobj; | |
1920 | fail: | |
1921 | return NULL; | |
1922 | } | |
1923 | ||
1924 | ||
1925 | static PyObject *_wrap_XmlResource_CompareVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
1926 | PyObject *resultobj; | |
1927 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1928 | int arg2 ; | |
1929 | int arg3 ; | |
1930 | int arg4 ; | |
1931 | int arg5 ; | |
1932 | int result; | |
1933 | PyObject * obj0 = 0 ; | |
1934 | PyObject * obj1 = 0 ; | |
1935 | PyObject * obj2 = 0 ; | |
1936 | PyObject * obj3 = 0 ; | |
1937 | PyObject * obj4 = 0 ; | |
1938 | char *kwnames[] = { | |
1939 | (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL | |
1940 | }; | |
1941 | ||
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
1943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1945 | arg2 = (int)SWIG_As_int(obj1); | |
1946 | if (PyErr_Occurred()) SWIG_fail; | |
1947 | arg3 = (int)SWIG_As_int(obj2); | |
1948 | if (PyErr_Occurred()) SWIG_fail; | |
1949 | arg4 = (int)SWIG_As_int(obj3); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | arg5 = (int)SWIG_As_int(obj4); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | resultobj = SWIG_From_int((int)result); | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_XmlResource_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | wxXmlResource *result; | |
1970 | char *kwnames[] = { | |
1971 | NULL | |
1972 | }; | |
1973 | ||
1974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":XmlResource_Get",kwnames)) goto fail; | |
1975 | { | |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1977 | result = (wxXmlResource *)wxXmlResource::Get(); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
1982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
1983 | return resultobj; | |
1984 | fail: | |
1985 | return NULL; | |
1986 | } | |
1987 | ||
1988 | ||
1989 | static PyObject *_wrap_XmlResource_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
1990 | PyObject *resultobj; | |
1991 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1992 | wxXmlResource *result; | |
1993 | PyObject * obj0 = 0 ; | |
1994 | char *kwnames[] = { | |
1995 | (char *) "res", NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) goto fail; | |
1999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
2000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | result = (wxXmlResource *)wxXmlResource::Set(arg1); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
2009 | return resultobj; | |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_XmlResource_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
2018 | int result; | |
2019 | PyObject * obj0 = 0 ; | |
2020 | char *kwnames[] = { | |
2021 | (char *) "self", NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetFlags",kwnames,&obj0)) goto fail; | |
2025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
2026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2027 | { | |
2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2029 | result = (int)(arg1)->GetFlags(); | |
2030 | ||
2031 | wxPyEndAllowThreads(__tstate); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
2034 | resultobj = SWIG_From_int((int)result); | |
2035 | return resultobj; | |
2036 | fail: | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_XmlResource_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
2042 | PyObject *resultobj; | |
2043 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
2044 | int arg2 ; | |
2045 | PyObject * obj0 = 0 ; | |
2046 | PyObject * obj1 = 0 ; | |
2047 | char *kwnames[] = { | |
2048 | (char *) "self",(char *) "flags", NULL | |
2049 | }; | |
2050 | ||
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
2052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
2053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2054 | arg2 = (int)SWIG_As_int(obj1); | |
2055 | if (PyErr_Occurred()) SWIG_fail; | |
2056 | { | |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | (arg1)->SetFlags(arg2); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | Py_INCREF(Py_None); resultobj = Py_None; | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject * XmlResource_swigregister(PyObject *, PyObject *args) { | |
2071 | PyObject *obj; | |
2072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2073 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource, obj); | |
2074 | Py_INCREF(obj); | |
2075 | return Py_BuildValue((char *)""); | |
2076 | } | |
2077 | static PyObject *_wrap_new_XmlSubclassFactory(PyObject *, PyObject *args, PyObject *kwargs) { | |
2078 | PyObject *resultobj; | |
2079 | wxPyXmlSubclassFactory *result; | |
2080 | char *kwnames[] = { | |
2081 | NULL | |
2082 | }; | |
2083 | ||
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlSubclassFactory",kwnames)) goto fail; | |
2085 | { | |
2086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2087 | result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory(); | |
2088 | ||
2089 | wxPyEndAllowThreads(__tstate); | |
2090 | if (PyErr_Occurred()) SWIG_fail; | |
2091 | } | |
2092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlSubclassFactory, 1); | |
2093 | return resultobj; | |
2094 | fail: | |
2095 | return NULL; | |
2096 | } | |
2097 | ||
2098 | ||
2099 | static PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
2100 | PyObject *resultobj; | |
2101 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
2102 | PyObject *arg2 = (PyObject *) 0 ; | |
2103 | PyObject *arg3 = (PyObject *) 0 ; | |
2104 | PyObject * obj0 = 0 ; | |
2105 | PyObject * obj1 = 0 ; | |
2106 | PyObject * obj2 = 0 ; | |
2107 | char *kwnames[] = { | |
2108 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2109 | }; | |
2110 | ||
2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlSubclassFactory, | |
2113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2114 | arg2 = obj1; | |
2115 | arg3 = obj2; | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | Py_INCREF(Py_None); resultobj = Py_None; | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject * XmlSubclassFactory_swigregister(PyObject *, PyObject *args) { | |
2131 | PyObject *obj; | |
2132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2133 | SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, obj); | |
2134 | Py_INCREF(obj); | |
2135 | return Py_BuildValue((char *)""); | |
2136 | } | |
2137 | static PyObject *_wrap_new_XmlProperty(PyObject *, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject *resultobj; | |
2139 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2140 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2141 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2142 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2143 | wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; | |
2144 | wxXmlProperty *result; | |
ae8162c8 RD |
2145 | bool temp1 = false ; |
2146 | bool temp2 = false ; | |
2ef75293 RD |
2147 | PyObject * obj0 = 0 ; |
2148 | PyObject * obj1 = 0 ; | |
2149 | PyObject * obj2 = 0 ; | |
2150 | char *kwnames[] = { | |
2151 | (char *) "name",(char *) "value",(char *) "next", NULL | |
2152 | }; | |
2153 | ||
2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2155 | if (obj0) { | |
2156 | { | |
2157 | arg1 = wxString_in_helper(obj0); | |
2158 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2159 | temp1 = true; |
2ef75293 RD |
2160 | } |
2161 | } | |
2162 | if (obj1) { | |
2163 | { | |
2164 | arg2 = wxString_in_helper(obj1); | |
2165 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2166 | temp2 = true; |
2ef75293 RD |
2167 | } |
2168 | } | |
2169 | if (obj2) { | |
2170 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlProperty, | |
2171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2172 | } | |
2173 | { | |
2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2175 | result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
2176 | ||
2177 | wxPyEndAllowThreads(__tstate); | |
2178 | if (PyErr_Occurred()) SWIG_fail; | |
2179 | } | |
2180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 1); | |
2181 | { | |
2182 | if (temp1) | |
2183 | delete arg1; | |
2184 | } | |
2185 | { | |
2186 | if (temp2) | |
2187 | delete arg2; | |
2188 | } | |
2189 | return resultobj; | |
2190 | fail: | |
2191 | { | |
2192 | if (temp1) | |
2193 | delete arg1; | |
2194 | } | |
2195 | { | |
2196 | if (temp2) | |
2197 | delete arg2; | |
2198 | } | |
2199 | return NULL; | |
2200 | } | |
2201 | ||
2202 | ||
2203 | static PyObject *_wrap_XmlProperty_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2204 | PyObject *resultobj; | |
2205 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2206 | wxString result; | |
2207 | PyObject * obj0 = 0 ; | |
2208 | char *kwnames[] = { | |
2209 | (char *) "self", NULL | |
2210 | }; | |
2211 | ||
2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetName",kwnames,&obj0)) goto fail; | |
2213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = ((wxXmlProperty const *)arg1)->GetName(); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | { | |
2223 | #if wxUSE_UNICODE | |
2224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2225 | #else | |
2226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2227 | #endif | |
2228 | } | |
2229 | return resultobj; | |
2230 | fail: | |
2231 | return NULL; | |
2232 | } | |
2233 | ||
2234 | ||
2235 | static PyObject *_wrap_XmlProperty_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
2236 | PyObject *resultobj; | |
2237 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2238 | wxString result; | |
2239 | PyObject * obj0 = 0 ; | |
2240 | char *kwnames[] = { | |
2241 | (char *) "self", NULL | |
2242 | }; | |
2243 | ||
2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetValue",kwnames,&obj0)) goto fail; | |
2245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2247 | { | |
2248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2249 | result = ((wxXmlProperty const *)arg1)->GetValue(); | |
2250 | ||
2251 | wxPyEndAllowThreads(__tstate); | |
2252 | if (PyErr_Occurred()) SWIG_fail; | |
2253 | } | |
2254 | { | |
2255 | #if wxUSE_UNICODE | |
2256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2257 | #else | |
2258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2259 | #endif | |
2260 | } | |
2261 | return resultobj; | |
2262 | fail: | |
2263 | return NULL; | |
2264 | } | |
2265 | ||
2266 | ||
2267 | static PyObject *_wrap_XmlProperty_GetNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
2268 | PyObject *resultobj; | |
2269 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2270 | wxXmlProperty *result; | |
2271 | PyObject * obj0 = 0 ; | |
2272 | char *kwnames[] = { | |
2273 | (char *) "self", NULL | |
2274 | }; | |
2275 | ||
2276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetNext",kwnames,&obj0)) goto fail; | |
2277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext(); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0); | |
2287 | return resultobj; | |
2288 | fail: | |
2289 | return NULL; | |
2290 | } | |
2291 | ||
2292 | ||
2293 | static PyObject *_wrap_XmlProperty_SetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2294 | PyObject *resultobj; | |
2295 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2296 | wxString *arg2 = 0 ; | |
ae8162c8 | 2297 | bool temp2 = false ; |
2ef75293 RD |
2298 | PyObject * obj0 = 0 ; |
2299 | PyObject * obj1 = 0 ; | |
2300 | char *kwnames[] = { | |
2301 | (char *) "self",(char *) "name", NULL | |
2302 | }; | |
2303 | ||
2304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2307 | { | |
2308 | arg2 = wxString_in_helper(obj1); | |
2309 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2310 | temp2 = true; |
2ef75293 RD |
2311 | } |
2312 | { | |
2313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2314 | (arg1)->SetName((wxString const &)*arg2); | |
2315 | ||
2316 | wxPyEndAllowThreads(__tstate); | |
2317 | if (PyErr_Occurred()) SWIG_fail; | |
2318 | } | |
2319 | Py_INCREF(Py_None); resultobj = Py_None; | |
2320 | { | |
2321 | if (temp2) | |
2322 | delete arg2; | |
2323 | } | |
2324 | return resultobj; | |
2325 | fail: | |
2326 | { | |
2327 | if (temp2) | |
2328 | delete arg2; | |
2329 | } | |
2330 | return NULL; | |
2331 | } | |
2332 | ||
2333 | ||
2334 | static PyObject *_wrap_XmlProperty_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
2335 | PyObject *resultobj; | |
2336 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2337 | wxString *arg2 = 0 ; | |
ae8162c8 | 2338 | bool temp2 = false ; |
2ef75293 RD |
2339 | PyObject * obj0 = 0 ; |
2340 | PyObject * obj1 = 0 ; | |
2341 | char *kwnames[] = { | |
2342 | (char *) "self",(char *) "value", NULL | |
2343 | }; | |
2344 | ||
2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2348 | { | |
2349 | arg2 = wxString_in_helper(obj1); | |
2350 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2351 | temp2 = true; |
2ef75293 RD |
2352 | } |
2353 | { | |
2354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2355 | (arg1)->SetValue((wxString const &)*arg2); | |
2356 | ||
2357 | wxPyEndAllowThreads(__tstate); | |
2358 | if (PyErr_Occurred()) SWIG_fail; | |
2359 | } | |
2360 | Py_INCREF(Py_None); resultobj = Py_None; | |
2361 | { | |
2362 | if (temp2) | |
2363 | delete arg2; | |
2364 | } | |
2365 | return resultobj; | |
2366 | fail: | |
2367 | { | |
2368 | if (temp2) | |
2369 | delete arg2; | |
2370 | } | |
2371 | return NULL; | |
2372 | } | |
2373 | ||
2374 | ||
2375 | static PyObject *_wrap_XmlProperty_SetNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
2376 | PyObject *resultobj; | |
2377 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2378 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
2379 | PyObject * obj0 = 0 ; | |
2380 | PyObject * obj1 = 0 ; | |
2381 | char *kwnames[] = { | |
2382 | (char *) "self",(char *) "next", NULL | |
2383 | }; | |
2384 | ||
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) goto fail; | |
2386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
2389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2390 | { | |
2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2392 | (arg1)->SetNext(arg2); | |
2393 | ||
2394 | wxPyEndAllowThreads(__tstate); | |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
2396 | } | |
2397 | Py_INCREF(Py_None); resultobj = Py_None; | |
2398 | return resultobj; | |
2399 | fail: | |
2400 | return NULL; | |
2401 | } | |
2402 | ||
2403 | ||
2404 | static PyObject * XmlProperty_swigregister(PyObject *, PyObject *args) { | |
2405 | PyObject *obj; | |
2406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2407 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty, obj); | |
2408 | Py_INCREF(obj); | |
2409 | return Py_BuildValue((char *)""); | |
2410 | } | |
2411 | static PyObject *_wrap_new_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject *resultobj; | |
2413 | wxXmlNode *arg1 = (wxXmlNode *) NULL ; | |
2414 | int arg2 = (int) 0 ; | |
2415 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2416 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2417 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2418 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2419 | wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; | |
2420 | wxXmlNode *arg6 = (wxXmlNode *) NULL ; | |
2421 | wxXmlNode *result; | |
ae8162c8 RD |
2422 | bool temp3 = false ; |
2423 | bool temp4 = false ; | |
2ef75293 RD |
2424 | PyObject * obj0 = 0 ; |
2425 | PyObject * obj1 = 0 ; | |
2426 | PyObject * obj2 = 0 ; | |
2427 | PyObject * obj3 = 0 ; | |
2428 | PyObject * obj4 = 0 ; | |
2429 | PyObject * obj5 = 0 ; | |
2430 | char *kwnames[] = { | |
2431 | (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL | |
2432 | }; | |
2433 | ||
2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2435 | if (obj0) { | |
2436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2438 | } | |
2439 | if (obj1) { | |
2440 | arg2 = (int)SWIG_As_int(obj1); | |
2441 | if (PyErr_Occurred()) SWIG_fail; | |
2442 | } | |
2443 | if (obj2) { | |
2444 | { | |
2445 | arg3 = wxString_in_helper(obj2); | |
2446 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2447 | temp3 = true; |
2ef75293 RD |
2448 | } |
2449 | } | |
2450 | if (obj3) { | |
2451 | { | |
2452 | arg4 = wxString_in_helper(obj3); | |
2453 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2454 | temp4 = true; |
2ef75293 RD |
2455 | } |
2456 | } | |
2457 | if (obj4) { | |
2458 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxXmlProperty, | |
2459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2460 | } | |
2461 | if (obj5) { | |
2462 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxXmlNode, | |
2463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2464 | } | |
2465 | { | |
2466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2467 | result = (wxXmlNode *)new wxXmlNode(arg1,(wxXmlNodeType )arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
2468 | ||
2469 | wxPyEndAllowThreads(__tstate); | |
2470 | if (PyErr_Occurred()) SWIG_fail; | |
2471 | } | |
2472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1); | |
2473 | { | |
2474 | if (temp3) | |
2475 | delete arg3; | |
2476 | } | |
2477 | { | |
2478 | if (temp4) | |
2479 | delete arg4; | |
2480 | } | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | { | |
2484 | if (temp3) | |
2485 | delete arg3; | |
2486 | } | |
2487 | { | |
2488 | if (temp4) | |
2489 | delete arg4; | |
2490 | } | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_delete_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2498 | PyObject * obj0 = 0 ; | |
2499 | char *kwnames[] = { | |
2500 | (char *) "self", NULL | |
2501 | }; | |
2502 | ||
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlNode",kwnames,&obj0)) goto fail; | |
2504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2506 | { | |
2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2508 | delete arg1; | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | Py_INCREF(Py_None); resultobj = Py_None; | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_new_XmlNodeEasy(PyObject *, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | int arg1 ; | |
2523 | wxString *arg2 = 0 ; | |
2524 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2525 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2526 | wxXmlNode *result; | |
ae8162c8 RD |
2527 | bool temp2 = false ; |
2528 | bool temp3 = false ; | |
2ef75293 RD |
2529 | PyObject * obj0 = 0 ; |
2530 | PyObject * obj1 = 0 ; | |
2531 | PyObject * obj2 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "type",(char *) "name",(char *) "content", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2537 | arg1 = (int)SWIG_As_int(obj0); | |
2538 | if (PyErr_Occurred()) SWIG_fail; | |
2539 | { | |
2540 | arg2 = wxString_in_helper(obj1); | |
2541 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2542 | temp2 = true; |
2ef75293 RD |
2543 | } |
2544 | if (obj2) { | |
2545 | { | |
2546 | arg3 = wxString_in_helper(obj2); | |
2547 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2548 | temp3 = true; |
2ef75293 RD |
2549 | } |
2550 | } | |
2551 | { | |
2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2553 | result = (wxXmlNode *)new wxXmlNode((wxXmlNodeType )arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
2554 | ||
2555 | wxPyEndAllowThreads(__tstate); | |
2556 | if (PyErr_Occurred()) SWIG_fail; | |
2557 | } | |
2558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1); | |
2559 | { | |
2560 | if (temp2) | |
2561 | delete arg2; | |
2562 | } | |
2563 | { | |
2564 | if (temp3) | |
2565 | delete arg3; | |
2566 | } | |
2567 | return resultobj; | |
2568 | fail: | |
2569 | { | |
2570 | if (temp2) | |
2571 | delete arg2; | |
2572 | } | |
2573 | { | |
2574 | if (temp3) | |
2575 | delete arg3; | |
2576 | } | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
2581 | static PyObject *_wrap_XmlNode_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
2582 | PyObject *resultobj; | |
2583 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2584 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2585 | PyObject * obj0 = 0 ; | |
2586 | PyObject * obj1 = 0 ; | |
2587 | char *kwnames[] = { | |
2588 | (char *) "self",(char *) "child", NULL | |
2589 | }; | |
2590 | ||
2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | (arg1)->AddChild(arg2); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) SWIG_fail; | |
2602 | } | |
2603 | Py_INCREF(Py_None); resultobj = Py_None; | |
2604 | return resultobj; | |
2605 | fail: | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
2610 | static PyObject *_wrap_XmlNode_InsertChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject *resultobj; | |
2612 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2613 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2614 | wxXmlNode *arg3 = (wxXmlNode *) 0 ; | |
2615 | PyObject * obj0 = 0 ; | |
2616 | PyObject * obj1 = 0 ; | |
2617 | PyObject * obj2 = 0 ; | |
2618 | char *kwnames[] = { | |
2619 | (char *) "self",(char *) "child",(char *) "before_node", NULL | |
2620 | }; | |
2621 | ||
2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2627 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlNode, | |
2628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2629 | { | |
2630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2631 | (arg1)->InsertChild(arg2,arg3); | |
2632 | ||
2633 | wxPyEndAllowThreads(__tstate); | |
2634 | if (PyErr_Occurred()) SWIG_fail; | |
2635 | } | |
2636 | Py_INCREF(Py_None); resultobj = Py_None; | |
2637 | return resultobj; | |
2638 | fail: | |
2639 | return NULL; | |
2640 | } | |
2641 | ||
2642 | ||
2643 | static PyObject *_wrap_XmlNode_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
2644 | PyObject *resultobj; | |
2645 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2646 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2647 | bool result; | |
2648 | PyObject * obj0 = 0 ; | |
2649 | PyObject * obj1 = 0 ; | |
2650 | char *kwnames[] = { | |
2651 | (char *) "self",(char *) "child", NULL | |
2652 | }; | |
2653 | ||
2654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2659 | { | |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | result = (bool)(arg1)->RemoveChild(arg2); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
2666 | { | |
2667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2668 | } | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_XmlNode_AddProperty(PyObject *, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2678 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | PyObject * obj1 = 0 ; | |
2681 | char *kwnames[] = { | |
2682 | (char *) "self",(char *) "prop", NULL | |
2683 | }; | |
2684 | ||
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) goto fail; | |
2686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
2689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2690 | { | |
2691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2692 | (arg1)->AddProperty(arg2); | |
2693 | ||
2694 | wxPyEndAllowThreads(__tstate); | |
2695 | if (PyErr_Occurred()) SWIG_fail; | |
2696 | } | |
2697 | Py_INCREF(Py_None); resultobj = Py_None; | |
2698 | return resultobj; | |
2699 | fail: | |
2700 | return NULL; | |
2701 | } | |
2702 | ||
2703 | ||
2704 | static PyObject *_wrap_XmlNode_AddPropertyName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2705 | PyObject *resultobj; | |
2706 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2707 | wxString *arg2 = 0 ; | |
2708 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
2709 | bool temp2 = false ; |
2710 | bool temp3 = false ; | |
2ef75293 RD |
2711 | PyObject * obj0 = 0 ; |
2712 | PyObject * obj1 = 0 ; | |
2713 | PyObject * obj2 = 0 ; | |
2714 | char *kwnames[] = { | |
2715 | (char *) "self",(char *) "name",(char *) "value", NULL | |
2716 | }; | |
2717 | ||
2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2721 | { | |
2722 | arg2 = wxString_in_helper(obj1); | |
2723 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2724 | temp2 = true; |
2ef75293 RD |
2725 | } |
2726 | { | |
2727 | arg3 = wxString_in_helper(obj2); | |
2728 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2729 | temp3 = true; |
2ef75293 RD |
2730 | } |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | Py_INCREF(Py_None); resultobj = Py_None; | |
2739 | { | |
2740 | if (temp2) | |
2741 | delete arg2; | |
2742 | } | |
2743 | { | |
2744 | if (temp3) | |
2745 | delete arg3; | |
2746 | } | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | { | |
2750 | if (temp2) | |
2751 | delete arg2; | |
2752 | } | |
2753 | { | |
2754 | if (temp3) | |
2755 | delete arg3; | |
2756 | } | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
2761 | static PyObject *_wrap_XmlNode_DeleteProperty(PyObject *, PyObject *args, PyObject *kwargs) { | |
2762 | PyObject *resultobj; | |
2763 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2764 | wxString *arg2 = 0 ; | |
2765 | bool result; | |
ae8162c8 | 2766 | bool temp2 = false ; |
2ef75293 RD |
2767 | PyObject * obj0 = 0 ; |
2768 | PyObject * obj1 = 0 ; | |
2769 | char *kwnames[] = { | |
2770 | (char *) "self",(char *) "name", NULL | |
2771 | }; | |
2772 | ||
2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) goto fail; | |
2774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2776 | { | |
2777 | arg2 = wxString_in_helper(obj1); | |
2778 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2779 | temp2 = true; |
2ef75293 RD |
2780 | } |
2781 | { | |
2782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2783 | result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2); | |
2784 | ||
2785 | wxPyEndAllowThreads(__tstate); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | } | |
2788 | { | |
2789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2790 | } | |
2791 | { | |
2792 | if (temp2) | |
2793 | delete arg2; | |
2794 | } | |
2795 | return resultobj; | |
2796 | fail: | |
2797 | { | |
2798 | if (temp2) | |
2799 | delete arg2; | |
2800 | } | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
2805 | static PyObject *_wrap_XmlNode_GetType(PyObject *, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject *resultobj; | |
2807 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2808 | int result; | |
2809 | PyObject * obj0 = 0 ; | |
2810 | char *kwnames[] = { | |
2811 | (char *) "self", NULL | |
2812 | }; | |
2813 | ||
2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetType",kwnames,&obj0)) goto fail; | |
2815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2817 | { | |
2818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2819 | result = (int)((wxXmlNode const *)arg1)->GetType(); | |
2820 | ||
2821 | wxPyEndAllowThreads(__tstate); | |
2822 | if (PyErr_Occurred()) SWIG_fail; | |
2823 | } | |
2824 | resultobj = SWIG_From_int((int)result); | |
2825 | return resultobj; | |
2826 | fail: | |
2827 | return NULL; | |
2828 | } | |
2829 | ||
2830 | ||
2831 | static PyObject *_wrap_XmlNode_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject *resultobj; | |
2833 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2834 | wxString result; | |
2835 | PyObject * obj0 = 0 ; | |
2836 | char *kwnames[] = { | |
2837 | (char *) "self", NULL | |
2838 | }; | |
2839 | ||
2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetName",kwnames,&obj0)) goto fail; | |
2841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2843 | { | |
2844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2845 | result = ((wxXmlNode const *)arg1)->GetName(); | |
2846 | ||
2847 | wxPyEndAllowThreads(__tstate); | |
2848 | if (PyErr_Occurred()) SWIG_fail; | |
2849 | } | |
2850 | { | |
2851 | #if wxUSE_UNICODE | |
2852 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2853 | #else | |
2854 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2855 | #endif | |
2856 | } | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_XmlNode_GetContent(PyObject *, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2866 | wxString result; | |
2867 | PyObject * obj0 = 0 ; | |
2868 | char *kwnames[] = { | |
2869 | (char *) "self", NULL | |
2870 | }; | |
2871 | ||
2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetContent",kwnames,&obj0)) goto fail; | |
2873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2875 | { | |
2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2877 | result = ((wxXmlNode const *)arg1)->GetContent(); | |
2878 | ||
2879 | wxPyEndAllowThreads(__tstate); | |
2880 | if (PyErr_Occurred()) SWIG_fail; | |
2881 | } | |
2882 | { | |
2883 | #if wxUSE_UNICODE | |
2884 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2885 | #else | |
2886 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2887 | #endif | |
2888 | } | |
2889 | return resultobj; | |
2890 | fail: | |
2891 | return NULL; | |
2892 | } | |
2893 | ||
2894 | ||
2895 | static PyObject *_wrap_XmlNode_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
2896 | PyObject *resultobj; | |
2897 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2898 | wxXmlNode *result; | |
2899 | PyObject * obj0 = 0 ; | |
2900 | char *kwnames[] = { | |
2901 | (char *) "self", NULL | |
2902 | }; | |
2903 | ||
2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetParent",kwnames,&obj0)) goto fail; | |
2905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2907 | { | |
2908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2909 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent(); | |
2910 | ||
2911 | wxPyEndAllowThreads(__tstate); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
2914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2915 | return resultobj; | |
2916 | fail: | |
2917 | return NULL; | |
2918 | } | |
2919 | ||
2920 | ||
2921 | static PyObject *_wrap_XmlNode_GetNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
2922 | PyObject *resultobj; | |
2923 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2924 | wxXmlNode *result; | |
2925 | PyObject * obj0 = 0 ; | |
2926 | char *kwnames[] = { | |
2927 | (char *) "self", NULL | |
2928 | }; | |
2929 | ||
2930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetNext",kwnames,&obj0)) goto fail; | |
2931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2933 | { | |
2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2935 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext(); | |
2936 | ||
2937 | wxPyEndAllowThreads(__tstate); | |
2938 | if (PyErr_Occurred()) SWIG_fail; | |
2939 | } | |
2940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2941 | return resultobj; | |
2942 | fail: | |
2943 | return NULL; | |
2944 | } | |
2945 | ||
2946 | ||
2947 | static PyObject *_wrap_XmlNode_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
2948 | PyObject *resultobj; | |
2949 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2950 | wxXmlNode *result; | |
2951 | PyObject * obj0 = 0 ; | |
2952 | char *kwnames[] = { | |
2953 | (char *) "self", NULL | |
2954 | }; | |
2955 | ||
2956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetChildren",kwnames,&obj0)) goto fail; | |
2957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2959 | { | |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren(); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2967 | return resultobj; | |
2968 | fail: | |
2969 | return NULL; | |
2970 | } | |
2971 | ||
2972 | ||
2973 | static PyObject *_wrap_XmlNode_GetProperties(PyObject *, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject *resultobj; | |
2975 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2976 | wxXmlProperty *result; | |
2977 | PyObject * obj0 = 0 ; | |
2978 | char *kwnames[] = { | |
2979 | (char *) "self", NULL | |
2980 | }; | |
2981 | ||
2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetProperties",kwnames,&obj0)) goto fail; | |
2983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2985 | { | |
2986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2987 | result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties(); | |
2988 | ||
2989 | wxPyEndAllowThreads(__tstate); | |
2990 | if (PyErr_Occurred()) SWIG_fail; | |
2991 | } | |
2992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0); | |
2993 | return resultobj; | |
2994 | fail: | |
2995 | return NULL; | |
2996 | } | |
2997 | ||
2998 | ||
2999 | static PyObject *_wrap_XmlNode_GetPropVal(PyObject *, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject *resultobj; | |
3001 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3002 | wxString *arg2 = 0 ; | |
3003 | wxString *arg3 = 0 ; | |
3004 | wxString result; | |
ae8162c8 RD |
3005 | bool temp2 = false ; |
3006 | bool temp3 = false ; | |
2ef75293 RD |
3007 | PyObject * obj0 = 0 ; |
3008 | PyObject * obj1 = 0 ; | |
3009 | PyObject * obj2 = 0 ; | |
3010 | char *kwnames[] = { | |
3011 | (char *) "self",(char *) "propName",(char *) "defaultVal", NULL | |
3012 | }; | |
3013 | ||
3014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3017 | { | |
3018 | arg2 = wxString_in_helper(obj1); | |
3019 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3020 | temp2 = true; |
2ef75293 RD |
3021 | } |
3022 | { | |
3023 | arg3 = wxString_in_helper(obj2); | |
3024 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3025 | temp3 = true; |
2ef75293 RD |
3026 | } |
3027 | { | |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3029 | result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
3032 | if (PyErr_Occurred()) SWIG_fail; | |
3033 | } | |
3034 | { | |
3035 | #if wxUSE_UNICODE | |
3036 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3037 | #else | |
3038 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3039 | #endif | |
3040 | } | |
3041 | { | |
3042 | if (temp2) | |
3043 | delete arg2; | |
3044 | } | |
3045 | { | |
3046 | if (temp3) | |
3047 | delete arg3; | |
3048 | } | |
3049 | return resultobj; | |
3050 | fail: | |
3051 | { | |
3052 | if (temp2) | |
3053 | delete arg2; | |
3054 | } | |
3055 | { | |
3056 | if (temp3) | |
3057 | delete arg3; | |
3058 | } | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | ||
3063 | static PyObject *_wrap_XmlNode_HasProp(PyObject *, PyObject *args, PyObject *kwargs) { | |
3064 | PyObject *resultobj; | |
3065 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3066 | wxString *arg2 = 0 ; | |
3067 | bool result; | |
ae8162c8 | 3068 | bool temp2 = false ; |
2ef75293 RD |
3069 | PyObject * obj0 = 0 ; |
3070 | PyObject * obj1 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "self",(char *) "propName", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) goto fail; | |
3076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3078 | { | |
3079 | arg2 = wxString_in_helper(obj1); | |
3080 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3081 | temp2 = true; |
2ef75293 RD |
3082 | } |
3083 | { | |
3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3085 | result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2); | |
3086 | ||
3087 | wxPyEndAllowThreads(__tstate); | |
3088 | if (PyErr_Occurred()) SWIG_fail; | |
3089 | } | |
3090 | { | |
3091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3092 | } | |
3093 | { | |
3094 | if (temp2) | |
3095 | delete arg2; | |
3096 | } | |
3097 | return resultobj; | |
3098 | fail: | |
3099 | { | |
3100 | if (temp2) | |
3101 | delete arg2; | |
3102 | } | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
3107 | static PyObject *_wrap_XmlNode_SetType(PyObject *, PyObject *args, PyObject *kwargs) { | |
3108 | PyObject *resultobj; | |
3109 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3110 | int arg2 ; | |
3111 | PyObject * obj0 = 0 ; | |
3112 | PyObject * obj1 = 0 ; | |
3113 | char *kwnames[] = { | |
3114 | (char *) "self",(char *) "type", NULL | |
3115 | }; | |
3116 | ||
3117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) goto fail; | |
3118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3120 | arg2 = (int)SWIG_As_int(obj1); | |
3121 | if (PyErr_Occurred()) SWIG_fail; | |
3122 | { | |
3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3124 | (arg1)->SetType((wxXmlNodeType )arg2); | |
3125 | ||
3126 | wxPyEndAllowThreads(__tstate); | |
3127 | if (PyErr_Occurred()) SWIG_fail; | |
3128 | } | |
3129 | Py_INCREF(Py_None); resultobj = Py_None; | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject *_wrap_XmlNode_SetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
3137 | PyObject *resultobj; | |
3138 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3139 | wxString *arg2 = 0 ; | |
ae8162c8 | 3140 | bool temp2 = false ; |
2ef75293 RD |
3141 | PyObject * obj0 = 0 ; |
3142 | PyObject * obj1 = 0 ; | |
3143 | char *kwnames[] = { | |
3144 | (char *) "self",(char *) "name", NULL | |
3145 | }; | |
3146 | ||
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) goto fail; | |
3148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3150 | { | |
3151 | arg2 = wxString_in_helper(obj1); | |
3152 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3153 | temp2 = true; |
2ef75293 RD |
3154 | } |
3155 | { | |
3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3157 | (arg1)->SetName((wxString const &)*arg2); | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
3162 | Py_INCREF(Py_None); resultobj = Py_None; | |
3163 | { | |
3164 | if (temp2) | |
3165 | delete arg2; | |
3166 | } | |
3167 | return resultobj; | |
3168 | fail: | |
3169 | { | |
3170 | if (temp2) | |
3171 | delete arg2; | |
3172 | } | |
3173 | return NULL; | |
3174 | } | |
3175 | ||
3176 | ||
3177 | static PyObject *_wrap_XmlNode_SetContent(PyObject *, PyObject *args, PyObject *kwargs) { | |
3178 | PyObject *resultobj; | |
3179 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3180 | wxString *arg2 = 0 ; | |
ae8162c8 | 3181 | bool temp2 = false ; |
2ef75293 RD |
3182 | PyObject * obj0 = 0 ; |
3183 | PyObject * obj1 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "self",(char *) "con", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) goto fail; | |
3189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3191 | { | |
3192 | arg2 = wxString_in_helper(obj1); | |
3193 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3194 | temp2 = true; |
2ef75293 RD |
3195 | } |
3196 | { | |
3197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3198 | (arg1)->SetContent((wxString const &)*arg2); | |
3199 | ||
3200 | wxPyEndAllowThreads(__tstate); | |
3201 | if (PyErr_Occurred()) SWIG_fail; | |
3202 | } | |
3203 | Py_INCREF(Py_None); resultobj = Py_None; | |
3204 | { | |
3205 | if (temp2) | |
3206 | delete arg2; | |
3207 | } | |
3208 | return resultobj; | |
3209 | fail: | |
3210 | { | |
3211 | if (temp2) | |
3212 | delete arg2; | |
3213 | } | |
3214 | return NULL; | |
3215 | } | |
3216 | ||
3217 | ||
3218 | static PyObject *_wrap_XmlNode_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
3219 | PyObject *resultobj; | |
3220 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3221 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3222 | PyObject * obj0 = 0 ; | |
3223 | PyObject * obj1 = 0 ; | |
3224 | char *kwnames[] = { | |
3225 | (char *) "self",(char *) "parent", NULL | |
3226 | }; | |
3227 | ||
3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
3229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3233 | { | |
3234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3235 | (arg1)->SetParent(arg2); | |
3236 | ||
3237 | wxPyEndAllowThreads(__tstate); | |
3238 | if (PyErr_Occurred()) SWIG_fail; | |
3239 | } | |
3240 | Py_INCREF(Py_None); resultobj = Py_None; | |
3241 | return resultobj; | |
3242 | fail: | |
3243 | return NULL; | |
3244 | } | |
3245 | ||
3246 | ||
3247 | static PyObject *_wrap_XmlNode_SetNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
3248 | PyObject *resultobj; | |
3249 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3250 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3251 | PyObject * obj0 = 0 ; | |
3252 | PyObject * obj1 = 0 ; | |
3253 | char *kwnames[] = { | |
3254 | (char *) "self",(char *) "next", NULL | |
3255 | }; | |
3256 | ||
3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) goto fail; | |
3258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3260 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | (arg1)->SetNext(arg2); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | Py_INCREF(Py_None); resultobj = Py_None; | |
3270 | return resultobj; | |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
3276 | static PyObject *_wrap_XmlNode_SetChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject *resultobj; | |
3278 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3279 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3280 | PyObject * obj0 = 0 ; | |
3281 | PyObject * obj1 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self",(char *) "child", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3291 | { | |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3293 | (arg1)->SetChildren(arg2); | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
3298 | Py_INCREF(Py_None); resultobj = Py_None; | |
3299 | return resultobj; | |
3300 | fail: | |
3301 | return NULL; | |
3302 | } | |
3303 | ||
3304 | ||
3305 | static PyObject *_wrap_XmlNode_SetProperties(PyObject *, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject *resultobj; | |
3307 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3308 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
3309 | PyObject * obj0 = 0 ; | |
3310 | PyObject * obj1 = 0 ; | |
3311 | char *kwnames[] = { | |
3312 | (char *) "self",(char *) "prop", NULL | |
3313 | }; | |
3314 | ||
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) goto fail; | |
3316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
3319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3320 | { | |
3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3322 | (arg1)->SetProperties(arg2); | |
3323 | ||
3324 | wxPyEndAllowThreads(__tstate); | |
3325 | if (PyErr_Occurred()) SWIG_fail; | |
3326 | } | |
3327 | Py_INCREF(Py_None); resultobj = Py_None; | |
3328 | return resultobj; | |
3329 | fail: | |
3330 | return NULL; | |
3331 | } | |
3332 | ||
3333 | ||
3334 | static PyObject * XmlNode_swigregister(PyObject *, PyObject *args) { | |
3335 | PyObject *obj; | |
3336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3337 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode, obj); | |
3338 | Py_INCREF(obj); | |
3339 | return Py_BuildValue((char *)""); | |
3340 | } | |
3341 | static PyObject *_wrap_new_XmlDocument(PyObject *, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject *resultobj; | |
3343 | wxString *arg1 = 0 ; | |
3344 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
3345 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3346 | wxXmlDocument *result; | |
ae8162c8 RD |
3347 | bool temp1 = false ; |
3348 | bool temp2 = false ; | |
2ef75293 RD |
3349 | PyObject * obj0 = 0 ; |
3350 | PyObject * obj1 = 0 ; | |
3351 | char *kwnames[] = { | |
3352 | (char *) "filename",(char *) "encoding", NULL | |
3353 | }; | |
3354 | ||
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) goto fail; | |
3356 | { | |
3357 | arg1 = wxString_in_helper(obj0); | |
3358 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3359 | temp1 = true; |
2ef75293 RD |
3360 | } |
3361 | if (obj1) { | |
3362 | { | |
3363 | arg2 = wxString_in_helper(obj1); | |
3364 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3365 | temp2 = true; |
2ef75293 RD |
3366 | } |
3367 | } | |
3368 | { | |
3369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3370 | result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2); | |
3371 | ||
3372 | wxPyEndAllowThreads(__tstate); | |
3373 | if (PyErr_Occurred()) SWIG_fail; | |
3374 | } | |
3375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3376 | { | |
3377 | if (temp1) | |
3378 | delete arg1; | |
3379 | } | |
3380 | { | |
3381 | if (temp2) | |
3382 | delete arg2; | |
3383 | } | |
3384 | return resultobj; | |
3385 | fail: | |
3386 | { | |
3387 | if (temp1) | |
3388 | delete arg1; | |
3389 | } | |
3390 | { | |
3391 | if (temp2) | |
3392 | delete arg2; | |
3393 | } | |
3394 | return NULL; | |
3395 | } | |
3396 | ||
3397 | ||
3398 | static PyObject *_wrap_new_XmlDocumentFromStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
3399 | PyObject *resultobj; | |
3400 | wxInputStream *arg1 = 0 ; | |
3401 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
3402 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3403 | wxXmlDocument *result; | |
3404 | wxPyInputStream *temp1 ; | |
3405 | bool created1 ; | |
ae8162c8 | 3406 | bool temp2 = false ; |
2ef75293 RD |
3407 | PyObject * obj0 = 0 ; |
3408 | PyObject * obj1 = 0 ; | |
3409 | char *kwnames[] = { | |
3410 | (char *) "stream",(char *) "encoding", NULL | |
3411 | }; | |
3412 | ||
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) goto fail; | |
3414 | { | |
3415 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
3416 | arg1 = temp1->m_wxis; | |
ae8162c8 | 3417 | created1 = false; |
2ef75293 RD |
3418 | } else { |
3419 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 3420 | arg1 = wxPyCBInputStream_create(obj0, false); |
2ef75293 RD |
3421 | if (arg1 == NULL) { |
3422 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
3423 | SWIG_fail; | |
3424 | } | |
ae8162c8 | 3425 | created1 = true; |
2ef75293 RD |
3426 | } |
3427 | } | |
3428 | if (obj1) { | |
3429 | { | |
3430 | arg2 = wxString_in_helper(obj1); | |
3431 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3432 | temp2 = true; |
2ef75293 RD |
3433 | } |
3434 | } | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3443 | { | |
3444 | if (created1) | |
3445 | delete arg1; | |
3446 | } | |
3447 | { | |
3448 | if (temp2) | |
3449 | delete arg2; | |
3450 | } | |
3451 | return resultobj; | |
3452 | fail: | |
3453 | { | |
3454 | if (created1) | |
3455 | delete arg1; | |
3456 | } | |
3457 | { | |
3458 | if (temp2) | |
3459 | delete arg2; | |
3460 | } | |
3461 | return NULL; | |
3462 | } | |
3463 | ||
3464 | ||
3465 | static PyObject *_wrap_new_EmptyXmlDocument(PyObject *, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxXmlDocument *result; | |
3468 | char *kwnames[] = { | |
3469 | NULL | |
3470 | }; | |
3471 | ||
3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyXmlDocument",kwnames)) goto fail; | |
3473 | { | |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | result = (wxXmlDocument *)new wxXmlDocument(); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_delete_XmlDocument(PyObject *, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3490 | PyObject * obj0 = 0 ; | |
3491 | char *kwnames[] = { | |
3492 | (char *) "self", NULL | |
3493 | }; | |
3494 | ||
3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlDocument",kwnames,&obj0)) goto fail; | |
3496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | delete arg1; | |
3501 | ||
3502 | wxPyEndAllowThreads(__tstate); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | } | |
3505 | Py_INCREF(Py_None); resultobj = Py_None; | |
3506 | return resultobj; | |
3507 | fail: | |
3508 | return NULL; | |
3509 | } | |
3510 | ||
3511 | ||
3512 | static PyObject *_wrap_XmlDocument_Load(PyObject *, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject *resultobj; | |
3514 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3515 | wxString *arg2 = 0 ; | |
3516 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
3517 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3518 | bool result; | |
ae8162c8 RD |
3519 | bool temp2 = false ; |
3520 | bool temp3 = false ; | |
2ef75293 RD |
3521 | PyObject * obj0 = 0 ; |
3522 | PyObject * obj1 = 0 ; | |
3523 | PyObject * obj2 = 0 ; | |
3524 | char *kwnames[] = { | |
3525 | (char *) "self",(char *) "filename",(char *) "encoding", NULL | |
3526 | }; | |
3527 | ||
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3531 | { | |
3532 | arg2 = wxString_in_helper(obj1); | |
3533 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3534 | temp2 = true; |
2ef75293 RD |
3535 | } |
3536 | if (obj2) { | |
3537 | { | |
3538 | arg3 = wxString_in_helper(obj2); | |
3539 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3540 | temp3 = true; |
2ef75293 RD |
3541 | } |
3542 | } | |
3543 | { | |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | { | |
3551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3552 | } | |
3553 | { | |
3554 | if (temp2) | |
3555 | delete arg2; | |
3556 | } | |
3557 | { | |
3558 | if (temp3) | |
3559 | delete arg3; | |
3560 | } | |
3561 | return resultobj; | |
3562 | fail: | |
3563 | { | |
3564 | if (temp2) | |
3565 | delete arg2; | |
3566 | } | |
3567 | { | |
3568 | if (temp3) | |
3569 | delete arg3; | |
3570 | } | |
3571 | return NULL; | |
3572 | } | |
3573 | ||
3574 | ||
3575 | static PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
3576 | PyObject *resultobj; | |
3577 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3578 | wxInputStream *arg2 = 0 ; | |
3579 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
3580 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3581 | bool result; | |
3582 | wxPyInputStream *temp2 ; | |
3583 | bool created2 ; | |
ae8162c8 | 3584 | bool temp3 = false ; |
2ef75293 RD |
3585 | PyObject * obj0 = 0 ; |
3586 | PyObject * obj1 = 0 ; | |
3587 | PyObject * obj2 = 0 ; | |
3588 | char *kwnames[] = { | |
3589 | (char *) "self",(char *) "stream",(char *) "encoding", NULL | |
3590 | }; | |
3591 | ||
3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3595 | { | |
3596 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
3597 | arg2 = temp2->m_wxis; | |
ae8162c8 | 3598 | created2 = false; |
2ef75293 RD |
3599 | } else { |
3600 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 3601 | arg2 = wxPyCBInputStream_create(obj1, false); |
2ef75293 RD |
3602 | if (arg2 == NULL) { |
3603 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
3604 | SWIG_fail; | |
3605 | } | |
ae8162c8 | 3606 | created2 = true; |
2ef75293 RD |
3607 | } |
3608 | } | |
3609 | if (obj2) { | |
3610 | { | |
3611 | arg3 = wxString_in_helper(obj2); | |
3612 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3613 | temp3 = true; |
2ef75293 RD |
3614 | } |
3615 | } | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | { | |
3624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3625 | } | |
3626 | { | |
3627 | if (created2) | |
3628 | delete arg2; | |
3629 | } | |
3630 | { | |
3631 | if (temp3) | |
3632 | delete arg3; | |
3633 | } | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | { | |
3637 | if (created2) | |
3638 | delete arg2; | |
3639 | } | |
3640 | { | |
3641 | if (temp3) | |
3642 | delete arg3; | |
3643 | } | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
3648 | static PyObject *_wrap_XmlDocument_Save(PyObject *, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject *resultobj; | |
3650 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3651 | wxString *arg2 = 0 ; | |
3652 | bool result; | |
ae8162c8 | 3653 | bool temp2 = false ; |
2ef75293 RD |
3654 | PyObject * obj0 = 0 ; |
3655 | PyObject * obj1 = 0 ; | |
3656 | char *kwnames[] = { | |
3657 | (char *) "self",(char *) "filename", NULL | |
3658 | }; | |
3659 | ||
3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_Save",kwnames,&obj0,&obj1)) goto fail; | |
3661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3663 | { | |
3664 | arg2 = wxString_in_helper(obj1); | |
3665 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3666 | temp2 = true; |
2ef75293 RD |
3667 | } |
3668 | { | |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2); | |
3671 | ||
3672 | wxPyEndAllowThreads(__tstate); | |
3673 | if (PyErr_Occurred()) SWIG_fail; | |
3674 | } | |
3675 | { | |
3676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3677 | } | |
3678 | { | |
3679 | if (temp2) | |
3680 | delete arg2; | |
3681 | } | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | { | |
3685 | if (temp2) | |
3686 | delete arg2; | |
3687 | } | |
3688 | return NULL; | |
3689 | } | |
3690 | ||
3691 | ||
3692 | static PyObject *_wrap_XmlDocument_SaveToStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject *resultobj; | |
3694 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3695 | wxOutputStream *arg2 = 0 ; | |
3696 | bool result; | |
3697 | PyObject * obj0 = 0 ; | |
3698 | PyObject * obj1 = 0 ; | |
3699 | char *kwnames[] = { | |
3700 | (char *) "self",(char *) "stream", NULL | |
3701 | }; | |
3702 | ||
3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SaveToStream",kwnames,&obj0,&obj1)) goto fail; | |
3704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
3707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3708 | SWIG_fail; | |
3709 | if (arg2 == NULL) { | |
3710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3711 | SWIG_fail; | |
3712 | } | |
3713 | { | |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | { | |
3721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3722 | } | |
3723 | return resultobj; | |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject *_wrap_XmlDocument_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
3730 | PyObject *resultobj; | |
3731 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3732 | bool result; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_IsOk",kwnames,&obj0)) goto fail; | |
3739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3741 | { | |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = (bool)((wxXmlDocument const *)arg1)->IsOk(); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | { | |
3749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3750 | } | |
3751 | return resultobj; | |
3752 | fail: | |
3753 | return NULL; | |
3754 | } | |
3755 | ||
3756 | ||
3757 | static PyObject *_wrap_XmlDocument_GetRoot(PyObject *, PyObject *args, PyObject *kwargs) { | |
3758 | PyObject *resultobj; | |
3759 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3760 | wxXmlNode *result; | |
3761 | PyObject * obj0 = 0 ; | |
3762 | char *kwnames[] = { | |
3763 | (char *) "self", NULL | |
3764 | }; | |
3765 | ||
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetRoot",kwnames,&obj0)) goto fail; | |
3767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3769 | { | |
3770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3771 | result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot(); | |
3772 | ||
3773 | wxPyEndAllowThreads(__tstate); | |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | } | |
3776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
3777 | return resultobj; | |
3778 | fail: | |
3779 | return NULL; | |
3780 | } | |
3781 | ||
3782 | ||
3783 | static PyObject *_wrap_XmlDocument_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject *resultobj; | |
3785 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3786 | wxString result; | |
3787 | PyObject * obj0 = 0 ; | |
3788 | char *kwnames[] = { | |
3789 | (char *) "self", NULL | |
3790 | }; | |
3791 | ||
3792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetVersion",kwnames,&obj0)) goto fail; | |
3793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3795 | { | |
3796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3797 | result = ((wxXmlDocument const *)arg1)->GetVersion(); | |
3798 | ||
3799 | wxPyEndAllowThreads(__tstate); | |
3800 | if (PyErr_Occurred()) SWIG_fail; | |
3801 | } | |
3802 | { | |
3803 | #if wxUSE_UNICODE | |
3804 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3805 | #else | |
3806 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3807 | #endif | |
3808 | } | |
3809 | return resultobj; | |
3810 | fail: | |
3811 | return NULL; | |
3812 | } | |
3813 | ||
3814 | ||
3815 | static PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject *resultobj; | |
3817 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3818 | wxString result; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | char *kwnames[] = { | |
3821 | (char *) "self", NULL | |
3822 | }; | |
3823 | ||
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetFileEncoding",kwnames,&obj0)) goto fail; | |
3825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3827 | { | |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | result = ((wxXmlDocument const *)arg1)->GetFileEncoding(); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | { | |
3835 | #if wxUSE_UNICODE | |
3836 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3837 | #else | |
3838 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3839 | #endif | |
3840 | } | |
3841 | return resultobj; | |
3842 | fail: | |
3843 | return NULL; | |
3844 | } | |
3845 | ||
3846 | ||
3847 | static PyObject *_wrap_XmlDocument_SetRoot(PyObject *, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject *resultobj; | |
3849 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3850 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3851 | PyObject * obj0 = 0 ; | |
3852 | PyObject * obj1 = 0 ; | |
3853 | char *kwnames[] = { | |
3854 | (char *) "self",(char *) "node", NULL | |
3855 | }; | |
3856 | ||
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) goto fail; | |
3858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3862 | { | |
3863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3864 | (arg1)->SetRoot(arg2); | |
3865 | ||
3866 | wxPyEndAllowThreads(__tstate); | |
3867 | if (PyErr_Occurred()) SWIG_fail; | |
3868 | } | |
3869 | Py_INCREF(Py_None); resultobj = Py_None; | |
3870 | return resultobj; | |
3871 | fail: | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | static PyObject *_wrap_XmlDocument_SetVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject *resultobj; | |
3878 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3879 | wxString *arg2 = 0 ; | |
ae8162c8 | 3880 | bool temp2 = false ; |
2ef75293 RD |
3881 | PyObject * obj0 = 0 ; |
3882 | PyObject * obj1 = 0 ; | |
3883 | char *kwnames[] = { | |
3884 | (char *) "self",(char *) "version", NULL | |
3885 | }; | |
3886 | ||
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) goto fail; | |
3888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3890 | { | |
3891 | arg2 = wxString_in_helper(obj1); | |
3892 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3893 | temp2 = true; |
2ef75293 RD |
3894 | } |
3895 | { | |
3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3897 | (arg1)->SetVersion((wxString const &)*arg2); | |
3898 | ||
3899 | wxPyEndAllowThreads(__tstate); | |
3900 | if (PyErr_Occurred()) SWIG_fail; | |
3901 | } | |
3902 | Py_INCREF(Py_None); resultobj = Py_None; | |
3903 | { | |
3904 | if (temp2) | |
3905 | delete arg2; | |
3906 | } | |
3907 | return resultobj; | |
3908 | fail: | |
3909 | { | |
3910 | if (temp2) | |
3911 | delete arg2; | |
3912 | } | |
3913 | return NULL; | |
3914 | } | |
3915 | ||
3916 | ||
3917 | static PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
3918 | PyObject *resultobj; | |
3919 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3920 | wxString *arg2 = 0 ; | |
ae8162c8 | 3921 | bool temp2 = false ; |
2ef75293 RD |
3922 | PyObject * obj0 = 0 ; |
3923 | PyObject * obj1 = 0 ; | |
3924 | char *kwnames[] = { | |
3925 | (char *) "self",(char *) "encoding", NULL | |
3926 | }; | |
3927 | ||
3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) goto fail; | |
3929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3931 | { | |
3932 | arg2 = wxString_in_helper(obj1); | |
3933 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3934 | temp2 = true; |
2ef75293 RD |
3935 | } |
3936 | { | |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3938 | (arg1)->SetFileEncoding((wxString const &)*arg2); | |
3939 | ||
3940 | wxPyEndAllowThreads(__tstate); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | } | |
3943 | Py_INCREF(Py_None); resultobj = Py_None; | |
3944 | { | |
3945 | if (temp2) | |
3946 | delete arg2; | |
3947 | } | |
3948 | return resultobj; | |
3949 | fail: | |
3950 | { | |
3951 | if (temp2) | |
3952 | delete arg2; | |
3953 | } | |
3954 | return NULL; | |
3955 | } | |
3956 | ||
3957 | ||
3958 | static PyObject * XmlDocument_swigregister(PyObject *, PyObject *args) { | |
3959 | PyObject *obj; | |
3960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3961 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument, obj); | |
3962 | Py_INCREF(obj); | |
3963 | return Py_BuildValue((char *)""); | |
3964 | } | |
3965 | static PyObject *_wrap_new_XmlResourceHandler(PyObject *, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | wxPyXmlResourceHandler *result; | |
3968 | char *kwnames[] = { | |
3969 | NULL | |
3970 | }; | |
3971 | ||
3972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlResourceHandler",kwnames)) goto fail; | |
3973 | { | |
3974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3975 | result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler(); | |
3976 | ||
3977 | wxPyEndAllowThreads(__tstate); | |
3978 | if (PyErr_Occurred()) SWIG_fail; | |
3979 | } | |
3980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlResourceHandler, 1); | |
3981 | return resultobj; | |
3982 | fail: | |
3983 | return NULL; | |
3984 | } | |
3985 | ||
3986 | ||
3987 | static PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3988 | PyObject *resultobj; | |
3989 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
3990 | PyObject *arg2 = (PyObject *) 0 ; | |
3991 | PyObject *arg3 = (PyObject *) 0 ; | |
3992 | PyObject * obj0 = 0 ; | |
3993 | PyObject * obj1 = 0 ; | |
3994 | PyObject * obj2 = 0 ; | |
3995 | char *kwnames[] = { | |
3996 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
3997 | }; | |
3998 | ||
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4002 | arg2 = obj1; | |
4003 | arg3 = obj2; | |
4004 | { | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | Py_INCREF(Py_None); resultobj = Py_None; | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
4018 | static PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
4019 | PyObject *resultobj; | |
4020 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4021 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
4022 | wxObject *arg3 = (wxObject *) 0 ; | |
4023 | wxObject *arg4 = (wxObject *) 0 ; | |
4024 | wxObject *result; | |
4025 | PyObject * obj0 = 0 ; | |
4026 | PyObject * obj1 = 0 ; | |
4027 | PyObject * obj2 = 0 ; | |
4028 | PyObject * obj3 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4036 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
4037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4038 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
4039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4040 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxObject, | |
4041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4042 | { | |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4044 | result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4); | |
4045 | ||
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) SWIG_fail; | |
4048 | } | |
4049 | { | |
4050 | resultobj = wxPyMake_wxObject(result, 0); | |
4051 | } | |
4052 | return resultobj; | |
4053 | fail: | |
4054 | return NULL; | |
4055 | } | |
4056 | ||
4057 | ||
4058 | static PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
4059 | PyObject *resultobj; | |
4060 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4061 | wxXmlResource *arg2 = (wxXmlResource *) 0 ; | |
4062 | PyObject * obj0 = 0 ; | |
4063 | PyObject * obj1 = 0 ; | |
4064 | char *kwnames[] = { | |
4065 | (char *) "self",(char *) "res", NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) goto fail; | |
4069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlResource, | |
4072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4073 | { | |
4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4075 | (arg1)->SetParentResource(arg2); | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | Py_INCREF(Py_None); resultobj = Py_None; | |
4081 | return resultobj; | |
4082 | fail: | |
4083 | return NULL; | |
4084 | } | |
4085 | ||
4086 | ||
4087 | static PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject *resultobj; | |
4089 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4090 | wxXmlResource *result; | |
4091 | PyObject * obj0 = 0 ; | |
4092 | char *kwnames[] = { | |
4093 | (char *) "self", NULL | |
4094 | }; | |
4095 | ||
4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetResource",kwnames,&obj0)) goto fail; | |
4097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4099 | { | |
4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4101 | result = (wxXmlResource *)(arg1)->GetResource(); | |
4102 | ||
4103 | wxPyEndAllowThreads(__tstate); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
4107 | return resultobj; | |
4108 | fail: | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
4113 | static PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4114 | PyObject *resultobj; | |
4115 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4116 | wxXmlNode *result; | |
4117 | PyObject * obj0 = 0 ; | |
4118 | char *kwnames[] = { | |
4119 | (char *) "self", NULL | |
4120 | }; | |
4121 | ||
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetNode",kwnames,&obj0)) goto fail; | |
4123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4125 | { | |
4126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4127 | result = (wxXmlNode *)(arg1)->GetNode(); | |
4128 | ||
4129 | wxPyEndAllowThreads(__tstate); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
4133 | return resultobj; | |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
4139 | static PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject *resultobj; | |
4141 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4142 | wxString result; | |
4143 | PyObject * obj0 = 0 ; | |
4144 | char *kwnames[] = { | |
4145 | (char *) "self", NULL | |
4146 | }; | |
4147 | ||
4148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetClass",kwnames,&obj0)) goto fail; | |
4149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4151 | { | |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | result = (arg1)->GetClass(); | |
4154 | ||
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | { | |
4159 | #if wxUSE_UNICODE | |
4160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4161 | #else | |
4162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4163 | #endif | |
4164 | } | |
4165 | return resultobj; | |
4166 | fail: | |
4167 | return NULL; | |
4168 | } | |
4169 | ||
4170 | ||
4171 | static PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4172 | PyObject *resultobj; | |
4173 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4174 | wxObject *result; | |
4175 | PyObject * obj0 = 0 ; | |
4176 | char *kwnames[] = { | |
4177 | (char *) "self", NULL | |
4178 | }; | |
4179 | ||
4180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParent",kwnames,&obj0)) goto fail; | |
4181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | result = (wxObject *)(arg1)->GetParent(); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | resultobj = wxPyMake_wxObject(result, 0); | |
4192 | } | |
4193 | return resultobj; | |
4194 | fail: | |
4195 | return NULL; | |
4196 | } | |
4197 | ||
4198 | ||
4199 | static PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject *resultobj; | |
4201 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4202 | wxObject *result; | |
4203 | PyObject * obj0 = 0 ; | |
4204 | char *kwnames[] = { | |
4205 | (char *) "self", NULL | |
4206 | }; | |
4207 | ||
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetInstance",kwnames,&obj0)) goto fail; | |
4209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4211 | { | |
4212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4213 | result = (wxObject *)(arg1)->GetInstance(); | |
4214 | ||
4215 | wxPyEndAllowThreads(__tstate); | |
4216 | if (PyErr_Occurred()) SWIG_fail; | |
4217 | } | |
4218 | { | |
4219 | resultobj = wxPyMake_wxObject(result, 0); | |
4220 | } | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
4227 | static PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
4228 | PyObject *resultobj; | |
4229 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4230 | wxWindow *result; | |
4231 | PyObject * obj0 = 0 ; | |
4232 | char *kwnames[] = { | |
4233 | (char *) "self", NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames,&obj0)) goto fail; | |
4237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4241 | result = (wxWindow *)(arg1)->GetParentAsWindow(); | |
4242 | ||
4243 | wxPyEndAllowThreads(__tstate); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
4246 | { | |
4247 | resultobj = wxPyMake_wxObject(result, 0); | |
4248 | } | |
4249 | return resultobj; | |
4250 | fail: | |
4251 | return NULL; | |
4252 | } | |
4253 | ||
4254 | ||
2ef75293 RD |
4255 | static PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *, PyObject *args, PyObject *kwargs) { |
4256 | PyObject *resultobj; | |
4257 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4258 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
4259 | wxString *arg3 = 0 ; | |
4260 | bool result; | |
ae8162c8 | 4261 | bool temp3 = false ; |
2ef75293 RD |
4262 | PyObject * obj0 = 0 ; |
4263 | PyObject * obj1 = 0 ; | |
4264 | PyObject * obj2 = 0 ; | |
4265 | char *kwnames[] = { | |
4266 | (char *) "self",(char *) "node",(char *) "classname", NULL | |
4267 | }; | |
4268 | ||
4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4272 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
4273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4274 | { | |
4275 | arg3 = wxString_in_helper(obj2); | |
4276 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4277 | temp3 = true; |
2ef75293 RD |
4278 | } |
4279 | { | |
4280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4281 | result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3); | |
4282 | ||
4283 | wxPyEndAllowThreads(__tstate); | |
4284 | if (PyErr_Occurred()) SWIG_fail; | |
4285 | } | |
4286 | { | |
4287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4288 | } | |
4289 | { | |
4290 | if (temp3) | |
4291 | delete arg3; | |
4292 | } | |
4293 | return resultobj; | |
4294 | fail: | |
4295 | { | |
4296 | if (temp3) | |
4297 | delete arg3; | |
4298 | } | |
4299 | return NULL; | |
4300 | } | |
4301 | ||
4302 | ||
4303 | static PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4304 | PyObject *resultobj; | |
4305 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4306 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
4307 | wxString result; | |
4308 | PyObject * obj0 = 0 ; | |
4309 | PyObject * obj1 = 0 ; | |
4310 | char *kwnames[] = { | |
4311 | (char *) "self",(char *) "node", NULL | |
4312 | }; | |
4313 | ||
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) goto fail; | |
4315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
4318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4319 | { | |
4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4321 | result = (arg1)->GetNodeContent(arg2); | |
4322 | ||
4323 | wxPyEndAllowThreads(__tstate); | |
4324 | if (PyErr_Occurred()) SWIG_fail; | |
4325 | } | |
4326 | { | |
4327 | #if wxUSE_UNICODE | |
4328 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4329 | #else | |
4330 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4331 | #endif | |
4332 | } | |
4333 | return resultobj; | |
4334 | fail: | |
4335 | return NULL; | |
4336 | } | |
4337 | ||
4338 | ||
4339 | static PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject *resultobj; | |
4341 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4342 | wxString *arg2 = 0 ; | |
4343 | bool result; | |
ae8162c8 | 4344 | bool temp2 = false ; |
2ef75293 RD |
4345 | PyObject * obj0 = 0 ; |
4346 | PyObject * obj1 = 0 ; | |
4347 | char *kwnames[] = { | |
4348 | (char *) "self",(char *) "param", NULL | |
4349 | }; | |
4350 | ||
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) goto fail; | |
4352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4354 | { | |
4355 | arg2 = wxString_in_helper(obj1); | |
4356 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4357 | temp2 = true; |
2ef75293 RD |
4358 | } |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (bool)(arg1)->HasParam((wxString const &)*arg2); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4366 | { | |
4367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4368 | } | |
4369 | { | |
4370 | if (temp2) | |
4371 | delete arg2; | |
4372 | } | |
4373 | return resultobj; | |
4374 | fail: | |
4375 | { | |
4376 | if (temp2) | |
4377 | delete arg2; | |
4378 | } | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj; | |
4385 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4386 | wxString *arg2 = 0 ; | |
4387 | wxXmlNode *result; | |
ae8162c8 | 4388 | bool temp2 = false ; |
2ef75293 RD |
4389 | PyObject * obj0 = 0 ; |
4390 | PyObject * obj1 = 0 ; | |
4391 | char *kwnames[] = { | |
4392 | (char *) "self",(char *) "param", NULL | |
4393 | }; | |
4394 | ||
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) goto fail; | |
4396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4398 | { | |
4399 | arg2 = wxString_in_helper(obj1); | |
4400 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4401 | temp2 = true; |
2ef75293 RD |
4402 | } |
4403 | { | |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4405 | result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2); | |
4406 | ||
4407 | wxPyEndAllowThreads(__tstate); | |
4408 | if (PyErr_Occurred()) SWIG_fail; | |
4409 | } | |
4410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
4411 | { | |
4412 | if (temp2) | |
4413 | delete arg2; | |
4414 | } | |
4415 | return resultobj; | |
4416 | fail: | |
4417 | { | |
4418 | if (temp2) | |
4419 | delete arg2; | |
4420 | } | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
4425 | static PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
4426 | PyObject *resultobj; | |
4427 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4428 | wxString *arg2 = 0 ; | |
4429 | wxString result; | |
ae8162c8 | 4430 | bool temp2 = false ; |
2ef75293 RD |
4431 | PyObject * obj0 = 0 ; |
4432 | PyObject * obj1 = 0 ; | |
4433 | char *kwnames[] = { | |
4434 | (char *) "self",(char *) "param", NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) goto fail; | |
4438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4440 | { | |
4441 | arg2 = wxString_in_helper(obj1); | |
4442 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4443 | temp2 = true; |
2ef75293 RD |
4444 | } |
4445 | { | |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = (arg1)->GetParamValue((wxString const &)*arg2); | |
4448 | ||
4449 | wxPyEndAllowThreads(__tstate); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | { | |
4453 | #if wxUSE_UNICODE | |
4454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4455 | #else | |
4456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4457 | #endif | |
4458 | } | |
4459 | { | |
4460 | if (temp2) | |
4461 | delete arg2; | |
4462 | } | |
4463 | return resultobj; | |
4464 | fail: | |
4465 | { | |
4466 | if (temp2) | |
4467 | delete arg2; | |
4468 | } | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | static PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4476 | wxString *arg2 = 0 ; | |
4477 | int arg3 ; | |
ae8162c8 | 4478 | bool temp2 = false ; |
2ef75293 RD |
4479 | PyObject * obj0 = 0 ; |
4480 | PyObject * obj1 = 0 ; | |
4481 | PyObject * obj2 = 0 ; | |
4482 | char *kwnames[] = { | |
4483 | (char *) "self",(char *) "name",(char *) "value", NULL | |
4484 | }; | |
4485 | ||
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4489 | { | |
4490 | arg2 = wxString_in_helper(obj1); | |
4491 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4492 | temp2 = true; |
2ef75293 RD |
4493 | } |
4494 | arg3 = (int)SWIG_As_int(obj2); | |
4495 | if (PyErr_Occurred()) SWIG_fail; | |
4496 | { | |
4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4498 | (arg1)->AddStyle((wxString const &)*arg2,arg3); | |
4499 | ||
4500 | wxPyEndAllowThreads(__tstate); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | } | |
4503 | Py_INCREF(Py_None); resultobj = Py_None; | |
4504 | { | |
4505 | if (temp2) | |
4506 | delete arg2; | |
4507 | } | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | { | |
4511 | if (temp2) | |
4512 | delete arg2; | |
4513 | } | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject *resultobj; | |
4520 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4521 | PyObject * obj0 = 0 ; | |
4522 | char *kwnames[] = { | |
4523 | (char *) "self", NULL | |
4524 | }; | |
4525 | ||
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames,&obj0)) goto fail; | |
4527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | (arg1)->AddWindowStyles(); | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | Py_INCREF(Py_None); resultobj = Py_None; | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | static PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
4544 | PyObject *resultobj; | |
4545 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4546 | wxString const &arg2_defvalue = wxPyStyleString ; | |
4547 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4548 | int arg3 = (int) 0 ; | |
4549 | int result; | |
ae8162c8 | 4550 | bool temp2 = false ; |
2ef75293 RD |
4551 | PyObject * obj0 = 0 ; |
4552 | PyObject * obj1 = 0 ; | |
4553 | PyObject * obj2 = 0 ; | |
4554 | char *kwnames[] = { | |
4555 | (char *) "self",(char *) "param",(char *) "defaults", NULL | |
4556 | }; | |
4557 | ||
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4561 | if (obj1) { | |
4562 | { | |
4563 | arg2 = wxString_in_helper(obj1); | |
4564 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4565 | temp2 = true; |
2ef75293 RD |
4566 | } |
4567 | } | |
4568 | if (obj2) { | |
4569 | arg3 = (int)SWIG_As_int(obj2); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | resultobj = SWIG_From_int((int)result); | |
4580 | { | |
4581 | if (temp2) | |
4582 | delete arg2; | |
4583 | } | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | { | |
4587 | if (temp2) | |
4588 | delete arg2; | |
4589 | } | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
4594 | static PyObject *_wrap_XmlResourceHandler_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4597 | wxString *arg2 = 0 ; | |
ae8162c8 | 4598 | bool arg3 = (bool) true ; |
2ef75293 | 4599 | wxString result; |
ae8162c8 | 4600 | bool temp2 = false ; |
2ef75293 RD |
4601 | PyObject * obj0 = 0 ; |
4602 | PyObject * obj1 = 0 ; | |
4603 | PyObject * obj2 = 0 ; | |
4604 | char *kwnames[] = { | |
4605 | (char *) "self",(char *) "param",(char *) "translate", NULL | |
4606 | }; | |
4607 | ||
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4611 | { | |
4612 | arg2 = wxString_in_helper(obj1); | |
4613 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4614 | temp2 = true; |
2ef75293 RD |
4615 | } |
4616 | if (obj2) { | |
4617 | arg3 = (bool)SWIG_As_bool(obj2); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | { | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (arg1)->GetText((wxString const &)*arg2,arg3); | |
4623 | ||
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
4627 | { | |
4628 | #if wxUSE_UNICODE | |
4629 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4630 | #else | |
4631 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4632 | #endif | |
4633 | } | |
4634 | { | |
4635 | if (temp2) | |
4636 | delete arg2; | |
4637 | } | |
4638 | return resultobj; | |
4639 | fail: | |
4640 | { | |
4641 | if (temp2) | |
4642 | delete arg2; | |
4643 | } | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject *_wrap_XmlResourceHandler_GetID(PyObject *, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject *resultobj; | |
4650 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4651 | int result; | |
4652 | PyObject * obj0 = 0 ; | |
4653 | char *kwnames[] = { | |
4654 | (char *) "self", NULL | |
4655 | }; | |
4656 | ||
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetID",kwnames,&obj0)) goto fail; | |
4658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4660 | { | |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4662 | result = (int)(arg1)->GetID(); | |
4663 | ||
4664 | wxPyEndAllowThreads(__tstate); | |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
4666 | } | |
4667 | resultobj = SWIG_From_int((int)result); | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | static PyObject *_wrap_XmlResourceHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj; | |
4676 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4677 | wxString result; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "self", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetName",kwnames,&obj0)) goto fail; | |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4686 | { | |
4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4688 | result = (arg1)->GetName(); | |
4689 | ||
4690 | wxPyEndAllowThreads(__tstate); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
4693 | { | |
4694 | #if wxUSE_UNICODE | |
4695 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4696 | #else | |
4697 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4698 | #endif | |
4699 | } | |
4700 | return resultobj; | |
4701 | fail: | |
4702 | return NULL; | |
4703 | } | |
4704 | ||
4705 | ||
4706 | static PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *, PyObject *args, PyObject *kwargs) { | |
4707 | PyObject *resultobj; | |
4708 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4709 | wxString *arg2 = 0 ; | |
ae8162c8 | 4710 | bool arg3 = (bool) false ; |
2ef75293 | 4711 | bool result; |
ae8162c8 | 4712 | bool temp2 = false ; |
2ef75293 RD |
4713 | PyObject * obj0 = 0 ; |
4714 | PyObject * obj1 = 0 ; | |
4715 | PyObject * obj2 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4723 | { | |
4724 | arg2 = wxString_in_helper(obj1); | |
4725 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4726 | temp2 = true; |
2ef75293 RD |
4727 | } |
4728 | if (obj2) { | |
4729 | arg3 = (bool)SWIG_As_bool(obj2); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | { | |
4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4734 | result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3); | |
4735 | ||
4736 | wxPyEndAllowThreads(__tstate); | |
4737 | if (PyErr_Occurred()) SWIG_fail; | |
4738 | } | |
4739 | { | |
4740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4741 | } | |
4742 | { | |
4743 | if (temp2) | |
4744 | delete arg2; | |
4745 | } | |
4746 | return resultobj; | |
4747 | fail: | |
4748 | { | |
4749 | if (temp2) | |
4750 | delete arg2; | |
4751 | } | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4759 | wxString *arg2 = 0 ; | |
4760 | long arg3 = (long) 0 ; | |
4761 | long result; | |
ae8162c8 | 4762 | bool temp2 = false ; |
2ef75293 RD |
4763 | PyObject * obj0 = 0 ; |
4764 | PyObject * obj1 = 0 ; | |
4765 | PyObject * obj2 = 0 ; | |
4766 | char *kwnames[] = { | |
4767 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4768 | }; | |
4769 | ||
4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4773 | { | |
4774 | arg2 = wxString_in_helper(obj1); | |
4775 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4776 | temp2 = true; |
2ef75293 RD |
4777 | } |
4778 | if (obj2) { | |
4779 | arg3 = (long)SWIG_As_long(obj2); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | { | |
4783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4784 | result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3); | |
4785 | ||
4786 | wxPyEndAllowThreads(__tstate); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
4789 | resultobj = SWIG_From_long((long)result); | |
4790 | { | |
4791 | if (temp2) | |
4792 | delete arg2; | |
4793 | } | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | { | |
4797 | if (temp2) | |
4798 | delete arg2; | |
4799 | } | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
4804 | static PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject *resultobj; | |
4806 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4807 | wxString *arg2 = 0 ; | |
4808 | wxColour result; | |
ae8162c8 | 4809 | bool temp2 = false ; |
2ef75293 RD |
4810 | PyObject * obj0 = 0 ; |
4811 | PyObject * obj1 = 0 ; | |
4812 | char *kwnames[] = { | |
4813 | (char *) "self",(char *) "param", NULL | |
4814 | }; | |
4815 | ||
4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) goto fail; | |
4817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4819 | { | |
4820 | arg2 = wxString_in_helper(obj1); | |
4821 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4822 | temp2 = true; |
2ef75293 RD |
4823 | } |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (arg1)->GetColour((wxString const &)*arg2); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | { | |
4832 | wxColour * resultptr; | |
4833 | resultptr = new wxColour((wxColour &) result); | |
4834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
4835 | } | |
4836 | { | |
4837 | if (temp2) | |
4838 | delete arg2; | |
4839 | } | |
4840 | return resultobj; | |
4841 | fail: | |
4842 | { | |
4843 | if (temp2) | |
4844 | delete arg2; | |
4845 | } | |
4846 | return NULL; | |
4847 | } | |
4848 | ||
4849 | ||
4850 | static PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4851 | PyObject *resultobj; | |
4852 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4853 | wxString const &arg2_defvalue = wxPySizeString ; | |
4854 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4855 | wxSize result; | |
ae8162c8 | 4856 | bool temp2 = false ; |
2ef75293 RD |
4857 | PyObject * obj0 = 0 ; |
4858 | PyObject * obj1 = 0 ; | |
4859 | char *kwnames[] = { | |
4860 | (char *) "self",(char *) "param", NULL | |
4861 | }; | |
4862 | ||
4863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
4864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4866 | if (obj1) { | |
4867 | { | |
4868 | arg2 = wxString_in_helper(obj1); | |
4869 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4870 | temp2 = true; |
2ef75293 RD |
4871 | } |
4872 | } | |
4873 | { | |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4875 | result = (arg1)->GetSize((wxString const &)*arg2); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
4880 | { | |
4881 | wxSize * resultptr; | |
4882 | resultptr = new wxSize((wxSize &) result); | |
4883 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4884 | } | |
4885 | { | |
4886 | if (temp2) | |
4887 | delete arg2; | |
4888 | } | |
4889 | return resultobj; | |
4890 | fail: | |
4891 | { | |
4892 | if (temp2) | |
4893 | delete arg2; | |
4894 | } | |
4895 | return NULL; | |
4896 | } | |
4897 | ||
4898 | ||
4899 | static PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
4900 | PyObject *resultobj; | |
4901 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4902 | wxString const &arg2_defvalue = wxPyPosString ; | |
4903 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4904 | wxPoint result; | |
ae8162c8 | 4905 | bool temp2 = false ; |
2ef75293 RD |
4906 | PyObject * obj0 = 0 ; |
4907 | PyObject * obj1 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "self",(char *) "param", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) goto fail; | |
4913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4915 | if (obj1) { | |
4916 | { | |
4917 | arg2 = wxString_in_helper(obj1); | |
4918 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4919 | temp2 = true; |
2ef75293 RD |
4920 | } |
4921 | } | |
4922 | { | |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | result = (arg1)->GetPosition((wxString const &)*arg2); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
4929 | { | |
4930 | wxPoint * resultptr; | |
4931 | resultptr = new wxPoint((wxPoint &) result); | |
4932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4933 | } | |
4934 | { | |
4935 | if (temp2) | |
4936 | delete arg2; | |
4937 | } | |
4938 | return resultobj; | |
4939 | fail: | |
4940 | { | |
4941 | if (temp2) | |
4942 | delete arg2; | |
4943 | } | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
4948 | static PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject *resultobj; | |
4950 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4951 | wxString *arg2 = 0 ; | |
4952 | int arg3 = (int) 0 ; | |
4953 | int result; | |
ae8162c8 | 4954 | bool temp2 = false ; |
2ef75293 RD |
4955 | PyObject * obj0 = 0 ; |
4956 | PyObject * obj1 = 0 ; | |
4957 | PyObject * obj2 = 0 ; | |
4958 | char *kwnames[] = { | |
4959 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4965 | { | |
4966 | arg2 = wxString_in_helper(obj1); | |
4967 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4968 | temp2 = true; |
2ef75293 RD |
4969 | } |
4970 | if (obj2) { | |
4971 | arg3 = (int)SWIG_As_int(obj2); | |
4972 | if (PyErr_Occurred()) SWIG_fail; | |
4973 | } | |
4974 | { | |
4975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4976 | result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3); | |
4977 | ||
4978 | wxPyEndAllowThreads(__tstate); | |
4979 | if (PyErr_Occurred()) SWIG_fail; | |
4980 | } | |
4981 | resultobj = SWIG_From_int((int)result); | |
4982 | { | |
4983 | if (temp2) | |
4984 | delete arg2; | |
4985 | } | |
4986 | return resultobj; | |
4987 | fail: | |
4988 | { | |
4989 | if (temp2) | |
4990 | delete arg2; | |
4991 | } | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | static PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4997 | PyObject *resultobj; | |
4998 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4999 | wxString const &arg2_defvalue = wxPyBitmapString ; | |
5000 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5001 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
5002 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
5003 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
5004 | wxBitmap result; | |
ae8162c8 | 5005 | bool temp2 = false ; |
2ef75293 RD |
5006 | wxSize *argp4 ; |
5007 | PyObject * obj0 = 0 ; | |
5008 | PyObject * obj1 = 0 ; | |
5009 | PyObject * obj2 = 0 ; | |
5010 | PyObject * obj3 = 0 ; | |
5011 | char *kwnames[] = { | |
5012 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
5013 | }; | |
5014 | ||
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5018 | if (obj1) { | |
5019 | { | |
5020 | arg2 = wxString_in_helper(obj1); | |
5021 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5022 | temp2 = true; |
2ef75293 RD |
5023 | } |
5024 | } | |
5025 | if (obj2) { | |
5026 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArtClient, | |
5027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5028 | SWIG_fail; | |
5029 | if (arg3 == NULL) { | |
5030 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5031 | SWIG_fail; | |
5032 | } | |
5033 | } | |
5034 | if (obj3) { | |
5035 | if ((SWIG_ConvertPtr(obj3,(void **)(&argp4),SWIGTYPE_p_wxSize, | |
5036 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5037 | arg4 = *argp4; | |
5038 | } | |
5039 | { | |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5041 | result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | { | |
5047 | wxBitmap * resultptr; | |
5048 | resultptr = new wxBitmap((wxBitmap &) result); | |
5049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5050 | } | |
5051 | { | |
5052 | if (temp2) | |
5053 | delete arg2; | |
5054 | } | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | { | |
5058 | if (temp2) | |
5059 | delete arg2; | |
5060 | } | |
5061 | return NULL; | |
5062 | } | |
5063 | ||
5064 | ||
5065 | static PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
5066 | PyObject *resultobj; | |
5067 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5068 | wxString const &arg2_defvalue = wxPyIconString ; | |
5069 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5070 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
5071 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
5072 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
5073 | wxIcon result; | |
ae8162c8 | 5074 | bool temp2 = false ; |
2ef75293 RD |
5075 | wxSize *argp4 ; |
5076 | PyObject * obj0 = 0 ; | |
5077 | PyObject * obj1 = 0 ; | |
5078 | PyObject * obj2 = 0 ; | |
5079 | PyObject * obj3 = 0 ; | |
5080 | char *kwnames[] = { | |
5081 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
5082 | }; | |
5083 | ||
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5087 | if (obj1) { | |
5088 | { | |
5089 | arg2 = wxString_in_helper(obj1); | |
5090 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5091 | temp2 = true; |
2ef75293 RD |
5092 | } |
5093 | } | |
5094 | if (obj2) { | |
5095 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArtClient, | |
5096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5097 | SWIG_fail; | |
5098 | if (arg3 == NULL) { | |
5099 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5100 | SWIG_fail; | |
5101 | } | |
5102 | } | |
5103 | if (obj3) { | |
5104 | if ((SWIG_ConvertPtr(obj3,(void **)(&argp4),SWIGTYPE_p_wxSize, | |
5105 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5106 | arg4 = *argp4; | |
5107 | } | |
5108 | { | |
5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5110 | result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
5111 | ||
5112 | wxPyEndAllowThreads(__tstate); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
5115 | { | |
5116 | wxIcon * resultptr; | |
5117 | resultptr = new wxIcon((wxIcon &) result); | |
5118 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
5119 | } | |
5120 | { | |
5121 | if (temp2) | |
5122 | delete arg2; | |
5123 | } | |
5124 | return resultobj; | |
5125 | fail: | |
5126 | { | |
5127 | if (temp2) | |
5128 | delete arg2; | |
5129 | } | |
5130 | return NULL; | |
5131 | } | |
5132 | ||
5133 | ||
5134 | static PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
5135 | PyObject *resultobj; | |
5136 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5137 | wxString const &arg2_defvalue = wxPyFontString ; | |
5138 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5139 | wxFont result; | |
ae8162c8 | 5140 | bool temp2 = false ; |
2ef75293 RD |
5141 | PyObject * obj0 = 0 ; |
5142 | PyObject * obj1 = 0 ; | |
5143 | char *kwnames[] = { | |
5144 | (char *) "self",(char *) "param", NULL | |
5145 | }; | |
5146 | ||
5147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) goto fail; | |
5148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5150 | if (obj1) { | |
5151 | { | |
5152 | arg2 = wxString_in_helper(obj1); | |
5153 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5154 | temp2 = true; |
2ef75293 RD |
5155 | } |
5156 | } | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | result = (arg1)->GetFont((wxString const &)*arg2); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | { | |
5165 | wxFont * resultptr; | |
5166 | resultptr = new wxFont((wxFont &) result); | |
5167 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
5168 | } | |
5169 | { | |
5170 | if (temp2) | |
5171 | delete arg2; | |
5172 | } | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | { | |
5176 | if (temp2) | |
5177 | delete arg2; | |
5178 | } | |
5179 | return NULL; | |
5180 | } | |
5181 | ||
5182 | ||
5183 | static PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject *resultobj; | |
5185 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5187 | PyObject * obj0 = 0 ; | |
5188 | PyObject * obj1 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self",(char *) "wnd", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) goto fail; | |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5198 | { | |
5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5200 | (arg1)->SetupWindow(arg2); | |
5201 | ||
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | Py_INCREF(Py_None); resultobj = Py_None; | |
5206 | return resultobj; | |
5207 | fail: | |
5208 | return NULL; | |
5209 | } | |
5210 | ||
5211 | ||
5212 | static PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject *resultobj; | |
5214 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5215 | wxObject *arg2 = (wxObject *) 0 ; | |
ae8162c8 | 5216 | bool arg3 = (bool) false ; |
2ef75293 RD |
5217 | PyObject * obj0 = 0 ; |
5218 | PyObject * obj1 = 0 ; | |
5219 | PyObject * obj2 = 0 ; | |
5220 | char *kwnames[] = { | |
5221 | (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL | |
5222 | }; | |
5223 | ||
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
5228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5229 | if (obj2) { | |
5230 | arg3 = (bool)SWIG_As_bool(obj2); | |
5231 | if (PyErr_Occurred()) SWIG_fail; | |
5232 | } | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | (arg1)->CreateChildren(arg2,arg3); | |
5236 | ||
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | Py_INCREF(Py_None); resultobj = Py_None; | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *, PyObject *args, PyObject *kwargs) { | |
5248 | PyObject *resultobj; | |
5249 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5250 | wxObject *arg2 = (wxObject *) 0 ; | |
5251 | wxXmlNode *arg3 = (wxXmlNode *) NULL ; | |
5252 | PyObject * obj0 = 0 ; | |
5253 | PyObject * obj1 = 0 ; | |
5254 | PyObject * obj2 = 0 ; | |
5255 | char *kwnames[] = { | |
5256 | (char *) "self",(char *) "parent",(char *) "rootnode", NULL | |
5257 | }; | |
5258 | ||
5259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
5263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5264 | if (obj2) { | |
5265 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlNode, | |
5266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5267 | } | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | (arg1)->CreateChildrenPrivately(arg2,arg3); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | Py_INCREF(Py_None); resultobj = Py_None; | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject *resultobj; | |
5284 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5285 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5286 | wxObject *arg3 = (wxObject *) 0 ; | |
5287 | wxObject *arg4 = (wxObject *) NULL ; | |
5288 | wxObject *result; | |
5289 | PyObject * obj0 = 0 ; | |
5290 | PyObject * obj1 = 0 ; | |
5291 | PyObject * obj2 = 0 ; | |
5292 | PyObject * obj3 = 0 ; | |
5293 | char *kwnames[] = { | |
5294 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
5295 | }; | |
5296 | ||
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
5301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5302 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
5303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5304 | if (obj3) { | |
5305 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxObject, | |
5306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5307 | } | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4); | |
5311 | ||
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | { | |
5316 | resultobj = wxPyMake_wxObject(result, 0); | |
5317 | } | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
5324 | static PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject *resultobj; | |
5326 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5327 | wxFileSystem *result; | |
5328 | PyObject * obj0 = 0 ; | |
5329 | char *kwnames[] = { | |
5330 | (char *) "self", NULL | |
5331 | }; | |
5332 | ||
5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames,&obj0)) goto fail; | |
5334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5336 | { | |
5337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5338 | { | |
5339 | wxFileSystem &_result_ref = (arg1)->GetCurFileSystem(); | |
5340 | result = (wxFileSystem *) &_result_ref; | |
5341 | } | |
5342 | ||
5343 | wxPyEndAllowThreads(__tstate); | |
5344 | if (PyErr_Occurred()) SWIG_fail; | |
5345 | } | |
5346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
5347 | return resultobj; | |
5348 | fail: | |
5349 | return NULL; | |
5350 | } | |
5351 | ||
5352 | ||
5353 | static PyObject * XmlResourceHandler_swigregister(PyObject *, PyObject *args) { | |
5354 | PyObject *obj; | |
5355 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5356 | SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler, obj); | |
5357 | Py_INCREF(obj); | |
5358 | return Py_BuildValue((char *)""); | |
5359 | } | |
5360 | static PyMethodDef SwigMethods[] = { | |
5361 | { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5362 | { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5363 | { (char *)"delete_XmlResource", (PyCFunction) _wrap_delete_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5364 | { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5365 | { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5366 | { (char *)"XmlResource_InitAllHandlers", (PyCFunction) _wrap_XmlResource_InitAllHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5367 | { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5368 | { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5369 | { (char *)"XmlResource_ClearHandlers", (PyCFunction) _wrap_XmlResource_ClearHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5370 | { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5371 | { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5372 | { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5373 | { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5374 | { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5375 | { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5376 | { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5377 | { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5378 | { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5379 | { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5380 | { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5381 | { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5382 | { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5383 | { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5384 | { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5385 | { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5386 | { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5387 | { (char *)"XmlResource_GetVersion", (PyCFunction) _wrap_XmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5388 | { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5389 | { (char *)"XmlResource_Get", (PyCFunction) _wrap_XmlResource_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5390 | { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5391 | { (char *)"XmlResource_GetFlags", (PyCFunction) _wrap_XmlResource_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5392 | { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5393 | { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL }, | |
5394 | { (char *)"new_XmlSubclassFactory", (PyCFunction) _wrap_new_XmlSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5395 | { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5396 | { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL }, | |
5397 | { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5398 | { (char *)"XmlProperty_GetName", (PyCFunction) _wrap_XmlProperty_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5399 | { (char *)"XmlProperty_GetValue", (PyCFunction) _wrap_XmlProperty_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5400 | { (char *)"XmlProperty_GetNext", (PyCFunction) _wrap_XmlProperty_GetNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5401 | { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5402 | { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5403 | { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5404 | { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL }, | |
5405 | { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5406 | { (char *)"delete_XmlNode", (PyCFunction) _wrap_delete_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5407 | { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5408 | { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5409 | { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5410 | { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5411 | { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5412 | { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5413 | { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5414 | { (char *)"XmlNode_GetType", (PyCFunction) _wrap_XmlNode_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5415 | { (char *)"XmlNode_GetName", (PyCFunction) _wrap_XmlNode_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5416 | { (char *)"XmlNode_GetContent", (PyCFunction) _wrap_XmlNode_GetContent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5417 | { (char *)"XmlNode_GetParent", (PyCFunction) _wrap_XmlNode_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5418 | { (char *)"XmlNode_GetNext", (PyCFunction) _wrap_XmlNode_GetNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5419 | { (char *)"XmlNode_GetChildren", (PyCFunction) _wrap_XmlNode_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5420 | { (char *)"XmlNode_GetProperties", (PyCFunction) _wrap_XmlNode_GetProperties, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5421 | { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5422 | { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5423 | { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5424 | { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5425 | { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5426 | { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5427 | { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5428 | { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5429 | { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5430 | { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL }, | |
5431 | { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5432 | { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5433 | { (char *)"new_EmptyXmlDocument", (PyCFunction) _wrap_new_EmptyXmlDocument, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5434 | { (char *)"delete_XmlDocument", (PyCFunction) _wrap_delete_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5435 | { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5436 | { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5437 | { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5438 | { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5439 | { (char *)"XmlDocument_IsOk", (PyCFunction) _wrap_XmlDocument_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5440 | { (char *)"XmlDocument_GetRoot", (PyCFunction) _wrap_XmlDocument_GetRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5441 | { (char *)"XmlDocument_GetVersion", (PyCFunction) _wrap_XmlDocument_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5442 | { (char *)"XmlDocument_GetFileEncoding", (PyCFunction) _wrap_XmlDocument_GetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5443 | { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5444 | { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5445 | { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5446 | { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL }, | |
5447 | { (char *)"new_XmlResourceHandler", (PyCFunction) _wrap_new_XmlResourceHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5448 | { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5449 | { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5450 | { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5451 | { (char *)"XmlResourceHandler_GetResource", (PyCFunction) _wrap_XmlResourceHandler_GetResource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5452 | { (char *)"XmlResourceHandler_GetNode", (PyCFunction) _wrap_XmlResourceHandler_GetNode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5453 | { (char *)"XmlResourceHandler_GetClass", (PyCFunction) _wrap_XmlResourceHandler_GetClass, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5454 | { (char *)"XmlResourceHandler_GetParent", (PyCFunction) _wrap_XmlResourceHandler_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5455 | { (char *)"XmlResourceHandler_GetInstance", (PyCFunction) _wrap_XmlResourceHandler_GetInstance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5456 | { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetParentAsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
2ef75293 RD |
5457 | { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL }, |
5458 | { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5459 | { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5460 | { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5461 | { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5462 | { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5463 | { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction) _wrap_XmlResourceHandler_AddWindowStyles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5464 | { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5465 | { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5466 | { (char *)"XmlResourceHandler_GetID", (PyCFunction) _wrap_XmlResourceHandler_GetID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5467 | { (char *)"XmlResourceHandler_GetName", (PyCFunction) _wrap_XmlResourceHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5468 | { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5469 | { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5470 | { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5471 | { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5472 | { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5473 | { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5474 | { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5475 | { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5476 | { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5477 | { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5478 | { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5479 | { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5480 | { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5481 | { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction) _wrap_XmlResourceHandler_GetCurFileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5482 | { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL }, | |
5483 | { NULL, NULL, 0, NULL } | |
5484 | }; | |
5485 | ||
5486 | ||
5487 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
5488 | ||
5489 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
5490 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
5491 | } | |
5492 | static void *_p_wxXmlDocumentTo_p_wxObject(void *x) { | |
5493 | return (void *)((wxObject *) ((wxXmlDocument *) x)); | |
5494 | } | |
5495 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
5496 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
5497 | } | |
5498 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
5499 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
5500 | } | |
5501 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
5502 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
5503 | } | |
5504 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
5505 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
5506 | } | |
5507 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
5508 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
5509 | } | |
5510 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
5511 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
5512 | } | |
5513 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
5514 | return (void *)((wxObject *) ((wxSizer *) x)); | |
5515 | } | |
5516 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
5517 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
5518 | } | |
5519 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
5520 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
5521 | } | |
5522 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
5523 | return (void *)((wxObject *) ((wxEvent *) x)); | |
5524 | } | |
5525 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
5526 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
5527 | } | |
5528 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
5529 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
5530 | } | |
5531 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
5532 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
5533 | } | |
5534 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
5535 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
5536 | } | |
5537 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
5538 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
5539 | } | |
5540 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
5541 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
5542 | } | |
5543 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
5544 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
5545 | } | |
5546 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
5547 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
5548 | } | |
5549 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
5550 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
5551 | } | |
5552 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
5553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
5554 | } | |
5555 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
5556 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
5557 | } | |
5558 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
5559 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
5560 | } | |
5561 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
5562 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
5563 | } | |
5564 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
5565 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
5566 | } | |
5567 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
5568 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
5569 | } | |
5570 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
5571 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
5572 | } | |
5573 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
5574 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
5575 | } | |
5576 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
5577 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
5578 | } | |
5579 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
5580 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
5581 | } | |
5582 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
5583 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
5584 | } | |
5585 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
5586 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
5587 | } | |
5588 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
5589 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
5590 | } | |
5591 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
5592 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
5593 | } | |
5594 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
5595 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
5596 | } | |
5597 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
5598 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
5599 | } | |
5600 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
5601 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
5602 | } | |
5603 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
5604 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
5605 | } | |
5606 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
5607 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
5608 | } | |
5609 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
5610 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
5611 | } | |
5612 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
5613 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
5614 | } | |
5615 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
5616 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
5617 | } | |
5618 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
5619 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
5620 | } | |
5621 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
5622 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
5623 | } | |
5624 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
5625 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
5626 | } | |
5627 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
5628 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
5629 | } | |
5630 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
5631 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
5632 | } | |
5633 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
5634 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
5635 | } | |
5636 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
5637 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
5638 | } | |
5639 | static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) { | |
5640 | return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x)); | |
5641 | } | |
5642 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
5643 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
5644 | } | |
5645 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
5646 | return (void *)((wxObject *) ((wxImage *) x)); | |
5647 | } | |
5648 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
5649 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
5650 | } | |
5651 | static void *_p_wxXmlResourceTo_p_wxObject(void *x) { | |
5652 | return (void *)((wxObject *) ((wxXmlResource *) x)); | |
5653 | } | |
5654 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
5655 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
5656 | } | |
5657 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
5658 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
5659 | } | |
5660 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
5661 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
5662 | } | |
5663 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
5664 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
5665 | } | |
5666 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
5667 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
5668 | } | |
5669 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
5670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
5671 | } | |
5672 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
5673 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
5674 | } | |
5675 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
5676 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
5677 | } | |
5678 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
5679 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
5680 | } | |
5681 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
5682 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
5683 | } | |
5684 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
5685 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
5686 | } | |
5687 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
5688 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
5689 | } | |
5690 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
5691 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
5692 | } | |
5693 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
5694 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
5695 | } | |
5696 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
5697 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
5698 | } | |
5699 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
5700 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
5701 | } | |
5702 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
5703 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
5704 | } | |
5705 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
5706 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
5707 | } | |
5708 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
5709 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
5710 | } | |
5711 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
5712 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
5713 | } | |
5714 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
5715 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
5716 | } | |
5717 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
5718 | return (void *)((wxWindow *) ((wxControl *) x)); | |
5719 | } | |
5720 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
5721 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
5722 | } | |
5723 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
5724 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
5725 | } | |
5726 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5727 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5728 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5729 | static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5730 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5731 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5732 | static swig_type_info _swigt__p_wxArtClient[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0, 0, 0, 0},{"_p_wxArtClient", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5733 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5734 | static swig_type_info _swigt__p_wxPyXmlSubclassFactory[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0, 0, 0, 0},{"_p_wxPyXmlSubclassFactory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5735 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5736 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5737 | static swig_type_info _swigt__p_wxXmlNode[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0, 0, 0, 0},{"_p_wxXmlNode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5738 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5739 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5740 | static swig_type_info _swigt__p_wxPyXmlResourceHandler[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5741 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5742 | static swig_type_info _swigt__p_wxXmlProperty[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0, 0, 0, 0},{"_p_wxXmlProperty", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5743 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5744 | static swig_type_info _swigt__p_wxXmlResource[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0, 0, 0, 0},{"_p_wxXmlResource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5745 | static swig_type_info _swigt__p_wxXmlDocument[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0, 0, 0, 0},{"_p_wxXmlDocument", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5746 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5747 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5748 | ||
5749 | static swig_type_info *swig_types_initial[] = { | |
5750 | _swigt__p_wxFrame, | |
5751 | _swigt__p_wxIcon, | |
5752 | _swigt__p_wxObject, | |
5753 | _swigt__p_wxDialog, | |
5754 | _swigt__p_wxColour, | |
5755 | _swigt__p_wxWindow, | |
5756 | _swigt__p_wxArtClient, | |
5757 | _swigt__p_wxBitmap, | |
5758 | _swigt__p_wxPyXmlSubclassFactory, | |
5759 | _swigt__p_char, | |
5760 | _swigt__p_wxPoint, | |
5761 | _swigt__p_wxXmlNode, | |
5762 | _swigt__p_wxInputStream, | |
5763 | _swigt__p_wxOutputStream, | |
5764 | _swigt__p_wxPyXmlResourceHandler, | |
5765 | _swigt__p_wxFileSystem, | |
5766 | _swigt__p_wxXmlProperty, | |
5767 | _swigt__p_wxFont, | |
5768 | _swigt__p_wxXmlResource, | |
5769 | _swigt__p_wxXmlDocument, | |
5770 | _swigt__p_wxPanel, | |
5771 | _swigt__p_wxSize, | |
5772 | 0 | |
5773 | }; | |
5774 | ||
5775 | ||
5776 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
5777 | ||
5778 | static swig_const_info swig_const_table[] = { | |
5779 | {0, 0, 0, 0.0, 0, 0}}; | |
5780 | ||
5781 | #ifdef __cplusplus | |
5782 | } | |
5783 | #endif | |
5784 | ||
5785 | #ifdef __cplusplus | |
5786 | extern "C" | |
5787 | #endif | |
5788 | SWIGEXPORT(void) SWIG_init(void) { | |
5789 | static PyObject *SWIG_globals = 0; | |
5790 | static int typeinit = 0; | |
5791 | PyObject *m, *d; | |
5792 | int i; | |
5793 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
5794 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
5795 | d = PyModule_GetDict(m); | |
5796 | ||
5797 | if (!typeinit) { | |
5798 | for (i = 0; swig_types_initial[i]; i++) { | |
5799 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
5800 | } | |
5801 | typeinit = 1; | |
5802 | } | |
5803 | SWIG_InstallConstants(d,swig_const_table); | |
5804 | ||
5805 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
5806 | SWIG_addvarlink(SWIG_globals,(char*)"UTF8String",_wrap_UTF8String_get, _wrap_UTF8String_set); | |
5807 | SWIG_addvarlink(SWIG_globals,(char*)"StyleString",_wrap_StyleString_get, _wrap_StyleString_set); | |
5808 | SWIG_addvarlink(SWIG_globals,(char*)"SizeString",_wrap_SizeString_get, _wrap_SizeString_set); | |
5809 | SWIG_addvarlink(SWIG_globals,(char*)"PosString",_wrap_PosString_get, _wrap_PosString_set); | |
5810 | SWIG_addvarlink(SWIG_globals,(char*)"BitmapString",_wrap_BitmapString_get, _wrap_BitmapString_set); | |
5811 | SWIG_addvarlink(SWIG_globals,(char*)"IconString",_wrap_IconString_get, _wrap_IconString_set); | |
5812 | SWIG_addvarlink(SWIG_globals,(char*)"FontString",_wrap_FontString_get, _wrap_FontString_set); | |
5813 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MAJOR)); | |
5814 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_MINOR)); | |
5815 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_RELEASE)); | |
5816 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int((int)WX_XMLRES_CURRENT_VERSION_REVISION)); | |
5817 | PyDict_SetItemString(d,"XRC_USE_LOCALE", SWIG_From_int((int)wxXRC_USE_LOCALE)); | |
5818 | PyDict_SetItemString(d,"XRC_NO_SUBCLASSING", SWIG_From_int((int)wxXRC_NO_SUBCLASSING)); | |
5819 | PyDict_SetItemString(d,"XRC_NO_RELOADING", SWIG_From_int((int)wxXRC_NO_RELOADING)); | |
5820 | PyDict_SetItemString(d,"XML_ELEMENT_NODE", SWIG_From_int((int)wxXML_ELEMENT_NODE)); | |
5821 | PyDict_SetItemString(d,"XML_ATTRIBUTE_NODE", SWIG_From_int((int)wxXML_ATTRIBUTE_NODE)); | |
5822 | PyDict_SetItemString(d,"XML_TEXT_NODE", SWIG_From_int((int)wxXML_TEXT_NODE)); | |
5823 | PyDict_SetItemString(d,"XML_CDATA_SECTION_NODE", SWIG_From_int((int)wxXML_CDATA_SECTION_NODE)); | |
5824 | PyDict_SetItemString(d,"XML_ENTITY_REF_NODE", SWIG_From_int((int)wxXML_ENTITY_REF_NODE)); | |
5825 | PyDict_SetItemString(d,"XML_ENTITY_NODE", SWIG_From_int((int)wxXML_ENTITY_NODE)); | |
5826 | PyDict_SetItemString(d,"XML_PI_NODE", SWIG_From_int((int)wxXML_PI_NODE)); | |
5827 | PyDict_SetItemString(d,"XML_COMMENT_NODE", SWIG_From_int((int)wxXML_COMMENT_NODE)); | |
5828 | PyDict_SetItemString(d,"XML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_DOCUMENT_NODE)); | |
5829 | PyDict_SetItemString(d,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int((int)wxXML_DOCUMENT_TYPE_NODE)); | |
5830 | PyDict_SetItemString(d,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int((int)wxXML_DOCUMENT_FRAG_NODE)); | |
5831 | PyDict_SetItemString(d,"XML_NOTATION_NODE", SWIG_From_int((int)wxXML_NOTATION_NODE)); | |
5832 | PyDict_SetItemString(d,"XML_HTML_DOCUMENT_NODE", SWIG_From_int((int)wxXML_HTML_DOCUMENT_NODE)); | |
5833 | ||
5834 | ||
5835 | wxXmlInitResourceModule(); | |
5836 | wxXmlResource::Get()->InitAllHandlers(); | |
5837 | ||
5838 | ||
5839 | } | |
5840 |