%{
#include "wxPython.h"
#include "IEHtmlWin.h"
+#include "pyistream.h"
%}
//---------------------------------------------------------------------------
%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();
};
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);
bool GoForward();
bool GoHome();
bool GoSearch();
- bool Refresh(wxIEHtmlRefreshLevel level);
+ %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level);
bool Stop();
};
%init %{
- wxClassInfo::CleanUpClasses();
- wxClassInfo::InitializeClasses();
-
%}
//----------------------------------------------------------------------