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 */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
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);
53 #define SWIG_init initiewinc
55 #define SWIG_name "iewinc"
58 #include "IEHtmlWin.h"
59 #include "pyistream.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
);
88 // Put some wx default wxChar* values into wxStrings.
89 DECLARE_DEF_STRING(PanelNameStr
);
93 static void *SwigwxMSHTMLEventTowxNotifyEvent(void *ptr
) {
96 src
= (wxMSHTMLEvent
*) ptr
;
97 dest
= (wxNotifyEvent
*) src
;
101 static void *SwigwxMSHTMLEventTowxCommandEvent(void *ptr
) {
103 wxCommandEvent
*dest
;
104 src
= (wxMSHTMLEvent
*) ptr
;
105 dest
= (wxCommandEvent
*) src
;
106 return (void *) dest
;
109 static void *SwigwxMSHTMLEventTowxEvent(void *ptr
) {
112 src
= (wxMSHTMLEvent
*) ptr
;
113 dest
= (wxEvent
*) src
;
114 return (void *) dest
;
117 static void *SwigwxMSHTMLEventTowxObject(void *ptr
) {
120 src
= (wxMSHTMLEvent
*) ptr
;
121 dest
= (wxObject
*) src
;
122 return (void *) dest
;
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
};
135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:new_wxMSHTMLEvent",_kwnames
,&_arg0
,&_arg1
))
138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
139 _result
= (wxMSHTMLEvent
*)new_wxMSHTMLEvent(_arg0
,_arg1
);
141 wxPyEndAllowThreads(__tstate
);
142 if (PyErr_Occurred()) return NULL
;
144 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMSHTMLEvent_p");
145 _resultobj
= Py_BuildValue("s",_ptemp
);
148 _resultobj
= Py_None
;
153 #define wxMSHTMLEvent_GetText1(_swigobj) (_swigobj->GetText1())
154 static PyObject
*_wrap_wxMSHTMLEvent_GetText1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
155 PyObject
* _resultobj
;
157 wxMSHTMLEvent
* _arg0
;
158 PyObject
* _argo0
= 0;
159 char *_kwnames
[] = { "self", NULL
};
162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetText1",_kwnames
,&_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.");
172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
173 _result
= new wxString (wxMSHTMLEvent_GetText1(_arg0
));
175 wxPyEndAllowThreads(__tstate
);
176 if (PyErr_Occurred()) return NULL
;
179 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
181 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
190 #define wxMSHTMLEvent_GetLong1(_swigobj) (_swigobj->GetLong1())
191 static PyObject
*_wrap_wxMSHTMLEvent_GetLong1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
192 PyObject
* _resultobj
;
194 wxMSHTMLEvent
* _arg0
;
195 PyObject
* _argo0
= 0;
196 char *_kwnames
[] = { "self", NULL
};
199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong1",_kwnames
,&_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.");
209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
210 _result
= (long )wxMSHTMLEvent_GetLong1(_arg0
);
212 wxPyEndAllowThreads(__tstate
);
213 if (PyErr_Occurred()) return NULL
;
214 } _resultobj
= Py_BuildValue("l",_result
);
218 #define wxMSHTMLEvent_GetLong2(_swigobj) (_swigobj->GetLong2())
219 static PyObject
*_wrap_wxMSHTMLEvent_GetLong2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
220 PyObject
* _resultobj
;
222 wxMSHTMLEvent
* _arg0
;
223 PyObject
* _argo0
= 0;
224 char *_kwnames
[] = { "self", NULL
};
227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMSHTMLEvent_GetLong2",_kwnames
,&_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.");
237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
238 _result
= (long )wxMSHTMLEvent_GetLong2(_arg0
);
240 wxPyEndAllowThreads(__tstate
);
241 if (PyErr_Occurred()) return NULL
;
242 } _resultobj
= Py_BuildValue("l",_result
);
246 static void *SwigwxIEHtmlWinTowxWindow(void *ptr
) {
249 src
= (wxIEHtmlWin
*) ptr
;
250 dest
= (wxWindow
*) src
;
251 return (void *) dest
;
254 static void *SwigwxIEHtmlWinTowxEvtHandler(void *ptr
) {
257 src
= (wxIEHtmlWin
*) ptr
;
258 dest
= (wxEvtHandler
*) src
;
259 return (void *) dest
;
262 static void *SwigwxIEHtmlWinTowxObject(void *ptr
) {
265 src
= (wxIEHtmlWin
*) ptr
;
266 dest
= (wxObject
*) src
;
267 return (void *) dest
;
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
;
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;
282 PyObject
* _obj2
= 0;
284 PyObject
* _obj3
= 0;
285 PyObject
* _obj5
= 0;
286 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlO:new_wxIEHtmlWin",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
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.");
302 if (! wxPoint_helper(_obj2
, &_arg2
))
308 if (! wxSize_helper(_obj3
, &_arg3
))
313 _arg5
= wxString_in_helper(_obj5
);
318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
319 _result
= (wxIEHtmlWin
*)new_wxIEHtmlWin(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
321 wxPyEndAllowThreads(__tstate
);
322 if (PyErr_Occurred()) return NULL
;
324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIEHtmlWin_p");
325 _resultobj
= Py_BuildValue("s",_ptemp
);
328 _resultobj
= Py_None
;
337 #define wxIEHtmlWin_LoadUrl(_swigobj,_swigarg0) (_swigobj->LoadUrl(_swigarg0))
338 static PyObject
*_wrap_wxIEHtmlWin_LoadUrl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
339 PyObject
* _resultobj
;
342 PyObject
* _argo0
= 0;
343 PyObject
* _obj1
= 0;
344 char *_kwnames
[] = { "self","arg2", NULL
};
347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadUrl",_kwnames
,&_argo0
,&_obj1
))
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.");
357 _arg1
= wxString_in_helper(_obj1
);
362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
363 wxIEHtmlWin_LoadUrl(_arg0
,*_arg1
);
365 wxPyEndAllowThreads(__tstate
);
366 if (PyErr_Occurred()) return NULL
;
367 } Py_INCREF(Py_None
);
368 _resultobj
= Py_None
;
376 #define wxIEHtmlWin_LoadString(_swigobj,_swigarg0) (_swigobj->LoadString(_swigarg0))
377 static PyObject
*_wrap_wxIEHtmlWin_LoadString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
378 PyObject
* _resultobj
;
382 PyObject
* _argo0
= 0;
383 PyObject
* _obj1
= 0;
384 char *_kwnames
[] = { "self","html", NULL
};
387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadString",_kwnames
,&_argo0
,&_obj1
))
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.");
397 _arg1
= wxString_in_helper(_obj1
);
402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
403 _result
= (bool )wxIEHtmlWin_LoadString(_arg0
,*_arg1
);
405 wxPyEndAllowThreads(__tstate
);
406 if (PyErr_Occurred()) return NULL
;
407 } _resultobj
= Py_BuildValue("i",_result
);
415 #define wxIEHtmlWin_LoadStream(_swigobj,_swigarg0) (_swigobj->LoadStream(_swigarg0))
416 static PyObject
*_wrap_wxIEHtmlWin_LoadStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
417 PyObject
* _resultobj
;
420 wxInputStream
* _arg1
;
421 PyObject
* _argo0
= 0;
422 wxPyInputStream
* temp
;
424 PyObject
* _obj1
= 0;
425 char *_kwnames
[] = { "self","is", NULL
};
428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_LoadStream",_kwnames
,&_argo0
,&_obj1
))
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.");
438 if (SWIG_GetPtrObj(_obj1
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
439 _arg1
= temp
->m_wxis
;
442 _arg1
= wxPyCBInputStream_create(_obj1
, FALSE
);
444 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
452 _result
= (bool )wxIEHtmlWin_LoadStream(_arg0
,_arg1
);
454 wxPyEndAllowThreads(__tstate
);
455 if (PyErr_Occurred()) return NULL
;
456 } _resultobj
= Py_BuildValue("i",_result
);
464 #define wxIEHtmlWin_SetCharset(_swigobj,_swigarg0) (_swigobj->SetCharset(_swigarg0))
465 static PyObject
*_wrap_wxIEHtmlWin_SetCharset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
466 PyObject
* _resultobj
;
469 PyObject
* _argo0
= 0;
470 PyObject
* _obj1
= 0;
471 char *_kwnames
[] = { "self","charset", NULL
};
474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIEHtmlWin_SetCharset",_kwnames
,&_argo0
,&_obj1
))
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.");
484 _arg1
= wxString_in_helper(_obj1
);
489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
490 wxIEHtmlWin_SetCharset(_arg0
,*_arg1
);
492 wxPyEndAllowThreads(__tstate
);
493 if (PyErr_Occurred()) return NULL
;
494 } Py_INCREF(Py_None
);
495 _resultobj
= Py_None
;
503 #define wxIEHtmlWin_SetEditMode(_swigobj,_swigarg0) (_swigobj->SetEditMode(_swigarg0))
504 static PyObject
*_wrap_wxIEHtmlWin_SetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
505 PyObject
* _resultobj
;
508 PyObject
* _argo0
= 0;
510 char *_kwnames
[] = { "self","seton", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_SetEditMode",_kwnames
,&_argo0
,&tempbool1
))
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.");
522 _arg1
= (bool ) tempbool1
;
524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
525 wxIEHtmlWin_SetEditMode(_arg0
,_arg1
);
527 wxPyEndAllowThreads(__tstate
);
528 if (PyErr_Occurred()) return NULL
;
529 } Py_INCREF(Py_None
);
530 _resultobj
= Py_None
;
534 #define wxIEHtmlWin_GetEditMode(_swigobj) (_swigobj->GetEditMode())
535 static PyObject
*_wrap_wxIEHtmlWin_GetEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
536 PyObject
* _resultobj
;
539 PyObject
* _argo0
= 0;
540 char *_kwnames
[] = { "self", NULL
};
543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GetEditMode",_kwnames
,&_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.");
553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
554 _result
= (bool )wxIEHtmlWin_GetEditMode(_arg0
);
556 wxPyEndAllowThreads(__tstate
);
557 if (PyErr_Occurred()) return NULL
;
558 } _resultobj
= Py_BuildValue("i",_result
);
562 #define wxIEHtmlWin_GetStringSelection(_swigobj,_swigarg0) (_swigobj->GetStringSelection(_swigarg0))
563 static PyObject
*_wrap_wxIEHtmlWin_GetStringSelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
564 PyObject
* _resultobj
;
567 bool _arg1
= (bool ) FALSE
;
568 PyObject
* _argo0
= 0;
569 int tempbool1
= (int) FALSE
;
570 char *_kwnames
[] = { "self","asHTML", NULL
};
573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetStringSelection",_kwnames
,&_argo0
,&tempbool1
))
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.");
582 _arg1
= (bool ) tempbool1
;
584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
585 _result
= new wxString (wxIEHtmlWin_GetStringSelection(_arg0
,_arg1
));
587 wxPyEndAllowThreads(__tstate
);
588 if (PyErr_Occurred()) return NULL
;
591 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
593 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
602 #define wxIEHtmlWin_GetText(_swigobj,_swigarg0) (_swigobj->GetText(_swigarg0))
603 static PyObject
*_wrap_wxIEHtmlWin_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
604 PyObject
* _resultobj
;
607 bool _arg1
= (bool ) FALSE
;
608 PyObject
* _argo0
= 0;
609 int tempbool1
= (int) FALSE
;
610 char *_kwnames
[] = { "self","asHTML", NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxIEHtmlWin_GetText",_kwnames
,&_argo0
,&tempbool1
))
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.");
622 _arg1
= (bool ) tempbool1
;
624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
625 _result
= new wxString (wxIEHtmlWin_GetText(_arg0
,_arg1
));
627 wxPyEndAllowThreads(__tstate
);
628 if (PyErr_Occurred()) return NULL
;
631 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
642 #define wxIEHtmlWin_GoBack(_swigobj) (_swigobj->GoBack())
643 static PyObject
*_wrap_wxIEHtmlWin_GoBack(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
644 PyObject
* _resultobj
;
647 PyObject
* _argo0
= 0;
648 char *_kwnames
[] = { "self", NULL
};
651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoBack",_kwnames
,&_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.");
661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
662 _result
= (bool )wxIEHtmlWin_GoBack(_arg0
);
664 wxPyEndAllowThreads(__tstate
);
665 if (PyErr_Occurred()) return NULL
;
666 } _resultobj
= Py_BuildValue("i",_result
);
670 #define wxIEHtmlWin_GoForward(_swigobj) (_swigobj->GoForward())
671 static PyObject
*_wrap_wxIEHtmlWin_GoForward(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
672 PyObject
* _resultobj
;
675 PyObject
* _argo0
= 0;
676 char *_kwnames
[] = { "self", NULL
};
679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoForward",_kwnames
,&_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.");
689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
690 _result
= (bool )wxIEHtmlWin_GoForward(_arg0
);
692 wxPyEndAllowThreads(__tstate
);
693 if (PyErr_Occurred()) return NULL
;
694 } _resultobj
= Py_BuildValue("i",_result
);
698 #define wxIEHtmlWin_GoHome(_swigobj) (_swigobj->GoHome())
699 static PyObject
*_wrap_wxIEHtmlWin_GoHome(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
700 PyObject
* _resultobj
;
703 PyObject
* _argo0
= 0;
704 char *_kwnames
[] = { "self", NULL
};
707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoHome",_kwnames
,&_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.");
717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
718 _result
= (bool )wxIEHtmlWin_GoHome(_arg0
);
720 wxPyEndAllowThreads(__tstate
);
721 if (PyErr_Occurred()) return NULL
;
722 } _resultobj
= Py_BuildValue("i",_result
);
726 #define wxIEHtmlWin_GoSearch(_swigobj) (_swigobj->GoSearch())
727 static PyObject
*_wrap_wxIEHtmlWin_GoSearch(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
728 PyObject
* _resultobj
;
731 PyObject
* _argo0
= 0;
732 char *_kwnames
[] = { "self", NULL
};
735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_GoSearch",_kwnames
,&_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.");
745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
746 _result
= (bool )wxIEHtmlWin_GoSearch(_arg0
);
748 wxPyEndAllowThreads(__tstate
);
749 if (PyErr_Occurred()) return NULL
;
750 } _resultobj
= Py_BuildValue("i",_result
);
754 #define wxIEHtmlWin_RefreshPage(_swigobj,_swigarg0) (_swigobj->Refresh(_swigarg0))
755 static PyObject
*_wrap_wxIEHtmlWin_RefreshPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
756 PyObject
* _resultobj
;
759 wxIEHtmlRefreshLevel _arg1
;
760 PyObject
* _argo0
= 0;
761 char *_kwnames
[] = { "self","level", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIEHtmlWin_RefreshPage",_kwnames
,&_argo0
,&_arg1
))
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.");
774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
775 _result
= (bool )wxIEHtmlWin_RefreshPage(_arg0
,_arg1
);
777 wxPyEndAllowThreads(__tstate
);
778 if (PyErr_Occurred()) return NULL
;
779 } _resultobj
= Py_BuildValue("i",_result
);
783 #define wxIEHtmlWin_Stop(_swigobj) (_swigobj->Stop())
784 static PyObject
*_wrap_wxIEHtmlWin_Stop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
785 PyObject
* _resultobj
;
788 PyObject
* _argo0
= 0;
789 char *_kwnames
[] = { "self", NULL
};
792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIEHtmlWin_Stop",_kwnames
,&_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.");
802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
803 _result
= (bool )wxIEHtmlWin_Stop(_arg0
);
805 wxPyEndAllowThreads(__tstate
);
806 if (PyErr_Occurred()) return NULL
;
807 } _resultobj
= Py_BuildValue("i",_result
);
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
},
837 * This table is used by the pointer type-checker
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},
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},
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
},
949 static PyObject
*SWIG_globals
;
953 SWIGEXPORT(void) initiewinc() {
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
));
970 wxClassInfo::CleanUpClasses();
971 wxClassInfo::InitializeClasses();
975 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
976 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);