#include "wx/msw/ole/automtn.h"
#include "wx/msw/ole/activex.h"
#include "wx/msw/ole/oleutils.h"
+#include "wx/msw/private/comptr.h"
#include "wx/msw/wrapwin.h"
#include "wx/msw/missing.h"
#include "wx/sharedptr.h"
virtual void Print();
- virtual void SetPage(const wxString& html, const wxString& baseUrl);
-
virtual wxWebViewZoom GetZoom() const;
virtual void SetZoom(wxWebViewZoom zoom);
//Virtual Filesystem Support
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler);
+ virtual void* GetNativeBackend() const { return m_webBrowser; }
+
// ---- IE-specific methods
// FIXME: I seem to be able to access remote webpages even in offline mode...
DECLARE_EVENT_TABLE();
+protected:
+ virtual void DoSetPage(const wxString& html, const wxString& baseUrl);
+
private:
wxIEContainer* m_container;
wxAutomationObject m_ie;
IWebBrowser2* m_webBrowser;
DWORD m_dwCookie;
- DocHostUIHandler* m_uiHandler;
+ wxCOMPtr<DocHostUIHandler> m_uiHandler;
//We store the current zoom type;
wxWebViewZoomType m_zoomType;
//Generic helper functions for IHtmlDocument commands
bool CanExecCommand(wxString command) const;
void ExecCommand(wxString command);
- IHTMLDocument2* GetDocument() const;
+ wxCOMPtr<IHTMLDocument2> GetDocument() const;
//Toggles control features see INTERNETFEATURELIST for values.
bool EnableControlFeature(long flag, bool enable = true);