]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.cpp
SWIG patch for "autodoc" and "docstring" %features
[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 "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initiewinc
54
55 #define SWIG_name "iewinc"
56
57 #include "wxPython.h"
58 #include "IEHtmlWin.h"
59 #include "pyistream.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_FromWideChar(_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_LoadStream(_swigobj,_swigarg0) (_swigobj->LoadStream(_swigarg0))
416 static PyObject *_wrap_wxIEHtmlWin_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
417 PyObject * _resultobj;
418 bool _result;
419 wxIEHtmlWin * _arg0;
420 wxInputStream * _arg1;
421 PyObject * _argo0 = 0;
422 wxPyInputStream * temp;
423 bool created;
424 PyObject * _obj1 = 0;
425 char *_kwnames[] = { "self","is", NULL };
426
427 self = self;
428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIEHtmlWin_LoadStream",_kwnames,&_argo0,&_obj1))
429 return NULL;
430 if (_argo0) {
431 if (_argo0 == Py_None) { _arg0 = NULL; }
432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_LoadStream. Expected _wxIEHtmlWin_p.");
434 return NULL;
435 }
436 }
437 {
438 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
439 _arg1 = temp->m_wxis;
440 created = FALSE;
441 } else {
442 _arg1 = wxPyCBInputStream_create(_obj1, FALSE);
443 if (_arg1 == NULL) {
444 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
445 return NULL;
446 }
447 created = TRUE;
448 }
449 }
450 {
451 PyThreadState* __tstate = wxPyBeginAllowThreads();
452 _result = (bool )wxIEHtmlWin_LoadStream(_arg0,_arg1);
453
454 wxPyEndAllowThreads(__tstate);
455 if (PyErr_Occurred()) return NULL;
456 } _resultobj = Py_BuildValue("i",_result);
457 {
458 if (created)
459 delete _arg1;
460 }
461 return _resultobj;
462 }
463
464 #define wxIEHtmlWin_SetCharset(_swigobj,_swigarg0) (_swigobj->SetCharset(_swigarg0))
465 static PyObject *_wrap_wxIEHtmlWin_SetCharset(PyObject *self, PyObject *args, PyObject *kwargs) {
466 PyObject * _resultobj;
467 wxIEHtmlWin * _arg0;
468 wxString * _arg1;
469 PyObject * _argo0 = 0;
470 PyObject * _obj1 = 0;
471 char *_kwnames[] = { "self","charset", NULL };
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIEHtmlWin_SetCharset",_kwnames,&_argo0,&_obj1))
475 return NULL;
476 if (_argo0) {
477 if (_argo0 == Py_None) { _arg0 = NULL; }
478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_SetCharset. Expected _wxIEHtmlWin_p.");
480 return NULL;
481 }
482 }
483 {
484 _arg1 = wxString_in_helper(_obj1);
485 if (_arg1 == NULL)
486 return NULL;
487 }
488 {
489 PyThreadState* __tstate = wxPyBeginAllowThreads();
490 wxIEHtmlWin_SetCharset(_arg0,*_arg1);
491
492 wxPyEndAllowThreads(__tstate);
493 if (PyErr_Occurred()) return NULL;
494 } Py_INCREF(Py_None);
495 _resultobj = Py_None;
496 {
497 if (_obj1)
498 delete _arg1;
499 }
500 return _resultobj;
501 }
502
503 #define wxIEHtmlWin_SetEditMode(_swigobj,_swigarg0) (_swigobj->SetEditMode(_swigarg0))
504 static PyObject *_wrap_wxIEHtmlWin_SetEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
505 PyObject * _resultobj;
506 wxIEHtmlWin * _arg0;
507 bool _arg1;
508 PyObject * _argo0 = 0;
509 int tempbool1;
510 char *_kwnames[] = { "self","seton", NULL };
511
512 self = self;
513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIEHtmlWin_SetEditMode",_kwnames,&_argo0,&tempbool1))
514 return NULL;
515 if (_argo0) {
516 if (_argo0 == Py_None) { _arg0 = NULL; }
517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_SetEditMode. Expected _wxIEHtmlWin_p.");
519 return NULL;
520 }
521 }
522 _arg1 = (bool ) tempbool1;
523 {
524 PyThreadState* __tstate = wxPyBeginAllowThreads();
525 wxIEHtmlWin_SetEditMode(_arg0,_arg1);
526
527 wxPyEndAllowThreads(__tstate);
528 if (PyErr_Occurred()) return NULL;
529 } Py_INCREF(Py_None);
530 _resultobj = Py_None;
531 return _resultobj;
532 }
533
534 #define wxIEHtmlWin_GetEditMode(_swigobj) (_swigobj->GetEditMode())
535 static PyObject *_wrap_wxIEHtmlWin_GetEditMode(PyObject *self, PyObject *args, PyObject *kwargs) {
536 PyObject * _resultobj;
537 bool _result;
538 wxIEHtmlWin * _arg0;
539 PyObject * _argo0 = 0;
540 char *_kwnames[] = { "self", NULL };
541
542 self = self;
543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GetEditMode",_kwnames,&_argo0))
544 return NULL;
545 if (_argo0) {
546 if (_argo0 == Py_None) { _arg0 = NULL; }
547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetEditMode. Expected _wxIEHtmlWin_p.");
549 return NULL;
550 }
551 }
552 {
553 PyThreadState* __tstate = wxPyBeginAllowThreads();
554 _result = (bool )wxIEHtmlWin_GetEditMode(_arg0);
555
556 wxPyEndAllowThreads(__tstate);
557 if (PyErr_Occurred()) return NULL;
558 } _resultobj = Py_BuildValue("i",_result);
559 return _resultobj;
560 }
561
562 #define wxIEHtmlWin_GetStringSelection(_swigobj,_swigarg0) (_swigobj->GetStringSelection(_swigarg0))
563 static PyObject *_wrap_wxIEHtmlWin_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
564 PyObject * _resultobj;
565 wxString * _result;
566 wxIEHtmlWin * _arg0;
567 bool _arg1 = (bool ) FALSE;
568 PyObject * _argo0 = 0;
569 int tempbool1 = (int) FALSE;
570 char *_kwnames[] = { "self","asHTML", NULL };
571
572 self = self;
573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxIEHtmlWin_GetStringSelection",_kwnames,&_argo0,&tempbool1))
574 return NULL;
575 if (_argo0) {
576 if (_argo0 == Py_None) { _arg0 = NULL; }
577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetStringSelection. Expected _wxIEHtmlWin_p.");
579 return NULL;
580 }
581 }
582 _arg1 = (bool ) tempbool1;
583 {
584 PyThreadState* __tstate = wxPyBeginAllowThreads();
585 _result = new wxString (wxIEHtmlWin_GetStringSelection(_arg0,_arg1));
586
587 wxPyEndAllowThreads(__tstate);
588 if (PyErr_Occurred()) return NULL;
589 }{
590 #if wxUSE_UNICODE
591 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
592 #else
593 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
594 #endif
595 }
596 {
597 delete _result;
598 }
599 return _resultobj;
600 }
601
602 #define wxIEHtmlWin_GetText(_swigobj,_swigarg0) (_swigobj->GetText(_swigarg0))
603 static PyObject *_wrap_wxIEHtmlWin_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
604 PyObject * _resultobj;
605 wxString * _result;
606 wxIEHtmlWin * _arg0;
607 bool _arg1 = (bool ) FALSE;
608 PyObject * _argo0 = 0;
609 int tempbool1 = (int) FALSE;
610 char *_kwnames[] = { "self","asHTML", NULL };
611
612 self = self;
613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxIEHtmlWin_GetText",_kwnames,&_argo0,&tempbool1))
614 return NULL;
615 if (_argo0) {
616 if (_argo0 == Py_None) { _arg0 = NULL; }
617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GetText. Expected _wxIEHtmlWin_p.");
619 return NULL;
620 }
621 }
622 _arg1 = (bool ) tempbool1;
623 {
624 PyThreadState* __tstate = wxPyBeginAllowThreads();
625 _result = new wxString (wxIEHtmlWin_GetText(_arg0,_arg1));
626
627 wxPyEndAllowThreads(__tstate);
628 if (PyErr_Occurred()) return NULL;
629 }{
630 #if wxUSE_UNICODE
631 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
632 #else
633 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
634 #endif
635 }
636 {
637 delete _result;
638 }
639 return _resultobj;
640 }
641
642 #define wxIEHtmlWin_GoBack(_swigobj) (_swigobj->GoBack())
643 static PyObject *_wrap_wxIEHtmlWin_GoBack(PyObject *self, PyObject *args, PyObject *kwargs) {
644 PyObject * _resultobj;
645 bool _result;
646 wxIEHtmlWin * _arg0;
647 PyObject * _argo0 = 0;
648 char *_kwnames[] = { "self", NULL };
649
650 self = self;
651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoBack",_kwnames,&_argo0))
652 return NULL;
653 if (_argo0) {
654 if (_argo0 == Py_None) { _arg0 = NULL; }
655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoBack. Expected _wxIEHtmlWin_p.");
657 return NULL;
658 }
659 }
660 {
661 PyThreadState* __tstate = wxPyBeginAllowThreads();
662 _result = (bool )wxIEHtmlWin_GoBack(_arg0);
663
664 wxPyEndAllowThreads(__tstate);
665 if (PyErr_Occurred()) return NULL;
666 } _resultobj = Py_BuildValue("i",_result);
667 return _resultobj;
668 }
669
670 #define wxIEHtmlWin_GoForward(_swigobj) (_swigobj->GoForward())
671 static PyObject *_wrap_wxIEHtmlWin_GoForward(PyObject *self, PyObject *args, PyObject *kwargs) {
672 PyObject * _resultobj;
673 bool _result;
674 wxIEHtmlWin * _arg0;
675 PyObject * _argo0 = 0;
676 char *_kwnames[] = { "self", NULL };
677
678 self = self;
679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoForward",_kwnames,&_argo0))
680 return NULL;
681 if (_argo0) {
682 if (_argo0 == Py_None) { _arg0 = NULL; }
683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoForward. Expected _wxIEHtmlWin_p.");
685 return NULL;
686 }
687 }
688 {
689 PyThreadState* __tstate = wxPyBeginAllowThreads();
690 _result = (bool )wxIEHtmlWin_GoForward(_arg0);
691
692 wxPyEndAllowThreads(__tstate);
693 if (PyErr_Occurred()) return NULL;
694 } _resultobj = Py_BuildValue("i",_result);
695 return _resultobj;
696 }
697
698 #define wxIEHtmlWin_GoHome(_swigobj) (_swigobj->GoHome())
699 static PyObject *_wrap_wxIEHtmlWin_GoHome(PyObject *self, PyObject *args, PyObject *kwargs) {
700 PyObject * _resultobj;
701 bool _result;
702 wxIEHtmlWin * _arg0;
703 PyObject * _argo0 = 0;
704 char *_kwnames[] = { "self", NULL };
705
706 self = self;
707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoHome",_kwnames,&_argo0))
708 return NULL;
709 if (_argo0) {
710 if (_argo0 == Py_None) { _arg0 = NULL; }
711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoHome. Expected _wxIEHtmlWin_p.");
713 return NULL;
714 }
715 }
716 {
717 PyThreadState* __tstate = wxPyBeginAllowThreads();
718 _result = (bool )wxIEHtmlWin_GoHome(_arg0);
719
720 wxPyEndAllowThreads(__tstate);
721 if (PyErr_Occurred()) return NULL;
722 } _resultobj = Py_BuildValue("i",_result);
723 return _resultobj;
724 }
725
726 #define wxIEHtmlWin_GoSearch(_swigobj) (_swigobj->GoSearch())
727 static PyObject *_wrap_wxIEHtmlWin_GoSearch(PyObject *self, PyObject *args, PyObject *kwargs) {
728 PyObject * _resultobj;
729 bool _result;
730 wxIEHtmlWin * _arg0;
731 PyObject * _argo0 = 0;
732 char *_kwnames[] = { "self", NULL };
733
734 self = self;
735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_GoSearch",_kwnames,&_argo0))
736 return NULL;
737 if (_argo0) {
738 if (_argo0 == Py_None) { _arg0 = NULL; }
739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_GoSearch. Expected _wxIEHtmlWin_p.");
741 return NULL;
742 }
743 }
744 {
745 PyThreadState* __tstate = wxPyBeginAllowThreads();
746 _result = (bool )wxIEHtmlWin_GoSearch(_arg0);
747
748 wxPyEndAllowThreads(__tstate);
749 if (PyErr_Occurred()) return NULL;
750 } _resultobj = Py_BuildValue("i",_result);
751 return _resultobj;
752 }
753
754 #define wxIEHtmlWin_RefreshPage(_swigobj,_swigarg0) (_swigobj->Refresh(_swigarg0))
755 static PyObject *_wrap_wxIEHtmlWin_RefreshPage(PyObject *self, PyObject *args, PyObject *kwargs) {
756 PyObject * _resultobj;
757 bool _result;
758 wxIEHtmlWin * _arg0;
759 wxIEHtmlRefreshLevel _arg1;
760 PyObject * _argo0 = 0;
761 char *_kwnames[] = { "self","level", NULL };
762
763 self = self;
764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIEHtmlWin_RefreshPage",_kwnames,&_argo0,&_arg1))
765 return NULL;
766 if (_argo0) {
767 if (_argo0 == Py_None) { _arg0 = NULL; }
768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_RefreshPage. Expected _wxIEHtmlWin_p.");
770 return NULL;
771 }
772 }
773 {
774 PyThreadState* __tstate = wxPyBeginAllowThreads();
775 _result = (bool )wxIEHtmlWin_RefreshPage(_arg0,_arg1);
776
777 wxPyEndAllowThreads(__tstate);
778 if (PyErr_Occurred()) return NULL;
779 } _resultobj = Py_BuildValue("i",_result);
780 return _resultobj;
781 }
782
783 #define wxIEHtmlWin_Stop(_swigobj) (_swigobj->Stop())
784 static PyObject *_wrap_wxIEHtmlWin_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
785 PyObject * _resultobj;
786 bool _result;
787 wxIEHtmlWin * _arg0;
788 PyObject * _argo0 = 0;
789 char *_kwnames[] = { "self", NULL };
790
791 self = self;
792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIEHtmlWin_Stop",_kwnames,&_argo0))
793 return NULL;
794 if (_argo0) {
795 if (_argo0 == Py_None) { _arg0 = NULL; }
796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIEHtmlWin_p")) {
797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIEHtmlWin_Stop. Expected _wxIEHtmlWin_p.");
798 return NULL;
799 }
800 }
801 {
802 PyThreadState* __tstate = wxPyBeginAllowThreads();
803 _result = (bool )wxIEHtmlWin_Stop(_arg0);
804
805 wxPyEndAllowThreads(__tstate);
806 if (PyErr_Occurred()) return NULL;
807 } _resultobj = Py_BuildValue("i",_result);
808 return _resultobj;
809 }
810
811 static PyMethodDef iewincMethods[] = {
812 { "wxIEHtmlWin_Stop", (PyCFunction) _wrap_wxIEHtmlWin_Stop, METH_VARARGS | METH_KEYWORDS },
813 { "wxIEHtmlWin_RefreshPage", (PyCFunction) _wrap_wxIEHtmlWin_RefreshPage, METH_VARARGS | METH_KEYWORDS },
814 { "wxIEHtmlWin_GoSearch", (PyCFunction) _wrap_wxIEHtmlWin_GoSearch, METH_VARARGS | METH_KEYWORDS },
815 { "wxIEHtmlWin_GoHome", (PyCFunction) _wrap_wxIEHtmlWin_GoHome, METH_VARARGS | METH_KEYWORDS },
816 { "wxIEHtmlWin_GoForward", (PyCFunction) _wrap_wxIEHtmlWin_GoForward, METH_VARARGS | METH_KEYWORDS },
817 { "wxIEHtmlWin_GoBack", (PyCFunction) _wrap_wxIEHtmlWin_GoBack, METH_VARARGS | METH_KEYWORDS },
818 { "wxIEHtmlWin_GetText", (PyCFunction) _wrap_wxIEHtmlWin_GetText, METH_VARARGS | METH_KEYWORDS },
819 { "wxIEHtmlWin_GetStringSelection", (PyCFunction) _wrap_wxIEHtmlWin_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
820 { "wxIEHtmlWin_GetEditMode", (PyCFunction) _wrap_wxIEHtmlWin_GetEditMode, METH_VARARGS | METH_KEYWORDS },
821 { "wxIEHtmlWin_SetEditMode", (PyCFunction) _wrap_wxIEHtmlWin_SetEditMode, METH_VARARGS | METH_KEYWORDS },
822 { "wxIEHtmlWin_SetCharset", (PyCFunction) _wrap_wxIEHtmlWin_SetCharset, METH_VARARGS | METH_KEYWORDS },
823 { "wxIEHtmlWin_LoadStream", (PyCFunction) _wrap_wxIEHtmlWin_LoadStream, METH_VARARGS | METH_KEYWORDS },
824 { "wxIEHtmlWin_LoadString", (PyCFunction) _wrap_wxIEHtmlWin_LoadString, METH_VARARGS | METH_KEYWORDS },
825 { "wxIEHtmlWin_LoadUrl", (PyCFunction) _wrap_wxIEHtmlWin_LoadUrl, METH_VARARGS | METH_KEYWORDS },
826 { "new_wxIEHtmlWin", (PyCFunction) _wrap_new_wxIEHtmlWin, METH_VARARGS | METH_KEYWORDS },
827 { "wxMSHTMLEvent_GetLong2", (PyCFunction) _wrap_wxMSHTMLEvent_GetLong2, METH_VARARGS | METH_KEYWORDS },
828 { "wxMSHTMLEvent_GetLong1", (PyCFunction) _wrap_wxMSHTMLEvent_GetLong1, METH_VARARGS | METH_KEYWORDS },
829 { "wxMSHTMLEvent_GetText1", (PyCFunction) _wrap_wxMSHTMLEvent_GetText1, METH_VARARGS | METH_KEYWORDS },
830 { "new_wxMSHTMLEvent", (PyCFunction) _wrap_new_wxMSHTMLEvent, METH_VARARGS | METH_KEYWORDS },
831 { NULL, NULL }
832 };
833 #ifdef __cplusplus
834 }
835 #endif
836 /*
837 * This table is used by the pointer type-checker
838 */
839 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
840 { "_wxEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxEvent},
841 { "_signed_long","_long",0},
842 { "_wxPrintQuality","_wxCoord",0},
843 { "_wxPrintQuality","_int",0},
844 { "_wxPrintQuality","_signed_int",0},
845 { "_wxPrintQuality","_unsigned_int",0},
846 { "_wxPrintQuality","_wxWindowID",0},
847 { "_wxPrintQuality","_uint",0},
848 { "_wxPrintQuality","_EBool",0},
849 { "_wxPrintQuality","_size_t",0},
850 { "_wxPrintQuality","_time_t",0},
851 { "_wxNotifyEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxNotifyEvent},
852 { "_byte","_unsigned_char",0},
853 { "_long","_unsigned_long",0},
854 { "_long","_signed_long",0},
855 { "_size_t","_wxCoord",0},
856 { "_size_t","_wxPrintQuality",0},
857 { "_size_t","_time_t",0},
858 { "_size_t","_unsigned_int",0},
859 { "_size_t","_int",0},
860 { "_size_t","_wxWindowID",0},
861 { "_size_t","_uint",0},
862 { "_uint","_wxCoord",0},
863 { "_uint","_wxPrintQuality",0},
864 { "_uint","_time_t",0},
865 { "_uint","_size_t",0},
866 { "_uint","_unsigned_int",0},
867 { "_uint","_int",0},
868 { "_uint","_wxWindowID",0},
869 { "_wxChar","_char",0},
870 { "_wxCommandEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxCommandEvent},
871 { "_char","_wxChar",0},
872 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
873 { "_EBool","_wxCoord",0},
874 { "_EBool","_wxPrintQuality",0},
875 { "_EBool","_signed_int",0},
876 { "_EBool","_int",0},
877 { "_EBool","_wxWindowID",0},
878 { "_unsigned_long","_long",0},
879 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
880 { "_signed_int","_wxCoord",0},
881 { "_signed_int","_wxPrintQuality",0},
882 { "_signed_int","_EBool",0},
883 { "_signed_int","_wxWindowID",0},
884 { "_signed_int","_int",0},
885 { "_WXTYPE","_wxDateTime_t",0},
886 { "_WXTYPE","_short",0},
887 { "_WXTYPE","_signed_short",0},
888 { "_WXTYPE","_unsigned_short",0},
889 { "_unsigned_short","_wxDateTime_t",0},
890 { "_unsigned_short","_WXTYPE",0},
891 { "_unsigned_short","_short",0},
892 { "_wxObject","_wxIEHtmlWin",SwigwxIEHtmlWinTowxObject},
893 { "_wxObject","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxObject},
894 { "_signed_short","_WXTYPE",0},
895 { "_signed_short","_short",0},
896 { "_unsigned_char","_byte",0},
897 { "_unsigned_int","_wxCoord",0},
898 { "_unsigned_int","_wxPrintQuality",0},
899 { "_unsigned_int","_time_t",0},
900 { "_unsigned_int","_size_t",0},
901 { "_unsigned_int","_uint",0},
902 { "_unsigned_int","_wxWindowID",0},
903 { "_unsigned_int","_int",0},
904 { "_short","_wxDateTime_t",0},
905 { "_short","_WXTYPE",0},
906 { "_short","_unsigned_short",0},
907 { "_short","_signed_short",0},
908 { "_wxWindowID","_wxCoord",0},
909 { "_wxWindowID","_wxPrintQuality",0},
910 { "_wxWindowID","_time_t",0},
911 { "_wxWindowID","_size_t",0},
912 { "_wxWindowID","_EBool",0},
913 { "_wxWindowID","_uint",0},
914 { "_wxWindowID","_int",0},
915 { "_wxWindowID","_signed_int",0},
916 { "_wxWindowID","_unsigned_int",0},
917 { "_int","_wxCoord",0},
918 { "_int","_wxPrintQuality",0},
919 { "_int","_time_t",0},
920 { "_int","_size_t",0},
921 { "_int","_EBool",0},
922 { "_int","_uint",0},
923 { "_int","_wxWindowID",0},
924 { "_int","_unsigned_int",0},
925 { "_int","_signed_int",0},
926 { "_wxDateTime_t","_unsigned_short",0},
927 { "_wxDateTime_t","_short",0},
928 { "_wxDateTime_t","_WXTYPE",0},
929 { "_time_t","_wxCoord",0},
930 { "_time_t","_wxPrintQuality",0},
931 { "_time_t","_unsigned_int",0},
932 { "_time_t","_int",0},
933 { "_time_t","_wxWindowID",0},
934 { "_time_t","_uint",0},
935 { "_time_t","_size_t",0},
936 { "_wxCoord","_int",0},
937 { "_wxCoord","_signed_int",0},
938 { "_wxCoord","_unsigned_int",0},
939 { "_wxCoord","_wxWindowID",0},
940 { "_wxCoord","_uint",0},
941 { "_wxCoord","_EBool",0},
942 { "_wxCoord","_size_t",0},
943 { "_wxCoord","_time_t",0},
944 { "_wxCoord","_wxPrintQuality",0},
945 { "_wxEvtHandler","_wxIEHtmlWin",SwigwxIEHtmlWinTowxEvtHandler},
946 { "_wxWindow","_wxIEHtmlWin",SwigwxIEHtmlWinTowxWindow},
947 {0,0,0}};
948
949 static PyObject *SWIG_globals;
950 #ifdef __cplusplus
951 extern "C"
952 #endif
953 SWIGEXPORT(void) initiewinc() {
954 PyObject *m, *d;
955 SWIG_globals = SWIG_newvarlink();
956 m = Py_InitModule("iewinc", iewincMethods);
957 d = PyModule_GetDict(m);
958 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2));
959 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_NEWWINDOW2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_NEWWINDOW2));
960 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE));
961 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_PROGRESSCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_PROGRESSCHANGE));
962 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE));
963 PyDict_SetItemString(d,"wxEVT_COMMAND_MSHTML_TITLECHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_TITLECHANGE));
964 PyDict_SetItemString(d,"wxIEHTML_REFRESH_NORMAL", PyInt_FromLong((long) wxIEHTML_REFRESH_NORMAL));
965 PyDict_SetItemString(d,"wxIEHTML_REFRESH_IFEXPIRED", PyInt_FromLong((long) wxIEHTML_REFRESH_IFEXPIRED));
966 PyDict_SetItemString(d,"wxIEHTML_REFRESH_CONTINUE", PyInt_FromLong((long) wxIEHTML_REFRESH_CONTINUE));
967 PyDict_SetItemString(d,"wxIEHTML_REFRESH_COMPLETELY", PyInt_FromLong((long) wxIEHTML_REFRESH_COMPLETELY));
968
969
970 {
971 int i;
972 for (i = 0; _swig_mapping[i].n1; i++)
973 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
974 }
975 }