]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/html/gtk/html.cpp
Death to all Makefiles and associates!
[wxWidgets.git] / utils / wxPython / modules / html / gtk / html.cpp
1 /*
2 * FILE : gtk/html.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 798)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init inithtmlc
53
54 #define SWIG_name "htmlc"
55
56 #include "helpers.h"
57 #include <wx/html/htmlwin.h>
58 #include <wx/image.h>
59 #include <wx/fs_zip.h>
60 #include <wx/fs_inet.h>
61
62 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65 if (!target) {
66 target = o;
67 } else if (target == Py_None) {
68 Py_DECREF(Py_None);
69 target = o;
70 } else {
71 if (!PyList_Check(target)) {
72 o2 = target;
73 target = PyList_New(0);
74 PyList_Append(target, o2);
75 Py_XDECREF(o2);
76 }
77 PyList_Append(target,o);
78 Py_XDECREF(o);
79 }
80 return target;
81 }
82
83 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
84 PyObject* o2;
85 PyObject* o3;
86
87 if (!target) {
88 target = o;
89 } else if (target == Py_None) {
90 Py_DECREF(Py_None);
91 target = o;
92 } else {
93 if (!PyTuple_Check(target)) {
94 o2 = target;
95 target = PyTuple_New(1);
96 PyTuple_SetItem(target, 0, o2);
97 }
98 o3 = PyTuple_New(1);
99 PyTuple_SetItem(o3, 0, o);
100
101 o2 = target;
102 target = PySequence_Concat(o2, o3);
103 Py_DECREF(o2);
104 Py_DECREF(o3);
105 }
106 return target;
107 }
108
109
110 extern byte* byte_LIST_helper(PyObject* source);
111 extern int* int_LIST_helper(PyObject* source);
112 extern long* long_LIST_helper(PyObject* source);
113 extern char** string_LIST_helper(PyObject* source);
114 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
115 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
116 extern wxString* wxString_LIST_helper(PyObject* source);
117 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
118
119
120 static char* wxStringErrorMsg = "string type is required for parameter";
121
122 #ifdef __WXMSW__
123 static wxString wxPyEmptyStr("");
124 static wxPoint wxPyDefaultPosition(wxDefaultPosition);
125 static wxSize wxPyDefaultSize(wxDefaultSize);
126 #endif
127 static PyThreadState* wxPyThreadState;
128
129
130 static PyObject* mod_dict = NULL; // will be set by init
131
132 #include <wx/html/mod_templ.h>
133
134 TAG_HANDLER_BEGIN(PYTHONTAG, "PYTHON")
135 TAG_HANDLER_PROC(tag)
136 {
137 wxWindow *wnd;
138 wxString errmsg;
139 char pbuf[256];
140
141 int fl = 0;
142
143 while (1) {
144 #ifdef WXP_WITH_THREAD
145 PyEval_RestoreThread(wxPyThreadState);
146 #endif
147 if (tag.HasParam("FLOAT"))
148 tag.ScanParam("FLOAT", "%i", &fl);
149 PyObject* pyfunc = PyDict_GetItemString(mod_dict, "WidgetStarter");
150 if (pyfunc == NULL) {
151 errmsg = "Could not find object WidgetStarter";
152 break;
153 }
154 if (! PyCallable_Check(pyfunc)) {
155 errmsg = "WidgetStarter does not appear to be callable";
156 break;
157 }
158 SWIG_MakePtr(pbuf, m_WParser->GetWindow(), "_wxHtmlWindow_p");
159 PyObject* arglist = Py_BuildValue("(s,s)", pbuf,
160 (const char*)tag.GetAllParams());
161 if (! arglist) {
162 errmsg = "Failed making argument list";
163 break;
164 }
165 PyObject* ret = PyEval_CallObject(pyfunc, arglist);
166 Py_DECREF(arglist);
167 if (ret == NULL) {
168 errmsg = "An error occured while calling WidgetStarter";
169 if (PyErr_Occurred())
170 PyErr_Print();
171 break;
172 }
173 wnd = NULL;
174 if (PyString_Check(ret)) {
175 char* thisc = PyString_AsString(ret);
176 SWIG_GetPtr(thisc, (void**)&wnd, "_wxWindow_p");
177 }
178 Py_DECREF(ret);
179 if (! wnd) {
180 errmsg = "Could not make a wxWindow pointer from return ptr";
181 break;
182 }
183 #ifdef WXP_WITH_THREAD
184 PyEval_SaveThread();
185 #endif
186 wnd -> Show(TRUE);
187 m_WParser->OpenContainer()->InsertCell(new wxHtmlWidgetCell(wnd, fl));
188 return FALSE;
189 }
190
191 /* we got out of the loop. Must be an error. Show a box stating it. */
192
193 #ifdef WXP_WITH_THREAD
194 PyEval_SaveThread();
195 #endif
196
197 wnd = new wxTextCtrl( m_WParser -> GetWindow(), -1,
198 errmsg, wxPoint(0,0),
199 wxSize(300, 100), wxTE_MULTILINE );
200 wnd -> Show(TRUE);
201 m_WParser->OpenContainer()->InsertCell(new wxHtmlWidgetCell(wnd, 100));
202 return FALSE;
203 }
204
205 TAG_HANDLER_END(PYTHONTAG)
206
207 TAGS_MODULE_BEGIN(PythonTag)
208
209 TAGS_MODULE_ADD(PYTHONTAG)
210
211 TAGS_MODULE_END(PythonTag)
212
213 // Note: see also the init function where we add the module!
214
215 #ifdef __cplusplus
216 extern "C" {
217 #endif
218 #define new_HtmlHistoryItem(_swigarg0,_swigarg1) (new HtmlHistoryItem(_swigarg0,_swigarg1))
219 static PyObject *_wrap_new_HtmlHistoryItem(PyObject *self, PyObject *args) {
220 PyObject * _resultobj;
221 HtmlHistoryItem * _result;
222 char * _arg0;
223 char * _arg1;
224 char _ptemp[128];
225
226 self = self;
227 if(!PyArg_ParseTuple(args,"ss:new_HtmlHistoryItem",&_arg0,&_arg1))
228 return NULL;
229 {
230 wxPy_BEGIN_ALLOW_THREADS;
231 _result = (HtmlHistoryItem *)new_HtmlHistoryItem(_arg0,_arg1);
232
233 wxPy_END_ALLOW_THREADS;
234 } if (_result) {
235 SWIG_MakePtr(_ptemp, (char *) _result,"_HtmlHistoryItem_p");
236 _resultobj = Py_BuildValue("s",_ptemp);
237 } else {
238 Py_INCREF(Py_None);
239 _resultobj = Py_None;
240 }
241 return _resultobj;
242 }
243
244 #define HtmlHistoryItem_GetPos(_swigobj) (_swigobj->GetPos())
245 static PyObject *_wrap_HtmlHistoryItem_GetPos(PyObject *self, PyObject *args) {
246 PyObject * _resultobj;
247 int _result;
248 HtmlHistoryItem * _arg0;
249 PyObject * _argo0 = 0;
250
251 self = self;
252 if(!PyArg_ParseTuple(args,"O:HtmlHistoryItem_GetPos",&_argo0))
253 return NULL;
254 if (_argo0) {
255 if (_argo0 == Py_None) { _arg0 = NULL; }
256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_HtmlHistoryItem_p")) {
257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of HtmlHistoryItem_GetPos. Expected _HtmlHistoryItem_p.");
258 return NULL;
259 }
260 }
261 {
262 wxPy_BEGIN_ALLOW_THREADS;
263 _result = (int )HtmlHistoryItem_GetPos(_arg0);
264
265 wxPy_END_ALLOW_THREADS;
266 } _resultobj = Py_BuildValue("i",_result);
267 return _resultobj;
268 }
269
270 #define HtmlHistoryItem_SetPos(_swigobj,_swigarg0) (_swigobj->SetPos(_swigarg0))
271 static PyObject *_wrap_HtmlHistoryItem_SetPos(PyObject *self, PyObject *args) {
272 PyObject * _resultobj;
273 HtmlHistoryItem * _arg0;
274 int _arg1;
275 PyObject * _argo0 = 0;
276
277 self = self;
278 if(!PyArg_ParseTuple(args,"Oi:HtmlHistoryItem_SetPos",&_argo0,&_arg1))
279 return NULL;
280 if (_argo0) {
281 if (_argo0 == Py_None) { _arg0 = NULL; }
282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_HtmlHistoryItem_p")) {
283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of HtmlHistoryItem_SetPos. Expected _HtmlHistoryItem_p.");
284 return NULL;
285 }
286 }
287 {
288 wxPy_BEGIN_ALLOW_THREADS;
289 HtmlHistoryItem_SetPos(_arg0,_arg1);
290
291 wxPy_END_ALLOW_THREADS;
292 } Py_INCREF(Py_None);
293 _resultobj = Py_None;
294 return _resultobj;
295 }
296
297 #define HtmlHistoryItem_GetPage(_swigobj) (_swigobj->GetPage())
298 static PyObject *_wrap_HtmlHistoryItem_GetPage(PyObject *self, PyObject *args) {
299 PyObject * _resultobj;
300 wxString * _result;
301 HtmlHistoryItem * _arg0;
302 PyObject * _argo0 = 0;
303
304 self = self;
305 if(!PyArg_ParseTuple(args,"O:HtmlHistoryItem_GetPage",&_argo0))
306 return NULL;
307 if (_argo0) {
308 if (_argo0 == Py_None) { _arg0 = NULL; }
309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_HtmlHistoryItem_p")) {
310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of HtmlHistoryItem_GetPage. Expected _HtmlHistoryItem_p.");
311 return NULL;
312 }
313 }
314 {
315 wxPy_BEGIN_ALLOW_THREADS;
316 const wxString & _result_ref = HtmlHistoryItem_GetPage(_arg0);
317 _result = (wxString *) &_result_ref;
318
319 wxPy_END_ALLOW_THREADS;
320 }{
321 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
322 }
323 return _resultobj;
324 }
325
326 #define HtmlHistoryItem_GetAnchor(_swigobj) (_swigobj->GetAnchor())
327 static PyObject *_wrap_HtmlHistoryItem_GetAnchor(PyObject *self, PyObject *args) {
328 PyObject * _resultobj;
329 wxString * _result;
330 HtmlHistoryItem * _arg0;
331 PyObject * _argo0 = 0;
332
333 self = self;
334 if(!PyArg_ParseTuple(args,"O:HtmlHistoryItem_GetAnchor",&_argo0))
335 return NULL;
336 if (_argo0) {
337 if (_argo0 == Py_None) { _arg0 = NULL; }
338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_HtmlHistoryItem_p")) {
339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of HtmlHistoryItem_GetAnchor. Expected _HtmlHistoryItem_p.");
340 return NULL;
341 }
342 }
343 {
344 wxPy_BEGIN_ALLOW_THREADS;
345 const wxString & _result_ref = HtmlHistoryItem_GetAnchor(_arg0);
346 _result = (wxString *) &_result_ref;
347
348 wxPy_END_ALLOW_THREADS;
349 }{
350 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
351 }
352 return _resultobj;
353 }
354
355 static void *SwigwxHtmlWindowTowxScrolledWindow(void *ptr) {
356 wxHtmlWindow *src;
357 wxScrolledWindow *dest;
358 src = (wxHtmlWindow *) ptr;
359 dest = (wxScrolledWindow *) src;
360 return (void *) dest;
361 }
362
363 static void *SwigwxHtmlWindowTowxPanel(void *ptr) {
364 wxHtmlWindow *src;
365 wxPanel *dest;
366 src = (wxHtmlWindow *) ptr;
367 dest = (wxPanel *) src;
368 return (void *) dest;
369 }
370
371 static void *SwigwxHtmlWindowTowxWindow(void *ptr) {
372 wxHtmlWindow *src;
373 wxWindow *dest;
374 src = (wxHtmlWindow *) ptr;
375 dest = (wxWindow *) src;
376 return (void *) dest;
377 }
378
379 static void *SwigwxHtmlWindowTowxEvtHandler(void *ptr) {
380 wxHtmlWindow *src;
381 wxEvtHandler *dest;
382 src = (wxHtmlWindow *) ptr;
383 dest = (wxEvtHandler *) src;
384 return (void *) dest;
385 }
386
387 #define new_wxHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
388 static PyObject *_wrap_new_wxHtmlWindow(PyObject *self, PyObject *args) {
389 PyObject * _resultobj;
390 wxHtmlWindow * _result;
391 wxWindow * _arg0;
392 wxWindowID _arg1 = (wxWindowID ) -1;
393 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
394 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
395 int _arg4 = (int ) wxHW_SCROLLBAR_AUTO;
396 char * _arg5 = (char *) "htmlWindow";
397 PyObject * _argo0 = 0;
398 PyObject * _argo2 = 0;
399 PyObject * _argo3 = 0;
400 char _ptemp[128];
401
402 self = self;
403 if(!PyArg_ParseTuple(args,"O|iOOis:new_wxHtmlWindow",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
404 return NULL;
405 if (_argo0) {
406 if (_argo0 == Py_None) { _arg0 = NULL; }
407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWindow. Expected _wxWindow_p.");
409 return NULL;
410 }
411 }
412 if (_argo2) {
413 if (_argo2 == Py_None) { _arg2 = NULL; }
414 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
415 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxHtmlWindow. Expected _wxPoint_p.");
416 return NULL;
417 }
418 }
419 if (_argo3) {
420 if (_argo3 == Py_None) { _arg3 = NULL; }
421 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
422 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxHtmlWindow. Expected _wxSize_p.");
423 return NULL;
424 }
425 }
426 {
427 wxPy_BEGIN_ALLOW_THREADS;
428 _result = (wxHtmlWindow *)new_wxHtmlWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
429
430 wxPy_END_ALLOW_THREADS;
431 } if (_result) {
432 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWindow_p");
433 _resultobj = Py_BuildValue("s",_ptemp);
434 } else {
435 Py_INCREF(Py_None);
436 _resultobj = Py_None;
437 }
438 return _resultobj;
439 }
440
441 #define wxHtmlWindow_SetPage(_swigobj,_swigarg0) (_swigobj->SetPage(_swigarg0))
442 static PyObject *_wrap_wxHtmlWindow_SetPage(PyObject *self, PyObject *args) {
443 PyObject * _resultobj;
444 bool _result;
445 wxHtmlWindow * _arg0;
446 char * _arg1;
447 PyObject * _argo0 = 0;
448
449 self = self;
450 if(!PyArg_ParseTuple(args,"Os:wxHtmlWindow_SetPage",&_argo0,&_arg1))
451 return NULL;
452 if (_argo0) {
453 if (_argo0 == Py_None) { _arg0 = NULL; }
454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetPage. Expected _wxHtmlWindow_p.");
456 return NULL;
457 }
458 }
459 {
460 wxPy_BEGIN_ALLOW_THREADS;
461 _result = (bool )wxHtmlWindow_SetPage(_arg0,_arg1);
462
463 wxPy_END_ALLOW_THREADS;
464 } _resultobj = Py_BuildValue("i",_result);
465 return _resultobj;
466 }
467
468 #define wxHtmlWindow_LoadPage(_swigobj,_swigarg0) (_swigobj->LoadPage(_swigarg0))
469 static PyObject *_wrap_wxHtmlWindow_LoadPage(PyObject *self, PyObject *args) {
470 PyObject * _resultobj;
471 bool _result;
472 wxHtmlWindow * _arg0;
473 char * _arg1;
474 PyObject * _argo0 = 0;
475
476 self = self;
477 if(!PyArg_ParseTuple(args,"Os:wxHtmlWindow_LoadPage",&_argo0,&_arg1))
478 return NULL;
479 if (_argo0) {
480 if (_argo0 == Py_None) { _arg0 = NULL; }
481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_LoadPage. Expected _wxHtmlWindow_p.");
483 return NULL;
484 }
485 }
486 {
487 wxPy_BEGIN_ALLOW_THREADS;
488 _result = (bool )wxHtmlWindow_LoadPage(_arg0,_arg1);
489
490 wxPy_END_ALLOW_THREADS;
491 } _resultobj = Py_BuildValue("i",_result);
492 return _resultobj;
493 }
494
495 #define wxHtmlWindow_GetOpenedPage(_swigobj) (_swigobj->GetOpenedPage())
496 static PyObject *_wrap_wxHtmlWindow_GetOpenedPage(PyObject *self, PyObject *args) {
497 PyObject * _resultobj;
498 wxString * _result;
499 wxHtmlWindow * _arg0;
500 PyObject * _argo0 = 0;
501
502 self = self;
503 if(!PyArg_ParseTuple(args,"O:wxHtmlWindow_GetOpenedPage",&_argo0))
504 return NULL;
505 if (_argo0) {
506 if (_argo0 == Py_None) { _arg0 = NULL; }
507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetOpenedPage. Expected _wxHtmlWindow_p.");
509 return NULL;
510 }
511 }
512 {
513 wxPy_BEGIN_ALLOW_THREADS;
514 _result = new wxString (wxHtmlWindow_GetOpenedPage(_arg0));
515
516 wxPy_END_ALLOW_THREADS;
517 }{
518 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
519 }
520 {
521 delete _result;
522 }
523 return _resultobj;
524 }
525
526 #define wxHtmlWindow_SetRelatedFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRelatedFrame(_swigarg0,_swigarg1))
527 static PyObject *_wrap_wxHtmlWindow_SetRelatedFrame(PyObject *self, PyObject *args) {
528 PyObject * _resultobj;
529 wxHtmlWindow * _arg0;
530 wxFrame * _arg1;
531 char * _arg2;
532 PyObject * _argo0 = 0;
533 PyObject * _argo1 = 0;
534
535 self = self;
536 if(!PyArg_ParseTuple(args,"OOs:wxHtmlWindow_SetRelatedFrame",&_argo0,&_argo1,&_arg2))
537 return NULL;
538 if (_argo0) {
539 if (_argo0 == Py_None) { _arg0 = NULL; }
540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetRelatedFrame. Expected _wxHtmlWindow_p.");
542 return NULL;
543 }
544 }
545 if (_argo1) {
546 if (_argo1 == Py_None) { _arg1 = NULL; }
547 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
548 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_SetRelatedFrame. Expected _wxFrame_p.");
549 return NULL;
550 }
551 }
552 {
553 wxPy_BEGIN_ALLOW_THREADS;
554 wxHtmlWindow_SetRelatedFrame(_arg0,_arg1,_arg2);
555
556 wxPy_END_ALLOW_THREADS;
557 } Py_INCREF(Py_None);
558 _resultobj = Py_None;
559 return _resultobj;
560 }
561
562 #define wxHtmlWindow_GetRelatedFrame(_swigobj) (_swigobj->GetRelatedFrame())
563 static PyObject *_wrap_wxHtmlWindow_GetRelatedFrame(PyObject *self, PyObject *args) {
564 PyObject * _resultobj;
565 wxFrame * _result;
566 wxHtmlWindow * _arg0;
567 PyObject * _argo0 = 0;
568 char _ptemp[128];
569
570 self = self;
571 if(!PyArg_ParseTuple(args,"O:wxHtmlWindow_GetRelatedFrame",&_argo0))
572 return NULL;
573 if (_argo0) {
574 if (_argo0 == Py_None) { _arg0 = NULL; }
575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetRelatedFrame. Expected _wxHtmlWindow_p.");
577 return NULL;
578 }
579 }
580 {
581 wxPy_BEGIN_ALLOW_THREADS;
582 _result = (wxFrame *)wxHtmlWindow_GetRelatedFrame(_arg0);
583
584 wxPy_END_ALLOW_THREADS;
585 } if (_result) {
586 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
587 _resultobj = Py_BuildValue("s",_ptemp);
588 } else {
589 Py_INCREF(Py_None);
590 _resultobj = Py_None;
591 }
592 return _resultobj;
593 }
594
595 #define wxHtmlWindow_SetRelatedStatusBar(_swigobj,_swigarg0) (_swigobj->SetRelatedStatusBar(_swigarg0))
596 static PyObject *_wrap_wxHtmlWindow_SetRelatedStatusBar(PyObject *self, PyObject *args) {
597 PyObject * _resultobj;
598 wxHtmlWindow * _arg0;
599 int _arg1;
600 PyObject * _argo0 = 0;
601
602 self = self;
603 if(!PyArg_ParseTuple(args,"Oi:wxHtmlWindow_SetRelatedStatusBar",&_argo0,&_arg1))
604 return NULL;
605 if (_argo0) {
606 if (_argo0 == Py_None) { _arg0 = NULL; }
607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetRelatedStatusBar. Expected _wxHtmlWindow_p.");
609 return NULL;
610 }
611 }
612 {
613 wxPy_BEGIN_ALLOW_THREADS;
614 wxHtmlWindow_SetRelatedStatusBar(_arg0,_arg1);
615
616 wxPy_END_ALLOW_THREADS;
617 } Py_INCREF(Py_None);
618 _resultobj = Py_None;
619 return _resultobj;
620 }
621
622 #define wxHtmlWindow_SetFonts(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetFonts(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
623 static PyObject *_wrap_wxHtmlWindow_SetFonts(PyObject *self, PyObject *args) {
624 PyObject * _resultobj;
625 wxHtmlWindow * _arg0;
626 wxString * _arg1;
627 int _arg2;
628 wxString * _arg3;
629 int _arg4;
630 int * _arg5;
631 PyObject * _argo0 = 0;
632 PyObject * _obj1 = 0;
633 PyObject * _obj3 = 0;
634 PyObject * _argo5 = 0;
635
636 self = self;
637 if(!PyArg_ParseTuple(args,"OOiOiO:wxHtmlWindow_SetFonts",&_argo0,&_obj1,&_arg2,&_obj3,&_arg4,&_argo5))
638 return NULL;
639 if (_argo0) {
640 if (_argo0 == Py_None) { _arg0 = NULL; }
641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetFonts. Expected _wxHtmlWindow_p.");
643 return NULL;
644 }
645 }
646 {
647 if (!PyString_Check(_obj1)) {
648 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
649 return NULL;
650 }
651 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
652 }
653 {
654 if (!PyString_Check(_obj3)) {
655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
656 return NULL;
657 }
658 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
659 }
660 if (_argo5) {
661 if (_argo5 == Py_None) { _arg5 = NULL; }
662 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_int_p")) {
663 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxHtmlWindow_SetFonts. Expected _int_p.");
664 return NULL;
665 }
666 }
667 {
668 wxPy_BEGIN_ALLOW_THREADS;
669 wxHtmlWindow_SetFonts(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5);
670
671 wxPy_END_ALLOW_THREADS;
672 } Py_INCREF(Py_None);
673 _resultobj = Py_None;
674 {
675 if (_obj1)
676 delete _arg1;
677 }
678 {
679 if (_obj3)
680 delete _arg3;
681 }
682 return _resultobj;
683 }
684
685 #define wxHtmlWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
686 static PyObject *_wrap_wxHtmlWindow_SetTitle(PyObject *self, PyObject *args) {
687 PyObject * _resultobj;
688 wxHtmlWindow * _arg0;
689 char * _arg1;
690 PyObject * _argo0 = 0;
691
692 self = self;
693 if(!PyArg_ParseTuple(args,"Os:wxHtmlWindow_SetTitle",&_argo0,&_arg1))
694 return NULL;
695 if (_argo0) {
696 if (_argo0 == Py_None) { _arg0 = NULL; }
697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetTitle. Expected _wxHtmlWindow_p.");
699 return NULL;
700 }
701 }
702 {
703 wxPy_BEGIN_ALLOW_THREADS;
704 wxHtmlWindow_SetTitle(_arg0,_arg1);
705
706 wxPy_END_ALLOW_THREADS;
707 } Py_INCREF(Py_None);
708 _resultobj = Py_None;
709 return _resultobj;
710 }
711
712 #define wxHtmlWindow_SetBorders(_swigobj,_swigarg0) (_swigobj->SetBorders(_swigarg0))
713 static PyObject *_wrap_wxHtmlWindow_SetBorders(PyObject *self, PyObject *args) {
714 PyObject * _resultobj;
715 wxHtmlWindow * _arg0;
716 int _arg1;
717 PyObject * _argo0 = 0;
718
719 self = self;
720 if(!PyArg_ParseTuple(args,"Oi:wxHtmlWindow_SetBorders",&_argo0,&_arg1))
721 return NULL;
722 if (_argo0) {
723 if (_argo0 == Py_None) { _arg0 = NULL; }
724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetBorders. Expected _wxHtmlWindow_p.");
726 return NULL;
727 }
728 }
729 {
730 wxPy_BEGIN_ALLOW_THREADS;
731 wxHtmlWindow_SetBorders(_arg0,_arg1);
732
733 wxPy_END_ALLOW_THREADS;
734 } Py_INCREF(Py_None);
735 _resultobj = Py_None;
736 return _resultobj;
737 }
738
739 #define wxHtmlWindow_HistoryBack(_swigobj) (_swigobj->HistoryBack())
740 static PyObject *_wrap_wxHtmlWindow_HistoryBack(PyObject *self, PyObject *args) {
741 PyObject * _resultobj;
742 bool _result;
743 wxHtmlWindow * _arg0;
744 PyObject * _argo0 = 0;
745
746 self = self;
747 if(!PyArg_ParseTuple(args,"O:wxHtmlWindow_HistoryBack",&_argo0))
748 return NULL;
749 if (_argo0) {
750 if (_argo0 == Py_None) { _arg0 = NULL; }
751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryBack. Expected _wxHtmlWindow_p.");
753 return NULL;
754 }
755 }
756 {
757 wxPy_BEGIN_ALLOW_THREADS;
758 _result = (bool )wxHtmlWindow_HistoryBack(_arg0);
759
760 wxPy_END_ALLOW_THREADS;
761 } _resultobj = Py_BuildValue("i",_result);
762 return _resultobj;
763 }
764
765 #define wxHtmlWindow_HistoryForward(_swigobj) (_swigobj->HistoryForward())
766 static PyObject *_wrap_wxHtmlWindow_HistoryForward(PyObject *self, PyObject *args) {
767 PyObject * _resultobj;
768 bool _result;
769 wxHtmlWindow * _arg0;
770 PyObject * _argo0 = 0;
771
772 self = self;
773 if(!PyArg_ParseTuple(args,"O:wxHtmlWindow_HistoryForward",&_argo0))
774 return NULL;
775 if (_argo0) {
776 if (_argo0 == Py_None) { _arg0 = NULL; }
777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryForward. Expected _wxHtmlWindow_p.");
779 return NULL;
780 }
781 }
782 {
783 wxPy_BEGIN_ALLOW_THREADS;
784 _result = (bool )wxHtmlWindow_HistoryForward(_arg0);
785
786 wxPy_END_ALLOW_THREADS;
787 } _resultobj = Py_BuildValue("i",_result);
788 return _resultobj;
789 }
790
791 #define wxHtmlWindow_HistoryClear(_swigobj) (_swigobj->HistoryClear())
792 static PyObject *_wrap_wxHtmlWindow_HistoryClear(PyObject *self, PyObject *args) {
793 PyObject * _resultobj;
794 wxHtmlWindow * _arg0;
795 PyObject * _argo0 = 0;
796
797 self = self;
798 if(!PyArg_ParseTuple(args,"O:wxHtmlWindow_HistoryClear",&_argo0))
799 return NULL;
800 if (_argo0) {
801 if (_argo0 == Py_None) { _arg0 = NULL; }
802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryClear. Expected _wxHtmlWindow_p.");
804 return NULL;
805 }
806 }
807 {
808 wxPy_BEGIN_ALLOW_THREADS;
809 wxHtmlWindow_HistoryClear(_arg0);
810
811 wxPy_END_ALLOW_THREADS;
812 } Py_INCREF(Py_None);
813 _resultobj = Py_None;
814 return _resultobj;
815 }
816
817 static PyMethodDef htmlcMethods[] = {
818 { "wxHtmlWindow_HistoryClear", _wrap_wxHtmlWindow_HistoryClear, METH_VARARGS },
819 { "wxHtmlWindow_HistoryForward", _wrap_wxHtmlWindow_HistoryForward, METH_VARARGS },
820 { "wxHtmlWindow_HistoryBack", _wrap_wxHtmlWindow_HistoryBack, METH_VARARGS },
821 { "wxHtmlWindow_SetBorders", _wrap_wxHtmlWindow_SetBorders, METH_VARARGS },
822 { "wxHtmlWindow_SetTitle", _wrap_wxHtmlWindow_SetTitle, METH_VARARGS },
823 { "wxHtmlWindow_SetFonts", _wrap_wxHtmlWindow_SetFonts, METH_VARARGS },
824 { "wxHtmlWindow_SetRelatedStatusBar", _wrap_wxHtmlWindow_SetRelatedStatusBar, METH_VARARGS },
825 { "wxHtmlWindow_GetRelatedFrame", _wrap_wxHtmlWindow_GetRelatedFrame, METH_VARARGS },
826 { "wxHtmlWindow_SetRelatedFrame", _wrap_wxHtmlWindow_SetRelatedFrame, METH_VARARGS },
827 { "wxHtmlWindow_GetOpenedPage", _wrap_wxHtmlWindow_GetOpenedPage, METH_VARARGS },
828 { "wxHtmlWindow_LoadPage", _wrap_wxHtmlWindow_LoadPage, METH_VARARGS },
829 { "wxHtmlWindow_SetPage", _wrap_wxHtmlWindow_SetPage, METH_VARARGS },
830 { "new_wxHtmlWindow", _wrap_new_wxHtmlWindow, METH_VARARGS },
831 { "HtmlHistoryItem_GetAnchor", _wrap_HtmlHistoryItem_GetAnchor, METH_VARARGS },
832 { "HtmlHistoryItem_GetPage", _wrap_HtmlHistoryItem_GetPage, METH_VARARGS },
833 { "HtmlHistoryItem_SetPos", _wrap_HtmlHistoryItem_SetPos, METH_VARARGS },
834 { "HtmlHistoryItem_GetPos", _wrap_HtmlHistoryItem_GetPos, METH_VARARGS },
835 { "new_HtmlHistoryItem", _wrap_new_HtmlHistoryItem, METH_VARARGS },
836 { NULL, NULL }
837 };
838 #ifdef __cplusplus
839 }
840 #endif
841 /*
842 * This table is used by the pointer type-checker
843 */
844 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
845 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
846 { "_wxEvent","_class_wxEvent",0},
847 { "_class_wxActivateEvent","_wxActivateEvent",0},
848 { "_signed_long","_long",0},
849 { "_wxMenuEvent","_class_wxMenuEvent",0},
850 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
851 { "_wxBMPHandler","_class_wxBMPHandler",0},
852 { "_wxImage","_class_wxImage",0},
853 { "_wxPrintQuality","_int",0},
854 { "_wxPrintQuality","_signed_int",0},
855 { "_wxPrintQuality","_unsigned_int",0},
856 { "_wxPrintQuality","_wxWindowID",0},
857 { "_wxPrintQuality","_uint",0},
858 { "_wxPrintQuality","_EBool",0},
859 { "_wxPrintQuality","_size_t",0},
860 { "_wxFontData","_class_wxFontData",0},
861 { "___wxPyCleanup","_class___wxPyCleanup",0},
862 { "_class_HtmlHistoryItem","_HtmlHistoryItem",0},
863 { "_class_wxRegionIterator","_wxRegionIterator",0},
864 { "_class_wxMenuBar","_wxMenuBar",0},
865 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
866 { "_class_wxEvtHandler","_class_wxHtmlWindow",SwigwxHtmlWindowTowxEvtHandler},
867 { "_class_wxEvtHandler","_wxHtmlWindow",SwigwxHtmlWindowTowxEvtHandler},
868 { "_class_wxEvtHandler","_wxEvtHandler",0},
869 { "_wxPaintEvent","_class_wxPaintEvent",0},
870 { "_wxGIFHandler","_class_wxGIFHandler",0},
871 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
872 { "_wxCursor","_class_wxCursor",0},
873 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
874 { "_wxImageHandler","_class_wxImageHandler",0},
875 { "_class_wxTreeCtrl","_wxTreeCtrl",0},
876 { "_wxMask","_class_wxMask",0},
877 { "_wxToolTip","_class_wxToolTip",0},
878 { "_wxGrid","_class_wxGrid",0},
879 { "_wxPNGHandler","_class_wxPNGHandler",0},
880 { "_class_wxColourData","_wxColourData",0},
881 { "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0},
882 { "_wxPrinter","_class_wxPrinter",0},
883 { "_wxPen","_class_wxPen",0},
884 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
885 { "_byte","_unsigned_char",0},
886 { "_wxStaticBox","_class_wxStaticBox",0},
887 { "_wxChoice","_class_wxChoice",0},
888 { "_wxSlider","_class_wxSlider",0},
889 { "_wxNotebookEvent","_class_wxNotebookEvent",0},
890 { "_wxPyPrintout","_class_wxPyPrintout",0},
891 { "_long","_wxDash",0},
892 { "_long","_unsigned_long",0},
893 { "_long","_signed_long",0},
894 { "_wxImageList","_class_wxImageList",0},
895 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
896 { "_wxBitmapButton","_class_wxBitmapButton",0},
897 { "_wxSashWindow","_class_wxSashWindow",0},
898 { "_class_wxPrintDialogData","_wxPrintDialogData",0},
899 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
900 { "_class_wxGauge","_wxGauge",0},
901 { "_class_wxSashEvent","_wxSashEvent",0},
902 { "_wxDC","_class_wxDC",0},
903 { "_wxListEvent","_class_wxListEvent",0},
904 { "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
905 { "_wxProgressDialog","_class_wxProgressDialog",0},
906 { "_class_wxBMPHandler","_wxBMPHandler",0},
907 { "_wxPrintPreview","_class_wxPrintPreview",0},
908 { "_wxSpinEvent","_class_wxSpinEvent",0},
909 { "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
910 { "_size_t","_wxPrintQuality",0},
911 { "_size_t","_unsigned_int",0},
912 { "_size_t","_int",0},
913 { "_size_t","_wxWindowID",0},
914 { "_size_t","_uint",0},
915 { "_class_wxRealPoint","_wxRealPoint",0},
916 { "_class_wxMenuItem","_wxMenuItem",0},
917 { "_class_wxPaintEvent","_wxPaintEvent",0},
918 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
919 { "_class_wxStatusBar","_wxStatusBar",0},
920 { "_class_wxGIFHandler","_wxGIFHandler",0},
921 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
922 { "_wxPanel","_class_wxHtmlWindow",SwigwxHtmlWindowTowxPanel},
923 { "_wxPanel","_wxHtmlWindow",SwigwxHtmlWindowTowxPanel},
924 { "_wxPanel","_class_wxPanel",0},
925 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
926 { "_wxCheckBox","_class_wxCheckBox",0},
927 { "_wxPyEvent","_class_wxPyEvent",0},
928 { "_wxTextCtrl","_class_wxTextCtrl",0},
929 { "_class_wxMask","_wxMask",0},
930 { "_class_wxToolTip","_wxToolTip",0},
931 { "_class_wxKeyEvent","_wxKeyEvent",0},
932 { "_class_wxGrid","_wxGrid",0},
933 { "_class_wxPNGHandler","_wxPNGHandler",0},
934 { "_wxColour","_class_wxColour",0},
935 { "_class_wxDialog","_wxDialog",0},
936 { "_wxPageSetupDialog","_class_wxPageSetupDialog",0},
937 { "_class_wxPrinter","_wxPrinter",0},
938 { "_wxIdleEvent","_class_wxIdleEvent",0},
939 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
940 { "_wxToolBar","_class_wxToolBar",0},
941 { "_wxStaticLine","_class_wxStaticLine",0},
942 { "_class_wxLayoutAlgorithm","_wxLayoutAlgorithm",0},
943 { "_wxBrush","_class_wxBrush",0},
944 { "_wxMiniFrame","_class_wxMiniFrame",0},
945 { "_class_wxNotebookEvent","_wxNotebookEvent",0},
946 { "_class_wxPyPrintout","_wxPyPrintout",0},
947 { "_class_wxSashWindow","_wxSashWindow",0},
948 { "_wxShowEvent","_class_wxShowEvent",0},
949 { "_uint","_wxPrintQuality",0},
950 { "_uint","_size_t",0},
951 { "_uint","_unsigned_int",0},
952 { "_uint","_int",0},
953 { "_uint","_wxWindowID",0},
954 { "_class_wxEvent","_wxEvent",0},
955 { "_wxCheckListBox","_class_wxCheckListBox",0},
956 { "_wxSplitterEvent","_class_wxSplitterEvent",0},
957 { "_wxGridEvent","_class_wxGridEvent",0},
958 { "_wxRect","_class_wxRect",0},
959 { "_wxCommandEvent","_class_wxCommandEvent",0},
960 { "_wxSizeEvent","_class_wxSizeEvent",0},
961 { "_class_wxImage","_wxImage",0},
962 { "_wxPoint","_class_wxPoint",0},
963 { "_class_wxSashLayoutWindow","_wxSashLayoutWindow",0},
964 { "_class_wxButton","_wxButton",0},
965 { "_wxRadioBox","_class_wxRadioBox",0},
966 { "_class_wxFontData","_wxFontData",0},
967 { "_class___wxPyCleanup","___wxPyCleanup",0},
968 { "_wxBitmap","_class_wxBitmap",0},
969 { "_wxPrintDialog","_class_wxPrintDialog",0},
970 { "_wxPyTimer","_class_wxPyTimer",0},
971 { "_wxWindowDC","_class_wxWindowDC",0},
972 { "_wxScrollBar","_class_wxScrollBar",0},
973 { "_wxSpinButton","_class_wxSpinButton",0},
974 { "_wxToolBarTool","_class_wxToolBarTool",0},
975 { "_wxColourDialog","_class_wxColourDialog",0},
976 { "_wxPrintData","_class_wxPrintData",0},
977 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
978 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
979 { "_wxMessageDialog","_class_wxMessageDialog",0},
980 { "_class_wxPyEvent","_wxPyEvent",0},
981 { "_wxTextEntryDialog","_class_wxTextEntryDialog",0},
982 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
983 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
984 { "_wxMDIChildFrame","_class_wxMDIChildFrame",0},
985 { "_wxListItem","_class_wxListItem",0},
986 { "_class_wxToolBar","_wxToolBar",0},
987 { "_class_wxStaticLine","_wxStaticLine",0},
988 { "_wxScrollEvent","_class_wxScrollEvent",0},
989 { "_wxCalculateLayoutEvent","_class_wxCalculateLayoutEvent",0},
990 { "_EBool","_wxPrintQuality",0},
991 { "_EBool","_signed_int",0},
992 { "_EBool","_int",0},
993 { "_EBool","_wxWindowID",0},
994 { "_class_wxRegion","_wxRegion",0},
995 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
996 { "_class_wxPreviewFrame","_wxPreviewFrame",0},
997 { "_wxStaticText","_class_wxStaticText",0},
998 { "_wxFont","_class_wxFont",0},
999 { "_wxCloseEvent","_class_wxCloseEvent",0},
1000 { "_class_wxSplitterEvent","_wxSplitterEvent",0},
1001 { "_wxNotebook","_class_wxNotebook",0},
1002 { "_unsigned_long","_wxDash",0},
1003 { "_unsigned_long","_long",0},
1004 { "_class_wxRect","_wxRect",0},
1005 { "_class_wxDC","_wxDC",0},
1006 { "_class_wxProgressDialog","_wxProgressDialog",0},
1007 { "_wxPyApp","_class_wxPyApp",0},
1008 { "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
1009 { "_class_wxTreeEvent","_wxTreeEvent",0},
1010 { "_class_wxDirDialog","_wxDirDialog",0},
1011 { "_class_wxPyTimer","_wxPyTimer",0},
1012 { "_wxFocusEvent","_class_wxFocusEvent",0},
1013 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
1014 { "_class_wxSpinButton","_wxSpinButton",0},
1015 { "_wxHtmlWindow","_class_wxHtmlWindow",0},
1016 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1017 { "_class_wxPanel","_class_wxHtmlWindow",SwigwxHtmlWindowTowxPanel},
1018 { "_class_wxPanel","_wxHtmlWindow",SwigwxHtmlWindowTowxPanel},
1019 { "_class_wxPanel","_wxPanel",0},
1020 { "_class_wxCheckBox","_wxCheckBox",0},
1021 { "_wxComboBox","_class_wxComboBox",0},
1022 { "_wxRadioButton","_class_wxRadioButton",0},
1023 { "_class_wxMessageDialog","_wxMessageDialog",0},
1024 { "_signed_int","_wxPrintQuality",0},
1025 { "_signed_int","_EBool",0},
1026 { "_signed_int","_wxWindowID",0},
1027 { "_signed_int","_int",0},
1028 { "_class_wxTextCtrl","_wxTextCtrl",0},
1029 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1030 { "_wxMenu","_class_wxMenu",0},
1031 { "_class_wxMoveEvent","_wxMoveEvent",0},
1032 { "_wxListBox","_class_wxListBox",0},
1033 { "_wxScreenDC","_class_wxScreenDC",0},
1034 { "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
1035 { "_WXTYPE","_short",0},
1036 { "_WXTYPE","_signed_short",0},
1037 { "_WXTYPE","_unsigned_short",0},
1038 { "_wxFileDialog","_class_wxFileDialog",0},
1039 { "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
1040 { "_class_wxBrush","_wxBrush",0},
1041 { "_unsigned_short","_WXTYPE",0},
1042 { "_unsigned_short","_short",0},
1043 { "_class_wxWindow","_class_wxHtmlWindow",SwigwxHtmlWindowTowxWindow},
1044 { "_class_wxWindow","_wxHtmlWindow",SwigwxHtmlWindowTowxWindow},
1045 { "_class_wxWindow","_wxWindow",0},
1046 { "_wxSplitterWindow","_class_wxSplitterWindow",0},
1047 { "_class_wxStaticText","_wxStaticText",0},
1048 { "_wxPrintDialogData","_class_wxPrintDialogData",0},
1049 { "_class_wxFont","_wxFont",0},
1050 { "_class_wxCloseEvent","_wxCloseEvent",0},
1051 { "_wxSashEvent","_class_wxSashEvent",0},
1052 { "_class_wxMenuEvent","_wxMenuEvent",0},
1053 { "_wxClientDC","_class_wxClientDC",0},
1054 { "_wxMouseEvent","_class_wxMouseEvent",0},
1055 { "_wxListCtrl","_class_wxListCtrl",0},
1056 { "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
1057 { "_class_wxPoint","_wxPoint",0},
1058 { "_wxRealPoint","_class_wxRealPoint",0},
1059 { "_class_wxRadioBox","_wxRadioBox",0},
1060 { "_wxGridCell","_class_wxGridCell",0},
1061 { "_signed_short","_WXTYPE",0},
1062 { "_signed_short","_short",0},
1063 { "_wxMemoryDC","_class_wxMemoryDC",0},
1064 { "_class_wxPrintDialog","_wxPrintDialog",0},
1065 { "_wxPaintDC","_class_wxPaintDC",0},
1066 { "_class_wxWindowDC","_wxWindowDC",0},
1067 { "_class_wxFocusEvent","_wxFocusEvent",0},
1068 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
1069 { "_wxStatusBar","_class_wxStatusBar",0},
1070 { "_class_wxToolBarTool","_wxToolBarTool",0},
1071 { "_class_wxHtmlWindow","_wxHtmlWindow",0},
1072 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1073 { "_class_wxCursor","_wxCursor",0},
1074 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1075 { "_class_wxImageHandler","_wxImageHandler",0},
1076 { "_wxScrolledWindow","_class_wxHtmlWindow",SwigwxHtmlWindowTowxScrolledWindow},
1077 { "_wxScrolledWindow","_wxHtmlWindow",SwigwxHtmlWindowTowxScrolledWindow},
1078 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1079 { "_wxTreeItemId","_class_wxTreeItemId",0},
1080 { "_unsigned_char","_byte",0},
1081 { "_class_wxMenu","_wxMenu",0},
1082 { "_wxControl","_class_wxControl",0},
1083 { "_class_wxListBox","_wxListBox",0},
1084 { "_unsigned_int","_wxPrintQuality",0},
1085 { "_unsigned_int","_size_t",0},
1086 { "_unsigned_int","_uint",0},
1087 { "_unsigned_int","_wxWindowID",0},
1088 { "_unsigned_int","_int",0},
1089 { "_wxIcon","_class_wxIcon",0},
1090 { "_wxDialog","_class_wxDialog",0},
1091 { "_class_wxListItem","_wxListItem",0},
1092 { "_class_wxPen","_wxPen",0},
1093 { "_class_wxFileDialog","_wxFileDialog",0},
1094 { "_wxQueryLayoutInfoEvent","_class_wxQueryLayoutInfoEvent",0},
1095 { "_short","_WXTYPE",0},
1096 { "_short","_unsigned_short",0},
1097 { "_short","_signed_short",0},
1098 { "_class_wxStaticBox","_wxStaticBox",0},
1099 { "_wxLayoutAlgorithm","_class_wxLayoutAlgorithm",0},
1100 { "_class_wxScrollEvent","_wxScrollEvent",0},
1101 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
1102 { "_class_wxChoice","_wxChoice",0},
1103 { "_class_wxSlider","_wxSlider",0},
1104 { "_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0},
1105 { "_class_wxImageList","_wxImageList",0},
1106 { "_class_wxBitmapButton","_wxBitmapButton",0},
1107 { "_wxFrame","_class_wxFrame",0},
1108 { "_class_wxNotebook","_wxNotebook",0},
1109 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1110 { "_wxWindowID","_wxPrintQuality",0},
1111 { "_wxWindowID","_size_t",0},
1112 { "_wxWindowID","_EBool",0},
1113 { "_wxWindowID","_uint",0},
1114 { "_wxWindowID","_int",0},
1115 { "_wxWindowID","_signed_int",0},
1116 { "_wxWindowID","_unsigned_int",0},
1117 { "_int","_wxPrintQuality",0},
1118 { "_int","_size_t",0},
1119 { "_int","_EBool",0},
1120 { "_int","_uint",0},
1121 { "_int","_wxWindowID",0},
1122 { "_int","_unsigned_int",0},
1123 { "_int","_signed_int",0},
1124 { "_class_wxMouseEvent","_wxMouseEvent",0},
1125 { "_class_wxListEvent","_wxListEvent",0},
1126 { "_class_wxPrintPreview","_wxPrintPreview",0},
1127 { "_class_wxSpinEvent","_wxSpinEvent",0},
1128 { "_wxButton","_class_wxButton",0},
1129 { "_class_wxPyApp","_wxPyApp",0},
1130 { "_wxSize","_class_wxSize",0},
1131 { "_wxRegionIterator","_class_wxRegionIterator",0},
1132 { "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
1133 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
1134 { "_class_wxPaintDC","_wxPaintDC",0},
1135 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
1136 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
1137 { "_class_wxComboBox","_wxComboBox",0},
1138 { "_class_wxRadioButton","_wxRadioButton",0},
1139 { "_class_wxTreeItemId","_wxTreeItemId",0},
1140 { "_wxTreeCtrl","_class_wxTreeCtrl",0},
1141 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1142 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
1143 { "_class_wxControl","_wxControl",0},
1144 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
1145 { "_class_wxIcon","_wxIcon",0},
1146 { "_class_wxColour","_wxColour",0},
1147 { "_class_wxScreenDC","_wxScreenDC",0},
1148 { "_class_wxPageSetupDialog","_wxPageSetupDialog",0},
1149 { "_wxPalette","_class_wxPalette",0},
1150 { "_class_wxIdleEvent","_wxIdleEvent",0},
1151 { "_wxEraseEvent","_class_wxEraseEvent",0},
1152 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
1153 { "_class_wxMiniFrame","_wxMiniFrame",0},
1154 { "_wxFontDialog","_class_wxFontDialog",0},
1155 { "_wxRegion","_class_wxRegion",0},
1156 { "_class_wxSplitterWindow","_wxSplitterWindow",0},
1157 { "_wxPreviewFrame","_class_wxPreviewFrame",0},
1158 { "_class_wxShowEvent","_wxShowEvent",0},
1159 { "_wxActivateEvent","_class_wxActivateEvent",0},
1160 { "_wxGauge","_class_wxGauge",0},
1161 { "_class_wxCheckListBox","_wxCheckListBox",0},
1162 { "_class_wxGridEvent","_wxGridEvent",0},
1163 { "_class_wxCommandEvent","_wxCommandEvent",0},
1164 { "_class_wxClientDC","_wxClientDC",0},
1165 { "_class_wxSizeEvent","_wxSizeEvent",0},
1166 { "_class_wxListCtrl","_wxListCtrl",0},
1167 { "_class_wxGridCell","_wxGridCell",0},
1168 { "_HtmlHistoryItem","_class_HtmlHistoryItem",0},
1169 { "_class_wxSize","_wxSize",0},
1170 { "_class_wxBitmap","_wxBitmap",0},
1171 { "_class_wxMemoryDC","_wxMemoryDC",0},
1172 { "_wxMenuBar","_class_wxMenuBar",0},
1173 { "_wxTreeEvent","_class_wxTreeEvent",0},
1174 { "_wxDirDialog","_class_wxDirDialog",0},
1175 { "_wxEvtHandler","_class_wxHtmlWindow",SwigwxHtmlWindowTowxEvtHandler},
1176 { "_wxEvtHandler","_wxHtmlWindow",SwigwxHtmlWindowTowxEvtHandler},
1177 { "_wxEvtHandler","_class_wxEvtHandler",0},
1178 { "_wxMenuItem","_class_wxMenuItem",0},
1179 { "_class_wxScrollBar","_wxScrollBar",0},
1180 { "_class_wxColourDialog","_wxColourDialog",0},
1181 { "_class_wxPrintData","_wxPrintData",0},
1182 { "_wxDash","_unsigned_long",0},
1183 { "_wxDash","_long",0},
1184 { "_class_wxScrolledWindow","_class_wxHtmlWindow",SwigwxHtmlWindowTowxScrolledWindow},
1185 { "_class_wxScrolledWindow","_wxHtmlWindow",SwigwxHtmlWindowTowxScrolledWindow},
1186 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
1187 { "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
1188 { "_wxKeyEvent","_class_wxKeyEvent",0},
1189 { "_wxMoveEvent","_class_wxMoveEvent",0},
1190 { "_wxColourData","_class_wxColourData",0},
1191 { "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
1192 { "_class_wxPalette","_wxPalette",0},
1193 { "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0},
1194 { "_class_wxEraseEvent","_wxEraseEvent",0},
1195 { "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
1196 { "_class_wxFontDialog","_wxFontDialog",0},
1197 { "_wxWindow","_class_wxHtmlWindow",SwigwxHtmlWindowTowxWindow},
1198 { "_wxWindow","_wxHtmlWindow",SwigwxHtmlWindowTowxWindow},
1199 { "_wxWindow","_class_wxWindow",0},
1200 { "_class_wxFrame","_wxFrame",0},
1201 {0,0,0}};
1202
1203 static PyObject *SWIG_globals;
1204 #ifdef __cplusplus
1205 extern "C"
1206 #endif
1207 SWIGEXPORT(void) inithtmlc() {
1208 PyObject *m, *d;
1209 SWIG_globals = SWIG_newvarlink();
1210 m = Py_InitModule("htmlc", htmlcMethods);
1211 d = PyModule_GetDict(m);
1212
1213
1214 /* This is a bit cheesy. SWIG happens to call the dictionary d...
1215 * I save it here, 'cause I don't know how to get it back later! */
1216 mod_dict = d;
1217 wxPyThreadState = PyThreadState_Get();
1218 wxClassInfo::CleanUpClasses();
1219 wxClassInfo::InitializeClasses();
1220
1221 /* specifically add our python tag handler; it doesn't seem to
1222 * happen by itself... */
1223 wxHtmlWinParser::AddModule(new HTML_ModulePythonTag());
1224
1225 // Until wxFileSystem is wrapped...
1226 #if wxUSE_FS_ZIP
1227 wxFileSystem::AddHandler(new wxZipFSHandler);
1228 #endif
1229 {
1230 int i;
1231 for (i = 0; _swig_mapping[i].n1; i++)
1232 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1233 }
1234 }