]>
Commit | Line | Data |
---|---|---|
2f90df85 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/htmlhelp.cpp |
2f90df85 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
2f90df85 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
2f90df85 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
2f90df85 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
2f90df85 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
2f90df85 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
2f90df85 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init inithtmlhelpc | |
55 | ||
56 | #define SWIG_name "htmlhelpc" | |
57 | ||
b68dc582 | 58 | #include "export.h" |
2f90df85 RD |
59 | #include <wx/html/htmlwin.h> |
60 | #include <wx/html/helpctrl.h> | |
61 | #include <wx/image.h> | |
62 | #include <wx/fs_zip.h> | |
63 | #include <wx/fs_inet.h> | |
64 | #include <wx/wfstream.h> | |
65 | ||
2f90df85 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
3bcd5e1c | 71 | if (!target) { |
2f90df85 | 72 | target = o; |
3bcd5e1c | 73 | } else if (target == Py_None) { |
2f90df85 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
3bcd5e1c | 76 | } else { |
2f90df85 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
3bcd5e1c RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
2f90df85 RD |
84 | |
85 | o2 = target; | |
3bcd5e1c RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
2f90df85 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
7a446686 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
0220cbc1 | 96 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 97 | #endif |
2f90df85 RD |
98 | #ifdef __cplusplus |
99 | extern "C" { | |
100 | #endif | |
4be61064 RD |
101 | static void *SwigwxHtmlBookRecordTowxObject(void *ptr) { |
102 | wxHtmlBookRecord *src; | |
103 | wxObject *dest; | |
104 | src = (wxHtmlBookRecord *) ptr; | |
105 | dest = (wxObject *) src; | |
106 | return (void *) dest; | |
107 | } | |
108 | ||
109 | #define new_wxHtmlBookRecord(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxHtmlBookRecord(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2f90df85 RD |
110 | static PyObject *_wrap_new_wxHtmlBookRecord(PyObject *self, PyObject *args, PyObject *kwargs) { |
111 | PyObject * _resultobj; | |
112 | wxHtmlBookRecord * _result; | |
113 | wxString * _arg0; | |
114 | wxString * _arg1; | |
115 | wxString * _arg2; | |
4be61064 | 116 | wxString * _arg3; |
2f90df85 RD |
117 | PyObject * _obj0 = 0; |
118 | PyObject * _obj1 = 0; | |
119 | PyObject * _obj2 = 0; | |
4be61064 RD |
120 | PyObject * _obj3 = 0; |
121 | char *_kwnames[] = { "bookfile","basepath","title","start", NULL }; | |
2f90df85 RD |
122 | char _ptemp[128]; |
123 | ||
124 | self = self; | |
4be61064 | 125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:new_wxHtmlBookRecord",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3)) |
2f90df85 RD |
126 | return NULL; |
127 | { | |
2cd2fac8 RD |
128 | #if PYTHON_API_VERSION >= 1009 |
129 | char* tmpPtr; int tmpSize; | |
130 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 131 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
132 | return NULL; |
133 | } | |
134 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
135 | return NULL; | |
136 | _arg0 = new wxString(tmpPtr, tmpSize); | |
137 | #else | |
2f90df85 RD |
138 | if (!PyString_Check(_obj0)) { |
139 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
140 | return NULL; | |
141 | } | |
2cd2fac8 RD |
142 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
143 | #endif | |
2f90df85 RD |
144 | } |
145 | { | |
2cd2fac8 RD |
146 | #if PYTHON_API_VERSION >= 1009 |
147 | char* tmpPtr; int tmpSize; | |
148 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 149 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
150 | return NULL; |
151 | } | |
152 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
153 | return NULL; | |
154 | _arg1 = new wxString(tmpPtr, tmpSize); | |
155 | #else | |
2f90df85 RD |
156 | if (!PyString_Check(_obj1)) { |
157 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
158 | return NULL; | |
159 | } | |
2cd2fac8 RD |
160 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
161 | #endif | |
2f90df85 RD |
162 | } |
163 | { | |
2cd2fac8 RD |
164 | #if PYTHON_API_VERSION >= 1009 |
165 | char* tmpPtr; int tmpSize; | |
166 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 167 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
168 | return NULL; |
169 | } | |
170 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
171 | return NULL; | |
172 | _arg2 = new wxString(tmpPtr, tmpSize); | |
173 | #else | |
2f90df85 RD |
174 | if (!PyString_Check(_obj2)) { |
175 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
176 | return NULL; | |
177 | } | |
2cd2fac8 RD |
178 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
179 | #endif | |
2f90df85 | 180 | } |
4be61064 RD |
181 | { |
182 | #if PYTHON_API_VERSION >= 1009 | |
183 | char* tmpPtr; int tmpSize; | |
184 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
185 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
186 | return NULL; | |
187 | } | |
188 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
189 | return NULL; | |
190 | _arg3 = new wxString(tmpPtr, tmpSize); | |
191 | #else | |
192 | if (!PyString_Check(_obj3)) { | |
193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
194 | return NULL; | |
195 | } | |
196 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
197 | #endif | |
198 | } | |
2f90df85 | 199 | { |
474c48f9 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4be61064 | 201 | _result = (wxHtmlBookRecord *)new_wxHtmlBookRecord(*_arg0,*_arg1,*_arg2,*_arg3); |
2f90df85 | 202 | |
474c48f9 RD |
203 | wxPyEndAllowThreads(__tstate); |
204 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
205 | } if (_result) { |
206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlBookRecord_p"); | |
207 | _resultobj = Py_BuildValue("s",_ptemp); | |
208 | } else { | |
209 | Py_INCREF(Py_None); | |
210 | _resultobj = Py_None; | |
211 | } | |
212 | { | |
213 | if (_obj0) | |
214 | delete _arg0; | |
215 | } | |
216 | { | |
217 | if (_obj1) | |
218 | delete _arg1; | |
219 | } | |
220 | { | |
221 | if (_obj2) | |
222 | delete _arg2; | |
4be61064 RD |
223 | } |
224 | { | |
225 | if (_obj3) | |
226 | delete _arg3; | |
227 | } | |
228 | return _resultobj; | |
229 | } | |
230 | ||
231 | #define wxHtmlBookRecord_GetBookFile(_swigobj) (_swigobj->GetBookFile()) | |
232 | static PyObject *_wrap_wxHtmlBookRecord_GetBookFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
233 | PyObject * _resultobj; | |
234 | wxString * _result; | |
235 | wxHtmlBookRecord * _arg0; | |
236 | PyObject * _argo0 = 0; | |
237 | char *_kwnames[] = { "self", NULL }; | |
238 | ||
239 | self = self; | |
240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetBookFile",_kwnames,&_argo0)) | |
241 | return NULL; | |
242 | if (_argo0) { | |
243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetBookFile. Expected _wxHtmlBookRecord_p."); | |
246 | return NULL; | |
247 | } | |
248 | } | |
249 | { | |
250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
251 | _result = new wxString (wxHtmlBookRecord_GetBookFile(_arg0)); | |
252 | ||
253 | wxPyEndAllowThreads(__tstate); | |
254 | if (PyErr_Occurred()) return NULL; | |
255 | }{ | |
256 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
257 | } | |
258 | { | |
259 | delete _result; | |
2f90df85 RD |
260 | } |
261 | return _resultobj; | |
262 | } | |
263 | ||
264 | #define wxHtmlBookRecord_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
265 | static PyObject *_wrap_wxHtmlBookRecord_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
266 | PyObject * _resultobj; | |
267 | wxString * _result; | |
268 | wxHtmlBookRecord * _arg0; | |
269 | PyObject * _argo0 = 0; | |
270 | char *_kwnames[] = { "self", NULL }; | |
271 | ||
272 | self = self; | |
273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetTitle",_kwnames,&_argo0)) | |
274 | return NULL; | |
275 | if (_argo0) { | |
276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetTitle. Expected _wxHtmlBookRecord_p."); | |
279 | return NULL; | |
280 | } | |
281 | } | |
282 | { | |
474c48f9 | 283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
284 | _result = new wxString (wxHtmlBookRecord_GetTitle(_arg0)); |
285 | ||
474c48f9 RD |
286 | wxPyEndAllowThreads(__tstate); |
287 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 288 | }{ |
c8bc03c3 | 289 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
290 | } |
291 | { | |
292 | delete _result; | |
293 | } | |
294 | return _resultobj; | |
295 | } | |
296 | ||
297 | #define wxHtmlBookRecord_GetStart(_swigobj) (_swigobj->GetStart()) | |
298 | static PyObject *_wrap_wxHtmlBookRecord_GetStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
299 | PyObject * _resultobj; | |
300 | wxString * _result; | |
301 | wxHtmlBookRecord * _arg0; | |
302 | PyObject * _argo0 = 0; | |
303 | char *_kwnames[] = { "self", NULL }; | |
304 | ||
305 | self = self; | |
306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetStart",_kwnames,&_argo0)) | |
307 | return NULL; | |
308 | if (_argo0) { | |
309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetStart. Expected _wxHtmlBookRecord_p."); | |
312 | return NULL; | |
313 | } | |
314 | } | |
315 | { | |
474c48f9 | 316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
317 | _result = new wxString (wxHtmlBookRecord_GetStart(_arg0)); |
318 | ||
474c48f9 RD |
319 | wxPyEndAllowThreads(__tstate); |
320 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 321 | }{ |
c8bc03c3 | 322 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
323 | } |
324 | { | |
325 | delete _result; | |
326 | } | |
327 | return _resultobj; | |
328 | } | |
329 | ||
330 | #define wxHtmlBookRecord_GetBasePath(_swigobj) (_swigobj->GetBasePath()) | |
331 | static PyObject *_wrap_wxHtmlBookRecord_GetBasePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
332 | PyObject * _resultobj; | |
333 | wxString * _result; | |
334 | wxHtmlBookRecord * _arg0; | |
335 | PyObject * _argo0 = 0; | |
336 | char *_kwnames[] = { "self", NULL }; | |
337 | ||
338 | self = self; | |
339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetBasePath",_kwnames,&_argo0)) | |
340 | return NULL; | |
341 | if (_argo0) { | |
342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetBasePath. Expected _wxHtmlBookRecord_p."); | |
345 | return NULL; | |
346 | } | |
347 | } | |
348 | { | |
474c48f9 | 349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
350 | _result = new wxString (wxHtmlBookRecord_GetBasePath(_arg0)); |
351 | ||
474c48f9 RD |
352 | wxPyEndAllowThreads(__tstate); |
353 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 354 | }{ |
c8bc03c3 | 355 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
356 | } |
357 | { | |
358 | delete _result; | |
359 | } | |
360 | return _resultobj; | |
361 | } | |
362 | ||
363 | #define wxHtmlBookRecord_SetContentsRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetContentsRange(_swigarg0,_swigarg1)) | |
364 | static PyObject *_wrap_wxHtmlBookRecord_SetContentsRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
365 | PyObject * _resultobj; | |
366 | wxHtmlBookRecord * _arg0; | |
367 | int _arg1; | |
368 | int _arg2; | |
369 | PyObject * _argo0 = 0; | |
370 | char *_kwnames[] = { "self","start","end", NULL }; | |
371 | ||
372 | self = self; | |
373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxHtmlBookRecord_SetContentsRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
374 | return NULL; | |
375 | if (_argo0) { | |
376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_SetContentsRange. Expected _wxHtmlBookRecord_p."); | |
379 | return NULL; | |
380 | } | |
381 | } | |
382 | { | |
474c48f9 | 383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
384 | wxHtmlBookRecord_SetContentsRange(_arg0,_arg1,_arg2); |
385 | ||
474c48f9 RD |
386 | wxPyEndAllowThreads(__tstate); |
387 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
388 | } Py_INCREF(Py_None); |
389 | _resultobj = Py_None; | |
390 | return _resultobj; | |
391 | } | |
392 | ||
393 | #define wxHtmlBookRecord_GetContentsStart(_swigobj) (_swigobj->GetContentsStart()) | |
394 | static PyObject *_wrap_wxHtmlBookRecord_GetContentsStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject * _resultobj; | |
396 | int _result; | |
397 | wxHtmlBookRecord * _arg0; | |
398 | PyObject * _argo0 = 0; | |
399 | char *_kwnames[] = { "self", NULL }; | |
400 | ||
401 | self = self; | |
402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetContentsStart",_kwnames,&_argo0)) | |
403 | return NULL; | |
404 | if (_argo0) { | |
405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetContentsStart. Expected _wxHtmlBookRecord_p."); | |
408 | return NULL; | |
409 | } | |
410 | } | |
411 | { | |
474c48f9 | 412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
413 | _result = (int )wxHtmlBookRecord_GetContentsStart(_arg0); |
414 | ||
474c48f9 RD |
415 | wxPyEndAllowThreads(__tstate); |
416 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
417 | } _resultobj = Py_BuildValue("i",_result); |
418 | return _resultobj; | |
419 | } | |
420 | ||
421 | #define wxHtmlBookRecord_GetContentsEnd(_swigobj) (_swigobj->GetContentsEnd()) | |
422 | static PyObject *_wrap_wxHtmlBookRecord_GetContentsEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
423 | PyObject * _resultobj; | |
424 | int _result; | |
425 | wxHtmlBookRecord * _arg0; | |
426 | PyObject * _argo0 = 0; | |
427 | char *_kwnames[] = { "self", NULL }; | |
428 | ||
429 | self = self; | |
430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlBookRecord_GetContentsEnd",_kwnames,&_argo0)) | |
431 | return NULL; | |
432 | if (_argo0) { | |
433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetContentsEnd. Expected _wxHtmlBookRecord_p."); | |
436 | return NULL; | |
437 | } | |
438 | } | |
439 | { | |
474c48f9 | 440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
441 | _result = (int )wxHtmlBookRecord_GetContentsEnd(_arg0); |
442 | ||
474c48f9 RD |
443 | wxPyEndAllowThreads(__tstate); |
444 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
445 | } _resultobj = Py_BuildValue("i",_result); |
446 | return _resultobj; | |
447 | } | |
448 | ||
4be61064 RD |
449 | #define wxHtmlBookRecord_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
450 | static PyObject *_wrap_wxHtmlBookRecord_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
451 | PyObject * _resultobj; | |
452 | wxHtmlBookRecord * _arg0; | |
453 | wxString * _arg1; | |
454 | PyObject * _argo0 = 0; | |
455 | PyObject * _obj1 = 0; | |
456 | char *_kwnames[] = { "self","title", NULL }; | |
457 | ||
458 | self = self; | |
459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlBookRecord_SetTitle",_kwnames,&_argo0,&_obj1)) | |
460 | return NULL; | |
461 | if (_argo0) { | |
462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_SetTitle. Expected _wxHtmlBookRecord_p."); | |
465 | return NULL; | |
466 | } | |
467 | } | |
468 | { | |
469 | #if PYTHON_API_VERSION >= 1009 | |
470 | char* tmpPtr; int tmpSize; | |
471 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
472 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
473 | return NULL; | |
474 | } | |
475 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
476 | return NULL; | |
477 | _arg1 = new wxString(tmpPtr, tmpSize); | |
478 | #else | |
479 | if (!PyString_Check(_obj1)) { | |
480 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
481 | return NULL; | |
482 | } | |
483 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
484 | #endif | |
485 | } | |
486 | { | |
487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
488 | wxHtmlBookRecord_SetTitle(_arg0,*_arg1); | |
489 | ||
490 | wxPyEndAllowThreads(__tstate); | |
491 | if (PyErr_Occurred()) return NULL; | |
492 | } Py_INCREF(Py_None); | |
493 | _resultobj = Py_None; | |
494 | { | |
495 | if (_obj1) | |
496 | delete _arg1; | |
497 | } | |
498 | return _resultobj; | |
499 | } | |
500 | ||
501 | #define wxHtmlBookRecord_SetBasePath(_swigobj,_swigarg0) (_swigobj->SetBasePath(_swigarg0)) | |
502 | static PyObject *_wrap_wxHtmlBookRecord_SetBasePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
503 | PyObject * _resultobj; | |
504 | wxHtmlBookRecord * _arg0; | |
505 | wxString * _arg1; | |
506 | PyObject * _argo0 = 0; | |
507 | PyObject * _obj1 = 0; | |
508 | char *_kwnames[] = { "self","path", NULL }; | |
509 | ||
510 | self = self; | |
511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlBookRecord_SetBasePath",_kwnames,&_argo0,&_obj1)) | |
512 | return NULL; | |
513 | if (_argo0) { | |
514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_SetBasePath. Expected _wxHtmlBookRecord_p."); | |
517 | return NULL; | |
518 | } | |
519 | } | |
520 | { | |
521 | #if PYTHON_API_VERSION >= 1009 | |
522 | char* tmpPtr; int tmpSize; | |
523 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
524 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
525 | return NULL; | |
526 | } | |
527 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
528 | return NULL; | |
529 | _arg1 = new wxString(tmpPtr, tmpSize); | |
530 | #else | |
531 | if (!PyString_Check(_obj1)) { | |
532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
533 | return NULL; | |
534 | } | |
535 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
536 | #endif | |
537 | } | |
538 | { | |
539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
540 | wxHtmlBookRecord_SetBasePath(_arg0,*_arg1); | |
541 | ||
542 | wxPyEndAllowThreads(__tstate); | |
543 | if (PyErr_Occurred()) return NULL; | |
544 | } Py_INCREF(Py_None); | |
545 | _resultobj = Py_None; | |
546 | { | |
547 | if (_obj1) | |
548 | delete _arg1; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | #define wxHtmlBookRecord_SetStart(_swigobj,_swigarg0) (_swigobj->SetStart(_swigarg0)) | |
554 | static PyObject *_wrap_wxHtmlBookRecord_SetStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
555 | PyObject * _resultobj; | |
556 | wxHtmlBookRecord * _arg0; | |
557 | wxString * _arg1; | |
558 | PyObject * _argo0 = 0; | |
559 | PyObject * _obj1 = 0; | |
560 | char *_kwnames[] = { "self","start", NULL }; | |
561 | ||
562 | self = self; | |
563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlBookRecord_SetStart",_kwnames,&_argo0,&_obj1)) | |
564 | return NULL; | |
565 | if (_argo0) { | |
566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_SetStart. Expected _wxHtmlBookRecord_p."); | |
569 | return NULL; | |
570 | } | |
571 | } | |
572 | { | |
573 | #if PYTHON_API_VERSION >= 1009 | |
574 | char* tmpPtr; int tmpSize; | |
575 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
576 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
577 | return NULL; | |
578 | } | |
579 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
580 | return NULL; | |
581 | _arg1 = new wxString(tmpPtr, tmpSize); | |
582 | #else | |
583 | if (!PyString_Check(_obj1)) { | |
584 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
585 | return NULL; | |
586 | } | |
587 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
588 | #endif | |
589 | } | |
590 | { | |
591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
592 | wxHtmlBookRecord_SetStart(_arg0,*_arg1); | |
593 | ||
594 | wxPyEndAllowThreads(__tstate); | |
595 | if (PyErr_Occurred()) return NULL; | |
596 | } Py_INCREF(Py_None); | |
597 | _resultobj = Py_None; | |
598 | { | |
599 | if (_obj1) | |
600 | delete _arg1; | |
601 | } | |
602 | return _resultobj; | |
603 | } | |
604 | ||
605 | #define wxHtmlBookRecord_GetFullPath(_swigobj,_swigarg0) (_swigobj->GetFullPath(_swigarg0)) | |
606 | static PyObject *_wrap_wxHtmlBookRecord_GetFullPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
607 | PyObject * _resultobj; | |
608 | wxString * _result; | |
609 | wxHtmlBookRecord * _arg0; | |
610 | wxString * _arg1; | |
611 | PyObject * _argo0 = 0; | |
612 | PyObject * _obj1 = 0; | |
613 | char *_kwnames[] = { "self","page", NULL }; | |
614 | ||
615 | self = self; | |
616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlBookRecord_GetFullPath",_kwnames,&_argo0,&_obj1)) | |
617 | return NULL; | |
618 | if (_argo0) { | |
619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlBookRecord_p")) { | |
621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlBookRecord_GetFullPath. Expected _wxHtmlBookRecord_p."); | |
622 | return NULL; | |
623 | } | |
624 | } | |
625 | { | |
626 | #if PYTHON_API_VERSION >= 1009 | |
627 | char* tmpPtr; int tmpSize; | |
628 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
630 | return NULL; | |
631 | } | |
632 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
633 | return NULL; | |
634 | _arg1 = new wxString(tmpPtr, tmpSize); | |
635 | #else | |
636 | if (!PyString_Check(_obj1)) { | |
637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
638 | return NULL; | |
639 | } | |
640 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
641 | #endif | |
642 | } | |
643 | { | |
644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
645 | _result = new wxString (wxHtmlBookRecord_GetFullPath(_arg0,*_arg1)); | |
646 | ||
647 | wxPyEndAllowThreads(__tstate); | |
648 | if (PyErr_Occurred()) return NULL; | |
649 | }{ | |
650 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
651 | } | |
652 | { | |
653 | if (_obj1) | |
654 | delete _arg1; | |
655 | } | |
656 | { | |
657 | delete _result; | |
658 | } | |
659 | return _resultobj; | |
660 | } | |
661 | ||
2f90df85 RD |
662 | #define wxHtmlContentsItem_m_Level_set(_swigobj,_swigval) (_swigobj->m_Level = _swigval,_swigval) |
663 | static PyObject *_wrap_wxHtmlContentsItem_m_Level_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
664 | PyObject * _resultobj; | |
665 | short _result; | |
666 | wxHtmlContentsItem * _arg0; | |
667 | short _arg1; | |
668 | PyObject * _argo0 = 0; | |
669 | char *_kwnames[] = { "self","m_Level", NULL }; | |
670 | ||
671 | self = self; | |
672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxHtmlContentsItem_m_Level_set",_kwnames,&_argo0,&_arg1)) | |
673 | return NULL; | |
674 | if (_argo0) { | |
675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Level_set. Expected _wxHtmlContentsItem_p."); | |
678 | return NULL; | |
679 | } | |
680 | } | |
681 | { | |
474c48f9 | 682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
683 | _result = (short )wxHtmlContentsItem_m_Level_set(_arg0,_arg1); |
684 | ||
474c48f9 RD |
685 | wxPyEndAllowThreads(__tstate); |
686 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
687 | } _resultobj = Py_BuildValue("h",_result); |
688 | return _resultobj; | |
689 | } | |
690 | ||
691 | #define wxHtmlContentsItem_m_Level_get(_swigobj) ((short ) _swigobj->m_Level) | |
692 | static PyObject *_wrap_wxHtmlContentsItem_m_Level_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
693 | PyObject * _resultobj; | |
694 | short _result; | |
695 | wxHtmlContentsItem * _arg0; | |
696 | PyObject * _argo0 = 0; | |
697 | char *_kwnames[] = { "self", NULL }; | |
698 | ||
699 | self = self; | |
700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContentsItem_m_Level_get",_kwnames,&_argo0)) | |
701 | return NULL; | |
702 | if (_argo0) { | |
703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Level_get. Expected _wxHtmlContentsItem_p."); | |
706 | return NULL; | |
707 | } | |
708 | } | |
709 | { | |
474c48f9 | 710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
711 | _result = (short )wxHtmlContentsItem_m_Level_get(_arg0); |
712 | ||
474c48f9 RD |
713 | wxPyEndAllowThreads(__tstate); |
714 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
715 | } _resultobj = Py_BuildValue("h",_result); |
716 | return _resultobj; | |
717 | } | |
718 | ||
719 | #define wxHtmlContentsItem_m_ID_set(_swigobj,_swigval) (_swigobj->m_ID = _swigval,_swigval) | |
720 | static PyObject *_wrap_wxHtmlContentsItem_m_ID_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | int _result; | |
723 | wxHtmlContentsItem * _arg0; | |
724 | int _arg1; | |
725 | PyObject * _argo0 = 0; | |
726 | char *_kwnames[] = { "self","m_ID", NULL }; | |
727 | ||
728 | self = self; | |
729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlContentsItem_m_ID_set",_kwnames,&_argo0,&_arg1)) | |
730 | return NULL; | |
731 | if (_argo0) { | |
732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_ID_set. Expected _wxHtmlContentsItem_p."); | |
735 | return NULL; | |
736 | } | |
737 | } | |
738 | { | |
474c48f9 | 739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
740 | _result = (int )wxHtmlContentsItem_m_ID_set(_arg0,_arg1); |
741 | ||
474c48f9 RD |
742 | wxPyEndAllowThreads(__tstate); |
743 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
744 | } _resultobj = Py_BuildValue("i",_result); |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | #define wxHtmlContentsItem_m_ID_get(_swigobj) ((int ) _swigobj->m_ID) | |
749 | static PyObject *_wrap_wxHtmlContentsItem_m_ID_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
750 | PyObject * _resultobj; | |
751 | int _result; | |
752 | wxHtmlContentsItem * _arg0; | |
753 | PyObject * _argo0 = 0; | |
754 | char *_kwnames[] = { "self", NULL }; | |
755 | ||
756 | self = self; | |
757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContentsItem_m_ID_get",_kwnames,&_argo0)) | |
758 | return NULL; | |
759 | if (_argo0) { | |
760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_ID_get. Expected _wxHtmlContentsItem_p."); | |
763 | return NULL; | |
764 | } | |
765 | } | |
766 | { | |
474c48f9 | 767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
768 | _result = (int )wxHtmlContentsItem_m_ID_get(_arg0); |
769 | ||
474c48f9 RD |
770 | wxPyEndAllowThreads(__tstate); |
771 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
772 | } _resultobj = Py_BuildValue("i",_result); |
773 | return _resultobj; | |
774 | } | |
775 | ||
776 | static char * wxHtmlContentsItem_m_Name_set(wxHtmlContentsItem *obj, char *val) { | |
777 | if (obj->m_Name) delete [] obj->m_Name; | |
778 | obj->m_Name = new char[strlen(val)+1]; | |
779 | strcpy((char *)obj->m_Name,val); | |
780 | return (char *) val; | |
781 | } | |
782 | static PyObject *_wrap_wxHtmlContentsItem_m_Name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject * _resultobj; | |
784 | char * _result; | |
785 | wxHtmlContentsItem * _arg0; | |
786 | char * _arg1; | |
787 | PyObject * _argo0 = 0; | |
788 | char *_kwnames[] = { "self","m_Name", NULL }; | |
789 | ||
790 | self = self; | |
791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxHtmlContentsItem_m_Name_set",_kwnames,&_argo0,&_arg1)) | |
792 | return NULL; | |
793 | if (_argo0) { | |
794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Name_set. Expected _wxHtmlContentsItem_p."); | |
797 | return NULL; | |
798 | } | |
799 | } | |
800 | { | |
474c48f9 | 801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
802 | _result = (char *)wxHtmlContentsItem_m_Name_set(_arg0,_arg1); |
803 | ||
474c48f9 RD |
804 | wxPyEndAllowThreads(__tstate); |
805 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
806 | } _resultobj = Py_BuildValue("s", _result); |
807 | return _resultobj; | |
808 | } | |
809 | ||
810 | #define wxHtmlContentsItem_m_Name_get(_swigobj) ((char *) _swigobj->m_Name) | |
811 | static PyObject *_wrap_wxHtmlContentsItem_m_Name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
812 | PyObject * _resultobj; | |
813 | char * _result; | |
814 | wxHtmlContentsItem * _arg0; | |
815 | PyObject * _argo0 = 0; | |
816 | char *_kwnames[] = { "self", NULL }; | |
817 | ||
818 | self = self; | |
819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContentsItem_m_Name_get",_kwnames,&_argo0)) | |
820 | return NULL; | |
821 | if (_argo0) { | |
822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Name_get. Expected _wxHtmlContentsItem_p."); | |
825 | return NULL; | |
826 | } | |
827 | } | |
828 | { | |
474c48f9 | 829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
830 | _result = (char *)wxHtmlContentsItem_m_Name_get(_arg0); |
831 | ||
474c48f9 RD |
832 | wxPyEndAllowThreads(__tstate); |
833 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
834 | } _resultobj = Py_BuildValue("s", _result); |
835 | return _resultobj; | |
836 | } | |
837 | ||
838 | static char * wxHtmlContentsItem_m_Page_set(wxHtmlContentsItem *obj, char *val) { | |
839 | if (obj->m_Page) delete [] obj->m_Page; | |
840 | obj->m_Page = new char[strlen(val)+1]; | |
841 | strcpy((char *)obj->m_Page,val); | |
842 | return (char *) val; | |
843 | } | |
844 | static PyObject *_wrap_wxHtmlContentsItem_m_Page_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject * _resultobj; | |
846 | char * _result; | |
847 | wxHtmlContentsItem * _arg0; | |
848 | char * _arg1; | |
849 | PyObject * _argo0 = 0; | |
850 | char *_kwnames[] = { "self","m_Page", NULL }; | |
851 | ||
852 | self = self; | |
853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxHtmlContentsItem_m_Page_set",_kwnames,&_argo0,&_arg1)) | |
854 | return NULL; | |
855 | if (_argo0) { | |
856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Page_set. Expected _wxHtmlContentsItem_p."); | |
859 | return NULL; | |
860 | } | |
861 | } | |
862 | { | |
474c48f9 | 863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
864 | _result = (char *)wxHtmlContentsItem_m_Page_set(_arg0,_arg1); |
865 | ||
474c48f9 RD |
866 | wxPyEndAllowThreads(__tstate); |
867 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
868 | } _resultobj = Py_BuildValue("s", _result); |
869 | return _resultobj; | |
870 | } | |
871 | ||
872 | #define wxHtmlContentsItem_m_Page_get(_swigobj) ((char *) _swigobj->m_Page) | |
873 | static PyObject *_wrap_wxHtmlContentsItem_m_Page_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
874 | PyObject * _resultobj; | |
875 | char * _result; | |
876 | wxHtmlContentsItem * _arg0; | |
877 | PyObject * _argo0 = 0; | |
878 | char *_kwnames[] = { "self", NULL }; | |
879 | ||
880 | self = self; | |
881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContentsItem_m_Page_get",_kwnames,&_argo0)) | |
882 | return NULL; | |
883 | if (_argo0) { | |
884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Page_get. Expected _wxHtmlContentsItem_p."); | |
887 | return NULL; | |
888 | } | |
889 | } | |
890 | { | |
474c48f9 | 891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
892 | _result = (char *)wxHtmlContentsItem_m_Page_get(_arg0); |
893 | ||
474c48f9 RD |
894 | wxPyEndAllowThreads(__tstate); |
895 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
896 | } _resultobj = Py_BuildValue("s", _result); |
897 | return _resultobj; | |
898 | } | |
899 | ||
900 | #define wxHtmlContentsItem_m_Book_set(_swigobj,_swigval) (_swigobj->m_Book = _swigval,_swigval) | |
901 | static PyObject *_wrap_wxHtmlContentsItem_m_Book_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject * _resultobj; | |
903 | wxHtmlBookRecord * _result; | |
904 | wxHtmlContentsItem * _arg0; | |
905 | wxHtmlBookRecord * _arg1; | |
906 | PyObject * _argo0 = 0; | |
907 | PyObject * _argo1 = 0; | |
908 | char *_kwnames[] = { "self","m_Book", NULL }; | |
909 | char _ptemp[128]; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlContentsItem_m_Book_set",_kwnames,&_argo0,&_argo1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Book_set. Expected _wxHtmlContentsItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | if (_argo1) { | |
922 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
923 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlBookRecord_p")) { | |
924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlContentsItem_m_Book_set. Expected _wxHtmlBookRecord_p."); | |
925 | return NULL; | |
926 | } | |
927 | } | |
928 | { | |
474c48f9 | 929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
930 | _result = (wxHtmlBookRecord *)wxHtmlContentsItem_m_Book_set(_arg0,_arg1); |
931 | ||
474c48f9 RD |
932 | wxPyEndAllowThreads(__tstate); |
933 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
934 | } if (_result) { |
935 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlBookRecord_p"); | |
936 | _resultobj = Py_BuildValue("s",_ptemp); | |
937 | } else { | |
938 | Py_INCREF(Py_None); | |
939 | _resultobj = Py_None; | |
940 | } | |
941 | return _resultobj; | |
942 | } | |
943 | ||
944 | #define wxHtmlContentsItem_m_Book_get(_swigobj) ((wxHtmlBookRecord *) _swigobj->m_Book) | |
945 | static PyObject *_wrap_wxHtmlContentsItem_m_Book_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
946 | PyObject * _resultobj; | |
947 | wxHtmlBookRecord * _result; | |
948 | wxHtmlContentsItem * _arg0; | |
949 | PyObject * _argo0 = 0; | |
950 | char *_kwnames[] = { "self", NULL }; | |
951 | char _ptemp[128]; | |
952 | ||
953 | self = self; | |
954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContentsItem_m_Book_get",_kwnames,&_argo0)) | |
955 | return NULL; | |
956 | if (_argo0) { | |
957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContentsItem_p")) { | |
959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContentsItem_m_Book_get. Expected _wxHtmlContentsItem_p."); | |
960 | return NULL; | |
961 | } | |
962 | } | |
963 | { | |
474c48f9 | 964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
965 | _result = (wxHtmlBookRecord *)wxHtmlContentsItem_m_Book_get(_arg0); |
966 | ||
474c48f9 RD |
967 | wxPyEndAllowThreads(__tstate); |
968 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
969 | } if (_result) { |
970 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlBookRecord_p"); | |
971 | _resultobj = Py_BuildValue("s",_ptemp); | |
972 | } else { | |
973 | Py_INCREF(Py_None); | |
974 | _resultobj = Py_None; | |
975 | } | |
976 | return _resultobj; | |
977 | } | |
978 | ||
979 | #define wxHtmlSearchStatus_Search(_swigobj) (_swigobj->Search()) | |
980 | static PyObject *_wrap_wxHtmlSearchStatus_Search(PyObject *self, PyObject *args, PyObject *kwargs) { | |
981 | PyObject * _resultobj; | |
982 | bool _result; | |
983 | wxHtmlSearchStatus * _arg0; | |
984 | PyObject * _argo0 = 0; | |
985 | char *_kwnames[] = { "self", NULL }; | |
986 | ||
987 | self = self; | |
988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_Search",_kwnames,&_argo0)) | |
989 | return NULL; | |
990 | if (_argo0) { | |
991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_Search. Expected _wxHtmlSearchStatus_p."); | |
994 | return NULL; | |
995 | } | |
996 | } | |
997 | { | |
474c48f9 | 998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
999 | _result = (bool )wxHtmlSearchStatus_Search(_arg0); |
1000 | ||
474c48f9 RD |
1001 | wxPyEndAllowThreads(__tstate); |
1002 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1003 | } _resultobj = Py_BuildValue("i",_result); |
1004 | return _resultobj; | |
1005 | } | |
1006 | ||
1007 | #define wxHtmlSearchStatus_IsActive(_swigobj) (_swigobj->IsActive()) | |
1008 | static PyObject *_wrap_wxHtmlSearchStatus_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1009 | PyObject * _resultobj; | |
1010 | bool _result; | |
1011 | wxHtmlSearchStatus * _arg0; | |
1012 | PyObject * _argo0 = 0; | |
1013 | char *_kwnames[] = { "self", NULL }; | |
1014 | ||
1015 | self = self; | |
1016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_IsActive",_kwnames,&_argo0)) | |
1017 | return NULL; | |
1018 | if (_argo0) { | |
1019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
1021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_IsActive. Expected _wxHtmlSearchStatus_p."); | |
1022 | return NULL; | |
1023 | } | |
1024 | } | |
1025 | { | |
474c48f9 | 1026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1027 | _result = (bool )wxHtmlSearchStatus_IsActive(_arg0); |
1028 | ||
474c48f9 RD |
1029 | wxPyEndAllowThreads(__tstate); |
1030 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1031 | } _resultobj = Py_BuildValue("i",_result); |
1032 | return _resultobj; | |
1033 | } | |
1034 | ||
1035 | #define wxHtmlSearchStatus_GetCurIndex(_swigobj) (_swigobj->GetCurIndex()) | |
1036 | static PyObject *_wrap_wxHtmlSearchStatus_GetCurIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1037 | PyObject * _resultobj; | |
1038 | int _result; | |
1039 | wxHtmlSearchStatus * _arg0; | |
1040 | PyObject * _argo0 = 0; | |
1041 | char *_kwnames[] = { "self", NULL }; | |
1042 | ||
1043 | self = self; | |
1044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_GetCurIndex",_kwnames,&_argo0)) | |
1045 | return NULL; | |
1046 | if (_argo0) { | |
1047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
1049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_GetCurIndex. Expected _wxHtmlSearchStatus_p."); | |
1050 | return NULL; | |
1051 | } | |
1052 | } | |
1053 | { | |
474c48f9 | 1054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1055 | _result = (int )wxHtmlSearchStatus_GetCurIndex(_arg0); |
1056 | ||
474c48f9 RD |
1057 | wxPyEndAllowThreads(__tstate); |
1058 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1059 | } _resultobj = Py_BuildValue("i",_result); |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define wxHtmlSearchStatus_GetMaxIndex(_swigobj) (_swigobj->GetMaxIndex()) | |
1064 | static PyObject *_wrap_wxHtmlSearchStatus_GetMaxIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | int _result; | |
1067 | wxHtmlSearchStatus * _arg0; | |
1068 | PyObject * _argo0 = 0; | |
1069 | char *_kwnames[] = { "self", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_GetMaxIndex",_kwnames,&_argo0)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_GetMaxIndex. Expected _wxHtmlSearchStatus_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | { | |
474c48f9 | 1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1083 | _result = (int )wxHtmlSearchStatus_GetMaxIndex(_arg0); |
1084 | ||
474c48f9 RD |
1085 | wxPyEndAllowThreads(__tstate); |
1086 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1087 | } _resultobj = Py_BuildValue("i",_result); |
1088 | return _resultobj; | |
1089 | } | |
1090 | ||
1091 | #define wxHtmlSearchStatus_GetName(_swigobj) (_swigobj->GetName()) | |
1092 | static PyObject *_wrap_wxHtmlSearchStatus_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1093 | PyObject * _resultobj; | |
1094 | wxString * _result; | |
1095 | wxHtmlSearchStatus * _arg0; | |
1096 | PyObject * _argo0 = 0; | |
1097 | char *_kwnames[] = { "self", NULL }; | |
1098 | ||
1099 | self = self; | |
1100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_GetName",_kwnames,&_argo0)) | |
1101 | return NULL; | |
1102 | if (_argo0) { | |
1103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
1105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_GetName. Expected _wxHtmlSearchStatus_p."); | |
1106 | return NULL; | |
1107 | } | |
1108 | } | |
1109 | { | |
474c48f9 | 1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1111 | const wxString & _result_ref = wxHtmlSearchStatus_GetName(_arg0); |
1112 | _result = (wxString *) &_result_ref; | |
1113 | ||
474c48f9 RD |
1114 | wxPyEndAllowThreads(__tstate); |
1115 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 1116 | }{ |
c8bc03c3 | 1117 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
1118 | } |
1119 | return _resultobj; | |
1120 | } | |
1121 | ||
1122 | #define wxHtmlSearchStatus_GetContentsItem(_swigobj) (_swigobj->GetContentsItem()) | |
1123 | static PyObject *_wrap_wxHtmlSearchStatus_GetContentsItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1124 | PyObject * _resultobj; | |
1125 | wxHtmlContentsItem * _result; | |
1126 | wxHtmlSearchStatus * _arg0; | |
1127 | PyObject * _argo0 = 0; | |
1128 | char *_kwnames[] = { "self", NULL }; | |
1129 | char _ptemp[128]; | |
1130 | ||
1131 | self = self; | |
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlSearchStatus_GetContentsItem",_kwnames,&_argo0)) | |
1133 | return NULL; | |
1134 | if (_argo0) { | |
1135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlSearchStatus_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlSearchStatus_GetContentsItem. Expected _wxHtmlSearchStatus_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
474c48f9 | 1142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1143 | _result = (wxHtmlContentsItem *)wxHtmlSearchStatus_GetContentsItem(_arg0); |
1144 | ||
474c48f9 RD |
1145 | wxPyEndAllowThreads(__tstate); |
1146 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1147 | } if (_result) { |
1148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContentsItem_p"); | |
1149 | _resultobj = Py_BuildValue("s",_ptemp); | |
1150 | } else { | |
1151 | Py_INCREF(Py_None); | |
1152 | _resultobj = Py_None; | |
1153 | } | |
1154 | return _resultobj; | |
1155 | } | |
1156 | ||
1157 | #define new_wxHtmlHelpData() (new wxHtmlHelpData()) | |
1158 | static PyObject *_wrap_new_wxHtmlHelpData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1159 | PyObject * _resultobj; | |
1160 | wxHtmlHelpData * _result; | |
1161 | char *_kwnames[] = { NULL }; | |
1162 | char _ptemp[128]; | |
1163 | ||
1164 | self = self; | |
1165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlHelpData",_kwnames)) | |
1166 | return NULL; | |
1167 | { | |
474c48f9 | 1168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1169 | _result = (wxHtmlHelpData *)new_wxHtmlHelpData(); |
1170 | ||
474c48f9 RD |
1171 | wxPyEndAllowThreads(__tstate); |
1172 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1173 | } if (_result) { |
1174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlHelpData_p"); | |
1175 | _resultobj = Py_BuildValue("s",_ptemp); | |
1176 | } else { | |
1177 | Py_INCREF(Py_None); | |
1178 | _resultobj = Py_None; | |
1179 | } | |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define delete_wxHtmlHelpData(_swigobj) (delete _swigobj) | |
1184 | static PyObject *_wrap_delete_wxHtmlHelpData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | wxHtmlHelpData * _arg0; | |
1187 | PyObject * _argo0 = 0; | |
1188 | char *_kwnames[] = { "self", NULL }; | |
1189 | ||
1190 | self = self; | |
1191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxHtmlHelpData",_kwnames,&_argo0)) | |
1192 | return NULL; | |
1193 | if (_argo0) { | |
1194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxHtmlHelpData. Expected _wxHtmlHelpData_p."); | |
1197 | return NULL; | |
1198 | } | |
1199 | } | |
1200 | { | |
474c48f9 | 1201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1202 | delete_wxHtmlHelpData(_arg0); |
1203 | ||
474c48f9 RD |
1204 | wxPyEndAllowThreads(__tstate); |
1205 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1206 | } Py_INCREF(Py_None); |
1207 | _resultobj = Py_None; | |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxHtmlHelpData_SetTempDir(_swigobj,_swigarg0) (_swigobj->SetTempDir(_swigarg0)) | |
1212 | static PyObject *_wrap_wxHtmlHelpData_SetTempDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxHtmlHelpData * _arg0; | |
1215 | wxString * _arg1; | |
1216 | PyObject * _argo0 = 0; | |
1217 | PyObject * _obj1 = 0; | |
1218 | char *_kwnames[] = { "self","path", NULL }; | |
1219 | ||
1220 | self = self; | |
1221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpData_SetTempDir",_kwnames,&_argo0,&_obj1)) | |
1222 | return NULL; | |
1223 | if (_argo0) { | |
1224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_SetTempDir. Expected _wxHtmlHelpData_p."); | |
1227 | return NULL; | |
1228 | } | |
1229 | } | |
1230 | { | |
2cd2fac8 RD |
1231 | #if PYTHON_API_VERSION >= 1009 |
1232 | char* tmpPtr; int tmpSize; | |
1233 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1234 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1235 | return NULL; |
1236 | } | |
1237 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1238 | return NULL; | |
1239 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1240 | #else | |
2f90df85 RD |
1241 | if (!PyString_Check(_obj1)) { |
1242 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1243 | return NULL; | |
1244 | } | |
2cd2fac8 RD |
1245 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1246 | #endif | |
2f90df85 RD |
1247 | } |
1248 | { | |
474c48f9 | 1249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1250 | wxHtmlHelpData_SetTempDir(_arg0,*_arg1); |
1251 | ||
474c48f9 RD |
1252 | wxPyEndAllowThreads(__tstate); |
1253 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1254 | } Py_INCREF(Py_None); |
1255 | _resultobj = Py_None; | |
1256 | { | |
1257 | if (_obj1) | |
1258 | delete _arg1; | |
1259 | } | |
1260 | return _resultobj; | |
1261 | } | |
1262 | ||
1263 | #define wxHtmlHelpData_AddBook(_swigobj,_swigarg0) (_swigobj->AddBook(_swigarg0)) | |
1264 | static PyObject *_wrap_wxHtmlHelpData_AddBook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject * _resultobj; | |
1266 | bool _result; | |
1267 | wxHtmlHelpData * _arg0; | |
1268 | wxString * _arg1; | |
1269 | PyObject * _argo0 = 0; | |
1270 | PyObject * _obj1 = 0; | |
1271 | char *_kwnames[] = { "self","book", NULL }; | |
1272 | ||
1273 | self = self; | |
1274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpData_AddBook",_kwnames,&_argo0,&_obj1)) | |
1275 | return NULL; | |
1276 | if (_argo0) { | |
1277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_AddBook. Expected _wxHtmlHelpData_p."); | |
1280 | return NULL; | |
1281 | } | |
1282 | } | |
1283 | { | |
2cd2fac8 RD |
1284 | #if PYTHON_API_VERSION >= 1009 |
1285 | char* tmpPtr; int tmpSize; | |
1286 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1288 | return NULL; |
1289 | } | |
1290 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1291 | return NULL; | |
1292 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1293 | #else | |
2f90df85 RD |
1294 | if (!PyString_Check(_obj1)) { |
1295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1296 | return NULL; | |
1297 | } | |
2cd2fac8 RD |
1298 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1299 | #endif | |
2f90df85 RD |
1300 | } |
1301 | { | |
474c48f9 | 1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1303 | _result = (bool )wxHtmlHelpData_AddBook(_arg0,*_arg1); |
1304 | ||
474c48f9 RD |
1305 | wxPyEndAllowThreads(__tstate); |
1306 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1307 | } _resultobj = Py_BuildValue("i",_result); |
1308 | { | |
1309 | if (_obj1) | |
1310 | delete _arg1; | |
1311 | } | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
2f90df85 RD |
1315 | #define wxHtmlHelpData_FindPageByName(_swigobj,_swigarg0) (_swigobj->FindPageByName(_swigarg0)) |
1316 | static PyObject *_wrap_wxHtmlHelpData_FindPageByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1317 | PyObject * _resultobj; | |
1318 | wxString * _result; | |
1319 | wxHtmlHelpData * _arg0; | |
1320 | wxString * _arg1; | |
1321 | PyObject * _argo0 = 0; | |
1322 | PyObject * _obj1 = 0; | |
1323 | char *_kwnames[] = { "self","page", NULL }; | |
1324 | ||
1325 | self = self; | |
1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpData_FindPageByName",_kwnames,&_argo0,&_obj1)) | |
1327 | return NULL; | |
1328 | if (_argo0) { | |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_FindPageByName. Expected _wxHtmlHelpData_p."); | |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
1335 | { | |
2cd2fac8 RD |
1336 | #if PYTHON_API_VERSION >= 1009 |
1337 | char* tmpPtr; int tmpSize; | |
1338 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1339 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1340 | return NULL; |
1341 | } | |
1342 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1343 | return NULL; | |
1344 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1345 | #else | |
2f90df85 RD |
1346 | if (!PyString_Check(_obj1)) { |
1347 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1348 | return NULL; | |
1349 | } | |
2cd2fac8 RD |
1350 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1351 | #endif | |
2f90df85 RD |
1352 | } |
1353 | { | |
474c48f9 | 1354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1355 | _result = new wxString (wxHtmlHelpData_FindPageByName(_arg0,*_arg1)); |
1356 | ||
474c48f9 RD |
1357 | wxPyEndAllowThreads(__tstate); |
1358 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 1359 | }{ |
c8bc03c3 | 1360 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
1361 | } |
1362 | { | |
1363 | if (_obj1) | |
1364 | delete _arg1; | |
1365 | } | |
1366 | { | |
1367 | delete _result; | |
1368 | } | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
1372 | #define wxHtmlHelpData_FindPageById(_swigobj,_swigarg0) (_swigobj->FindPageById(_swigarg0)) | |
1373 | static PyObject *_wrap_wxHtmlHelpData_FindPageById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject * _resultobj; | |
1375 | wxString * _result; | |
1376 | wxHtmlHelpData * _arg0; | |
1377 | int _arg1; | |
1378 | PyObject * _argo0 = 0; | |
1379 | char *_kwnames[] = { "self","id", NULL }; | |
1380 | ||
1381 | self = self; | |
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlHelpData_FindPageById",_kwnames,&_argo0,&_arg1)) | |
1383 | return NULL; | |
1384 | if (_argo0) { | |
1385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_FindPageById. Expected _wxHtmlHelpData_p."); | |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
1391 | { | |
474c48f9 | 1392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1393 | _result = new wxString (wxHtmlHelpData_FindPageById(_arg0,_arg1)); |
1394 | ||
474c48f9 RD |
1395 | wxPyEndAllowThreads(__tstate); |
1396 | if (PyErr_Occurred()) return NULL; | |
2f90df85 | 1397 | }{ |
c8bc03c3 | 1398 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
2f90df85 RD |
1399 | } |
1400 | { | |
1401 | delete _result; | |
1402 | } | |
1403 | return _resultobj; | |
1404 | } | |
1405 | ||
1406 | #define wxHtmlHelpData_GetBookRecArray(_swigobj) (_swigobj->GetBookRecArray()) | |
1407 | static PyObject *_wrap_wxHtmlHelpData_GetBookRecArray(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1408 | PyObject * _resultobj; | |
1409 | wxHtmlBookRecArray * _result; | |
1410 | wxHtmlHelpData * _arg0; | |
1411 | PyObject * _argo0 = 0; | |
1412 | char *_kwnames[] = { "self", NULL }; | |
1413 | char _ptemp[128]; | |
1414 | ||
1415 | self = self; | |
1416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpData_GetBookRecArray",_kwnames,&_argo0)) | |
1417 | return NULL; | |
1418 | if (_argo0) { | |
1419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_GetBookRecArray. Expected _wxHtmlHelpData_p."); | |
1422 | return NULL; | |
1423 | } | |
1424 | } | |
1425 | { | |
474c48f9 | 1426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1427 | const wxHtmlBookRecArray & _result_ref = wxHtmlHelpData_GetBookRecArray(_arg0); |
1428 | _result = (wxHtmlBookRecArray *) &_result_ref; | |
1429 | ||
474c48f9 RD |
1430 | wxPyEndAllowThreads(__tstate); |
1431 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1432 | } if (_result) { |
1433 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlBookRecArray_p"); | |
1434 | _resultobj = Py_BuildValue("s",_ptemp); | |
1435 | } else { | |
1436 | Py_INCREF(Py_None); | |
1437 | _resultobj = Py_None; | |
1438 | } | |
1439 | return _resultobj; | |
1440 | } | |
1441 | ||
1442 | #define wxHtmlHelpData_GetContents(_swigobj) (_swigobj->GetContents()) | |
1443 | static PyObject *_wrap_wxHtmlHelpData_GetContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1444 | PyObject * _resultobj; | |
1445 | wxHtmlContentsItem * _result; | |
1446 | wxHtmlHelpData * _arg0; | |
1447 | PyObject * _argo0 = 0; | |
1448 | char *_kwnames[] = { "self", NULL }; | |
1449 | char _ptemp[128]; | |
1450 | ||
1451 | self = self; | |
1452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpData_GetContents",_kwnames,&_argo0)) | |
1453 | return NULL; | |
1454 | if (_argo0) { | |
1455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_GetContents. Expected _wxHtmlHelpData_p."); | |
1458 | return NULL; | |
1459 | } | |
1460 | } | |
1461 | { | |
474c48f9 | 1462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1463 | _result = (wxHtmlContentsItem *)wxHtmlHelpData_GetContents(_arg0); |
1464 | ||
474c48f9 RD |
1465 | wxPyEndAllowThreads(__tstate); |
1466 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1467 | } if (_result) { |
1468 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContentsItem_p"); | |
1469 | _resultobj = Py_BuildValue("s",_ptemp); | |
1470 | } else { | |
1471 | Py_INCREF(Py_None); | |
1472 | _resultobj = Py_None; | |
1473 | } | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxHtmlHelpData_GetContentsCnt(_swigobj) (_swigobj->GetContentsCnt()) | |
1478 | static PyObject *_wrap_wxHtmlHelpData_GetContentsCnt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | int _result; | |
1481 | wxHtmlHelpData * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | ||
1485 | self = self; | |
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpData_GetContentsCnt",_kwnames,&_argo0)) | |
1487 | return NULL; | |
1488 | if (_argo0) { | |
1489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_GetContentsCnt. Expected _wxHtmlHelpData_p."); | |
1492 | return NULL; | |
1493 | } | |
1494 | } | |
1495 | { | |
474c48f9 | 1496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1497 | _result = (int )wxHtmlHelpData_GetContentsCnt(_arg0); |
1498 | ||
474c48f9 RD |
1499 | wxPyEndAllowThreads(__tstate); |
1500 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1501 | } _resultobj = Py_BuildValue("i",_result); |
1502 | return _resultobj; | |
1503 | } | |
1504 | ||
1505 | #define wxHtmlHelpData_GetIndex(_swigobj) (_swigobj->GetIndex()) | |
1506 | static PyObject *_wrap_wxHtmlHelpData_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1507 | PyObject * _resultobj; | |
1508 | wxHtmlContentsItem * _result; | |
1509 | wxHtmlHelpData * _arg0; | |
1510 | PyObject * _argo0 = 0; | |
1511 | char *_kwnames[] = { "self", NULL }; | |
1512 | char _ptemp[128]; | |
1513 | ||
1514 | self = self; | |
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpData_GetIndex",_kwnames,&_argo0)) | |
1516 | return NULL; | |
1517 | if (_argo0) { | |
1518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_GetIndex. Expected _wxHtmlHelpData_p."); | |
1521 | return NULL; | |
1522 | } | |
1523 | } | |
1524 | { | |
474c48f9 | 1525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1526 | _result = (wxHtmlContentsItem *)wxHtmlHelpData_GetIndex(_arg0); |
1527 | ||
474c48f9 RD |
1528 | wxPyEndAllowThreads(__tstate); |
1529 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1530 | } if (_result) { |
1531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContentsItem_p"); | |
1532 | _resultobj = Py_BuildValue("s",_ptemp); | |
1533 | } else { | |
1534 | Py_INCREF(Py_None); | |
1535 | _resultobj = Py_None; | |
1536 | } | |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxHtmlHelpData_GetIndexCnt(_swigobj) (_swigobj->GetIndexCnt()) | |
1541 | static PyObject *_wrap_wxHtmlHelpData_GetIndexCnt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | int _result; | |
1544 | wxHtmlHelpData * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpData_GetIndexCnt",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpData_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpData_GetIndexCnt. Expected _wxHtmlHelpData_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
474c48f9 | 1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1560 | _result = (int )wxHtmlHelpData_GetIndexCnt(_arg0); |
1561 | ||
474c48f9 RD |
1562 | wxPyEndAllowThreads(__tstate); |
1563 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1564 | } _resultobj = Py_BuildValue("i",_result); |
1565 | return _resultobj; | |
1566 | } | |
1567 | ||
1568 | static void *SwigwxHtmlHelpFrameTowxFrame(void *ptr) { | |
1569 | wxHtmlHelpFrame *src; | |
1570 | wxFrame *dest; | |
1571 | src = (wxHtmlHelpFrame *) ptr; | |
1572 | dest = (wxFrame *) src; | |
1573 | return (void *) dest; | |
1574 | } | |
1575 | ||
32c988a3 RD |
1576 | static void *SwigwxHtmlHelpFrameTowxTopLevelWindow(void *ptr) { |
1577 | wxHtmlHelpFrame *src; | |
1578 | wxTopLevelWindow *dest; | |
1579 | src = (wxHtmlHelpFrame *) ptr; | |
1580 | dest = (wxTopLevelWindow *) src; | |
1581 | return (void *) dest; | |
1582 | } | |
1583 | ||
2f90df85 RD |
1584 | static void *SwigwxHtmlHelpFrameTowxWindow(void *ptr) { |
1585 | wxHtmlHelpFrame *src; | |
1586 | wxWindow *dest; | |
1587 | src = (wxHtmlHelpFrame *) ptr; | |
1588 | dest = (wxWindow *) src; | |
1589 | return (void *) dest; | |
1590 | } | |
1591 | ||
1592 | static void *SwigwxHtmlHelpFrameTowxEvtHandler(void *ptr) { | |
1593 | wxHtmlHelpFrame *src; | |
1594 | wxEvtHandler *dest; | |
1595 | src = (wxHtmlHelpFrame *) ptr; | |
1596 | dest = (wxEvtHandler *) src; | |
1597 | return (void *) dest; | |
1598 | } | |
1599 | ||
9df61a29 RD |
1600 | static void *SwigwxHtmlHelpFrameTowxObject(void *ptr) { |
1601 | wxHtmlHelpFrame *src; | |
1602 | wxObject *dest; | |
1603 | src = (wxHtmlHelpFrame *) ptr; | |
1604 | dest = (wxObject *) src; | |
1605 | return (void *) dest; | |
1606 | } | |
1607 | ||
2f90df85 RD |
1608 | #define new_wxHtmlHelpFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxHtmlHelpFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1609 | static PyObject *_wrap_new_wxHtmlHelpFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1610 | PyObject * _resultobj; | |
1611 | wxHtmlHelpFrame * _result; | |
1612 | wxWindow * _arg0; | |
1613 | int _arg1; | |
1614 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1615 | int _arg3 = (int ) wxHF_DEFAULTSTYLE; | |
1616 | wxHtmlHelpData * _arg4 = (wxHtmlHelpData *) NULL; | |
1617 | PyObject * _argo0 = 0; | |
1618 | PyObject * _obj2 = 0; | |
1619 | PyObject * _argo4 = 0; | |
1620 | char *_kwnames[] = { "parent","wxWindowID","title","style","data", NULL }; | |
1621 | char _ptemp[128]; | |
1622 | ||
1623 | self = self; | |
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OiO:new_wxHtmlHelpFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_argo4)) | |
1625 | return NULL; | |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlHelpFrame. Expected _wxWindow_p."); | |
1630 | return NULL; | |
1631 | } | |
1632 | } | |
1633 | if (_obj2) | |
1634 | { | |
2cd2fac8 RD |
1635 | #if PYTHON_API_VERSION >= 1009 |
1636 | char* tmpPtr; int tmpSize; | |
1637 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1639 | return NULL; |
1640 | } | |
1641 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1642 | return NULL; | |
1643 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1644 | #else | |
2f90df85 RD |
1645 | if (!PyString_Check(_obj2)) { |
1646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1647 | return NULL; | |
1648 | } | |
2cd2fac8 RD |
1649 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1650 | #endif | |
2f90df85 RD |
1651 | } |
1652 | if (_argo4) { | |
1653 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
1654 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxHtmlHelpData_p")) { | |
1655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxHtmlHelpFrame. Expected _wxHtmlHelpData_p."); | |
1656 | return NULL; | |
1657 | } | |
1658 | } | |
1659 | { | |
474c48f9 | 1660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1661 | _result = (wxHtmlHelpFrame *)new_wxHtmlHelpFrame(_arg0,_arg1,*_arg2,_arg3,_arg4); |
1662 | ||
474c48f9 RD |
1663 | wxPyEndAllowThreads(__tstate); |
1664 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1665 | } if (_result) { |
1666 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlHelpFrame_p"); | |
1667 | _resultobj = Py_BuildValue("s",_ptemp); | |
1668 | } else { | |
1669 | Py_INCREF(Py_None); | |
1670 | _resultobj = Py_None; | |
1671 | } | |
1672 | { | |
1673 | if (_obj2) | |
1674 | delete _arg2; | |
1675 | } | |
1676 | return _resultobj; | |
1677 | } | |
1678 | ||
1679 | #define wxHtmlHelpFrame_GetData(_swigobj) (_swigobj->GetData()) | |
1680 | static PyObject *_wrap_wxHtmlHelpFrame_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1681 | PyObject * _resultobj; | |
1682 | wxHtmlHelpData * _result; | |
1683 | wxHtmlHelpFrame * _arg0; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self", NULL }; | |
1686 | char _ptemp[128]; | |
1687 | ||
1688 | self = self; | |
1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpFrame_GetData",_kwnames,&_argo0)) | |
1690 | return NULL; | |
1691 | if (_argo0) { | |
1692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_GetData. Expected _wxHtmlHelpFrame_p."); | |
1695 | return NULL; | |
1696 | } | |
1697 | } | |
1698 | { | |
474c48f9 | 1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1700 | _result = (wxHtmlHelpData *)wxHtmlHelpFrame_GetData(_arg0); |
1701 | ||
474c48f9 RD |
1702 | wxPyEndAllowThreads(__tstate); |
1703 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1704 | } if (_result) { |
1705 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlHelpData_p"); | |
1706 | _resultobj = Py_BuildValue("s",_ptemp); | |
1707 | } else { | |
1708 | Py_INCREF(Py_None); | |
1709 | _resultobj = Py_None; | |
1710 | } | |
1711 | return _resultobj; | |
1712 | } | |
1713 | ||
1714 | #define wxHtmlHelpFrame_SetTitleFormat(_swigobj,_swigarg0) (_swigobj->SetTitleFormat(_swigarg0)) | |
1715 | static PyObject *_wrap_wxHtmlHelpFrame_SetTitleFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1716 | PyObject * _resultobj; | |
1717 | wxHtmlHelpFrame * _arg0; | |
1718 | wxString * _arg1; | |
1719 | PyObject * _argo0 = 0; | |
1720 | PyObject * _obj1 = 0; | |
1721 | char *_kwnames[] = { "self","format", NULL }; | |
1722 | ||
1723 | self = self; | |
1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpFrame_SetTitleFormat",_kwnames,&_argo0,&_obj1)) | |
1725 | return NULL; | |
1726 | if (_argo0) { | |
1727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_SetTitleFormat. Expected _wxHtmlHelpFrame_p."); | |
1730 | return NULL; | |
1731 | } | |
1732 | } | |
1733 | { | |
2cd2fac8 RD |
1734 | #if PYTHON_API_VERSION >= 1009 |
1735 | char* tmpPtr; int tmpSize; | |
1736 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1737 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1738 | return NULL; |
1739 | } | |
1740 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1741 | return NULL; | |
1742 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1743 | #else | |
2f90df85 RD |
1744 | if (!PyString_Check(_obj1)) { |
1745 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1746 | return NULL; | |
1747 | } | |
2cd2fac8 RD |
1748 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1749 | #endif | |
2f90df85 RD |
1750 | } |
1751 | { | |
474c48f9 | 1752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1753 | wxHtmlHelpFrame_SetTitleFormat(_arg0,*_arg1); |
1754 | ||
474c48f9 RD |
1755 | wxPyEndAllowThreads(__tstate); |
1756 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1757 | } Py_INCREF(Py_None); |
1758 | _resultobj = Py_None; | |
1759 | { | |
1760 | if (_obj1) | |
1761 | delete _arg1; | |
1762 | } | |
1763 | return _resultobj; | |
1764 | } | |
1765 | ||
1766 | #define wxHtmlHelpFrame_Display(_swigobj,_swigarg0) (_swigobj->Display(_swigarg0)) | |
1767 | static PyObject *_wrap_wxHtmlHelpFrame_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1768 | PyObject * _resultobj; | |
1769 | wxHtmlHelpFrame * _arg0; | |
1770 | wxString * _arg1; | |
1771 | PyObject * _argo0 = 0; | |
1772 | PyObject * _obj1 = 0; | |
1773 | char *_kwnames[] = { "self","x", NULL }; | |
1774 | ||
1775 | self = self; | |
1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpFrame_Display",_kwnames,&_argo0,&_obj1)) | |
1777 | return NULL; | |
1778 | if (_argo0) { | |
1779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_Display. Expected _wxHtmlHelpFrame_p."); | |
1782 | return NULL; | |
1783 | } | |
1784 | } | |
1785 | { | |
2cd2fac8 RD |
1786 | #if PYTHON_API_VERSION >= 1009 |
1787 | char* tmpPtr; int tmpSize; | |
1788 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1789 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1790 | return NULL; |
1791 | } | |
1792 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1793 | return NULL; | |
1794 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1795 | #else | |
2f90df85 RD |
1796 | if (!PyString_Check(_obj1)) { |
1797 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1798 | return NULL; | |
1799 | } | |
2cd2fac8 RD |
1800 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1801 | #endif | |
2f90df85 RD |
1802 | } |
1803 | { | |
474c48f9 | 1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1805 | wxHtmlHelpFrame_Display(_arg0,*_arg1); |
1806 | ||
474c48f9 RD |
1807 | wxPyEndAllowThreads(__tstate); |
1808 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1809 | } Py_INCREF(Py_None); |
1810 | _resultobj = Py_None; | |
1811 | { | |
1812 | if (_obj1) | |
1813 | delete _arg1; | |
1814 | } | |
1815 | return _resultobj; | |
1816 | } | |
1817 | ||
1818 | #define wxHtmlHelpFrame_DisplayID(_swigobj,_swigarg0) (_swigobj->Display(_swigarg0)) | |
1819 | static PyObject *_wrap_wxHtmlHelpFrame_DisplayID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1820 | PyObject * _resultobj; | |
1821 | wxHtmlHelpFrame * _arg0; | |
1822 | int _arg1; | |
1823 | PyObject * _argo0 = 0; | |
1824 | char *_kwnames[] = { "self","id", NULL }; | |
1825 | ||
1826 | self = self; | |
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlHelpFrame_DisplayID",_kwnames,&_argo0,&_arg1)) | |
1828 | return NULL; | |
1829 | if (_argo0) { | |
1830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_DisplayID. Expected _wxHtmlHelpFrame_p."); | |
1833 | return NULL; | |
1834 | } | |
1835 | } | |
1836 | { | |
474c48f9 | 1837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1838 | wxHtmlHelpFrame_DisplayID(_arg0,_arg1); |
1839 | ||
474c48f9 RD |
1840 | wxPyEndAllowThreads(__tstate); |
1841 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1842 | } Py_INCREF(Py_None); |
1843 | _resultobj = Py_None; | |
1844 | return _resultobj; | |
1845 | } | |
1846 | ||
1847 | #define wxHtmlHelpFrame_DisplayContents(_swigobj) (_swigobj->DisplayContents()) | |
1848 | static PyObject *_wrap_wxHtmlHelpFrame_DisplayContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject * _resultobj; | |
1850 | wxHtmlHelpFrame * _arg0; | |
1851 | PyObject * _argo0 = 0; | |
1852 | char *_kwnames[] = { "self", NULL }; | |
1853 | ||
1854 | self = self; | |
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpFrame_DisplayContents",_kwnames,&_argo0)) | |
1856 | return NULL; | |
1857 | if (_argo0) { | |
1858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_DisplayContents. Expected _wxHtmlHelpFrame_p."); | |
1861 | return NULL; | |
1862 | } | |
1863 | } | |
1864 | { | |
474c48f9 | 1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1866 | wxHtmlHelpFrame_DisplayContents(_arg0); |
1867 | ||
474c48f9 RD |
1868 | wxPyEndAllowThreads(__tstate); |
1869 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1870 | } Py_INCREF(Py_None); |
1871 | _resultobj = Py_None; | |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
1875 | #define wxHtmlHelpFrame_DisplayIndex(_swigobj) (_swigobj->DisplayIndex()) | |
1876 | static PyObject *_wrap_wxHtmlHelpFrame_DisplayIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject * _resultobj; | |
1878 | wxHtmlHelpFrame * _arg0; | |
1879 | PyObject * _argo0 = 0; | |
1880 | char *_kwnames[] = { "self", NULL }; | |
1881 | ||
1882 | self = self; | |
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpFrame_DisplayIndex",_kwnames,&_argo0)) | |
1884 | return NULL; | |
1885 | if (_argo0) { | |
1886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_DisplayIndex. Expected _wxHtmlHelpFrame_p."); | |
1889 | return NULL; | |
1890 | } | |
1891 | } | |
1892 | { | |
474c48f9 | 1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1894 | wxHtmlHelpFrame_DisplayIndex(_arg0); |
1895 | ||
474c48f9 RD |
1896 | wxPyEndAllowThreads(__tstate); |
1897 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1898 | } Py_INCREF(Py_None); |
1899 | _resultobj = Py_None; | |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
1903 | #define wxHtmlHelpFrame_KeywordSearch(_swigobj,_swigarg0) (_swigobj->KeywordSearch(_swigarg0)) | |
1904 | static PyObject *_wrap_wxHtmlHelpFrame_KeywordSearch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1905 | PyObject * _resultobj; | |
1906 | bool _result; | |
1907 | wxHtmlHelpFrame * _arg0; | |
1908 | wxString * _arg1; | |
1909 | PyObject * _argo0 = 0; | |
1910 | PyObject * _obj1 = 0; | |
1911 | char *_kwnames[] = { "self","keyword", NULL }; | |
1912 | ||
1913 | self = self; | |
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpFrame_KeywordSearch",_kwnames,&_argo0,&_obj1)) | |
1915 | return NULL; | |
1916 | if (_argo0) { | |
1917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_KeywordSearch. Expected _wxHtmlHelpFrame_p."); | |
1920 | return NULL; | |
1921 | } | |
1922 | } | |
1923 | { | |
2cd2fac8 RD |
1924 | #if PYTHON_API_VERSION >= 1009 |
1925 | char* tmpPtr; int tmpSize; | |
1926 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1927 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1928 | return NULL; |
1929 | } | |
1930 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1931 | return NULL; | |
1932 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1933 | #else | |
2f90df85 RD |
1934 | if (!PyString_Check(_obj1)) { |
1935 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1936 | return NULL; | |
1937 | } | |
2cd2fac8 RD |
1938 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1939 | #endif | |
2f90df85 RD |
1940 | } |
1941 | { | |
474c48f9 | 1942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
1943 | _result = (bool )wxHtmlHelpFrame_KeywordSearch(_arg0,*_arg1); |
1944 | ||
474c48f9 RD |
1945 | wxPyEndAllowThreads(__tstate); |
1946 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
1947 | } _resultobj = Py_BuildValue("i",_result); |
1948 | { | |
1949 | if (_obj1) | |
1950 | delete _arg1; | |
1951 | } | |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
2f90df85 RD |
1955 | #define wxHtmlHelpFrame_UseConfig(_swigobj,_swigarg0,_swigarg1) (_swigobj->UseConfig(_swigarg0,_swigarg1)) |
1956 | static PyObject *_wrap_wxHtmlHelpFrame_UseConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject * _resultobj; | |
1958 | wxHtmlHelpFrame * _arg0; | |
1959 | wxConfigBase * _arg1; | |
1960 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1961 | PyObject * _argo0 = 0; | |
1962 | PyObject * _argo1 = 0; | |
1963 | PyObject * _obj2 = 0; | |
1964 | char *_kwnames[] = { "self","config","rootpath", NULL }; | |
1965 | ||
1966 | self = self; | |
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpFrame_UseConfig",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1968 | return NULL; | |
1969 | if (_argo0) { | |
1970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
1972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_UseConfig. Expected _wxHtmlHelpFrame_p."); | |
1973 | return NULL; | |
1974 | } | |
1975 | } | |
1976 | if (_argo1) { | |
1977 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1978 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
1979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpFrame_UseConfig. Expected _wxConfigBase_p."); | |
1980 | return NULL; | |
1981 | } | |
1982 | } | |
1983 | if (_obj2) | |
1984 | { | |
2cd2fac8 RD |
1985 | #if PYTHON_API_VERSION >= 1009 |
1986 | char* tmpPtr; int tmpSize; | |
1987 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1988 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1989 | return NULL; |
1990 | } | |
1991 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1992 | return NULL; | |
1993 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1994 | #else | |
2f90df85 RD |
1995 | if (!PyString_Check(_obj2)) { |
1996 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1997 | return NULL; | |
1998 | } | |
2cd2fac8 RD |
1999 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2000 | #endif | |
2f90df85 RD |
2001 | } |
2002 | { | |
474c48f9 | 2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2004 | wxHtmlHelpFrame_UseConfig(_arg0,_arg1,*_arg2); |
2005 | ||
474c48f9 RD |
2006 | wxPyEndAllowThreads(__tstate); |
2007 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2008 | } Py_INCREF(Py_None); |
2009 | _resultobj = Py_None; | |
2010 | { | |
2011 | if (_obj2) | |
2012 | delete _arg2; | |
2013 | } | |
2014 | return _resultobj; | |
2015 | } | |
2016 | ||
2017 | #define wxHtmlHelpFrame_ReadCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadCustomization(_swigarg0,_swigarg1)) | |
2018 | static PyObject *_wrap_wxHtmlHelpFrame_ReadCustomization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject * _resultobj; | |
2020 | wxHtmlHelpFrame * _arg0; | |
2021 | wxConfigBase * _arg1; | |
2022 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2023 | PyObject * _argo0 = 0; | |
2024 | PyObject * _argo1 = 0; | |
2025 | PyObject * _obj2 = 0; | |
2026 | char *_kwnames[] = { "self","cfg","path", NULL }; | |
2027 | ||
2028 | self = self; | |
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpFrame_ReadCustomization",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2030 | return NULL; | |
2031 | if (_argo0) { | |
2032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
2034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_ReadCustomization. Expected _wxHtmlHelpFrame_p."); | |
2035 | return NULL; | |
2036 | } | |
2037 | } | |
2038 | if (_argo1) { | |
2039 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2040 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
2041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpFrame_ReadCustomization. Expected _wxConfigBase_p."); | |
2042 | return NULL; | |
2043 | } | |
2044 | } | |
2045 | if (_obj2) | |
2046 | { | |
2cd2fac8 RD |
2047 | #if PYTHON_API_VERSION >= 1009 |
2048 | char* tmpPtr; int tmpSize; | |
2049 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2050 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2051 | return NULL; |
2052 | } | |
2053 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2054 | return NULL; | |
2055 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2056 | #else | |
2f90df85 RD |
2057 | if (!PyString_Check(_obj2)) { |
2058 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2059 | return NULL; | |
2060 | } | |
2cd2fac8 RD |
2061 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2062 | #endif | |
2f90df85 RD |
2063 | } |
2064 | { | |
474c48f9 | 2065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2066 | wxHtmlHelpFrame_ReadCustomization(_arg0,_arg1,*_arg2); |
2067 | ||
474c48f9 RD |
2068 | wxPyEndAllowThreads(__tstate); |
2069 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2070 | } Py_INCREF(Py_None); |
2071 | _resultobj = Py_None; | |
2072 | { | |
2073 | if (_obj2) | |
2074 | delete _arg2; | |
2075 | } | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | #define wxHtmlHelpFrame_WriteCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->WriteCustomization(_swigarg0,_swigarg1)) | |
2080 | static PyObject *_wrap_wxHtmlHelpFrame_WriteCustomization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject * _resultobj; | |
2082 | wxHtmlHelpFrame * _arg0; | |
2083 | wxConfigBase * _arg1; | |
2084 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2085 | PyObject * _argo0 = 0; | |
2086 | PyObject * _argo1 = 0; | |
2087 | PyObject * _obj2 = 0; | |
2088 | char *_kwnames[] = { "self","cfg","path", NULL }; | |
2089 | ||
2090 | self = self; | |
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpFrame_WriteCustomization",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2092 | return NULL; | |
2093 | if (_argo0) { | |
2094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpFrame_p")) { | |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpFrame_WriteCustomization. Expected _wxHtmlHelpFrame_p."); | |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
2100 | if (_argo1) { | |
2101 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2102 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
2103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpFrame_WriteCustomization. Expected _wxConfigBase_p."); | |
2104 | return NULL; | |
2105 | } | |
2106 | } | |
2107 | if (_obj2) | |
2108 | { | |
2cd2fac8 RD |
2109 | #if PYTHON_API_VERSION >= 1009 |
2110 | char* tmpPtr; int tmpSize; | |
2111 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2113 | return NULL; |
2114 | } | |
2115 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2116 | return NULL; | |
2117 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2118 | #else | |
2f90df85 RD |
2119 | if (!PyString_Check(_obj2)) { |
2120 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2121 | return NULL; | |
2122 | } | |
2cd2fac8 RD |
2123 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2124 | #endif | |
2f90df85 RD |
2125 | } |
2126 | { | |
474c48f9 | 2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2128 | wxHtmlHelpFrame_WriteCustomization(_arg0,_arg1,*_arg2); |
2129 | ||
474c48f9 RD |
2130 | wxPyEndAllowThreads(__tstate); |
2131 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2132 | } Py_INCREF(Py_None); |
2133 | _resultobj = Py_None; | |
2134 | { | |
2135 | if (_obj2) | |
2136 | delete _arg2; | |
2137 | } | |
2138 | return _resultobj; | |
2139 | } | |
2140 | ||
2141 | static void *SwigwxHtmlHelpControllerTowxEvtHandler(void *ptr) { | |
2142 | wxHtmlHelpController *src; | |
2143 | wxEvtHandler *dest; | |
2144 | src = (wxHtmlHelpController *) ptr; | |
2145 | dest = (wxEvtHandler *) src; | |
2146 | return (void *) dest; | |
2147 | } | |
2148 | ||
9df61a29 RD |
2149 | static void *SwigwxHtmlHelpControllerTowxObject(void *ptr) { |
2150 | wxHtmlHelpController *src; | |
2151 | wxObject *dest; | |
2152 | src = (wxHtmlHelpController *) ptr; | |
2153 | dest = (wxObject *) src; | |
2154 | return (void *) dest; | |
2155 | } | |
2156 | ||
7a446686 | 2157 | #define new_wxHtmlHelpController(_swigarg0) (new wxHtmlHelpController(_swigarg0)) |
2f90df85 RD |
2158 | static PyObject *_wrap_new_wxHtmlHelpController(PyObject *self, PyObject *args, PyObject *kwargs) { |
2159 | PyObject * _resultobj; | |
2160 | wxHtmlHelpController * _result; | |
7a446686 RD |
2161 | int _arg0 = (int ) (wxHF_DEFAULTSTYLE); |
2162 | char *_kwnames[] = { "style", NULL }; | |
2f90df85 RD |
2163 | char _ptemp[128]; |
2164 | ||
2165 | self = self; | |
7a446686 | 2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxHtmlHelpController",_kwnames,&_arg0)) |
2f90df85 RD |
2167 | return NULL; |
2168 | { | |
474c48f9 | 2169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7a446686 | 2170 | _result = (wxHtmlHelpController *)new_wxHtmlHelpController(_arg0); |
2f90df85 | 2171 | |
474c48f9 RD |
2172 | wxPyEndAllowThreads(__tstate); |
2173 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2174 | } if (_result) { |
2175 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlHelpController_p"); | |
2176 | _resultobj = Py_BuildValue("s",_ptemp); | |
2177 | } else { | |
2178 | Py_INCREF(Py_None); | |
2179 | _resultobj = Py_None; | |
2180 | } | |
2181 | return _resultobj; | |
2182 | } | |
2183 | ||
2184 | #define delete_wxHtmlHelpController(_swigobj) (delete _swigobj) | |
2185 | static PyObject *_wrap_delete_wxHtmlHelpController(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2186 | PyObject * _resultobj; | |
2187 | wxHtmlHelpController * _arg0; | |
2188 | PyObject * _argo0 = 0; | |
2189 | char *_kwnames[] = { "self", NULL }; | |
2190 | ||
2191 | self = self; | |
2192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxHtmlHelpController",_kwnames,&_argo0)) | |
2193 | return NULL; | |
2194 | if (_argo0) { | |
2195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxHtmlHelpController. Expected _wxHtmlHelpController_p."); | |
2198 | return NULL; | |
2199 | } | |
2200 | } | |
2201 | { | |
474c48f9 | 2202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2203 | delete_wxHtmlHelpController(_arg0); |
2204 | ||
474c48f9 RD |
2205 | wxPyEndAllowThreads(__tstate); |
2206 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2207 | } Py_INCREF(Py_None); |
2208 | _resultobj = Py_None; | |
2209 | return _resultobj; | |
2210 | } | |
2211 | ||
2212 | #define wxHtmlHelpController_SetTitleFormat(_swigobj,_swigarg0) (_swigobj->SetTitleFormat(_swigarg0)) | |
2213 | static PyObject *_wrap_wxHtmlHelpController_SetTitleFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2214 | PyObject * _resultobj; | |
2215 | wxHtmlHelpController * _arg0; | |
2216 | wxString * _arg1; | |
2217 | PyObject * _argo0 = 0; | |
2218 | PyObject * _obj1 = 0; | |
2219 | char *_kwnames[] = { "self","format", NULL }; | |
2220 | ||
2221 | self = self; | |
2222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpController_SetTitleFormat",_kwnames,&_argo0,&_obj1)) | |
2223 | return NULL; | |
2224 | if (_argo0) { | |
2225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_SetTitleFormat. Expected _wxHtmlHelpController_p."); | |
2228 | return NULL; | |
2229 | } | |
2230 | } | |
2231 | { | |
2cd2fac8 RD |
2232 | #if PYTHON_API_VERSION >= 1009 |
2233 | char* tmpPtr; int tmpSize; | |
2234 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2235 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2236 | return NULL; |
2237 | } | |
2238 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2239 | return NULL; | |
2240 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2241 | #else | |
2f90df85 RD |
2242 | if (!PyString_Check(_obj1)) { |
2243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2244 | return NULL; | |
2245 | } | |
2cd2fac8 RD |
2246 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2247 | #endif | |
2f90df85 RD |
2248 | } |
2249 | { | |
474c48f9 | 2250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2251 | wxHtmlHelpController_SetTitleFormat(_arg0,*_arg1); |
2252 | ||
474c48f9 RD |
2253 | wxPyEndAllowThreads(__tstate); |
2254 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2255 | } Py_INCREF(Py_None); |
2256 | _resultobj = Py_None; | |
2257 | { | |
2258 | if (_obj1) | |
2259 | delete _arg1; | |
2260 | } | |
2261 | return _resultobj; | |
2262 | } | |
2263 | ||
2264 | #define wxHtmlHelpController_SetTempDir(_swigobj,_swigarg0) (_swigobj->SetTempDir(_swigarg0)) | |
2265 | static PyObject *_wrap_wxHtmlHelpController_SetTempDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject * _resultobj; | |
2267 | wxHtmlHelpController * _arg0; | |
2268 | wxString * _arg1; | |
2269 | PyObject * _argo0 = 0; | |
2270 | PyObject * _obj1 = 0; | |
2271 | char *_kwnames[] = { "self","path", NULL }; | |
2272 | ||
2273 | self = self; | |
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpController_SetTempDir",_kwnames,&_argo0,&_obj1)) | |
2275 | return NULL; | |
2276 | if (_argo0) { | |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_SetTempDir. Expected _wxHtmlHelpController_p."); | |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
2283 | { | |
2cd2fac8 RD |
2284 | #if PYTHON_API_VERSION >= 1009 |
2285 | char* tmpPtr; int tmpSize; | |
2286 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2288 | return NULL; |
2289 | } | |
2290 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2291 | return NULL; | |
2292 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2293 | #else | |
2f90df85 RD |
2294 | if (!PyString_Check(_obj1)) { |
2295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2296 | return NULL; | |
2297 | } | |
2cd2fac8 RD |
2298 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2299 | #endif | |
2f90df85 RD |
2300 | } |
2301 | { | |
474c48f9 | 2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2303 | wxHtmlHelpController_SetTempDir(_arg0,*_arg1); |
2304 | ||
474c48f9 RD |
2305 | wxPyEndAllowThreads(__tstate); |
2306 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2307 | } Py_INCREF(Py_None); |
2308 | _resultobj = Py_None; | |
2309 | { | |
2310 | if (_obj1) | |
2311 | delete _arg1; | |
2312 | } | |
2313 | return _resultobj; | |
2314 | } | |
2315 | ||
2316 | #define wxHtmlHelpController_AddBook(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddBook(_swigarg0,_swigarg1)) | |
2317 | static PyObject *_wrap_wxHtmlHelpController_AddBook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2318 | PyObject * _resultobj; | |
2319 | bool _result; | |
2320 | wxHtmlHelpController * _arg0; | |
2321 | wxString * _arg1; | |
2322 | int _arg2 = (int ) FALSE; | |
2323 | PyObject * _argo0 = 0; | |
2324 | PyObject * _obj1 = 0; | |
2325 | char *_kwnames[] = { "self","book","show_wait_msg", NULL }; | |
2326 | ||
2327 | self = self; | |
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlHelpController_AddBook",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2329 | return NULL; | |
2330 | if (_argo0) { | |
2331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_AddBook. Expected _wxHtmlHelpController_p."); | |
2334 | return NULL; | |
2335 | } | |
2336 | } | |
2337 | { | |
2cd2fac8 RD |
2338 | #if PYTHON_API_VERSION >= 1009 |
2339 | char* tmpPtr; int tmpSize; | |
2340 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2342 | return NULL; |
2343 | } | |
2344 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2345 | return NULL; | |
2346 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2347 | #else | |
2f90df85 RD |
2348 | if (!PyString_Check(_obj1)) { |
2349 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2350 | return NULL; | |
2351 | } | |
2cd2fac8 RD |
2352 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2353 | #endif | |
2f90df85 RD |
2354 | } |
2355 | { | |
474c48f9 | 2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2357 | _result = (bool )wxHtmlHelpController_AddBook(_arg0,*_arg1,_arg2); |
2358 | ||
474c48f9 RD |
2359 | wxPyEndAllowThreads(__tstate); |
2360 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2361 | } _resultobj = Py_BuildValue("i",_result); |
2362 | { | |
2363 | if (_obj1) | |
2364 | delete _arg1; | |
2365 | } | |
2366 | return _resultobj; | |
2367 | } | |
2368 | ||
2369 | #define wxHtmlHelpController_Display(_swigobj,_swigarg0) (_swigobj->Display(_swigarg0)) | |
2370 | static PyObject *_wrap_wxHtmlHelpController_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject * _resultobj; | |
2372 | wxHtmlHelpController * _arg0; | |
2373 | wxString * _arg1; | |
2374 | PyObject * _argo0 = 0; | |
2375 | PyObject * _obj1 = 0; | |
2376 | char *_kwnames[] = { "self","x", NULL }; | |
2377 | ||
2378 | self = self; | |
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpController_Display",_kwnames,&_argo0,&_obj1)) | |
2380 | return NULL; | |
2381 | if (_argo0) { | |
2382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_Display. Expected _wxHtmlHelpController_p."); | |
2385 | return NULL; | |
2386 | } | |
2387 | } | |
2388 | { | |
2cd2fac8 RD |
2389 | #if PYTHON_API_VERSION >= 1009 |
2390 | char* tmpPtr; int tmpSize; | |
2391 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2392 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2393 | return NULL; |
2394 | } | |
2395 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2396 | return NULL; | |
2397 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2398 | #else | |
2f90df85 RD |
2399 | if (!PyString_Check(_obj1)) { |
2400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2401 | return NULL; | |
2402 | } | |
2cd2fac8 RD |
2403 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2404 | #endif | |
2f90df85 RD |
2405 | } |
2406 | { | |
474c48f9 | 2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2408 | wxHtmlHelpController_Display(_arg0,*_arg1); |
2409 | ||
474c48f9 RD |
2410 | wxPyEndAllowThreads(__tstate); |
2411 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2412 | } Py_INCREF(Py_None); |
2413 | _resultobj = Py_None; | |
2414 | { | |
2415 | if (_obj1) | |
2416 | delete _arg1; | |
2417 | } | |
2418 | return _resultobj; | |
2419 | } | |
2420 | ||
2421 | #define wxHtmlHelpController_DisplayID(_swigobj,_swigarg0) (_swigobj->Display(_swigarg0)) | |
2422 | static PyObject *_wrap_wxHtmlHelpController_DisplayID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2423 | PyObject * _resultobj; | |
2424 | wxHtmlHelpController * _arg0; | |
2425 | int _arg1; | |
2426 | PyObject * _argo0 = 0; | |
2427 | char *_kwnames[] = { "self","id", NULL }; | |
2428 | ||
2429 | self = self; | |
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlHelpController_DisplayID",_kwnames,&_argo0,&_arg1)) | |
2431 | return NULL; | |
2432 | if (_argo0) { | |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_DisplayID. Expected _wxHtmlHelpController_p."); | |
2436 | return NULL; | |
2437 | } | |
2438 | } | |
2439 | { | |
474c48f9 | 2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2441 | wxHtmlHelpController_DisplayID(_arg0,_arg1); |
2442 | ||
474c48f9 RD |
2443 | wxPyEndAllowThreads(__tstate); |
2444 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2445 | } Py_INCREF(Py_None); |
2446 | _resultobj = Py_None; | |
2447 | return _resultobj; | |
2448 | } | |
2449 | ||
2450 | #define wxHtmlHelpController_DisplayContents(_swigobj) (_swigobj->DisplayContents()) | |
2451 | static PyObject *_wrap_wxHtmlHelpController_DisplayContents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2452 | PyObject * _resultobj; | |
2453 | wxHtmlHelpController * _arg0; | |
2454 | PyObject * _argo0 = 0; | |
2455 | char *_kwnames[] = { "self", NULL }; | |
2456 | ||
2457 | self = self; | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpController_DisplayContents",_kwnames,&_argo0)) | |
2459 | return NULL; | |
2460 | if (_argo0) { | |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_DisplayContents. Expected _wxHtmlHelpController_p."); | |
2464 | return NULL; | |
2465 | } | |
2466 | } | |
2467 | { | |
474c48f9 | 2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2469 | wxHtmlHelpController_DisplayContents(_arg0); |
2470 | ||
474c48f9 RD |
2471 | wxPyEndAllowThreads(__tstate); |
2472 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2473 | } Py_INCREF(Py_None); |
2474 | _resultobj = Py_None; | |
2475 | return _resultobj; | |
2476 | } | |
2477 | ||
2478 | #define wxHtmlHelpController_DisplayIndex(_swigobj) (_swigobj->DisplayIndex()) | |
2479 | static PyObject *_wrap_wxHtmlHelpController_DisplayIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject * _resultobj; | |
2481 | wxHtmlHelpController * _arg0; | |
2482 | PyObject * _argo0 = 0; | |
2483 | char *_kwnames[] = { "self", NULL }; | |
2484 | ||
2485 | self = self; | |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpController_DisplayIndex",_kwnames,&_argo0)) | |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_DisplayIndex. Expected _wxHtmlHelpController_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
474c48f9 | 2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2497 | wxHtmlHelpController_DisplayIndex(_arg0); |
2498 | ||
474c48f9 RD |
2499 | wxPyEndAllowThreads(__tstate); |
2500 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2501 | } Py_INCREF(Py_None); |
2502 | _resultobj = Py_None; | |
2503 | return _resultobj; | |
2504 | } | |
2505 | ||
2506 | #define wxHtmlHelpController_KeywordSearch(_swigobj,_swigarg0) (_swigobj->KeywordSearch(_swigarg0)) | |
2507 | static PyObject *_wrap_wxHtmlHelpController_KeywordSearch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2508 | PyObject * _resultobj; | |
2509 | bool _result; | |
2510 | wxHtmlHelpController * _arg0; | |
2511 | wxString * _arg1; | |
2512 | PyObject * _argo0 = 0; | |
2513 | PyObject * _obj1 = 0; | |
2514 | char *_kwnames[] = { "self","keyword", NULL }; | |
2515 | ||
2516 | self = self; | |
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlHelpController_KeywordSearch",_kwnames,&_argo0,&_obj1)) | |
2518 | return NULL; | |
2519 | if (_argo0) { | |
2520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_KeywordSearch. Expected _wxHtmlHelpController_p."); | |
2523 | return NULL; | |
2524 | } | |
2525 | } | |
2526 | { | |
2cd2fac8 RD |
2527 | #if PYTHON_API_VERSION >= 1009 |
2528 | char* tmpPtr; int tmpSize; | |
2529 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2531 | return NULL; |
2532 | } | |
2533 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2534 | return NULL; | |
2535 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2536 | #else | |
2f90df85 RD |
2537 | if (!PyString_Check(_obj1)) { |
2538 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2539 | return NULL; | |
2540 | } | |
2cd2fac8 RD |
2541 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2542 | #endif | |
2f90df85 RD |
2543 | } |
2544 | { | |
474c48f9 | 2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2546 | _result = (bool )wxHtmlHelpController_KeywordSearch(_arg0,*_arg1); |
2547 | ||
474c48f9 RD |
2548 | wxPyEndAllowThreads(__tstate); |
2549 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2550 | } _resultobj = Py_BuildValue("i",_result); |
2551 | { | |
2552 | if (_obj1) | |
2553 | delete _arg1; | |
2554 | } | |
2555 | return _resultobj; | |
2556 | } | |
2557 | ||
2558 | #define wxHtmlHelpController_UseConfig(_swigobj,_swigarg0,_swigarg1) (_swigobj->UseConfig(_swigarg0,_swigarg1)) | |
2559 | static PyObject *_wrap_wxHtmlHelpController_UseConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject * _resultobj; | |
2561 | wxHtmlHelpController * _arg0; | |
2562 | wxConfigBase * _arg1; | |
2563 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2564 | PyObject * _argo0 = 0; | |
2565 | PyObject * _argo1 = 0; | |
2566 | PyObject * _obj2 = 0; | |
2567 | char *_kwnames[] = { "self","config","rootpath", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpController_UseConfig",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2571 | return NULL; | |
2572 | if (_argo0) { | |
2573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_UseConfig. Expected _wxHtmlHelpController_p."); | |
2576 | return NULL; | |
2577 | } | |
2578 | } | |
2579 | if (_argo1) { | |
2580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
2582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpController_UseConfig. Expected _wxConfigBase_p."); | |
2583 | return NULL; | |
2584 | } | |
2585 | } | |
2586 | if (_obj2) | |
2587 | { | |
2cd2fac8 RD |
2588 | #if PYTHON_API_VERSION >= 1009 |
2589 | char* tmpPtr; int tmpSize; | |
2590 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2591 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2592 | return NULL; |
2593 | } | |
2594 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2595 | return NULL; | |
2596 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2597 | #else | |
2f90df85 RD |
2598 | if (!PyString_Check(_obj2)) { |
2599 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2600 | return NULL; | |
2601 | } | |
2cd2fac8 RD |
2602 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2603 | #endif | |
2f90df85 RD |
2604 | } |
2605 | { | |
474c48f9 | 2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2607 | wxHtmlHelpController_UseConfig(_arg0,_arg1,*_arg2); |
2608 | ||
474c48f9 RD |
2609 | wxPyEndAllowThreads(__tstate); |
2610 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2611 | } Py_INCREF(Py_None); |
2612 | _resultobj = Py_None; | |
2613 | { | |
2614 | if (_obj2) | |
2615 | delete _arg2; | |
2616 | } | |
2617 | return _resultobj; | |
2618 | } | |
2619 | ||
2620 | #define wxHtmlHelpController_ReadCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadCustomization(_swigarg0,_swigarg1)) | |
2621 | static PyObject *_wrap_wxHtmlHelpController_ReadCustomization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2622 | PyObject * _resultobj; | |
2623 | wxHtmlHelpController * _arg0; | |
2624 | wxConfigBase * _arg1; | |
2625 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2626 | PyObject * _argo0 = 0; | |
2627 | PyObject * _argo1 = 0; | |
2628 | PyObject * _obj2 = 0; | |
2629 | char *_kwnames[] = { "self","cfg","path", NULL }; | |
2630 | ||
2631 | self = self; | |
2632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpController_ReadCustomization",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2633 | return NULL; | |
2634 | if (_argo0) { | |
2635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_ReadCustomization. Expected _wxHtmlHelpController_p."); | |
2638 | return NULL; | |
2639 | } | |
2640 | } | |
2641 | if (_argo1) { | |
2642 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2643 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
2644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpController_ReadCustomization. Expected _wxConfigBase_p."); | |
2645 | return NULL; | |
2646 | } | |
2647 | } | |
2648 | if (_obj2) | |
2649 | { | |
2cd2fac8 RD |
2650 | #if PYTHON_API_VERSION >= 1009 |
2651 | char* tmpPtr; int tmpSize; | |
2652 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2654 | return NULL; |
2655 | } | |
2656 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2657 | return NULL; | |
2658 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2659 | #else | |
2f90df85 RD |
2660 | if (!PyString_Check(_obj2)) { |
2661 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2662 | return NULL; | |
2663 | } | |
2cd2fac8 RD |
2664 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2665 | #endif | |
2f90df85 RD |
2666 | } |
2667 | { | |
474c48f9 | 2668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2669 | wxHtmlHelpController_ReadCustomization(_arg0,_arg1,*_arg2); |
2670 | ||
474c48f9 RD |
2671 | wxPyEndAllowThreads(__tstate); |
2672 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2673 | } Py_INCREF(Py_None); |
2674 | _resultobj = Py_None; | |
2675 | { | |
2676 | if (_obj2) | |
2677 | delete _arg2; | |
2678 | } | |
2679 | return _resultobj; | |
2680 | } | |
2681 | ||
2682 | #define wxHtmlHelpController_WriteCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->WriteCustomization(_swigarg0,_swigarg1)) | |
2683 | static PyObject *_wrap_wxHtmlHelpController_WriteCustomization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2684 | PyObject * _resultobj; | |
2685 | wxHtmlHelpController * _arg0; | |
2686 | wxConfigBase * _arg1; | |
2687 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2688 | PyObject * _argo0 = 0; | |
2689 | PyObject * _argo1 = 0; | |
2690 | PyObject * _obj2 = 0; | |
2691 | char *_kwnames[] = { "self","cfg","path", NULL }; | |
2692 | ||
2693 | self = self; | |
2694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlHelpController_WriteCustomization",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2695 | return NULL; | |
2696 | if (_argo0) { | |
2697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_WriteCustomization. Expected _wxHtmlHelpController_p."); | |
2700 | return NULL; | |
2701 | } | |
2702 | } | |
2703 | if (_argo1) { | |
2704 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2705 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
2706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlHelpController_WriteCustomization. Expected _wxConfigBase_p."); | |
2707 | return NULL; | |
2708 | } | |
2709 | } | |
2710 | if (_obj2) | |
2711 | { | |
2cd2fac8 RD |
2712 | #if PYTHON_API_VERSION >= 1009 |
2713 | char* tmpPtr; int tmpSize; | |
2714 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2715 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2716 | return NULL; |
2717 | } | |
2718 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2719 | return NULL; | |
2720 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2721 | #else | |
2f90df85 RD |
2722 | if (!PyString_Check(_obj2)) { |
2723 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2724 | return NULL; | |
2725 | } | |
2cd2fac8 RD |
2726 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2727 | #endif | |
2f90df85 RD |
2728 | } |
2729 | { | |
474c48f9 | 2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2731 | wxHtmlHelpController_WriteCustomization(_arg0,_arg1,*_arg2); |
2732 | ||
474c48f9 RD |
2733 | wxPyEndAllowThreads(__tstate); |
2734 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2735 | } Py_INCREF(Py_None); |
2736 | _resultobj = Py_None; | |
2737 | { | |
2738 | if (_obj2) | |
2739 | delete _arg2; | |
2740 | } | |
2741 | return _resultobj; | |
2742 | } | |
2743 | ||
2744 | #define wxHtmlHelpController_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
2745 | static PyObject *_wrap_wxHtmlHelpController_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2746 | PyObject * _resultobj; | |
2747 | wxHtmlHelpFrame * _result; | |
2748 | wxHtmlHelpController * _arg0; | |
2749 | PyObject * _argo0 = 0; | |
2750 | char *_kwnames[] = { "self", NULL }; | |
2751 | char _ptemp[128]; | |
2752 | ||
2753 | self = self; | |
2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlHelpController_GetFrame",_kwnames,&_argo0)) | |
2755 | return NULL; | |
2756 | if (_argo0) { | |
2757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlHelpController_p")) { | |
2759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlHelpController_GetFrame. Expected _wxHtmlHelpController_p."); | |
2760 | return NULL; | |
2761 | } | |
2762 | } | |
2763 | { | |
474c48f9 | 2764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f90df85 RD |
2765 | _result = (wxHtmlHelpFrame *)wxHtmlHelpController_GetFrame(_arg0); |
2766 | ||
474c48f9 RD |
2767 | wxPyEndAllowThreads(__tstate); |
2768 | if (PyErr_Occurred()) return NULL; | |
2f90df85 RD |
2769 | } if (_result) { |
2770 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlHelpFrame_p"); | |
2771 | _resultobj = Py_BuildValue("s",_ptemp); | |
2772 | } else { | |
2773 | Py_INCREF(Py_None); | |
2774 | _resultobj = Py_None; | |
2775 | } | |
2776 | return _resultobj; | |
2777 | } | |
2778 | ||
2f90df85 | 2779 | static PyMethodDef htmlhelpcMethods[] = { |
2f90df85 RD |
2780 | { "wxHtmlHelpController_GetFrame", (PyCFunction) _wrap_wxHtmlHelpController_GetFrame, METH_VARARGS | METH_KEYWORDS }, |
2781 | { "wxHtmlHelpController_WriteCustomization", (PyCFunction) _wrap_wxHtmlHelpController_WriteCustomization, METH_VARARGS | METH_KEYWORDS }, | |
2782 | { "wxHtmlHelpController_ReadCustomization", (PyCFunction) _wrap_wxHtmlHelpController_ReadCustomization, METH_VARARGS | METH_KEYWORDS }, | |
2783 | { "wxHtmlHelpController_UseConfig", (PyCFunction) _wrap_wxHtmlHelpController_UseConfig, METH_VARARGS | METH_KEYWORDS }, | |
2784 | { "wxHtmlHelpController_KeywordSearch", (PyCFunction) _wrap_wxHtmlHelpController_KeywordSearch, METH_VARARGS | METH_KEYWORDS }, | |
2785 | { "wxHtmlHelpController_DisplayIndex", (PyCFunction) _wrap_wxHtmlHelpController_DisplayIndex, METH_VARARGS | METH_KEYWORDS }, | |
2786 | { "wxHtmlHelpController_DisplayContents", (PyCFunction) _wrap_wxHtmlHelpController_DisplayContents, METH_VARARGS | METH_KEYWORDS }, | |
2787 | { "wxHtmlHelpController_DisplayID", (PyCFunction) _wrap_wxHtmlHelpController_DisplayID, METH_VARARGS | METH_KEYWORDS }, | |
2788 | { "wxHtmlHelpController_Display", (PyCFunction) _wrap_wxHtmlHelpController_Display, METH_VARARGS | METH_KEYWORDS }, | |
2789 | { "wxHtmlHelpController_AddBook", (PyCFunction) _wrap_wxHtmlHelpController_AddBook, METH_VARARGS | METH_KEYWORDS }, | |
2790 | { "wxHtmlHelpController_SetTempDir", (PyCFunction) _wrap_wxHtmlHelpController_SetTempDir, METH_VARARGS | METH_KEYWORDS }, | |
2791 | { "wxHtmlHelpController_SetTitleFormat", (PyCFunction) _wrap_wxHtmlHelpController_SetTitleFormat, METH_VARARGS | METH_KEYWORDS }, | |
2792 | { "delete_wxHtmlHelpController", (PyCFunction) _wrap_delete_wxHtmlHelpController, METH_VARARGS | METH_KEYWORDS }, | |
2793 | { "new_wxHtmlHelpController", (PyCFunction) _wrap_new_wxHtmlHelpController, METH_VARARGS | METH_KEYWORDS }, | |
2794 | { "wxHtmlHelpFrame_WriteCustomization", (PyCFunction) _wrap_wxHtmlHelpFrame_WriteCustomization, METH_VARARGS | METH_KEYWORDS }, | |
2795 | { "wxHtmlHelpFrame_ReadCustomization", (PyCFunction) _wrap_wxHtmlHelpFrame_ReadCustomization, METH_VARARGS | METH_KEYWORDS }, | |
2796 | { "wxHtmlHelpFrame_UseConfig", (PyCFunction) _wrap_wxHtmlHelpFrame_UseConfig, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
2797 | { "wxHtmlHelpFrame_KeywordSearch", (PyCFunction) _wrap_wxHtmlHelpFrame_KeywordSearch, METH_VARARGS | METH_KEYWORDS }, |
2798 | { "wxHtmlHelpFrame_DisplayIndex", (PyCFunction) _wrap_wxHtmlHelpFrame_DisplayIndex, METH_VARARGS | METH_KEYWORDS }, | |
2799 | { "wxHtmlHelpFrame_DisplayContents", (PyCFunction) _wrap_wxHtmlHelpFrame_DisplayContents, METH_VARARGS | METH_KEYWORDS }, | |
2800 | { "wxHtmlHelpFrame_DisplayID", (PyCFunction) _wrap_wxHtmlHelpFrame_DisplayID, METH_VARARGS | METH_KEYWORDS }, | |
2801 | { "wxHtmlHelpFrame_Display", (PyCFunction) _wrap_wxHtmlHelpFrame_Display, METH_VARARGS | METH_KEYWORDS }, | |
2802 | { "wxHtmlHelpFrame_SetTitleFormat", (PyCFunction) _wrap_wxHtmlHelpFrame_SetTitleFormat, METH_VARARGS | METH_KEYWORDS }, | |
2803 | { "wxHtmlHelpFrame_GetData", (PyCFunction) _wrap_wxHtmlHelpFrame_GetData, METH_VARARGS | METH_KEYWORDS }, | |
2804 | { "new_wxHtmlHelpFrame", (PyCFunction) _wrap_new_wxHtmlHelpFrame, METH_VARARGS | METH_KEYWORDS }, | |
2805 | { "wxHtmlHelpData_GetIndexCnt", (PyCFunction) _wrap_wxHtmlHelpData_GetIndexCnt, METH_VARARGS | METH_KEYWORDS }, | |
2806 | { "wxHtmlHelpData_GetIndex", (PyCFunction) _wrap_wxHtmlHelpData_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
2807 | { "wxHtmlHelpData_GetContentsCnt", (PyCFunction) _wrap_wxHtmlHelpData_GetContentsCnt, METH_VARARGS | METH_KEYWORDS }, | |
2808 | { "wxHtmlHelpData_GetContents", (PyCFunction) _wrap_wxHtmlHelpData_GetContents, METH_VARARGS | METH_KEYWORDS }, | |
2809 | { "wxHtmlHelpData_GetBookRecArray", (PyCFunction) _wrap_wxHtmlHelpData_GetBookRecArray, METH_VARARGS | METH_KEYWORDS }, | |
2810 | { "wxHtmlHelpData_FindPageById", (PyCFunction) _wrap_wxHtmlHelpData_FindPageById, METH_VARARGS | METH_KEYWORDS }, | |
2811 | { "wxHtmlHelpData_FindPageByName", (PyCFunction) _wrap_wxHtmlHelpData_FindPageByName, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
2812 | { "wxHtmlHelpData_AddBook", (PyCFunction) _wrap_wxHtmlHelpData_AddBook, METH_VARARGS | METH_KEYWORDS }, |
2813 | { "wxHtmlHelpData_SetTempDir", (PyCFunction) _wrap_wxHtmlHelpData_SetTempDir, METH_VARARGS | METH_KEYWORDS }, | |
2814 | { "delete_wxHtmlHelpData", (PyCFunction) _wrap_delete_wxHtmlHelpData, METH_VARARGS | METH_KEYWORDS }, | |
2815 | { "new_wxHtmlHelpData", (PyCFunction) _wrap_new_wxHtmlHelpData, METH_VARARGS | METH_KEYWORDS }, | |
2816 | { "wxHtmlSearchStatus_GetContentsItem", (PyCFunction) _wrap_wxHtmlSearchStatus_GetContentsItem, METH_VARARGS | METH_KEYWORDS }, | |
2817 | { "wxHtmlSearchStatus_GetName", (PyCFunction) _wrap_wxHtmlSearchStatus_GetName, METH_VARARGS | METH_KEYWORDS }, | |
2818 | { "wxHtmlSearchStatus_GetMaxIndex", (PyCFunction) _wrap_wxHtmlSearchStatus_GetMaxIndex, METH_VARARGS | METH_KEYWORDS }, | |
2819 | { "wxHtmlSearchStatus_GetCurIndex", (PyCFunction) _wrap_wxHtmlSearchStatus_GetCurIndex, METH_VARARGS | METH_KEYWORDS }, | |
2820 | { "wxHtmlSearchStatus_IsActive", (PyCFunction) _wrap_wxHtmlSearchStatus_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
2821 | { "wxHtmlSearchStatus_Search", (PyCFunction) _wrap_wxHtmlSearchStatus_Search, METH_VARARGS | METH_KEYWORDS }, | |
2822 | { "wxHtmlContentsItem_m_Book_get", (PyCFunction) _wrap_wxHtmlContentsItem_m_Book_get, METH_VARARGS | METH_KEYWORDS }, | |
2823 | { "wxHtmlContentsItem_m_Book_set", (PyCFunction) _wrap_wxHtmlContentsItem_m_Book_set, METH_VARARGS | METH_KEYWORDS }, | |
2824 | { "wxHtmlContentsItem_m_Page_get", (PyCFunction) _wrap_wxHtmlContentsItem_m_Page_get, METH_VARARGS | METH_KEYWORDS }, | |
2825 | { "wxHtmlContentsItem_m_Page_set", (PyCFunction) _wrap_wxHtmlContentsItem_m_Page_set, METH_VARARGS | METH_KEYWORDS }, | |
2826 | { "wxHtmlContentsItem_m_Name_get", (PyCFunction) _wrap_wxHtmlContentsItem_m_Name_get, METH_VARARGS | METH_KEYWORDS }, | |
2827 | { "wxHtmlContentsItem_m_Name_set", (PyCFunction) _wrap_wxHtmlContentsItem_m_Name_set, METH_VARARGS | METH_KEYWORDS }, | |
2828 | { "wxHtmlContentsItem_m_ID_get", (PyCFunction) _wrap_wxHtmlContentsItem_m_ID_get, METH_VARARGS | METH_KEYWORDS }, | |
2829 | { "wxHtmlContentsItem_m_ID_set", (PyCFunction) _wrap_wxHtmlContentsItem_m_ID_set, METH_VARARGS | METH_KEYWORDS }, | |
2830 | { "wxHtmlContentsItem_m_Level_get", (PyCFunction) _wrap_wxHtmlContentsItem_m_Level_get, METH_VARARGS | METH_KEYWORDS }, | |
2831 | { "wxHtmlContentsItem_m_Level_set", (PyCFunction) _wrap_wxHtmlContentsItem_m_Level_set, METH_VARARGS | METH_KEYWORDS }, | |
4be61064 RD |
2832 | { "wxHtmlBookRecord_GetFullPath", (PyCFunction) _wrap_wxHtmlBookRecord_GetFullPath, METH_VARARGS | METH_KEYWORDS }, |
2833 | { "wxHtmlBookRecord_SetStart", (PyCFunction) _wrap_wxHtmlBookRecord_SetStart, METH_VARARGS | METH_KEYWORDS }, | |
2834 | { "wxHtmlBookRecord_SetBasePath", (PyCFunction) _wrap_wxHtmlBookRecord_SetBasePath, METH_VARARGS | METH_KEYWORDS }, | |
2835 | { "wxHtmlBookRecord_SetTitle", (PyCFunction) _wrap_wxHtmlBookRecord_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
2836 | { "wxHtmlBookRecord_GetContentsEnd", (PyCFunction) _wrap_wxHtmlBookRecord_GetContentsEnd, METH_VARARGS | METH_KEYWORDS }, |
2837 | { "wxHtmlBookRecord_GetContentsStart", (PyCFunction) _wrap_wxHtmlBookRecord_GetContentsStart, METH_VARARGS | METH_KEYWORDS }, | |
2838 | { "wxHtmlBookRecord_SetContentsRange", (PyCFunction) _wrap_wxHtmlBookRecord_SetContentsRange, METH_VARARGS | METH_KEYWORDS }, | |
2839 | { "wxHtmlBookRecord_GetBasePath", (PyCFunction) _wrap_wxHtmlBookRecord_GetBasePath, METH_VARARGS | METH_KEYWORDS }, | |
2840 | { "wxHtmlBookRecord_GetStart", (PyCFunction) _wrap_wxHtmlBookRecord_GetStart, METH_VARARGS | METH_KEYWORDS }, | |
2841 | { "wxHtmlBookRecord_GetTitle", (PyCFunction) _wrap_wxHtmlBookRecord_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
4be61064 | 2842 | { "wxHtmlBookRecord_GetBookFile", (PyCFunction) _wrap_wxHtmlBookRecord_GetBookFile, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 2843 | { "new_wxHtmlBookRecord", (PyCFunction) _wrap_new_wxHtmlBookRecord, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
2844 | { NULL, NULL } |
2845 | }; | |
2846 | #ifdef __cplusplus | |
2847 | } | |
2848 | #endif | |
2849 | /* | |
2850 | * This table is used by the pointer type-checker | |
2851 | */ | |
2852 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2f90df85 | 2853 | { "_signed_long","_long",0}, |
c8bc03c3 | 2854 | { "_wxPrintQuality","_wxCoord",0}, |
2f90df85 RD |
2855 | { "_wxPrintQuality","_int",0}, |
2856 | { "_wxPrintQuality","_signed_int",0}, | |
2857 | { "_wxPrintQuality","_unsigned_int",0}, | |
2858 | { "_wxPrintQuality","_wxWindowID",0}, | |
2859 | { "_wxPrintQuality","_uint",0}, | |
2860 | { "_wxPrintQuality","_EBool",0}, | |
2861 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2862 | { "_wxPrintQuality","_time_t",0}, |
2f90df85 | 2863 | { "_byte","_unsigned_char",0}, |
2f90df85 RD |
2864 | { "_long","_unsigned_long",0}, |
2865 | { "_long","_signed_long",0}, | |
c8bc03c3 | 2866 | { "_size_t","_wxCoord",0}, |
2f90df85 | 2867 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 2868 | { "_size_t","_time_t",0}, |
2f90df85 RD |
2869 | { "_size_t","_unsigned_int",0}, |
2870 | { "_size_t","_int",0}, | |
2871 | { "_size_t","_wxWindowID",0}, | |
2872 | { "_size_t","_uint",0}, | |
32c988a3 | 2873 | { "_wxTopLevelWindow","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxTopLevelWindow}, |
c8bc03c3 | 2874 | { "_uint","_wxCoord",0}, |
2f90df85 | 2875 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 2876 | { "_uint","_time_t",0}, |
2f90df85 RD |
2877 | { "_uint","_size_t",0}, |
2878 | { "_uint","_unsigned_int",0}, | |
2879 | { "_uint","_int",0}, | |
2880 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 2881 | { "_wxChar","_char",0}, |
f6bcfd97 | 2882 | { "_char","_wxChar",0}, |
32c988a3 | 2883 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
c8bc03c3 | 2884 | { "_EBool","_wxCoord",0}, |
2f90df85 RD |
2885 | { "_EBool","_wxPrintQuality",0}, |
2886 | { "_EBool","_signed_int",0}, | |
2887 | { "_EBool","_int",0}, | |
2888 | { "_EBool","_wxWindowID",0}, | |
2f90df85 | 2889 | { "_unsigned_long","_long",0}, |
4be61064 | 2890 | { "_struct_wxHtmlContentsItem","_wxHtmlContentsItem",0}, |
32c988a3 | 2891 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
c8bc03c3 | 2892 | { "_signed_int","_wxCoord",0}, |
2f90df85 RD |
2893 | { "_signed_int","_wxPrintQuality",0}, |
2894 | { "_signed_int","_EBool",0}, | |
2895 | { "_signed_int","_wxWindowID",0}, | |
2896 | { "_signed_int","_int",0}, | |
f6bcfd97 | 2897 | { "_WXTYPE","_wxDateTime_t",0}, |
2f90df85 RD |
2898 | { "_WXTYPE","_short",0}, |
2899 | { "_WXTYPE","_signed_short",0}, | |
2900 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 2901 | { "_unsigned_short","_wxDateTime_t",0}, |
2f90df85 RD |
2902 | { "_unsigned_short","_WXTYPE",0}, |
2903 | { "_unsigned_short","_short",0}, | |
4be61064 | 2904 | { "_wxHtmlContentsItem","_struct_wxHtmlContentsItem",0}, |
9df61a29 | 2905 | { "_wxObject","_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxObject}, |
9df61a29 | 2906 | { "_wxObject","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxObject}, |
4be61064 | 2907 | { "_wxObject","_wxHtmlBookRecord",SwigwxHtmlBookRecordTowxObject}, |
2f90df85 RD |
2908 | { "_signed_short","_WXTYPE",0}, |
2909 | { "_signed_short","_short",0}, | |
2f90df85 | 2910 | { "_unsigned_char","_byte",0}, |
c8bc03c3 | 2911 | { "_unsigned_int","_wxCoord",0}, |
2f90df85 | 2912 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 2913 | { "_unsigned_int","_time_t",0}, |
2f90df85 RD |
2914 | { "_unsigned_int","_size_t",0}, |
2915 | { "_unsigned_int","_uint",0}, | |
2916 | { "_unsigned_int","_wxWindowID",0}, | |
2917 | { "_unsigned_int","_int",0}, | |
f6bcfd97 | 2918 | { "_short","_wxDateTime_t",0}, |
2f90df85 RD |
2919 | { "_short","_WXTYPE",0}, |
2920 | { "_short","_unsigned_short",0}, | |
2921 | { "_short","_signed_short",0}, | |
2f90df85 | 2922 | { "_wxFrame","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxFrame}, |
c8bc03c3 | 2923 | { "_wxWindowID","_wxCoord",0}, |
2f90df85 | 2924 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 2925 | { "_wxWindowID","_time_t",0}, |
2f90df85 RD |
2926 | { "_wxWindowID","_size_t",0}, |
2927 | { "_wxWindowID","_EBool",0}, | |
2928 | { "_wxWindowID","_uint",0}, | |
2929 | { "_wxWindowID","_int",0}, | |
2930 | { "_wxWindowID","_signed_int",0}, | |
2931 | { "_wxWindowID","_unsigned_int",0}, | |
c8bc03c3 | 2932 | { "_int","_wxCoord",0}, |
2f90df85 | 2933 | { "_int","_wxPrintQuality",0}, |
c368d904 | 2934 | { "_int","_time_t",0}, |
2f90df85 RD |
2935 | { "_int","_size_t",0}, |
2936 | { "_int","_EBool",0}, | |
2937 | { "_int","_uint",0}, | |
2938 | { "_int","_wxWindowID",0}, | |
2939 | { "_int","_unsigned_int",0}, | |
2940 | { "_int","_signed_int",0}, | |
f6bcfd97 BP |
2941 | { "_wxDateTime_t","_unsigned_short",0}, |
2942 | { "_wxDateTime_t","_short",0}, | |
2943 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
2944 | { "_time_t","_wxCoord",0}, |
2945 | { "_time_t","_wxPrintQuality",0}, | |
2946 | { "_time_t","_unsigned_int",0}, | |
2947 | { "_time_t","_int",0}, | |
2948 | { "_time_t","_wxWindowID",0}, | |
2949 | { "_time_t","_uint",0}, | |
2950 | { "_time_t","_size_t",0}, | |
c8bc03c3 RD |
2951 | { "_wxCoord","_int",0}, |
2952 | { "_wxCoord","_signed_int",0}, | |
2953 | { "_wxCoord","_unsigned_int",0}, | |
2954 | { "_wxCoord","_wxWindowID",0}, | |
2955 | { "_wxCoord","_uint",0}, | |
2956 | { "_wxCoord","_EBool",0}, | |
2957 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2958 | { "_wxCoord","_time_t",0}, |
c8bc03c3 | 2959 | { "_wxCoord","_wxPrintQuality",0}, |
2f90df85 | 2960 | { "_wxEvtHandler","_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxEvtHandler}, |
2f90df85 | 2961 | { "_wxEvtHandler","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxEvtHandler}, |
2f90df85 | 2962 | { "_wxWindow","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxWindow}, |
2f90df85 RD |
2963 | {0,0,0}}; |
2964 | ||
2965 | static PyObject *SWIG_globals; | |
2966 | #ifdef __cplusplus | |
2967 | extern "C" | |
2968 | #endif | |
2969 | SWIGEXPORT(void) inithtmlhelpc() { | |
2970 | PyObject *m, *d; | |
2971 | SWIG_globals = SWIG_newvarlink(); | |
2972 | m = Py_InitModule("htmlhelpc", htmlhelpcMethods); | |
2973 | d = PyModule_GetDict(m); | |
7a446686 RD |
2974 | PyDict_SetItemString(d,"wxHF_TOOLBAR", PyInt_FromLong((long) wxHF_TOOLBAR)); |
2975 | PyDict_SetItemString(d,"wxHF_FLATTOOLBAR", PyInt_FromLong((long) wxHF_FLATTOOLBAR)); | |
2976 | PyDict_SetItemString(d,"wxHF_CONTENTS", PyInt_FromLong((long) wxHF_CONTENTS)); | |
2977 | PyDict_SetItemString(d,"wxHF_INDEX", PyInt_FromLong((long) wxHF_INDEX)); | |
2978 | PyDict_SetItemString(d,"wxHF_SEARCH", PyInt_FromLong((long) wxHF_SEARCH)); | |
2979 | PyDict_SetItemString(d,"wxHF_BOOKMARKS", PyInt_FromLong((long) wxHF_BOOKMARKS)); | |
2980 | PyDict_SetItemString(d,"wxHF_OPENFILES", PyInt_FromLong((long) wxHF_OPENFILES)); | |
2981 | PyDict_SetItemString(d,"wxHF_PRINT", PyInt_FromLong((long) wxHF_PRINT)); | |
2982 | PyDict_SetItemString(d,"wxHF_DEFAULTSTYLE", PyInt_FromLong((long) wxHF_DEFAULTSTYLE)); | |
2f90df85 RD |
2983 | { |
2984 | int i; | |
2985 | for (i = 0; _swig_mapping[i].n1; i++) | |
2986 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2987 | } | |
2988 | } |