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