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