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