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 /////////////////////////////////////////////////////////////////////////////
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 class wxIEHtmlWin : public wxWindow /* wxActiveX */
84 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
86 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
87 const wxPoint& pos = wxDefaultPosition,
88 const wxSize& size = wxDefaultSize,
90 const wxString& name = wxPyPanelNameStr);
92 void LoadUrl(const wxString&);
93 bool LoadString(wxString html);
94 bool LoadStream(wxInputStream *is);
96 %pythoncode { Navigate = LoadUrl }
98 void SetCharset(wxString charset);
99 void SetEditMode(bool seton);
101 wxString GetStringSelection(bool asHTML = False);
102 wxString GetText(bool asHTML = False);
108 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
114 //---------------------------------------------------------------------------