]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.i
wx.StaticBox and siblings creation order, and other fixes from Kevin Ollivier
[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__ }
29
30 MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
31
32 %include _iewin_rename.i
33
34
35 //---------------------------------------------------------------------------
36
37 class wxMSHTMLEvent : public wxNotifyEvent
38 {
39 public:
40 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
41 wxString GetText1();
42 long GetLong1();
43 long GetLong2();
44 };
45
46
47 enum {
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,
54 };
55
56
57 %pythoncode {
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)
64 }
65
66 //---------------------------------------------------------------------------
67
68 enum wxIEHtmlRefreshLevel {
69 wxIEHTML_REFRESH_NORMAL = 0,
70 wxIEHTML_REFRESH_IFEXPIRED = 1,
71 wxIEHTML_REFRESH_CONTINUE = 2,
72 wxIEHTML_REFRESH_COMPLETELY = 3
73 };
74
75
76 class wxIEHtmlWin : public wxWindow /* wxActiveX */
77 {
78 public:
79 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
80
81 wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
82 const wxPoint& pos = wxDefaultPosition,
83 const wxSize& size = wxDefaultSize,
84 long style = 0,
85 const wxString& name = wxPyPanelNameStr);
86
87 void LoadUrl(const wxString&);
88 bool LoadString(wxString html);
89 bool LoadStream(wxInputStream *is);
90
91 %pythoncode { Navigate = LoadUrl }
92
93 void SetCharset(wxString charset);
94 void SetEditMode(bool seton);
95 bool GetEditMode();
96 wxString GetStringSelection(bool asHTML = False);
97 wxString GetText(bool asHTML = False);
98
99 bool GoBack();
100 bool GoForward();
101 bool GoHome();
102 bool GoSearch();
103 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
104 bool Stop();
105
106 };
107
108
109 //---------------------------------------------------------------------------
110
111