// Name: include/wx/msw/webview_ie.h
// Purpose: wxMSW IE wxWebView backend
// Author: Marianne Gagnon
-// Id: $Id$
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
virtual void ClearHistory();
virtual void EnableHistory(bool enable = true);
virtual void Stop();
- virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
+ virtual void Reload(wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT);
virtual wxString GetPageSource() const;
virtual wxString GetPageText() const;
virtual void Redo();
//Find function
- virtual long Find(const wxString& text, int flags = wxWEB_VIEW_FIND_DEFAULT);
+ virtual long Find(const wxString& text, int flags = wxWEBVIEW_FIND_DEFAULT);
//Editing functions
virtual void SetEditable(bool enable = true);
bool CanExecCommand(wxString command) const;
void ExecCommand(wxString command);
wxCOMPtr<IHTMLDocument2> GetDocument() const;
- bool IsElementVisible(IHTMLElement* elm);
+ bool IsElementVisible(wxCOMPtr<IHTMLElement> elm);
//Find helper functions.
void FindInternal(const wxString& text, int flags, int internal_flag);
long FindNext(int direction = 1);
wxDECLARE_DYNAMIC_CLASS(wxWebViewIE);
};
+class WXDLLIMPEXP_WEBVIEW wxWebViewFactoryIE : public wxWebViewFactory
+{
+public:
+ virtual wxWebView* Create() { return new wxWebViewIE; }
+ virtual wxWebView* Create(wxWindow* parent,
+ wxWindowID id,
+ const wxString& url = wxWebViewDefaultURLStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxWebViewNameStr)
+ { return new wxWebViewIE(parent, id, url, pos, size, style, name); }
+};
+
class VirtualProtocol : public wxIInternetProtocol
{
protected:
public:
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
- ~VirtualProtocol() {}
+ virtual ~VirtualProtocol() {}
//IUnknown
DECLARE_IUNKNOWN_METHODS;
{
public:
ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler)
- { AddRef(); }
+ { AddRef(); }
+ virtual ~ClassFactory() {}
wxString GetName() { return m_handler->GetName(); }
class DocHostUIHandler : public wxIDocHostUIHandler
{
public:
- DocHostUIHandler() {};
- ~DocHostUIHandler() {};
+ DocHostUIHandler(wxWebView* browser) { m_browser = browser; }
+ virtual ~DocHostUIHandler() {}
+
virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
IUnknown *pcmdtReserved,
IDispatch *pdispReserved);
IDataObject **ppDORet);
//IUnknown
DECLARE_IUNKNOWN_METHODS;
+
+private:
+ wxWebView* m_browser;
};
class wxFindPointers