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()) }
30 MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
32 %include _iewin_rename.i
35 //---------------------------------------------------------------------------
37 class wxMSHTMLEvent : public wxNotifyEvent
40 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
48 wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2,
49 wxEVT_COMMAND_MSHTML_NEWWINDOW2,
50 wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE,
51 wxEVT_COMMAND_MSHTML_PROGRESSCHANGE,
52 wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE,
53 wxEVT_COMMAND_MSHTML_TITLECHANGE,
58 EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
59 EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
60 EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
61 EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
62 EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
63 EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
66 //---------------------------------------------------------------------------
68 enum wxIEHtmlRefreshLevel {
69 wxIEHTML_REFRESH_NORMAL = 0,
70 wxIEHTML_REFRESH_IFEXPIRED = 1,
71 wxIEHTML_REFRESH_CONTINUE = 2,
72 wxIEHTML_REFRESH_COMPLETELY = 3
76 class wxIEHtmlWin : public wxWindow /* wxActiveX */
79 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
81 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
82 const wxPoint& pos = wxDefaultPosition,
83 const wxSize& size = wxDefaultSize,
85 const wxString& name = wxPyPanelNameStr);
87 void LoadUrl(const wxString&);
88 bool LoadString(wxString html);
89 bool LoadStream(wxInputStream *is);
91 %pythoncode { Navigate = LoadUrl }
93 void SetCharset(wxString charset);
94 void SetEditMode(bool seton);
96 wxString GetStringSelection(bool asHTML = False);
97 wxString GetText(bool asHTML = False);
103 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
109 //---------------------------------------------------------------------------