]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.i
warning fix
[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(package="wx") 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 MustHaveApp(wxIEHtmlWin);
82
83 class wxIEHtmlWin : public wxWindow /* wxActiveX */
84 {
85 public:
86 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
87
88 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize& size = wxDefaultSize,
91 long style = 0,
92 const wxString& name = wxPyPanelNameStr);
93
94 void LoadUrl(const wxString&);
95 bool LoadString(wxString html);
96 bool LoadStream(wxInputStream *is);
97
98 %pythoncode { Navigate = LoadUrl }
99
100 void SetCharset(wxString charset);
101 void SetEditMode(bool seton);
102 bool GetEditMode();
103 wxString GetStringSelection(bool asHTML = false);
104 wxString GetText(bool asHTML = false);
105
106 bool GoBack();
107 bool GoForward();
108 bool GoHome();
109 bool GoSearch();
110 %Rename(RefreshPage, bool, Refresh(wxIEHtmlRefreshLevel level));
111 bool Stop();
112
113 };
114
115
116 //---------------------------------------------------------------------------
117
118