]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.cpp
c85c531688c8e76ccf5b8c3929183ec8275c9193
[wxWidgets.git] / wxPython / contrib / iewin / iewin.cpp
1 /*
2 * FILE : contrib/iewin/iewin.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 initiewinc
55
56 #define SWIG_name "iewinc"
57
58 #include "wxPython.h"
59 #include "IEHtmlWin.h"
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87
88 // Put some wx default wxChar* values into wxStrings.
89 DECLARE_DEF_STRING(PanelNameStr);
90 #ifdef __cplusplus
91 extern "C" {
92 #endif
93 static void *SwigwxMSHTMLEventTowxNotifyEvent(void *ptr) {
94 wxMSHTMLEvent *src;
95 wxNotifyEvent *dest;
96 src = (wxMSHTMLEvent *) ptr;
97 dest = (wxNotifyEvent *) src;
98 return (void *) dest;
99 }
100
101 static void *SwigwxMSHTMLEventTowxCommandEvent(void *ptr) {
102 wxMSHTMLEvent *src;
103 wxCommandEvent *dest;
104 src = (wxMSHTMLEvent *) ptr;
105 dest = (wxCommandEvent *) src;
106 return (void *) dest;
107 }
108
109 static void *SwigwxMSHTMLEventTowxEvent(void *ptr) {
110 wxMSHTMLEvent *src;
111 wxEvent *dest;
112 src = (wxMSHTMLEvent *) ptr;
113 dest = (wxEvent *) src;
114 return (void *) dest;
115 }
116
117 static void *SwigwxMSHTMLEventTowxObject(void *ptr) {
118 wxMSHTMLEvent *src;
119 wxObject *dest;
120 src = (wxMSHTMLEvent *) ptr;
121 dest = (wxObject *) src;
122 return (void *) dest;
123 }
124
125 #define new_wxMSHTMLEvent(_swigarg0,_swigarg1) (new wxMSHTMLEvent(_swigarg0,_swigarg1))
126 static PyObject *_wrap_new_wxMSHTMLEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
127 PyObject * _resultobj;
128 wxMSHTMLEvent * _result;
129 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
130 int _arg1 = (int ) 0;
131 char *_kwnames[] = { "commandType","id", NULL };
132 char _ptemp[128];
133
134 self = self;
135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxMSHTMLEvent",_kwnames,&_arg0,&_arg1))
136 return NULL;
137 {
138 PyThreadState* __tstate = wxPyBeginAllowThreads();
139 _result = (wxMSHTMLEvent *)new_wxMSHTMLEvent(_arg0,_arg1);
140
141 wxPyEndAllowThreads(__tstate);
142 if (PyErr_Occurred()) return NULL;
143 } if (_result) {
144 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMSHTMLEvent_p");
145 _resultobj = Py_BuildValue("s",_ptemp);
146 } else {
147 Py_INCREF(Py_None);
148 _resultobj = Py_None;
149 }
150 return _resultobj;
151 }
152
153 #define wxMSHTMLEvent_GetText1(_swigobj) (_swigobj->GetText1())
154 static PyObject *_wrap_wxMSHTMLEvent_GetText1(PyObject *self, PyObject *args, PyObject *kwargs) {
155 PyObject * _resultobj;
156 wxString * _result;
157 wxMSHTMLEvent * _arg0;
158 PyObject * _argo0 = 0;
159 char *_kwnames[] = { "self", NULL };
160
161 self = self;
162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMSHTMLEvent_GetText1",_kwnames,&_argo0))
163 return NULL;
164 if (_argo0) {
165 if (_argo0 == Py_None) { _arg0 = NULL; }
166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMSHTMLEvent_p")) {
167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMSHTMLEvent_GetText1. Expected _wxMSHTMLEvent_p.");
168 return NULL;
169 }
170 }
171 {
172 PyThreadState* __tstate = wxPyBeginAllowThreads();
173 _result = new wxString (wxMSHTMLEvent_GetText1(_arg0));
174
175 wxPyEndAllowThreads(__tstate);
176 if (PyErr_Occurred()) return NULL;
177 }{
178 #if wxUSE_UNICODE
179 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
180 #else
181 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
182 #endif
183 }
184 {
185 delete _result;
186 }
187 return _resultobj;
188 }
189
190 #define wxMSHTMLEvent_GetLong1(_swigobj) (_swigobj->GetLong1())
191 static PyObject *_wrap_wxMSHTMLEvent_GetLong1(PyObject *self, PyObject *args, PyObject *kwargs) {
192 PyObject * _resultobj;
193 long _result;
194 wxMSHTMLEvent * _arg0;
195 PyObject * _argo0 = 0;
196 char *_kwnames[] = { "self", NULL };
197
198 self = self;
199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMSHTMLEvent_GetLong1",_kwnames,&_argo0))
200 return NULL;
201 if (_argo0) {
202 if (_argo0 == Py_None) { _arg0 = NULL; }
203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMSHTMLEvent_p")) {
204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMSHTMLEvent_GetLong1. Expected _wxMSHTMLEvent_p.");
205 return NULL;
206 }
207 }
208 {
209 PyThreadState* __tstate = wxPyBeginAllowThreads();
210 _result = (long )wxMSHTMLEvent_GetLong1(_arg0);
211
212 wxPyEndAllowThreads(__tstate);
213 if (PyErr_Occurred()) return NULL;
214 } _resultobj = Py_BuildValue("l",_result);
215 return _resultobj;
216 }
217
218 #define wxMSHTMLEvent_GetLong2(_swigobj) (_swigobj->GetLong2())
219 static PyObject *_wrap_wxMSHTMLEvent_GetLong2(PyObject *self, PyObject *args, PyObject *kwargs) {
220 PyObject * _resultobj;
221 long _result;
222 wxMSHTMLEvent * _arg0;
223 PyObject * _argo0 = 0;
224 char *_kwnames[] = { "self", NULL };
225
226 self = self;
227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMSHTMLEvent_GetLong2",_kwnames,&_argo0))
228 return NULL;
229 if (_argo0) {
230 if (_argo0 == Py_None) { _arg0 = NULL; }
231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMSHTMLEvent_p")) {
232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMSHTMLEvent_GetLong2. Expected _wxMSHTMLEvent_p.");
233 return NULL;
234 }
235 }
236 {
237 PyThreadState* __tstate = wxPyBeginAllowThreads();
238 _result = (long )wxMSHTMLEvent_GetLong2(_arg0);
239
240 wxPyEndAllowThreads(__tstate);
241 if (PyErr_Occurred()) return NULL;
242 } _resultobj = Py_BuildValue("l",_result);
243 return _resultobj;
244 }
245
246 static void *SwigwxIEHtmlWinTowxWindow(void *ptr) {
247 wxIEHtmlWin *src;
248 wxWindow *dest;
249 src = (wxIEHtmlWin *) ptr;
250 dest = (wxWindow *) src;
251 return (void *) dest;
252 }
253
254 static void *SwigwxIEHtmlWinTowxEvtHandler(void *ptr) {
255 wxIEHtmlWin *src;
256 wxEvtHandler *dest;
257 src = (wxIEHtmlWin *) ptr;
258 dest = (wxEvtHandler *) src;
259 return (void *) dest;
260 }
261
262 static void *SwigwxIEHtmlWinTowxObject(void *ptr) {
263 wxIEHtmlWin *src;
264 wxObject *dest;
265 src = (wxIEHtmlWin *) ptr;
266 dest = (wxObject *) src;
267 return (void *) dest;
268 }
269
270 #define new_wxIEHtmlWin(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxIEHtmlWin(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
271 static PyObject *_wrap_new_wxIEHtmlWin(PyObject *self, PyObject *args, PyObject *kwargs) {
272 PyObject * _resultobj;
273 wxIEHtmlWin * _result;
274 wxWindow * _arg0;
275 wxWindowID _arg1 = (wxWindowID ) -1;
276 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
277 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
278 long _arg4 = (long ) 0;
279 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
280 PyObject * _argo0 = 0;
281 wxPoint temp;
282 PyObject * _obj2 = 0;
283 wxSize temp0;
284 PyObject * _obj3 = 0;
285 PyObject * _obj5 = 0;
286 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
287 char _ptemp[128];
288
289 self = self;
290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxIEHtmlWin",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
291 return NULL;
292 if (_argo0) {
293 if (_argo0 == Py_None) { _arg0 = NULL; }
294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIEHtmlWin. Expected _wxWindow_p.");
296 return NULL;
297 }
298 }
299 if (_obj2)
300 {
301 _arg2 = &temp;
302 if (! wxPoint_helper(_obj2, &_arg2))
303 return NULL;
304 }
305 if (_obj3)
306 {
307 _arg3 = &temp0;
308 if (! wxSize_helper(_obj3, &_arg3))
309 return NULL;
310 }
311 if (_obj5)
312 {
313 _arg5 = wxString_in_helper(_obj5);
314 if (_arg5 == NULL)
315 return NULL;
316 }
317 {
318 PyThreadState* __tstate = wxPyBeginAllowThreads();
319 _result = (wxIEHtmlWin *)new_wxIEHtmlWin(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
320
321 wxPyEndAllowThreads(__tstate);
322 if (PyErr_Occurred()) return NULL;
323 } if (_result) {
324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIEHtmlWin_p");
325 _resultobj = Py_BuildValue("s",_ptemp);
326 } else {
327 Py_INCREF(Py_None);
328 _resultobj = Py_None;
329 }
330 {
331 if (_obj5)
332 delete _arg5;
333 }
334 return _resultobj;
335 }
336
337 #define wxIEHtmlWin_LoadUrl(_swigobj,_swigarg0) (_swigobj->LoadUrl(_swigarg0))
338 static PyObject *_wrap_wxIEHtmlWin_LoadUrl(PyObject *self, PyObject *args, PyObject *kwargs) {
339 PyObject * _resultobj;
340 wxIEHtmlWin * _arg0;
341 wxString * _arg1;
342 PyObject * _argo0 = 0;
343 PyObject * _obj1 = 0;
344 char *_kwnames[] = { "self","arg2", NULL };
345
346 self = self;
347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIEHtmlWin_LoadUrl",_kwnames,&_argo0,&_obj1))
348 return NULL;
349 if (_argo0) {
350 if (_argo0 == Py_None) { _arg0 = NULL; }
351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_LoadUrl. Expected _wxIEHtmlWin_p.");
353 return NULL;
354 }
355 }
356 {
357 _arg1 = wxString_in_helper(_obj1);
358 if (_arg1 == NULL)
359 return NULL;
360 }
361 {
362 PyThreadState* __tstate = wxPyBeginAllowThreads();
363 wxIEHtmlWin_LoadUrl(_arg0,*_arg1);
364
365 wxPyEndAllowThreads(__tstate);
366 if (PyErr_Occurred()) return NULL;
367 } Py_INCREF(Py_None);
368 _resultobj = Py_None;
369 {
370 if (_obj1)
371 delete _arg1;
372 }
373 return _resultobj;
374 }
375
376 #define wxIEHtmlWin_LoadString(_swigobj,_swigarg0) (_swigobj->LoadString(_swigarg0))
377 static PyObject *_wrap_wxIEHtmlWin_LoadString(PyObject *self, PyObject *args, PyObject *kwargs) {
378 PyObject * _resultobj;
379 bool _result;
380 wxIEHtmlWin * _arg0;
381 wxString * _arg1;
382 PyObject * _argo0 = 0;
383 PyObject * _obj1 = 0;
384 char *_kwnames[] = { "self","html", NULL };
385
386 self = self;
387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIEHtmlWin_LoadString",_kwnames,&_argo0,&_obj1))
388 return NULL;
389 if (_argo0) {
390 if (_argo0 == Py_None) { _arg0 = NULL; }
391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_LoadString. Expected _wxIEHtmlWin_p.");
393 return NULL;
394 }
395 }
396 {
397 _arg1 = wxString_in_helper(_obj1);
398 if (_arg1 == NULL)
399 return NULL;
400 }
401 {
402 PyThreadState* __tstate = wxPyBeginAllowThreads();
403 _result = (bool )wxIEHtmlWin_LoadString(_arg0,*_arg1);
404
405 wxPyEndAllowThreads(__tstate);
406 if (PyErr_Occurred()) return NULL;
407 } _resultobj = Py_BuildValue("i",_result);
408 {
409 if (_obj1)
410 delete _arg1;
411 }
412 return _resultobj;
413 }
414
415 #define wxIEHtmlWin_SetCharset(_swigobj,_swigarg0) (_swigobj->SetCharset(_swigarg0))
416 static PyObject *_wrap_wxIEHtmlWin_SetCharset(PyObject *self, PyObject *args, PyObject *kwargs) {
417 PyObject * _resultobj;
418 wxIEHtmlWin * _arg0;
419 wxString * _arg1;
420 PyObject * _argo0 = 0;
421 PyObject * _obj1 = 0;
422 char *_kwnames[] = { "self","charset", NULL };
423
424 self = self;
425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIEHtmlWin_SetCharset",_kwnames,&_argo0,&_obj1))
426 return NULL;
427 if (_argo0) {
428 if (_argo0 == Py_None) { _arg0 = NULL; }
429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_SetCharset. Expected _wxIEHtmlWin_p.");
431 return NULL;
432 }
433 }
434 {
435 _arg1 = wxString_in_helper(_obj1);
436 if (_arg1 == NULL)
437 return NULL;
438 }
439 {
440 PyThreadState* __tstate = wxPyBeginAllowThreads();
441 wxIEHtmlWin_SetCharset(_arg0,*_arg1);
442
443 wxPyEndAllowThreads(__tstate);
444 if (PyErr_Occurred()) return NULL;
445 } Py_INCREF(Py_None);
446 _resultobj = Py_None;
447 {
448 if (_obj1)
449 delete _arg1;
450 }
451 return _resultobj;
452 }
453
454 #define wxIEHtmlWin_SetEditMode(_swigobj,_swigarg0) (_swigobj->SetEditMode(_swigarg0))
455 static PyObject *_wrap_wxIEHtmlWin_SetEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
456 PyObject * _resultobj;
457 wxIEHtmlWin * _arg0;
458 bool _arg1;
459 PyObject * _argo0 = 0;
460 int tempbool1;
461 char *_kwnames[] = { "self","seton", NULL };
462
463 self = self;
464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIEHtmlWin_SetEditMode",_kwnames,&_argo0,&tempbool1))
465 return NULL;
466 if (_argo0) {
467 if (_argo0 == Py_None) { _arg0 = NULL; }
468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_SetEditMode. Expected _wxIEHtmlWin_p.");
470 return NULL;
471 }
472 }
473 _arg1 = (bool ) tempbool1;
474 {
475 PyThreadState* __tstate = wxPyBeginAllowThreads();
476 wxIEHtmlWin_SetEditMode(_arg0,_arg1);
477
478 wxPyEndAllowThreads(__tstate);
479 if (PyErr_Occurred()) return NULL;
480 } Py_INCREF(Py_None);
481 _resultobj = Py_None;
482 return _resultobj;
483 }
484
485 #define wxIEHtmlWin_GetEditMode(_swigobj) (_swigobj->GetEditMode())
486 static PyObject *_wrap_wxIEHtmlWin_GetEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
487 PyObject * _resultobj;
488 bool _result;
489 wxIEHtmlWin * _arg0;
490 PyObject * _argo0 = 0;
491 char *_kwnames[] = { "self", NULL };
492
493 self = self;
494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GetEditMode",_kwnames,&_argo0))
495 return NULL;
496 if (_argo0) {
497 if (_argo0 == Py_None) { _arg0 = NULL; }
498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetEditMode. Expected _wxIEHtmlWin_p.");
500 return NULL;
501 }
502 }
503 {
504 PyThreadState* __tstate = wxPyBeginAllowThreads();
505 _result = (bool )wxIEHtmlWin_GetEditMode(_arg0);
506
507 wxPyEndAllowThreads(__tstate);
508 if (PyErr_Occurred()) return NULL;
509 } _resultobj = Py_BuildValue("i",_result);
510 return _resultobj;
511 }
512
513 #define wxIEHtmlWin_GetStringSelection(_swigobj,_swigarg0) (_swigobj->GetStringSelection(_swigarg0))
514 static PyObject *_wrap_wxIEHtmlWin_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
515 PyObject * _resultobj;
516 wxString * _result;
517 wxIEHtmlWin * _arg0;
518 bool _arg1 = (bool ) FALSE;
519 PyObject * _argo0 = 0;
520 int tempbool1 = (int) FALSE;
521 char *_kwnames[] = { "self","asHTML", NULL };
522
523 self = self;
524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxIEHtmlWin_GetStringSelection",_kwnames,&_argo0,&tempbool1))
525 return NULL;
526 if (_argo0) {
527 if (_argo0 == Py_None) { _arg0 = NULL; }
528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetStringSelection. Expected _wxIEHtmlWin_p.");
530 return NULL;
531 }
532 }
533 _arg1 = (bool ) tempbool1;
534 {
535 PyThreadState* __tstate = wxPyBeginAllowThreads();
536 _result = new wxString (wxIEHtmlWin_GetStringSelection(_arg0,_arg1));
537
538 wxPyEndAllowThreads(__tstate);
539 if (PyErr_Occurred()) return NULL;
540 }{
541 #if wxUSE_UNICODE
542 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
543 #else
544 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
545 #endif
546 }
547 {
548 delete _result;
549 }
550 return _resultobj;
551 }
552
553 #define wxIEHtmlWin_GetText(_swigobj,_swigarg0) (_swigobj->GetText(_swigarg0))
554 static PyObject *_wrap_wxIEHtmlWin_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
555 PyObject * _resultobj;
556 wxString * _result;
557 wxIEHtmlWin * _arg0;
558 bool _arg1 = (bool ) FALSE;
559 PyObject * _argo0 = 0;
560 int tempbool1 = (int) FALSE;
561 char *_kwnames[] = { "self","asHTML", NULL };
562
563 self = self;
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxIEHtmlWin_GetText",_kwnames,&_argo0,&tempbool1))
565 return NULL;
566 if (_argo0) {
567 if (_argo0 == Py_None) { _arg0 = NULL; }
568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetText. Expected _wxIEHtmlWin_p.");
570 return NULL;
571 }
572 }
573 _arg1 = (bool ) tempbool1;
574 {
575 PyThreadState* __tstate = wxPyBeginAllowThreads();
576 _result = new wxString (wxIEHtmlWin_GetText(_arg0,_arg1));
577
578 wxPyEndAllowThreads(__tstate);
579 if (PyErr_Occurred()) return NULL;
580 }{
581 #if wxUSE_UNICODE
582 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
583 #else
584 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
585 #endif
586 }
587 {
588 delete _result;
589 }
590 return _resultobj;
591 }
592
593 #define wxIEHtmlWin_GoBack(_swigobj) (_swigobj->GoBack())
594 static PyObject *_wrap_wxIEHtmlWin_GoBack(PyObject *self, PyObject *args, PyObject *kwargs) {
595 PyObject * _resultobj;
596 bool _result;
597 wxIEHtmlWin * _arg0;
598 PyObject * _argo0 = 0;
599 char *_kwnames[] = { "self", NULL };
600
601 self = self;
602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoBack",_kwnames,&_argo0))
603 return NULL;
604 if (_argo0) {
605 if (_argo0 == Py_None) { _arg0 = NULL; }
606 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
607 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoBack. Expected _wxIEHtmlWin_p.");
608 return NULL;
609 }
610 }
611 {
612 PyThreadState* __tstate = wxPyBeginAllowThreads();
613 _result = (bool )wxIEHtmlWin_GoBack(_arg0);
614
615 wxPyEndAllowThreads(__tstate);
616 if (PyErr_Occurred()) return NULL;
617 } _resultobj = Py_BuildValue("i",_result);
618 return _resultobj;
619 }
620
621 #define wxIEHtmlWin_GoForward(_swigobj) (_swigobj->GoForward())
622 static PyObject *_wrap_wxIEHtmlWin_GoForward(PyObject *self, PyObject *args, PyObject *kwargs) {
623 PyObject * _resultobj;
624 bool _result;
625 wxIEHtmlWin * _arg0;
626 PyObject * _argo0 = 0;
627 char *_kwnames[] = { "self", NULL };
628
629 self = self;
630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoForward",_kwnames,&_argo0))
631 return NULL;
632 if (_argo0) {
633 if (_argo0 == Py_None) { _arg0 = NULL; }
634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoForward. Expected _wxIEHtmlWin_p.");
636 return NULL;
637 }
638 }
639 {
640 PyThreadState* __tstate = wxPyBeginAllowThreads();
641 _result = (bool )wxIEHtmlWin_GoForward(_arg0);
642
643 wxPyEndAllowThreads(__tstate);
644 if (PyErr_Occurred()) return NULL;
645 } _resultobj = Py_BuildValue("i",_result);
646 return _resultobj;
647 }
648
649 #define wxIEHtmlWin_GoHome(_swigobj) (_swigobj->GoHome())
650 static PyObject *_wrap_wxIEHtmlWin_GoHome(PyObject *self, PyObject *args, PyObject *kwargs) {
651 PyObject * _resultobj;
652 bool _result;
653 wxIEHtmlWin * _arg0;
654 PyObject * _argo0 = 0;
655 char *_kwnames[] = { "self", NULL };
656
657 self = self;
658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoHome",_kwnames,&_argo0))
659 return NULL;
660 if (_argo0) {
661 if (_argo0 == Py_None) { _arg0 = NULL; }
662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoHome. Expected _wxIEHtmlWin_p.");
664 return NULL;
665 }
666 }
667 {
668 PyThreadState* __tstate = wxPyBeginAllowThreads();
669 _result = (bool )wxIEHtmlWin_GoHome(_arg0);
670
671 wxPyEndAllowThreads(__tstate);
672 if (PyErr_Occurred()) return NULL;
673 } _resultobj = Py_BuildValue("i",_result);
674 return _resultobj;
675 }
676
677 #define wxIEHtmlWin_GoSearch(_swigobj) (_swigobj->GoSearch())
678 static PyObject *_wrap_wxIEHtmlWin_GoSearch(PyObject *self, PyObject *args, PyObject *kwargs) {
679 PyObject * _resultobj;
680 bool _result;
681 wxIEHtmlWin * _arg0;
682 PyObject * _argo0 = 0;
683 char *_kwnames[] = { "self", NULL };
684
685 self = self;
686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoSearch",_kwnames,&_argo0))
687 return NULL;
688 if (_argo0) {
689 if (_argo0 == Py_None) { _arg0 = NULL; }
690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoSearch. Expected _wxIEHtmlWin_p.");
692 return NULL;
693 }
694 }
695 {
696 PyThreadState* __tstate = wxPyBeginAllowThreads();
697 _result = (bool )wxIEHtmlWin_GoSearch(_arg0);
698
699 wxPyEndAllowThreads(__tstate);
700 if (PyErr_Occurred()) return NULL;
701 } _resultobj = Py_BuildValue("i",_result);
702 return _resultobj;
703 }
704
705 #define wxIEHtmlWin_Refresh(_swigobj,_swigarg0) (_swigobj->Refresh(_swigarg0))
706 static PyObject *_wrap_wxIEHtmlWin_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
707 PyObject * _resultobj;
708 bool _result;
709 wxIEHtmlWin * _arg0;
710 wxIEHtmlRefreshLevel _arg1;
711 PyObject * _argo0 = 0;
712 char *_kwnames[] = { "self","level", NULL };
713
714 self = self;
715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIEHtmlWin_Refresh",_kwnames,&_argo0,&_arg1))
716 return NULL;
717 if (_argo0) {
718 if (_argo0 == Py_None) { _arg0 = NULL; }
719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_Refresh. Expected _wxIEHtmlWin_p.");
721 return NULL;
722 }
723 }
724 {
725 PyThreadState* __tstate = wxPyBeginAllowThreads();
726 _result = (bool )wxIEHtmlWin_Refresh(_arg0,_arg1);
727
728 wxPyEndAllowThreads(__tstate);
729 if (PyErr_Occurred()) return NULL;
730 } _resultobj = Py_BuildValue("i",_result);
731 return _resultobj;
732 }
733
734 #define wxIEHtmlWin_Stop(_swigobj) (_swigobj->Stop())
735 static PyObject *_wrap_wxIEHtmlWin_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
736 PyObject * _resultobj;
737 bool _result;
738 wxIEHtmlWin * _arg0;
739 PyObject * _argo0 = 0;
740 char *_kwnames[] = { "self", NULL };
741
742 self = self;
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_Stop",_kwnames,&_argo0))
744 return NULL;
745 if (_argo0) {
746 if (_argo0 == Py_None) { _arg0 = NULL; }
747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_Stop. Expected _wxIEHtmlWin_p.");
749 return NULL;
750 }
751 }
752 {
753 PyThreadState* __tstate = wxPyBeginAllowThreads();
754 _result = (bool )wxIEHtmlWin_Stop(_arg0);
755
756 wxPyEndAllowThreads(__tstate);
757 if (PyErr_Occurred()) return NULL;
758 } _resultobj = Py_BuildValue("i",_result);
759 return _resultobj;
760 }
761
762 static PyMethodDef iewincMethods[] = {
763 { "wxIEHtmlWin_Stop", (PyCFunction) _wrap_wxIEHtmlWin_Stop, METH_VARARGS | METH_KEYWORDS },
764 { "wxIEHtmlWin_Refresh", (PyCFunction) _wrap_wxIEHtmlWin_Refresh, METH_VARARGS | METH_KEYWORDS },
765 { "wxIEHtmlWin_GoSearch", (PyCFunction) _wrap_wxIEHtmlWin_GoSearch, METH_VARARGS | METH_KEYWORDS },
766 { "wxIEHtmlWin_GoHome", (PyCFunction) _wrap_wxIEHtmlWin_GoHome, METH_VARARGS | METH_KEYWORDS },
767 { "wxIEHtmlWin_GoForward", (PyCFunction) _wrap_wxIEHtmlWin_GoForward, METH_VARARGS | METH_KEYWORDS },
768 { "wxIEHtmlWin_GoBack", (PyCFunction) _wrap_wxIEHtmlWin_GoBack, METH_VARARGS | METH_KEYWORDS },
769 { "wxIEHtmlWin_GetText", (PyCFunction) _wrap_wxIEHtmlWin_GetText, METH_VARARGS | METH_KEYWORDS },
770 { "wxIEHtmlWin_GetStringSelection", (PyCFunction) _wrap_wxIEHtmlWin_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
771 { "wxIEHtmlWin_GetEditMode", (PyCFunction) _wrap_wxIEHtmlWin_GetEditMode, METH_VARARGS | METH_KEYWORDS },
772 { "wxIEHtmlWin_SetEditMode", (PyCFunction) _wrap_wxIEHtmlWin_SetEditMode, METH_VARARGS | METH_KEYWORDS },
773 { "wxIEHtmlWin_SetCharset", (PyCFunction) _wrap_wxIEHtmlWin_SetCharset, METH_VARARGS | METH_KEYWORDS },
774 { "wxIEHtmlWin_LoadString", (PyCFunction) _wrap_wxIEHtmlWin_LoadString, METH_VARARGS | METH_KEYWORDS },
775 { "wxIEHtmlWin_LoadUrl", (PyCFunction) _wrap_wxIEHtmlWin_LoadUrl, METH_VARARGS | METH_KEYWORDS },
776 { "new_wxIEHtmlWin", (PyCFunction) _wrap_new_wxIEHtmlWin, METH_VARARGS | METH_KEYWORDS },
777 { "wxMSHTMLEvent_GetLong2", (PyCFunction) _wrap_wxMSHTMLEvent_GetLong2, METH_VARARGS | METH_KEYWORDS },
778 { "wxMSHTMLEvent_GetLong1", (PyCFunction) _wrap_wxMSHTMLEvent_GetLong1, METH_VARARGS | METH_KEYWORDS },
779 { "wxMSHTMLEvent_GetText1", (PyCFunction) _wrap_wxMSHTMLEvent_GetText1, METH_VARARGS | METH_KEYWORDS },
780 { "new_wxMSHTMLEvent", (PyCFunction) _wrap_new_wxMSHTMLEvent, METH_VARARGS | METH_KEYWORDS },
781 { NULL, NULL }
782 };
783 #ifdef __cplusplus
784 }
785 #endif
786 /*
787 * This table is used by the pointer type-checker
788 */
789 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
790 { "_wxEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxEvent},
791 { "_signed_long","_long",0},
792 { "_wxPrintQuality","_wxCoord",0},
793 { "_wxPrintQuality","_int",0},
794 { "_wxPrintQuality","_signed_int",0},
795 { "_wxPrintQuality","_unsigned_int",0},
796 { "_wxPrintQuality","_wxWindowID",0},
797 { "_wxPrintQuality","_uint",0},
798 { "_wxPrintQuality","_EBool",0},
799 { "_wxPrintQuality","_size_t",0},
800 { "_wxPrintQuality","_time_t",0},
801 { "_wxNotifyEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxNotifyEvent},
802 { "_byte","_unsigned_char",0},
803 { "_long","_unsigned_long",0},
804 { "_long","_signed_long",0},
805 { "_size_t","_wxCoord",0},
806 { "_size_t","_wxPrintQuality",0},
807 { "_size_t","_time_t",0},
808 { "_size_t","_unsigned_int",0},
809 { "_size_t","_int",0},
810 { "_size_t","_wxWindowID",0},
811 { "_size_t","_uint",0},
812 { "_uint","_wxCoord",0},
813 { "_uint","_wxPrintQuality",0},
814 { "_uint","_time_t",0},
815 { "_uint","_size_t",0},
816 { "_uint","_unsigned_int",0},
817 { "_uint","_int",0},
818 { "_uint","_wxWindowID",0},
819 { "_wxChar","_char",0},
820 { "_wxCommandEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxCommandEvent},
821 { "_char","_wxChar",0},
822 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
823 { "_EBool","_wxCoord",0},
824 { "_EBool","_wxPrintQuality",0},
825 { "_EBool","_signed_int",0},
826 { "_EBool","_int",0},
827 { "_EBool","_wxWindowID",0},
828 { "_unsigned_long","_long",0},
829 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
830 { "_signed_int","_wxCoord",0},
831 { "_signed_int","_wxPrintQuality",0},
832 { "_signed_int","_EBool",0},
833 { "_signed_int","_wxWindowID",0},
834 { "_signed_int","_int",0},
835 { "_WXTYPE","_wxDateTime_t",0},
836 { "_WXTYPE","_short",0},
837 { "_WXTYPE","_signed_short",0},
838 { "_WXTYPE","_unsigned_short",0},
839 { "_unsigned_short","_wxDateTime_t",0},
840 { "_unsigned_short","_WXTYPE",0},
841 { "_unsigned_short","_short",0},
842 { "_wxObject","_wxIEHtmlWin",SwigwxIEHtmlWinTowxObject},
843 { "_wxObject","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxObject},
844 { "_signed_short","_WXTYPE",0},
845 { "_signed_short","_short",0},
846 { "_unsigned_char","_byte",0},
847 { "_unsigned_int","_wxCoord",0},
848 { "_unsigned_int","_wxPrintQuality",0},
849 { "_unsigned_int","_time_t",0},
850 { "_unsigned_int","_size_t",0},
851 { "_unsigned_int","_uint",0},
852 { "_unsigned_int","_wxWindowID",0},
853 { "_unsigned_int","_int",0},
854 { "_short","_wxDateTime_t",0},
855 { "_short","_WXTYPE",0},
856 { "_short","_unsigned_short",0},
857 { "_short","_signed_short",0},
858 { "_wxWindowID","_wxCoord",0},
859 { "_wxWindowID","_wxPrintQuality",0},
860 { "_wxWindowID","_time_t",0},
861 { "_wxWindowID","_size_t",0},
862 { "_wxWindowID","_EBool",0},
863 { "_wxWindowID","_uint",0},
864 { "_wxWindowID","_int",0},
865 { "_wxWindowID","_signed_int",0},
866 { "_wxWindowID","_unsigned_int",0},
867 { "_int","_wxCoord",0},
868 { "_int","_wxPrintQuality",0},
869 { "_int","_time_t",0},
870 { "_int","_size_t",0},
871 { "_int","_EBool",0},
872 { "_int","_uint",0},
873 { "_int","_wxWindowID",0},
874 { "_int","_unsigned_int",0},
875 { "_int","_signed_int",0},
876 { "_wxDateTime_t","_unsigned_short",0},
877 { "_wxDateTime_t","_short",0},
878 { "_wxDateTime_t","_WXTYPE",0},
879 { "_time_t","_wxCoord",0},
880 { "_time_t","_wxPrintQuality",0},
881 { "_time_t","_unsigned_int",0},
882 { "_time_t","_int",0},
883 { "_time_t","_wxWindowID",0},
884 { "_time_t","_uint",0},
885 { "_time_t","_size_t",0},
886 { "_wxCoord","_int",0},
887 { "_wxCoord","_signed_int",0},
888 { "_wxCoord","_unsigned_int",0},
889 { "_wxCoord","_wxWindowID",0},
890 { "_wxCoord","_uint",0},
891 { "_wxCoord","_EBool",0},
892 { "_wxCoord","_size_t",0},
893 { "_wxCoord","_time_t",0},
894 { "_wxCoord","_wxPrintQuality",0},
895 { "_wxEvtHandler","_wxIEHtmlWin",SwigwxIEHtmlWinTowxEvtHandler},
896 { "_wxWindow","_wxIEHtmlWin",SwigwxIEHtmlWinTowxWindow},
897 {0,0,0}};
898
899 static PyObject *SWIG_globals;
900 #ifdef __cplusplus
901 extern "C"
902 #endif
903 SWIGEXPORT(void) initiewinc() {
904 PyObject *m, *d;
905 SWIG_globals = SWIG_newvarlink();
906 m = Py_InitModule("iewinc", iewincMethods);
907 d = PyModule_GetDict(m);
908 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2));
909 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_NEWWINDOW2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_NEWWINDOW2));
910 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE));
911 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_PROGRESSCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_PROGRESSCHANGE));
912 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE));
913 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_TITLECHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_TITLECHANGE));
914 PyDict_SetItemString(d,"wxIEHTML_REFRESH_NORMAL", PyInt_FromLong((long) wxIEHTML_REFRESH_NORMAL));
915 PyDict_SetItemString(d,"wxIEHTML_REFRESH_IFEXPIRED", PyInt_FromLong((long) wxIEHTML_REFRESH_IFEXPIRED));
916 PyDict_SetItemString(d,"wxIEHTML_REFRESH_CONTINUE", PyInt_FromLong((long) wxIEHTML_REFRESH_CONTINUE));
917 PyDict_SetItemString(d,"wxIEHTML_REFRESH_COMPLETELY", PyInt_FromLong((long) wxIEHTML_REFRESH_COMPLETELY));
918
919
920 wxClassInfo::CleanUpClasses();
921 wxClassInfo::InitializeClasses();
922
923 {
924 int i;
925 for (i = 0; _swig_mapping[i].n1; i++)
926 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
927 }
928 }