]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.i
Deprecated wx.iewin
[wxWidgets.git] / wxPython / contrib / iewin / iewin.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: iewin.i
3 // Purpose: Internet Explorer in a wxWindow
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 20-Apr-2001
8 // RCS-ID: $Id$
9 // Copyright: (c) 2001 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module iewin
15
16 %{
17 #include "wx/wxPython/wxPython.h"
18 #include "wx/wxPython/pyclasses.h"
19 #include "wx/wxPython/pyistream.h"
20
21 #include "IEHtmlWin.h"
22 %}
23
24 //---------------------------------------------------------------------------
25
26 %import core.i
27 %pythoncode { wx = _core }
28 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
29 %pythoncode {
30 import warnings
31 warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.",
32 DeprecationWarning, stacklevel=2)
33 }
34
35 MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
36
37 %include _iewin_rename.i
38
39
40 //---------------------------------------------------------------------------
41
42 class wxMSHTMLEvent : public wxNotifyEvent
43 {
44 public:
45 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
46 wxString GetText1();
47 long GetLong1();
48 long GetLong2();
49 };
50
51
52 enum {
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,
59 };
60
61
62 %pythoncode {
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)
69 }
70
71 //---------------------------------------------------------------------------
72
73 enum wxIEHtmlRefreshLevel {
74 wxIEHTML_REFRESH_NORMAL = 0,
75 wxIEHTML_REFRESH_IFEXPIRED = 1,
76 wxIEHTML_REFRESH_CONTINUE = 2,
77 wxIEHTML_REFRESH_COMPLETELY = 3
78 };
79
80
81 class wxIEHtmlWin : public wxWindow /* wxActiveX */
82 {
83 public:
84 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
85
86 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
87 const wxPoint& pos = wxDefaultPosition,
88 const wxSize& size = wxDefaultSize,
89 long style = 0,
90 const wxString& name = wxPyPanelNameStr);
91
92 void LoadUrl(const wxString&);
93 bool LoadString(wxString html);
94 bool LoadStream(wxInputStream *is);
95
96 %pythoncode { Navigate = LoadUrl }
97
98 void SetCharset(wxString charset);
99 void SetEditMode(bool seton);
100 bool GetEditMode();
101 wxString GetStringSelection(bool asHTML = False);
102 wxString GetText(bool asHTML = False);
103
104 bool GoBack();
105 bool GoForward();
106 bool GoHome();
107 bool GoSearch();
108 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
109 bool Stop();
110
111 };
112
113
114 //---------------------------------------------------------------------------
115
116