1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Internet Explorer in a wxWindow
7 // Created: 20-Apr-2001
9 // Copyright: (c) 2001 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
14 %module(package="wx") iewin
17 #include "wx/wxPython/wxPython.h"
18 #include "wx/wxPython/pyclasses.h"
19 #include "wx/wxPython/pyistream.h"
21 #include "IEHtmlWin.h"
24 //---------------------------------------------------------------------------
27 %pythoncode { wx = _core }
28 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
31 warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.",
32 DeprecationWarning, stacklevel=2)
35 MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
37 %include _iewin_rename.i
40 //---------------------------------------------------------------------------
42 class wxMSHTMLEvent : public wxNotifyEvent
45 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
53 wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2,
54 wxEVT_COMMAND_MSHTML_NEWWINDOW2,
55 wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE,
56 wxEVT_COMMAND_MSHTML_PROGRESSCHANGE,
57 wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE,
58 wxEVT_COMMAND_MSHTML_TITLECHANGE,
63 EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
64 EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
65 EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
66 EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
67 EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
68 EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
71 //---------------------------------------------------------------------------
73 enum wxIEHtmlRefreshLevel {
74 wxIEHTML_REFRESH_NORMAL = 0,
75 wxIEHTML_REFRESH_IFEXPIRED = 1,
76 wxIEHTML_REFRESH_CONTINUE = 2,
77 wxIEHTML_REFRESH_COMPLETELY = 3
81 MustHaveApp(wxIEHtmlWin);
83 class wxIEHtmlWin : public wxWindow /* wxActiveX */
86 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
88 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize& size = wxDefaultSize,
92 const wxString& name = wxPyPanelNameStr);
94 void LoadUrl(const wxString&);
95 bool LoadString(wxString html);
96 bool LoadStream(wxInputStream *is);
98 %pythoncode { Navigate = LoadUrl }
100 void SetCharset(wxString charset);
101 void SetEditMode(bool seton);
103 wxString GetStringSelection(bool asHTML = false);
104 wxString GetText(bool asHTML = false);
110 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
116 //---------------------------------------------------------------------------