X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c731eb47101d4656e5b736ce8e377830911bbe1d..080c709f70e4abd2a52f9ba430309180e4bc0464:/wxPython/contrib/iewin/iewin.i diff --git a/wxPython/contrib/iewin/iewin.i b/wxPython/contrib/iewin/iewin.i index 0259c427a2..8a90a95c0c 100644 --- a/wxPython/contrib/iewin/iewin.i +++ b/wxPython/contrib/iewin/iewin.i @@ -16,6 +16,7 @@ %{ #include "wxPython.h" #include "IEHtmlWin.h" +#include "pyistream.h" %} //--------------------------------------------------------------------------- @@ -28,16 +29,24 @@ %extern _defs.i %extern misc.i %extern events.i +%extern streams.i %pragma(python) code = "import wx" //--------------------------------------------------------------------------- +%{ + // Put some wx default wxChar* values into wxStrings. + DECLARE_DEF_STRING(PanelNameStr); +%} + +//--------------------------------------------------------------------------- + class wxMSHTMLEvent : public wxNotifyEvent { public: wxMSHTMLEvent(wxEventType commandType = wxEVT_NULL, int id = 0); - wxString GetText(); + wxString GetText1(); long GetLong1(); long GetLong2(); }; @@ -86,11 +95,17 @@ enum wxIEHtmlRefreshLevel { class wxIEHtmlWin : public wxWindow /* wxActiveX */ { public: - wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1); + wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyPanelNameStr); void LoadUrl(const wxString&); bool LoadString(wxString html); - /* bool LoadStream(istream *strm); */ + bool LoadStream(wxInputStream *is); + + %pragma(python) addtoclass = "Navigate = LoadUrl" void SetCharset(wxString charset); void SetEditMode(bool seton);