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 /////////////////////////////////////////////////////////////////////////////
18 #include "IEHtmlWin.h"
21 //---------------------------------------------------------------------------
24 %include my_typemaps.i
32 %pragma(python) code = "import wx"
34 //---------------------------------------------------------------------------
37 // Put some wx default wxChar* values into wxStrings.
38 DECLARE_DEF_STRING(PanelNameStr);
41 //---------------------------------------------------------------------------
43 class wxMSHTMLEvent : public wxNotifyEvent
46 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
54 wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2,
55 wxEVT_COMMAND_MSHTML_NEWWINDOW2,
56 wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE,
57 wxEVT_COMMAND_MSHTML_PROGRESSCHANGE,
58 wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE,
59 wxEVT_COMMAND_MSHTML_TITLECHANGE,
63 %pragma(python) code = "
64 def EVT_MSHTML_BEFORENAVIGATE2(win, id, func):
65 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, func)
67 def EVT_MSHTML_NEWWINDOW2(win, id, func):
68 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_NEWWINDOW2, func)
70 def EVT_MSHTML_DOCUMENTCOMPLETE(win, id, func):
71 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, func)
73 def EVT_MSHTML_PROGRESSCHANGE(win, id, func):
74 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, func)
76 def EVT_MSHTML_STATUSTEXTCHANGE(win, id, func):
77 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, func)
79 def EVT_MSHTML_TITLECHANGE(win, id, func):
80 win.Connect(id, -1, wxEVT_COMMAND_MSHTML_TITLECHANGE, func)
83 //---------------------------------------------------------------------------
85 enum wxIEHtmlRefreshLevel {
86 wxIEHTML_REFRESH_NORMAL = 0,
87 wxIEHTML_REFRESH_IFEXPIRED = 1,
88 wxIEHTML_REFRESH_CONTINUE = 2,
89 wxIEHTML_REFRESH_COMPLETELY = 3
93 class wxIEHtmlWin : public wxWindow /* wxActiveX */
96 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
97 const wxPoint& pos = wxDefaultPosition,
98 const wxSize& size = wxDefaultSize,
100 const wxString& name = wxPyPanelNameStr);
102 void LoadUrl(const wxString&);
103 bool LoadString(wxString html);
104 /* bool LoadStream(istream *strm); */
106 void SetCharset(wxString charset);
107 void SetEditMode(bool seton);
109 wxString GetStringSelection(bool asHTML = FALSE);
110 wxString GetText(bool asHTML = FALSE);
116 bool Refresh(wxIEHtmlRefreshLevel level);
122 //---------------------------------------------------------------------------
126 wxClassInfo::CleanUpClasses();
127 wxClassInfo::InitializeClasses();
131 //----------------------------------------------------------------------
133 %pragma(python) include="_iewinextras.py";
135 //---------------------------------------------------------------------------