2 * FILE : contrib/iewin/iewin.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
54 #define SWIG_init initiewinc
56 #define SWIG_name "iewinc"
59 #include "IEHtmlWin.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
90 static void *SwigwxMSHTMLEventTowxNotifyEvent(void *ptr
) {
93 src
= (wxMSHTMLEvent
*) ptr
;
94 dest
= (wxNotifyEvent
*) src
;
98 static void *SwigwxMSHTMLEventTowxCommandEvent(void *ptr
) {
100 wxCommandEvent
*dest
;
101 src
= (wxMSHTMLEvent
*) ptr
;
102 dest
= (wxCommandEvent
*) src
;
103 return (void *) dest
;
106 static void *SwigwxMSHTMLEventTowxEvent(void *ptr
) {
109 src
= (wxMSHTMLEvent
*) ptr
;
110 dest
= (wxEvent
*) src
;
111 return (void *) dest
;
114 static void *SwigwxMSHTMLEventTowxObject(void *ptr
) {
117 src
= (wxMSHTMLEvent
*) ptr
;
118 dest
= (wxObject
*) src
;
119 return (void *) dest
;
122 #define new_wxMSHTMLEvent(_swigarg0,_swigarg1) (new wxMSHTMLEvent(_swigarg0,_swigarg1))
123 static PyObject
*_wrap_new_wxMSHTMLEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
124 PyObject
* _resultobj
;
125 wxMSHTMLEvent
* _result
;
126 wxEventType _arg0
= (wxEventType
) wxEVT_NULL
;
127 int _arg1
= (int ) 0;
128 char *_kwnames
[] = { "commandType","id", NULL
};
132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:new_wxMSHTMLEvent",_kwnames
,&_arg0
,&_arg1
))
135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
136 _result
= (wxMSHTMLEvent
*)new_wxMSHTMLEvent(_arg0
,_arg1
);
138 wxPyEndAllowThreads(__tstate
);
139 if (PyErr_Occurred()) return NULL
;
141 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMSHTMLEvent_p");
142 _resultobj
= Py_BuildValue("s",_ptemp
);
145 _resultobj
= Py_None
;
150 #define wxMSHTMLEvent_GetText(_swigobj) (_swigobj->GetText())
151 static PyObject
*_wrap_wxMSHTMLEvent_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
152 PyObject
* _resultobj
;
154 wxMSHTMLEvent
* _arg0
;
155 PyObject
* _argo0
= 0;
156 char *_kwnames
[] = { "self", NULL
};
159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetText",_kwnames
,&_argo0
))
162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMSHTMLEvent_p")) {
164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMSHTMLEvent_GetText. Expected _wxMSHTMLEvent_p.");
169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
170 _result
= new wxString (wxMSHTMLEvent_GetText(_arg0
));
172 wxPyEndAllowThreads(__tstate
);
173 if (PyErr_Occurred()) return NULL
;
176 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
178 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
187 #define wxMSHTMLEvent_GetLong1(_swigobj) (_swigobj->GetLong1())
188 static PyObject
*_wrap_wxMSHTMLEvent_GetLong1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
189 PyObject
* _resultobj
;
191 wxMSHTMLEvent
* _arg0
;
192 PyObject
* _argo0
= 0;
193 char *_kwnames
[] = { "self", NULL
};
196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong1",_kwnames
,&_argo0
))
199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMSHTMLEvent_p")) {
201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMSHTMLEvent_GetLong1. Expected _wxMSHTMLEvent_p.");
206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
207 _result
= (long )wxMSHTMLEvent_GetLong1(_arg0
);
209 wxPyEndAllowThreads(__tstate
);
210 if (PyErr_Occurred()) return NULL
;
211 } _resultobj
= Py_BuildValue("l",_result
);
215 #define wxMSHTMLEvent_GetLong2(_swigobj) (_swigobj->GetLong2())
216 static PyObject
*_wrap_wxMSHTMLEvent_GetLong2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
217 PyObject
* _resultobj
;
219 wxMSHTMLEvent
* _arg0
;
220 PyObject
* _argo0
= 0;
221 char *_kwnames
[] = { "self", NULL
};
224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong2",_kwnames
,&_argo0
))
227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMSHTMLEvent_p")) {
229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMSHTMLEvent_GetLong2. Expected _wxMSHTMLEvent_p.");
234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
235 _result
= (long )wxMSHTMLEvent_GetLong2(_arg0
);
237 wxPyEndAllowThreads(__tstate
);
238 if (PyErr_Occurred()) return NULL
;
239 } _resultobj
= Py_BuildValue("l",_result
);
243 static void *SwigwxIEHtmlWinTowxWindow(void *ptr
) {
246 src
= (wxIEHtmlWin
*) ptr
;
247 dest
= (wxWindow
*) src
;
248 return (void *) dest
;
251 static void *SwigwxIEHtmlWinTowxEvtHandler(void *ptr
) {
254 src
= (wxIEHtmlWin
*) ptr
;
255 dest
= (wxEvtHandler
*) src
;
256 return (void *) dest
;
259 static void *SwigwxIEHtmlWinTowxObject(void *ptr
) {
262 src
= (wxIEHtmlWin
*) ptr
;
263 dest
= (wxObject
*) src
;
264 return (void *) dest
;
267 #define new_wxIEHtmlWin(_swigarg0,_swigarg1) (new wxIEHtmlWin(_swigarg0,_swigarg1))
268 static PyObject
*_wrap_new_wxIEHtmlWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
269 PyObject
* _resultobj
;
270 wxIEHtmlWin
* _result
;
272 wxWindowID _arg1
= (wxWindowID
) -1;
273 PyObject
* _argo0
= 0;
274 char *_kwnames
[] = { "parent","id", NULL
};
278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxIEHtmlWin",_kwnames
,&_argo0
,&_arg1
))
281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIEHtmlWin. Expected _wxWindow_p.");
288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
289 _result
= (wxIEHtmlWin
*)new_wxIEHtmlWin(_arg0
,_arg1
);
291 wxPyEndAllowThreads(__tstate
);
292 if (PyErr_Occurred()) return NULL
;
294 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIEHtmlWin_p");
295 _resultobj
= Py_BuildValue("s",_ptemp
);
298 _resultobj
= Py_None
;
303 #define wxIEHtmlWin_LoadUrl(_swigobj,_swigarg0) (_swigobj->LoadUrl(_swigarg0))
304 static PyObject
*_wrap_wxIEHtmlWin_LoadUrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
305 PyObject
* _resultobj
;
308 PyObject
* _argo0
= 0;
309 PyObject
* _obj1
= 0;
310 char *_kwnames
[] = { "self","arg2", NULL
};
313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadUrl",_kwnames
,&_argo0
,&_obj1
))
316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_LoadUrl. Expected _wxIEHtmlWin_p.");
323 _arg1
= wxString_in_helper(_obj1
);
328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
329 wxIEHtmlWin_LoadUrl(_arg0
,*_arg1
);
331 wxPyEndAllowThreads(__tstate
);
332 if (PyErr_Occurred()) return NULL
;
333 } Py_INCREF(Py_None
);
334 _resultobj
= Py_None
;
342 #define wxIEHtmlWin_LoadString(_swigobj,_swigarg0) (_swigobj->LoadString(_swigarg0))
343 static PyObject
*_wrap_wxIEHtmlWin_LoadString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
344 PyObject
* _resultobj
;
348 PyObject
* _argo0
= 0;
349 PyObject
* _obj1
= 0;
350 char *_kwnames
[] = { "self","html", NULL
};
353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadString",_kwnames
,&_argo0
,&_obj1
))
356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_LoadString. Expected _wxIEHtmlWin_p.");
363 _arg1
= wxString_in_helper(_obj1
);
368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
369 _result
= (bool )wxIEHtmlWin_LoadString(_arg0
,*_arg1
);
371 wxPyEndAllowThreads(__tstate
);
372 if (PyErr_Occurred()) return NULL
;
373 } _resultobj
= Py_BuildValue("i",_result
);
381 #define wxIEHtmlWin_SetCharset(_swigobj,_swigarg0) (_swigobj->SetCharset(_swigarg0))
382 static PyObject
*_wrap_wxIEHtmlWin_SetCharset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
383 PyObject
* _resultobj
;
386 PyObject
* _argo0
= 0;
387 PyObject
* _obj1
= 0;
388 char *_kwnames
[] = { "self","charset", NULL
};
391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_SetCharset",_kwnames
,&_argo0
,&_obj1
))
394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_SetCharset. Expected _wxIEHtmlWin_p.");
401 _arg1
= wxString_in_helper(_obj1
);
406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
407 wxIEHtmlWin_SetCharset(_arg0
,*_arg1
);
409 wxPyEndAllowThreads(__tstate
);
410 if (PyErr_Occurred()) return NULL
;
411 } Py_INCREF(Py_None
);
412 _resultobj
= Py_None
;
420 #define wxIEHtmlWin_SetEditMode(_swigobj,_swigarg0) (_swigobj->SetEditMode(_swigarg0))
421 static PyObject
*_wrap_wxIEHtmlWin_SetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
422 PyObject
* _resultobj
;
425 PyObject
* _argo0
= 0;
427 char *_kwnames
[] = { "self","seton", NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_SetEditMode",_kwnames
,&_argo0
,&tempbool1
))
433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_SetEditMode. Expected _wxIEHtmlWin_p.");
439 _arg1
= (bool ) tempbool1
;
441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
442 wxIEHtmlWin_SetEditMode(_arg0
,_arg1
);
444 wxPyEndAllowThreads(__tstate
);
445 if (PyErr_Occurred()) return NULL
;
446 } Py_INCREF(Py_None
);
447 _resultobj
= Py_None
;
451 #define wxIEHtmlWin_GetEditMode(_swigobj) (_swigobj->GetEditMode())
452 static PyObject
*_wrap_wxIEHtmlWin_GetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
453 PyObject
* _resultobj
;
456 PyObject
* _argo0
= 0;
457 char *_kwnames
[] = { "self", NULL
};
460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GetEditMode",_kwnames
,&_argo0
))
463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GetEditMode. Expected _wxIEHtmlWin_p.");
470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
471 _result
= (bool )wxIEHtmlWin_GetEditMode(_arg0
);
473 wxPyEndAllowThreads(__tstate
);
474 if (PyErr_Occurred()) return NULL
;
475 } _resultobj
= Py_BuildValue("i",_result
);
479 #define wxIEHtmlWin_GetStringSelection(_swigobj,_swigarg0) (_swigobj->GetStringSelection(_swigarg0))
480 static PyObject
*_wrap_wxIEHtmlWin_GetStringSelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
481 PyObject
* _resultobj
;
484 bool _arg1
= (bool ) FALSE
;
485 PyObject
* _argo0
= 0;
486 int tempbool1
= (int) FALSE
;
487 char *_kwnames
[] = { "self","asHTML", NULL
};
490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetStringSelection",_kwnames
,&_argo0
,&tempbool1
))
493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GetStringSelection. Expected _wxIEHtmlWin_p.");
499 _arg1
= (bool ) tempbool1
;
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 _result
= new wxString (wxIEHtmlWin_GetStringSelection(_arg0
,_arg1
));
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
508 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
510 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
519 #define wxIEHtmlWin_GetText(_swigobj,_swigarg0) (_swigobj->GetText(_swigarg0))
520 static PyObject
*_wrap_wxIEHtmlWin_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
521 PyObject
* _resultobj
;
524 bool _arg1
= (bool ) FALSE
;
525 PyObject
* _argo0
= 0;
526 int tempbool1
= (int) FALSE
;
527 char *_kwnames
[] = { "self","asHTML", NULL
};
530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetText",_kwnames
,&_argo0
,&tempbool1
))
533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GetText. Expected _wxIEHtmlWin_p.");
539 _arg1
= (bool ) tempbool1
;
541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
542 _result
= new wxString (wxIEHtmlWin_GetText(_arg0
,_arg1
));
544 wxPyEndAllowThreads(__tstate
);
545 if (PyErr_Occurred()) return NULL
;
548 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
550 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
559 #define wxIEHtmlWin_GoBack(_swigobj) (_swigobj->GoBack())
560 static PyObject
*_wrap_wxIEHtmlWin_GoBack(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
561 PyObject
* _resultobj
;
564 PyObject
* _argo0
= 0;
565 char *_kwnames
[] = { "self", NULL
};
568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoBack",_kwnames
,&_argo0
))
571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GoBack. Expected _wxIEHtmlWin_p.");
578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
579 _result
= (bool )wxIEHtmlWin_GoBack(_arg0
);
581 wxPyEndAllowThreads(__tstate
);
582 if (PyErr_Occurred()) return NULL
;
583 } _resultobj
= Py_BuildValue("i",_result
);
587 #define wxIEHtmlWin_GoForward(_swigobj) (_swigobj->GoForward())
588 static PyObject
*_wrap_wxIEHtmlWin_GoForward(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
589 PyObject
* _resultobj
;
592 PyObject
* _argo0
= 0;
593 char *_kwnames
[] = { "self", NULL
};
596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoForward",_kwnames
,&_argo0
))
599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GoForward. Expected _wxIEHtmlWin_p.");
606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
607 _result
= (bool )wxIEHtmlWin_GoForward(_arg0
);
609 wxPyEndAllowThreads(__tstate
);
610 if (PyErr_Occurred()) return NULL
;
611 } _resultobj
= Py_BuildValue("i",_result
);
615 #define wxIEHtmlWin_GoHome(_swigobj) (_swigobj->GoHome())
616 static PyObject
*_wrap_wxIEHtmlWin_GoHome(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
617 PyObject
* _resultobj
;
620 PyObject
* _argo0
= 0;
621 char *_kwnames
[] = { "self", NULL
};
624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoHome",_kwnames
,&_argo0
))
627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_GoHome. Expected _wxIEHtmlWin_p.");
634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
635 _result
= (bool )wxIEHtmlWin_GoHome(_arg0
);
637 wxPyEndAllowThreads(__tstate
);
638 if (PyErr_Occurred()) return NULL
;
639 } _resultobj
= Py_BuildValue("i",_result
);
643 #define wxIEHtmlWin_GoSearch(_swigobj) (_swigobj->GoSearch())
644 static PyObject
*_wrap_wxIEHtmlWin_GoSearch(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
645 PyObject
* _resultobj
;
648 PyObject
* _argo0
= 0;
649 char *_kwnames
[] = { "self", NULL
};
652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoSearch",_kwnames
,&_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_GoSearch. Expected _wxIEHtmlWin_p.");
662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
663 _result
= (bool )wxIEHtmlWin_GoSearch(_arg0
);
665 wxPyEndAllowThreads(__tstate
);
666 if (PyErr_Occurred()) return NULL
;
667 } _resultobj
= Py_BuildValue("i",_result
);
671 #define wxIEHtmlWin_Refresh(_swigobj,_swigarg0) (_swigobj->Refresh(_swigarg0))
672 static PyObject
*_wrap_wxIEHtmlWin_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
673 PyObject
* _resultobj
;
676 wxIEHtmlRefreshLevel _arg1
;
677 PyObject
* _argo0
= 0;
678 char *_kwnames
[] = { "self","level", NULL
};
681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_Refresh",_kwnames
,&_argo0
,&_arg1
))
684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_Refresh. Expected _wxIEHtmlWin_p.");
691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
692 _result
= (bool )wxIEHtmlWin_Refresh(_arg0
,_arg1
);
694 wxPyEndAllowThreads(__tstate
);
695 if (PyErr_Occurred()) return NULL
;
696 } _resultobj
= Py_BuildValue("i",_result
);
700 #define wxIEHtmlWin_Stop(_swigobj) (_swigobj->Stop())
701 static PyObject
*_wrap_wxIEHtmlWin_Stop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
702 PyObject
* _resultobj
;
705 PyObject
* _argo0
= 0;
706 char *_kwnames
[] = { "self", NULL
};
709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_Stop",_kwnames
,&_argo0
))
712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIEHtmlWin_p")) {
714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIEHtmlWin_Stop. Expected _wxIEHtmlWin_p.");
719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
720 _result
= (bool )wxIEHtmlWin_Stop(_arg0
);
722 wxPyEndAllowThreads(__tstate
);
723 if (PyErr_Occurred()) return NULL
;
724 } _resultobj
= Py_BuildValue("i",_result
);
728 static PyMethodDef iewincMethods
[] = {
729 { "wxIEHtmlWin_Stop", (PyCFunction
) _wrap_wxIEHtmlWin_Stop
, METH_VARARGS
| METH_KEYWORDS
},
730 { "wxIEHtmlWin_Refresh", (PyCFunction
) _wrap_wxIEHtmlWin_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
731 { "wxIEHtmlWin_GoSearch", (PyCFunction
) _wrap_wxIEHtmlWin_GoSearch
, METH_VARARGS
| METH_KEYWORDS
},
732 { "wxIEHtmlWin_GoHome", (PyCFunction
) _wrap_wxIEHtmlWin_GoHome
, METH_VARARGS
| METH_KEYWORDS
},
733 { "wxIEHtmlWin_GoForward", (PyCFunction
) _wrap_wxIEHtmlWin_GoForward
, METH_VARARGS
| METH_KEYWORDS
},
734 { "wxIEHtmlWin_GoBack", (PyCFunction
) _wrap_wxIEHtmlWin_GoBack
, METH_VARARGS
| METH_KEYWORDS
},
735 { "wxIEHtmlWin_GetText", (PyCFunction
) _wrap_wxIEHtmlWin_GetText
, METH_VARARGS
| METH_KEYWORDS
},
736 { "wxIEHtmlWin_GetStringSelection", (PyCFunction
) _wrap_wxIEHtmlWin_GetStringSelection
, METH_VARARGS
| METH_KEYWORDS
},
737 { "wxIEHtmlWin_GetEditMode", (PyCFunction
) _wrap_wxIEHtmlWin_GetEditMode
, METH_VARARGS
| METH_KEYWORDS
},
738 { "wxIEHtmlWin_SetEditMode", (PyCFunction
) _wrap_wxIEHtmlWin_SetEditMode
, METH_VARARGS
| METH_KEYWORDS
},
739 { "wxIEHtmlWin_SetCharset", (PyCFunction
) _wrap_wxIEHtmlWin_SetCharset
, METH_VARARGS
| METH_KEYWORDS
},
740 { "wxIEHtmlWin_LoadString", (PyCFunction
) _wrap_wxIEHtmlWin_LoadString
, METH_VARARGS
| METH_KEYWORDS
},
741 { "wxIEHtmlWin_LoadUrl", (PyCFunction
) _wrap_wxIEHtmlWin_LoadUrl
, METH_VARARGS
| METH_KEYWORDS
},
742 { "new_wxIEHtmlWin", (PyCFunction
) _wrap_new_wxIEHtmlWin
, METH_VARARGS
| METH_KEYWORDS
},
743 { "wxMSHTMLEvent_GetLong2", (PyCFunction
) _wrap_wxMSHTMLEvent_GetLong2
, METH_VARARGS
| METH_KEYWORDS
},
744 { "wxMSHTMLEvent_GetLong1", (PyCFunction
) _wrap_wxMSHTMLEvent_GetLong1
, METH_VARARGS
| METH_KEYWORDS
},
745 { "wxMSHTMLEvent_GetText", (PyCFunction
) _wrap_wxMSHTMLEvent_GetText
, METH_VARARGS
| METH_KEYWORDS
},
746 { "new_wxMSHTMLEvent", (PyCFunction
) _wrap_new_wxMSHTMLEvent
, METH_VARARGS
| METH_KEYWORDS
},
753 * This table is used by the pointer type-checker
755 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
756 { "_wxEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxEvent
},
757 { "_signed_long","_long",0},
758 { "_wxPrintQuality","_wxCoord",0},
759 { "_wxPrintQuality","_int",0},
760 { "_wxPrintQuality","_signed_int",0},
761 { "_wxPrintQuality","_unsigned_int",0},
762 { "_wxPrintQuality","_wxWindowID",0},
763 { "_wxPrintQuality","_uint",0},
764 { "_wxPrintQuality","_EBool",0},
765 { "_wxPrintQuality","_size_t",0},
766 { "_wxPrintQuality","_time_t",0},
767 { "_wxNotifyEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxNotifyEvent
},
768 { "_byte","_unsigned_char",0},
769 { "_long","_unsigned_long",0},
770 { "_long","_signed_long",0},
771 { "_size_t","_wxCoord",0},
772 { "_size_t","_wxPrintQuality",0},
773 { "_size_t","_time_t",0},
774 { "_size_t","_unsigned_int",0},
775 { "_size_t","_int",0},
776 { "_size_t","_wxWindowID",0},
777 { "_size_t","_uint",0},
778 { "_uint","_wxCoord",0},
779 { "_uint","_wxPrintQuality",0},
780 { "_uint","_time_t",0},
781 { "_uint","_size_t",0},
782 { "_uint","_unsigned_int",0},
784 { "_uint","_wxWindowID",0},
785 { "_wxChar","_char",0},
786 { "_wxCommandEvent","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxCommandEvent
},
787 { "_char","_wxChar",0},
788 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
789 { "_EBool","_wxCoord",0},
790 { "_EBool","_wxPrintQuality",0},
791 { "_EBool","_signed_int",0},
792 { "_EBool","_int",0},
793 { "_EBool","_wxWindowID",0},
794 { "_unsigned_long","_long",0},
795 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
796 { "_signed_int","_wxCoord",0},
797 { "_signed_int","_wxPrintQuality",0},
798 { "_signed_int","_EBool",0},
799 { "_signed_int","_wxWindowID",0},
800 { "_signed_int","_int",0},
801 { "_WXTYPE","_wxDateTime_t",0},
802 { "_WXTYPE","_short",0},
803 { "_WXTYPE","_signed_short",0},
804 { "_WXTYPE","_unsigned_short",0},
805 { "_unsigned_short","_wxDateTime_t",0},
806 { "_unsigned_short","_WXTYPE",0},
807 { "_unsigned_short","_short",0},
808 { "_wxObject","_wxIEHtmlWin",SwigwxIEHtmlWinTowxObject
},
809 { "_wxObject","_wxMSHTMLEvent",SwigwxMSHTMLEventTowxObject
},
810 { "_signed_short","_WXTYPE",0},
811 { "_signed_short","_short",0},
812 { "_unsigned_char","_byte",0},
813 { "_unsigned_int","_wxCoord",0},
814 { "_unsigned_int","_wxPrintQuality",0},
815 { "_unsigned_int","_time_t",0},
816 { "_unsigned_int","_size_t",0},
817 { "_unsigned_int","_uint",0},
818 { "_unsigned_int","_wxWindowID",0},
819 { "_unsigned_int","_int",0},
820 { "_short","_wxDateTime_t",0},
821 { "_short","_WXTYPE",0},
822 { "_short","_unsigned_short",0},
823 { "_short","_signed_short",0},
824 { "_wxWindowID","_wxCoord",0},
825 { "_wxWindowID","_wxPrintQuality",0},
826 { "_wxWindowID","_time_t",0},
827 { "_wxWindowID","_size_t",0},
828 { "_wxWindowID","_EBool",0},
829 { "_wxWindowID","_uint",0},
830 { "_wxWindowID","_int",0},
831 { "_wxWindowID","_signed_int",0},
832 { "_wxWindowID","_unsigned_int",0},
833 { "_int","_wxCoord",0},
834 { "_int","_wxPrintQuality",0},
835 { "_int","_time_t",0},
836 { "_int","_size_t",0},
837 { "_int","_EBool",0},
839 { "_int","_wxWindowID",0},
840 { "_int","_unsigned_int",0},
841 { "_int","_signed_int",0},
842 { "_wxDateTime_t","_unsigned_short",0},
843 { "_wxDateTime_t","_short",0},
844 { "_wxDateTime_t","_WXTYPE",0},
845 { "_time_t","_wxCoord",0},
846 { "_time_t","_wxPrintQuality",0},
847 { "_time_t","_unsigned_int",0},
848 { "_time_t","_int",0},
849 { "_time_t","_wxWindowID",0},
850 { "_time_t","_uint",0},
851 { "_time_t","_size_t",0},
852 { "_wxCoord","_int",0},
853 { "_wxCoord","_signed_int",0},
854 { "_wxCoord","_unsigned_int",0},
855 { "_wxCoord","_wxWindowID",0},
856 { "_wxCoord","_uint",0},
857 { "_wxCoord","_EBool",0},
858 { "_wxCoord","_size_t",0},
859 { "_wxCoord","_time_t",0},
860 { "_wxCoord","_wxPrintQuality",0},
861 { "_wxEvtHandler","_wxIEHtmlWin",SwigwxIEHtmlWinTowxEvtHandler
},
862 { "_wxWindow","_wxIEHtmlWin",SwigwxIEHtmlWinTowxWindow
},
865 static PyObject
*SWIG_globals
;
869 SWIGEXPORT(void) initiewinc() {
871 SWIG_globals
= SWIG_newvarlink();
872 m
= Py_InitModule("iewinc", iewincMethods
);
873 d
= PyModule_GetDict(m
);
874 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
));
875 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_NEWWINDOW2", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_NEWWINDOW2
));
876 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
));
877 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_PROGRESSCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
));
878 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
));
879 PyDict_SetItemString(d
,"wxEVT_COMMAND_MSHTML_TITLECHANGE", PyInt_FromLong((long) wxEVT_COMMAND_MSHTML_TITLECHANGE
));
880 PyDict_SetItemString(d
,"wxIEHTML_REFRESH_NORMAL", PyInt_FromLong((long) wxIEHTML_REFRESH_NORMAL
));
881 PyDict_SetItemString(d
,"wxIEHTML_REFRESH_IFEXPIRED", PyInt_FromLong((long) wxIEHTML_REFRESH_IFEXPIRED
));
882 PyDict_SetItemString(d
,"wxIEHTML_REFRESH_CONTINUE", PyInt_FromLong((long) wxIEHTML_REFRESH_CONTINUE
));
883 PyDict_SetItemString(d
,"wxIEHTML_REFRESH_COMPLETELY", PyInt_FromLong((long) wxIEHTML_REFRESH_COMPLETELY
));
886 wxClassInfo::CleanUpClasses();
887 wxClassInfo::InitializeClasses();
891 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
892 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);