]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/iewin/iewin.py
An icon for the doc viewer
[wxWidgets.git] / wxPython / contrib / iewin / iewin.py
CommitLineData
c731eb47 1# This file was created automatically by SWIG.
de7b7fe6 2# Don't modify this file, modify the SWIG interface instead.
c731eb47 3
de7b7fe6 4import _iewin
c731eb47 5
de7b7fe6
RD
6import core
7wx = core
8class MSHTMLEvent(core.NotifyEvent):
9 def __repr__(self):
10 return "<%s.%s; proxy of C++ wxMSHTMLEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
11 def __init__(self, *args, **kwargs):
12 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> MSHTMLEvent"""
13 newobj = _iewin.new_MSHTMLEvent(*args, **kwargs)
14 self.this = newobj.this
15 self.thisown = 1
16 del newobj.thisown
17 def GetText1(*args, **kwargs):
18 """GetText1() -> String"""
19 return _iewin.MSHTMLEvent_GetText1(*args, **kwargs)
c731eb47 20
de7b7fe6
RD
21 def GetLong1(*args, **kwargs):
22 """GetLong1() -> long"""
23 return _iewin.MSHTMLEvent_GetLong1(*args, **kwargs)
c731eb47 24
de7b7fe6
RD
25 def GetLong2(*args, **kwargs):
26 """GetLong2() -> long"""
27 return _iewin.MSHTMLEvent_GetLong2(*args, **kwargs)
c731eb47 28
c731eb47 29
de7b7fe6
RD
30class MSHTMLEventPtr(MSHTMLEvent):
31 def __init__(self, this):
c731eb47 32 self.this = this
de7b7fe6
RD
33 if not hasattr(self,"thisown"): self.thisown = 0
34 self.__class__ = MSHTMLEvent
35_iewin.MSHTMLEvent_swigregister(MSHTMLEventPtr)
36
37wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2 = _iewin.wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
38wxEVT_COMMAND_MSHTML_NEWWINDOW2 = _iewin.wxEVT_COMMAND_MSHTML_NEWWINDOW2
39wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE = _iewin.wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
40wxEVT_COMMAND_MSHTML_PROGRESSCHANGE = _iewin.wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
41wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE = _iewin.wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
42wxEVT_COMMAND_MSHTML_TITLECHANGE = _iewin.wxEVT_COMMAND_MSHTML_TITLECHANGE
43EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
44EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
45EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
46EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
47EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
48EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
49
50IEHTML_REFRESH_NORMAL = _iewin.IEHTML_REFRESH_NORMAL
51IEHTML_REFRESH_IFEXPIRED = _iewin.IEHTML_REFRESH_IFEXPIRED
52IEHTML_REFRESH_CONTINUE = _iewin.IEHTML_REFRESH_CONTINUE
53IEHTML_REFRESH_COMPLETELY = _iewin.IEHTML_REFRESH_COMPLETELY
54class IEHtmlWin(core.Window):
c731eb47 55 def __repr__(self):
de7b7fe6
RD
56 return "<%s.%s; proxy of C++ wxIEHtmlWin instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
57 def __init__(self, *args, **kwargs):
58 """
59 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
60 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> IEHtmlWin
61 """
62 newobj = _iewin.new_IEHtmlWin(*args, **kwargs)
63 self.this = newobj.this
c731eb47 64 self.thisown = 1
de7b7fe6
RD
65 del newobj.thisown
66 self._setOORInfo(self)
c731eb47 67
de7b7fe6
RD
68 def LoadUrl(*args, **kwargs):
69 """LoadUrl(String ??)"""
70 return _iewin.IEHtmlWin_LoadUrl(*args, **kwargs)
c731eb47 71
de7b7fe6
RD
72 def LoadString(*args, **kwargs):
73 """LoadString(String html) -> bool"""
74 return _iewin.IEHtmlWin_LoadString(*args, **kwargs)
c731eb47 75
de7b7fe6
RD
76 def LoadStream(*args, **kwargs):
77 """LoadStream(InputStream is) -> bool"""
78 return _iewin.IEHtmlWin_LoadStream(*args, **kwargs)
c731eb47 79
de7b7fe6
RD
80 Navigate = LoadUrl
81 def SetCharset(*args, **kwargs):
82 """SetCharset(String charset)"""
83 return _iewin.IEHtmlWin_SetCharset(*args, **kwargs)
c731eb47 84
de7b7fe6
RD
85 def SetEditMode(*args, **kwargs):
86 """SetEditMode(bool seton)"""
87 return _iewin.IEHtmlWin_SetEditMode(*args, **kwargs)
c731eb47 88
de7b7fe6
RD
89 def GetEditMode(*args, **kwargs):
90 """GetEditMode() -> bool"""
91 return _iewin.IEHtmlWin_GetEditMode(*args, **kwargs)
c731eb47 92
de7b7fe6
RD
93 def GetStringSelection(*args, **kwargs):
94 """GetStringSelection(bool asHTML=False) -> String"""
95 return _iewin.IEHtmlWin_GetStringSelection(*args, **kwargs)
c731eb47 96
de7b7fe6
RD
97 def GetText(*args, **kwargs):
98 """GetText(bool asHTML=False) -> String"""
99 return _iewin.IEHtmlWin_GetText(*args, **kwargs)
c731eb47 100
de7b7fe6
RD
101 def GoBack(*args, **kwargs):
102 """GoBack() -> bool"""
103 return _iewin.IEHtmlWin_GoBack(*args, **kwargs)
c731eb47 104
de7b7fe6
RD
105 def GoForward(*args, **kwargs):
106 """GoForward() -> bool"""
107 return _iewin.IEHtmlWin_GoForward(*args, **kwargs)
c731eb47 108
de7b7fe6
RD
109 def GoHome(*args, **kwargs):
110 """GoHome() -> bool"""
111 return _iewin.IEHtmlWin_GoHome(*args, **kwargs)
c731eb47 112
de7b7fe6
RD
113 def GoSearch(*args, **kwargs):
114 """GoSearch() -> bool"""
115 return _iewin.IEHtmlWin_GoSearch(*args, **kwargs)
c731eb47 116
de7b7fe6
RD
117 def RefreshPage(*args, **kwargs):
118 """RefreshPage(int level) -> bool"""
119 return _iewin.IEHtmlWin_RefreshPage(*args, **kwargs)
c731eb47 120
de7b7fe6
RD
121 def Stop(*args, **kwargs):
122 """Stop() -> bool"""
123 return _iewin.IEHtmlWin_Stop(*args, **kwargs)
c731eb47
RD
124
125
de7b7fe6
RD
126class IEHtmlWinPtr(IEHtmlWin):
127 def __init__(self, this):
128 self.this = this
129 if not hasattr(self,"thisown"): self.thisown = 0
130 self.__class__ = IEHtmlWin
131_iewin.IEHtmlWin_swigregister(IEHtmlWinPtr)
c731eb47 132
c731eb47 133