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"
60 #include "pyistream.h"
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 // Put some wx default wxChar* values into wxStrings.
90 DECLARE_DEF_STRING(PanelNameStr
);
94 static void *SwigwxMSHTMLEventTowxNotifyEvent(void *ptr
) {
97 src
= (wxMSHTMLEvent
*) ptr
;
98 dest
= (wxNotifyEvent
*) src
;
102 static void *SwigwxMSHTMLEventTowxCommandEvent(void *ptr
) {
104 wxCommandEvent
*dest
;
105 src
= (wxMSHTMLEvent
*) ptr
;
106 dest
= (wxCommandEvent
*) src
;
107 return (void *) dest
;
110 static void *SwigwxMSHTMLEventTowxEvent(void *ptr
) {
113 src
= (wxMSHTMLEvent
*) ptr
;
114 dest
= (wxEvent
*) src
;
115 return (void *) dest
;
118 static void *SwigwxMSHTMLEventTowxObject(void *ptr
) {
121 src
= (wxMSHTMLEvent
*) ptr
;
122 dest
= (wxObject
*) src
;
123 return (void *) dest
;
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
};
136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:new_wxMSHTMLEvent",_kwnames
,&_arg0
,&_arg1
))
139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
140 _result
= (wxMSHTMLEvent
*)new_wxMSHTMLEvent(_arg0
,_arg1
);
142 wxPyEndAllowThreads(__tstate
);
143 if (PyErr_Occurred()) return NULL
;
145 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMSHTMLEvent_p");
146 _resultobj
= Py_BuildValue("s",_ptemp
);
149 _resultobj
= Py_None
;
154 #define wxMSHTMLEvent_GetText1(_swigobj) (_swigobj->GetText1())
155 static PyObject
*_wrap_wxMSHTMLEvent_GetText1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
158 wxMSHTMLEvent
* _arg0
;
159 PyObject
* _argo0
= 0;
160 char *_kwnames
[] = { "self", NULL
};
163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetText1",_kwnames
,&_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.");
173 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
174 _result
= new wxString (wxMSHTMLEvent_GetText1(_arg0
));
176 wxPyEndAllowThreads(__tstate
);
177 if (PyErr_Occurred()) return NULL
;
180 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
182 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
191 #define wxMSHTMLEvent_GetLong1(_swigobj) (_swigobj->GetLong1())
192 static PyObject
*_wrap_wxMSHTMLEvent_GetLong1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
193 PyObject
* _resultobj
;
195 wxMSHTMLEvent
* _arg0
;
196 PyObject
* _argo0
= 0;
197 char *_kwnames
[] = { "self", NULL
};
200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong1",_kwnames
,&_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.");
210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
211 _result
= (long )wxMSHTMLEvent_GetLong1(_arg0
);
213 wxPyEndAllowThreads(__tstate
);
214 if (PyErr_Occurred()) return NULL
;
215 } _resultobj
= Py_BuildValue("l",_result
);
219 #define wxMSHTMLEvent_GetLong2(_swigobj) (_swigobj->GetLong2())
220 static PyObject
*_wrap_wxMSHTMLEvent_GetLong2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
221 PyObject
* _resultobj
;
223 wxMSHTMLEvent
* _arg0
;
224 PyObject
* _argo0
= 0;
225 char *_kwnames
[] = { "self", NULL
};
228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong2",_kwnames
,&_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.");
238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
239 _result
= (long )wxMSHTMLEvent_GetLong2(_arg0
);
241 wxPyEndAllowThreads(__tstate
);
242 if (PyErr_Occurred()) return NULL
;
243 } _resultobj
= Py_BuildValue("l",_result
);
247 static void *SwigwxIEHtmlWinTowxWindow(void *ptr
) {
250 src
= (wxIEHtmlWin
*) ptr
;
251 dest
= (wxWindow
*) src
;
252 return (void *) dest
;
255 static void *SwigwxIEHtmlWinTowxEvtHandler(void *ptr
) {
258 src
= (wxIEHtmlWin
*) ptr
;
259 dest
= (wxEvtHandler
*) src
;
260 return (void *) dest
;
263 static void *SwigwxIEHtmlWinTowxObject(void *ptr
) {
266 src
= (wxIEHtmlWin
*) ptr
;
267 dest
= (wxObject
*) src
;
268 return (void *) dest
;
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
;
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;
283 PyObject
* _obj2
= 0;
285 PyObject
* _obj3
= 0;
286 PyObject
* _obj5
= 0;
287 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlO:new_wxIEHtmlWin",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
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.");
303 if (! wxPoint_helper(_obj2
, &_arg2
))
309 if (! wxSize_helper(_obj3
, &_arg3
))
314 _arg5
= wxString_in_helper(_obj5
);
319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
320 _result
= (wxIEHtmlWin
*)new_wxIEHtmlWin(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
322 wxPyEndAllowThreads(__tstate
);
323 if (PyErr_Occurred()) return NULL
;
325 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIEHtmlWin_p");
326 _resultobj
= Py_BuildValue("s",_ptemp
);
329 _resultobj
= Py_None
;
338 #define wxIEHtmlWin_LoadUrl(_swigobj,_swigarg0) (_swigobj->LoadUrl(_swigarg0))
339 static PyObject
*_wrap_wxIEHtmlWin_LoadUrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
340 PyObject
* _resultobj
;
343 PyObject
* _argo0
= 0;
344 PyObject
* _obj1
= 0;
345 char *_kwnames
[] = { "self","arg2", NULL
};
348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadUrl",_kwnames
,&_argo0
,&_obj1
))
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.");
358 _arg1
= wxString_in_helper(_obj1
);
363 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
364 wxIEHtmlWin_LoadUrl(_arg0
,*_arg1
);
366 wxPyEndAllowThreads(__tstate
);
367 if (PyErr_Occurred()) return NULL
;
368 } Py_INCREF(Py_None
);
369 _resultobj
= Py_None
;
377 #define wxIEHtmlWin_LoadString(_swigobj,_swigarg0) (_swigobj->LoadString(_swigarg0))
378 static PyObject
*_wrap_wxIEHtmlWin_LoadString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
379 PyObject
* _resultobj
;
383 PyObject
* _argo0
= 0;
384 PyObject
* _obj1
= 0;
385 char *_kwnames
[] = { "self","html", NULL
};
388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadString",_kwnames
,&_argo0
,&_obj1
))
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.");
398 _arg1
= wxString_in_helper(_obj1
);
403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
404 _result
= (bool )wxIEHtmlWin_LoadString(_arg0
,*_arg1
);
406 wxPyEndAllowThreads(__tstate
);
407 if (PyErr_Occurred()) return NULL
;
408 } _resultobj
= Py_BuildValue("i",_result
);
416 #define wxIEHtmlWin_LoadStream(_swigobj,_swigarg0) (_swigobj->LoadStream(_swigarg0))
417 static PyObject
*_wrap_wxIEHtmlWin_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
418 PyObject
* _resultobj
;
421 wxInputStream
* _arg1
;
422 PyObject
* _argo0
= 0;
423 wxPyInputStream
* temp
;
425 PyObject
* _obj1
= 0;
426 char *_kwnames
[] = { "self","is", NULL
};
429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadStream",_kwnames
,&_argo0
,&_obj1
))
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.");
439 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
440 _arg1
= temp
->m_wxis
;
443 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
445 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
453 _result
= (bool )wxIEHtmlWin_LoadStream(_arg0
,_arg1
);
455 wxPyEndAllowThreads(__tstate
);
456 if (PyErr_Occurred()) return NULL
;
457 } _resultobj
= Py_BuildValue("i",_result
);
465 #define wxIEHtmlWin_SetCharset(_swigobj,_swigarg0) (_swigobj->SetCharset(_swigarg0))
466 static PyObject
*_wrap_wxIEHtmlWin_SetCharset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
467 PyObject
* _resultobj
;
470 PyObject
* _argo0
= 0;
471 PyObject
* _obj1
= 0;
472 char *_kwnames
[] = { "self","charset", NULL
};
475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_SetCharset",_kwnames
,&_argo0
,&_obj1
))
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.");
485 _arg1
= wxString_in_helper(_obj1
);
490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
491 wxIEHtmlWin_SetCharset(_arg0
,*_arg1
);
493 wxPyEndAllowThreads(__tstate
);
494 if (PyErr_Occurred()) return NULL
;
495 } Py_INCREF(Py_None
);
496 _resultobj
= Py_None
;
504 #define wxIEHtmlWin_SetEditMode(_swigobj,_swigarg0) (_swigobj->SetEditMode(_swigarg0))
505 static PyObject
*_wrap_wxIEHtmlWin_SetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
506 PyObject
* _resultobj
;
509 PyObject
* _argo0
= 0;
511 char *_kwnames
[] = { "self","seton", NULL
};
514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_SetEditMode",_kwnames
,&_argo0
,&tempbool1
))
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.");
523 _arg1
= (bool ) tempbool1
;
525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
526 wxIEHtmlWin_SetEditMode(_arg0
,_arg1
);
528 wxPyEndAllowThreads(__tstate
);
529 if (PyErr_Occurred()) return NULL
;
530 } Py_INCREF(Py_None
);
531 _resultobj
= Py_None
;
535 #define wxIEHtmlWin_GetEditMode(_swigobj) (_swigobj->GetEditMode())
536 static PyObject
*_wrap_wxIEHtmlWin_GetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
537 PyObject
* _resultobj
;
540 PyObject
* _argo0
= 0;
541 char *_kwnames
[] = { "self", NULL
};
544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GetEditMode",_kwnames
,&_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.");
554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
555 _result
= (bool )wxIEHtmlWin_GetEditMode(_arg0
);
557 wxPyEndAllowThreads(__tstate
);
558 if (PyErr_Occurred()) return NULL
;
559 } _resultobj
= Py_BuildValue("i",_result
);
563 #define wxIEHtmlWin_GetStringSelection(_swigobj,_swigarg0) (_swigobj->GetStringSelection(_swigarg0))
564 static PyObject
*_wrap_wxIEHtmlWin_GetStringSelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
568 bool _arg1
= (bool ) FALSE
;
569 PyObject
* _argo0
= 0;
570 int tempbool1
= (int) FALSE
;
571 char *_kwnames
[] = { "self","asHTML", NULL
};
574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetStringSelection",_kwnames
,&_argo0
,&tempbool1
))
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.");
583 _arg1
= (bool ) tempbool1
;
585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
586 _result
= new wxString (wxIEHtmlWin_GetStringSelection(_arg0
,_arg1
));
588 wxPyEndAllowThreads(__tstate
);
589 if (PyErr_Occurred()) return NULL
;
592 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
594 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
603 #define wxIEHtmlWin_GetText(_swigobj,_swigarg0) (_swigobj->GetText(_swigarg0))
604 static PyObject
*_wrap_wxIEHtmlWin_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
608 bool _arg1
= (bool ) FALSE
;
609 PyObject
* _argo0
= 0;
610 int tempbool1
= (int) FALSE
;
611 char *_kwnames
[] = { "self","asHTML", NULL
};
614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetText",_kwnames
,&_argo0
,&tempbool1
))
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.");
623 _arg1
= (bool ) tempbool1
;
625 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
626 _result
= new wxString (wxIEHtmlWin_GetText(_arg0
,_arg1
));
628 wxPyEndAllowThreads(__tstate
);
629 if (PyErr_Occurred()) return NULL
;
632 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
634 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
643 #define wxIEHtmlWin_GoBack(_swigobj) (_swigobj->GoBack())
644 static PyObject
*_wrap_wxIEHtmlWin_GoBack(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_GoBack",_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_GoBack. Expected _wxIEHtmlWin_p.");
662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
663 _result
= (bool )wxIEHtmlWin_GoBack(_arg0
);
665 wxPyEndAllowThreads(__tstate
);
666 if (PyErr_Occurred()) return NULL
;
667 } _resultobj
= Py_BuildValue("i",_result
);
671 #define wxIEHtmlWin_GoForward(_swigobj) (_swigobj->GoForward())
672 static PyObject
*_wrap_wxIEHtmlWin_GoForward(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
673 PyObject
* _resultobj
;
676 PyObject
* _argo0
= 0;
677 char *_kwnames
[] = { "self", NULL
};
680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoForward",_kwnames
,&_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.");
690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
691 _result
= (bool )wxIEHtmlWin_GoForward(_arg0
);
693 wxPyEndAllowThreads(__tstate
);
694 if (PyErr_Occurred()) return NULL
;
695 } _resultobj
= Py_BuildValue("i",_result
);
699 #define wxIEHtmlWin_GoHome(_swigobj) (_swigobj->GoHome())
700 static PyObject
*_wrap_wxIEHtmlWin_GoHome(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
701 PyObject
* _resultobj
;
704 PyObject
* _argo0
= 0;
705 char *_kwnames
[] = { "self", NULL
};
708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoHome",_kwnames
,&_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.");
718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
719 _result
= (bool )wxIEHtmlWin_GoHome(_arg0
);
721 wxPyEndAllowThreads(__tstate
);
722 if (PyErr_Occurred()) return NULL
;
723 } _resultobj
= Py_BuildValue("i",_result
);
727 #define wxIEHtmlWin_GoSearch(_swigobj) (_swigobj->GoSearch())
728 static PyObject
*_wrap_wxIEHtmlWin_GoSearch(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
729 PyObject
* _resultobj
;
732 PyObject
* _argo0
= 0;
733 char *_kwnames
[] = { "self", NULL
};
736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoSearch",_kwnames
,&_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.");
746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
747 _result
= (bool )wxIEHtmlWin_GoSearch(_arg0
);
749 wxPyEndAllowThreads(__tstate
);
750 if (PyErr_Occurred()) return NULL
;
751 } _resultobj
= Py_BuildValue("i",_result
);
755 #define wxIEHtmlWin_Refresh(_swigobj,_swigarg0) (_swigobj->Refresh(_swigarg0))
756 static PyObject
*_wrap_wxIEHtmlWin_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
757 PyObject
* _resultobj
;
760 wxIEHtmlRefreshLevel _arg1
;
761 PyObject
* _argo0
= 0;
762 char *_kwnames
[] = { "self","level", NULL
};
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_Refresh",_kwnames
,&_argo0
,&_arg1
))
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.");
775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
776 _result
= (bool )wxIEHtmlWin_Refresh(_arg0
,_arg1
);
778 wxPyEndAllowThreads(__tstate
);
779 if (PyErr_Occurred()) return NULL
;
780 } _resultobj
= Py_BuildValue("i",_result
);
784 #define wxIEHtmlWin_Stop(_swigobj) (_swigobj->Stop())
785 static PyObject
*_wrap_wxIEHtmlWin_Stop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
786 PyObject
* _resultobj
;
789 PyObject
* _argo0
= 0;
790 char *_kwnames
[] = { "self", NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_Stop",_kwnames
,&_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.");
803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
804 _result
= (bool )wxIEHtmlWin_Stop(_arg0
);
806 wxPyEndAllowThreads(__tstate
);
807 if (PyErr_Occurred()) return NULL
;
808 } _resultobj
= Py_BuildValue("i",_result
);
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
},
838 * This table is used by the pointer type-checker
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},
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},
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
},
950 static PyObject
*SWIG_globals
;
954 SWIGEXPORT(void) initiewinc() {
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
));
971 wxClassInfo::CleanUpClasses();
972 wxClassInfo::InitializeClasses();
976 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
977 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);