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