]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/iewin/iewin.i
Added some info panels that show size and colour attributes about the widget
[wxWidgets.git] / wxPython / contrib / iewin / iewin.i
CommitLineData
c731eb47
RD
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%{
de7b7fe6
RD
17#include "wx/wxPython/wxPython.h"
18#include "wx/wxPython/pyclasses.h"
19#include "wx/wxPython/pyistream.h"
20
c731eb47
RD
21#include "IEHtmlWin.h"
22%}
23
24//---------------------------------------------------------------------------
25
de7b7fe6 26%import core.i
54f9ee45 27%pythoncode { wx = _core }
99109c0f 28%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
c731eb47 29
de7b7fe6 30MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
c731eb47 31
de7b7fe6 32%include _iewin_rename.i
c731eb47 33
d7abf017
RD
34
35//---------------------------------------------------------------------------
36
c731eb47
RD
37class wxMSHTMLEvent : public wxNotifyEvent
38{
39public:
40 wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
83a73288 41 wxString GetText1();
c731eb47
RD
42 long GetLong1();
43 long GetLong2();
44};
45
46
47enum {
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
d2f9bbfd 57%pythoncode {
de7b7fe6
RD
58EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
59EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
60EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
61EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
62EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
63EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
64}
c731eb47
RD
65
66//---------------------------------------------------------------------------
67
68enum wxIEHtmlRefreshLevel {
69 wxIEHTML_REFRESH_NORMAL = 0,
70 wxIEHTML_REFRESH_IFEXPIRED = 1,
71 wxIEHTML_REFRESH_CONTINUE = 2,
72 wxIEHTML_REFRESH_COMPLETELY = 3
73};
74
75
de7b7fe6 76class wxIEHtmlWin : public wxWindow /* wxActiveX */
c731eb47
RD
77{
78public:
2b9048c5 79 %pythonAppend wxIEHtmlWin "self._setOORInfo(self)"
de7b7fe6 80
d7abf017
RD
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);
c731eb47
RD
86
87 void LoadUrl(const wxString&);
88 bool LoadString(wxString html);
d3b55102 89 bool LoadStream(wxInputStream *is);
c731eb47 90
de7b7fe6 91 %pythoncode { Navigate = LoadUrl }
83a73288 92
c731eb47
RD
93 void SetCharset(wxString charset);
94 void SetEditMode(bool seton);
95 bool GetEditMode();
de7b7fe6
RD
96 wxString GetStringSelection(bool asHTML = False);
97 wxString GetText(bool asHTML = False);
c731eb47
RD
98
99 bool GoBack();
100 bool GoForward();
101 bool GoHome();
102 bool GoSearch();
1e4a197e 103 %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
c731eb47
RD
104 bool Stop();
105
106};
107
108
109//---------------------------------------------------------------------------
110
c731eb47 111