2011-05-04 14:24:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2012-09-10 16:02:58 -04:00
|
|
|
// Name: include/wx/msw/webview_ie.h
|
2011-05-04 14:24:30 -04:00
|
|
|
// Purpose: wxMSW IE wxWebView backend
|
|
|
|
// Author: Marianne Gagnon
|
2011-07-30 07:26:55 -04:00
|
|
|
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
|
2011-05-04 14:24:30 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef wxWebViewIE_H
|
|
|
|
#define wxWebViewIE_H
|
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
|
2011-09-12 14:35:39 -04:00
|
|
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
2011-05-04 14:24:30 -04:00
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/webview.h"
|
|
|
|
#include "wx/msw/ole/automtn.h"
|
|
|
|
#include "wx/msw/ole/activex.h"
|
2011-12-22 14:16:12 -05:00
|
|
|
#include "wx/msw/ole/oleutils.h"
|
2012-06-03 13:41:32 -04:00
|
|
|
#include "wx/msw/private/comptr.h"
|
2011-11-17 11:43:34 -05:00
|
|
|
#include "wx/msw/wrapwin.h"
|
2011-09-28 10:54:56 -04:00
|
|
|
#include "wx/msw/missing.h"
|
2012-09-10 16:02:58 -04:00
|
|
|
#include "wx/msw/webview_missing.h"
|
2011-06-30 15:57:26 -04:00
|
|
|
#include "wx/sharedptr.h"
|
2011-07-01 06:57:37 -04:00
|
|
|
#include "wx/vector.h"
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-07-11 05:35:41 -04:00
|
|
|
struct IHTMLDocument2;
|
2012-08-28 13:13:13 -04:00
|
|
|
struct IHTMLElement;
|
|
|
|
struct IMarkupPointer;
|
2011-07-22 08:31:18 -04:00
|
|
|
class wxFSFile;
|
2011-10-05 13:23:51 -04:00
|
|
|
class ClassFactory;
|
2012-01-15 14:19:00 -05:00
|
|
|
class wxIEContainer;
|
|
|
|
class DocHostUIHandler;
|
2012-08-28 13:13:13 -04:00
|
|
|
class wxFindPointers;
|
2012-09-10 16:02:58 -04:00
|
|
|
class wxIInternetProtocol;
|
2011-07-28 12:08:59 -04:00
|
|
|
|
2011-08-19 06:45:16 -04:00
|
|
|
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
|
2011-05-04 14:24:30 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxWebViewIE() {}
|
|
|
|
|
|
|
|
wxWebViewIE(wxWindow* parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& url = wxWebViewDefaultURLStr,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxWebViewNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, url, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
2011-10-05 13:23:51 -04:00
|
|
|
~wxWebViewIE();
|
|
|
|
|
2011-05-04 14:24:30 -04:00
|
|
|
bool Create(wxWindow* parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& url = wxWebViewDefaultURLStr,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxWebViewNameStr);
|
|
|
|
|
2011-08-17 06:55:59 -04:00
|
|
|
virtual void LoadURL(const wxString& url);
|
2011-08-15 08:31:31 -04:00
|
|
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item);
|
|
|
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory();
|
|
|
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory();
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool CanGoForward() const;
|
|
|
|
virtual bool CanGoBack() const;
|
2011-05-04 14:24:30 -04:00
|
|
|
virtual void GoBack();
|
|
|
|
virtual void GoForward();
|
2011-06-30 15:57:26 -04:00
|
|
|
virtual void ClearHistory();
|
|
|
|
virtual void EnableHistory(bool enable = true);
|
2011-05-04 14:24:30 -04:00
|
|
|
virtual void Stop();
|
2013-02-01 04:38:53 -05:00
|
|
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT);
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual wxString GetPageSource() const;
|
|
|
|
virtual wxString GetPageText() const;
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool IsBusy() const;
|
|
|
|
virtual wxString GetCurrentURL() const;
|
|
|
|
virtual wxString GetCurrentTitle() const;
|
2011-05-04 14:24:30 -04:00
|
|
|
|
|
|
|
virtual void SetZoomType(wxWebViewZoomType);
|
|
|
|
virtual wxWebViewZoomType GetZoomType() const;
|
|
|
|
virtual bool CanSetZoomType(wxWebViewZoomType) const;
|
|
|
|
|
|
|
|
virtual void Print();
|
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual wxWebViewZoom GetZoom() const;
|
2011-05-04 14:24:30 -04:00
|
|
|
virtual void SetZoom(wxWebViewZoom zoom);
|
|
|
|
|
2011-07-02 07:45:19 -04:00
|
|
|
//Clipboard functions
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool CanCut() const;
|
|
|
|
virtual bool CanCopy() const;
|
|
|
|
virtual bool CanPaste() const;
|
2011-07-02 07:45:19 -04:00
|
|
|
virtual void Cut();
|
|
|
|
virtual void Copy();
|
|
|
|
virtual void Paste();
|
|
|
|
|
2011-07-02 11:07:46 -04:00
|
|
|
//Undo / redo functionality
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool CanUndo() const;
|
|
|
|
virtual bool CanRedo() const;
|
2011-07-02 11:07:46 -04:00
|
|
|
virtual void Undo();
|
|
|
|
virtual void Redo();
|
|
|
|
|
2012-08-28 13:13:13 -04:00
|
|
|
//Find function
|
2013-02-01 04:38:53 -05:00
|
|
|
virtual long Find(const wxString& text, int flags = wxWEBVIEW_FIND_DEFAULT);
|
2012-08-28 13:13:13 -04:00
|
|
|
|
2011-07-08 15:34:56 -04:00
|
|
|
//Editing functions
|
|
|
|
virtual void SetEditable(bool enable = true);
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool IsEditable() const;
|
2011-07-08 15:34:56 -04:00
|
|
|
|
2011-07-09 10:31:29 -04:00
|
|
|
//Selection
|
|
|
|
virtual void SelectAll();
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual bool HasSelection() const;
|
2011-07-09 10:31:29 -04:00
|
|
|
virtual void DeleteSelection();
|
2011-08-17 06:26:09 -04:00
|
|
|
virtual wxString GetSelectedText() const;
|
|
|
|
virtual wxString GetSelectedSource() const;
|
2011-07-15 05:36:08 -04:00
|
|
|
virtual void ClearSelection();
|
2011-07-09 10:31:29 -04:00
|
|
|
|
2011-07-15 08:38:47 -04:00
|
|
|
virtual void RunScript(const wxString& javascript);
|
2011-07-09 10:31:29 -04:00
|
|
|
|
2011-07-28 12:08:59 -04:00
|
|
|
//Virtual Filesystem Support
|
2011-08-14 08:15:34 -04:00
|
|
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler);
|
2011-07-28 12:08:59 -04:00
|
|
|
|
2012-07-24 17:59:21 -04:00
|
|
|
virtual void* GetNativeBackend() const { return m_webBrowser; }
|
|
|
|
|
2011-05-04 14:24:30 -04:00
|
|
|
// ---- IE-specific methods
|
|
|
|
|
|
|
|
// FIXME: I seem to be able to access remote webpages even in offline mode...
|
|
|
|
bool IsOfflineMode();
|
|
|
|
void SetOfflineMode(bool offline);
|
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
wxWebViewZoom GetIETextZoom() const;
|
2011-07-14 05:58:33 -04:00
|
|
|
void SetIETextZoom(wxWebViewZoom level);
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-08-17 06:26:09 -04:00
|
|
|
wxWebViewZoom GetIEOpticalZoom() const;
|
2011-07-14 05:58:33 -04:00
|
|
|
void SetIEOpticalZoom(wxWebViewZoom level);
|
2011-05-04 14:24:30 -04:00
|
|
|
|
|
|
|
void onActiveXEvent(wxActiveXEvent& evt);
|
2011-07-11 05:35:41 -04:00
|
|
|
void onEraseBg(wxEraseEvent&) {}
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2012-07-24 16:45:10 -04:00
|
|
|
protected:
|
|
|
|
virtual void DoSetPage(const wxString& html, const wxString& baseUrl);
|
|
|
|
|
2011-05-04 14:24:30 -04:00
|
|
|
private:
|
2012-01-15 14:19:00 -05:00
|
|
|
wxIEContainer* m_container;
|
2011-05-04 14:24:30 -04:00
|
|
|
wxAutomationObject m_ie;
|
|
|
|
IWebBrowser2* m_webBrowser;
|
|
|
|
DWORD m_dwCookie;
|
2012-06-03 13:41:32 -04:00
|
|
|
wxCOMPtr<DocHostUIHandler> m_uiHandler;
|
2011-05-04 14:24:30 -04:00
|
|
|
|
2011-07-14 05:58:33 -04:00
|
|
|
//We store the current zoom type;
|
|
|
|
wxWebViewZoomType m_zoomType;
|
|
|
|
|
2011-05-04 14:24:30 -04:00
|
|
|
/** The "Busy" property of IWebBrowser2 does not always return busy when
|
|
|
|
* we'd want it to; this variable may be set to true in cases where the
|
|
|
|
* Busy property is false but should be true.
|
|
|
|
*/
|
|
|
|
bool m_isBusy;
|
2011-11-18 18:40:24 -05:00
|
|
|
//We manage our own history, the history list contains the history items
|
2011-07-01 06:01:45 -04:00
|
|
|
//which are added as documentcomplete events arrive, unless we are loading
|
|
|
|
//an item from the history. The position is stored as an int, and reflects
|
|
|
|
//where we are in the history list.
|
2011-08-15 08:31:31 -04:00
|
|
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > m_historyList;
|
2011-10-05 13:23:51 -04:00
|
|
|
wxVector<ClassFactory*> m_factories;
|
2011-06-30 15:57:26 -04:00
|
|
|
int m_historyPosition;
|
|
|
|
bool m_historyLoadingFromList;
|
|
|
|
bool m_historyEnabled;
|
|
|
|
|
2012-08-28 13:13:13 -04:00
|
|
|
//We store find flag, results and position.
|
|
|
|
wxVector<wxFindPointers> m_findPointers;
|
|
|
|
int m_findFlags;
|
|
|
|
wxString m_findText;
|
|
|
|
int m_findPosition;
|
|
|
|
|
|
|
|
//Generic helper functions
|
2011-08-17 06:26:09 -04:00
|
|
|
bool CanExecCommand(wxString command) const;
|
2011-07-02 07:45:19 -04:00
|
|
|
void ExecCommand(wxString command);
|
2012-06-03 13:41:32 -04:00
|
|
|
wxCOMPtr<IHTMLDocument2> GetDocument() const;
|
2013-05-18 10:07:58 -04:00
|
|
|
bool IsElementVisible(wxCOMPtr<IHTMLElement> elm);
|
2012-08-28 13:13:13 -04:00
|
|
|
//Find helper functions.
|
|
|
|
void FindInternal(const wxString& text, int flags, int internal_flag);
|
|
|
|
long FindNext(int direction = 1);
|
|
|
|
void FindClear();
|
2012-02-02 15:32:08 -05:00
|
|
|
//Toggles control features see INTERNETFEATURELIST for values.
|
|
|
|
bool EnableControlFeature(long flag, bool enable = true);
|
2011-07-02 07:45:19 -04:00
|
|
|
|
2011-08-01 11:49:05 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxWebViewIE);
|
2011-05-04 14:24:30 -04:00
|
|
|
};
|
|
|
|
|
2013-01-13 14:22:24 -05:00
|
|
|
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); }
|
|
|
|
};
|
|
|
|
|
2011-11-16 18:45:22 -05:00
|
|
|
class VirtualProtocol : public wxIInternetProtocol
|
2011-07-22 08:31:18 -04:00
|
|
|
{
|
|
|
|
protected:
|
2011-11-16 18:45:22 -05:00
|
|
|
wxIInternetProtocolSink* m_protocolSink;
|
2011-07-22 08:31:18 -04:00
|
|
|
wxString m_html;
|
|
|
|
VOID * fileP;
|
|
|
|
|
|
|
|
wxFSFile* m_file;
|
2011-08-14 08:15:34 -04:00
|
|
|
wxSharedPtr<wxWebViewHandler> m_handler;
|
2011-07-22 08:31:18 -04:00
|
|
|
|
|
|
|
public:
|
2011-08-14 08:15:34 -04:00
|
|
|
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
|
2013-07-12 10:12:35 -04:00
|
|
|
virtual ~VirtualProtocol() {}
|
2011-07-22 08:31:18 -04:00
|
|
|
|
|
|
|
//IUnknown
|
2011-12-22 14:16:12 -05:00
|
|
|
DECLARE_IUNKNOWN_METHODS;
|
2011-07-22 08:31:18 -04:00
|
|
|
|
|
|
|
//IInternetProtocolRoot
|
2011-11-18 18:40:24 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE Abort(HRESULT WXUNUSED(hrReason),
|
2011-07-25 11:43:18 -04:00
|
|
|
DWORD WXUNUSED(dwOptions))
|
2011-07-22 08:31:18 -04:00
|
|
|
{ return E_NOTIMPL; }
|
2011-11-16 18:45:22 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE Continue(wxPROTOCOLDATA *WXUNUSED(pProtocolData))
|
2011-07-22 08:31:18 -04:00
|
|
|
{ return S_OK; }
|
|
|
|
HRESULT STDMETHODCALLTYPE Resume() { return S_OK; }
|
2011-11-18 18:40:24 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE Start(LPCWSTR szUrl,
|
2011-11-16 18:45:22 -05:00
|
|
|
wxIInternetProtocolSink *pOIProtSink,
|
|
|
|
wxIInternetBindInfo *pOIBindInfo,
|
2011-11-18 18:40:24 -05:00
|
|
|
DWORD grfPI,
|
2011-07-22 08:31:18 -04:00
|
|
|
HANDLE_PTR dwReserved);
|
|
|
|
HRESULT STDMETHODCALLTYPE Suspend() { return S_OK; }
|
2011-07-25 11:43:18 -04:00
|
|
|
HRESULT STDMETHODCALLTYPE Terminate(DWORD WXUNUSED(dwOptions)) { return S_OK; }
|
2011-07-22 08:31:18 -04:00
|
|
|
|
|
|
|
//IInternetProtocol
|
2011-11-18 18:40:24 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE LockRequest(DWORD WXUNUSED(dwOptions))
|
2011-07-25 11:43:18 -04:00
|
|
|
{ return S_OK; }
|
2011-07-22 08:31:18 -04:00
|
|
|
HRESULT STDMETHODCALLTYPE Read(void *pv, ULONG cb, ULONG *pcbRead);
|
2011-11-18 18:40:24 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER WXUNUSED(dlibMove),
|
|
|
|
DWORD WXUNUSED(dwOrigin),
|
|
|
|
ULARGE_INTEGER* WXUNUSED(plibNewPosition))
|
2011-07-22 08:31:18 -04:00
|
|
|
{ return E_FAIL; }
|
|
|
|
HRESULT STDMETHODCALLTYPE UnlockRequest() { return S_OK; }
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClassFactory : public IClassFactory
|
|
|
|
{
|
|
|
|
public:
|
2012-10-21 16:33:48 -04:00
|
|
|
ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler)
|
2013-07-12 10:12:35 -04:00
|
|
|
{ AddRef(); }
|
|
|
|
virtual ~ClassFactory() {}
|
2012-10-21 16:33:48 -04:00
|
|
|
|
|
|
|
wxString GetName() { return m_handler->GetName(); }
|
2011-07-22 08:31:18 -04:00
|
|
|
|
|
|
|
//IClassFactory
|
2011-11-18 18:40:24 -05:00
|
|
|
HRESULT STDMETHODCALLTYPE CreateInstance(IUnknown* pUnkOuter,
|
2011-07-22 08:31:18 -04:00
|
|
|
REFIID riid, void** ppvObject);
|
|
|
|
HRESULT STDMETHODCALLTYPE LockServer(BOOL fLock);
|
2011-12-22 14:16:12 -05:00
|
|
|
|
|
|
|
//IUnknown
|
|
|
|
DECLARE_IUNKNOWN_METHODS;
|
|
|
|
|
2011-07-28 12:08:59 -04:00
|
|
|
private:
|
2011-08-14 08:15:34 -04:00
|
|
|
wxSharedPtr<wxWebViewHandler> m_handler;
|
2011-07-22 08:31:18 -04:00
|
|
|
};
|
|
|
|
|
2012-01-15 14:19:00 -05:00
|
|
|
class wxIEContainer : public wxActiveXContainer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxIEContainer(wxWindow *parent, REFIID iid, IUnknown *pUnk, DocHostUIHandler* uiHandler = NULL);
|
|
|
|
virtual ~wxIEContainer();
|
|
|
|
virtual bool QueryClientSiteInterface(REFIID iid, void **_interface, const char *&desc);
|
|
|
|
private:
|
|
|
|
DocHostUIHandler* m_uiHandler;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DocHostUIHandler : public wxIDocHostUIHandler
|
|
|
|
{
|
|
|
|
public:
|
2012-12-31 08:21:21 -05:00
|
|
|
DocHostUIHandler(wxWebView* browser) { m_browser = browser; }
|
2013-07-12 10:12:35 -04:00
|
|
|
virtual ~DocHostUIHandler() {}
|
2012-12-31 08:21:21 -05:00
|
|
|
|
2012-01-15 14:19:00 -05:00
|
|
|
virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
|
|
|
|
IUnknown *pcmdtReserved,
|
|
|
|
IDispatch *pdispReserved);
|
2012-03-28 14:00:30 -04:00
|
|
|
|
2012-01-15 14:19:00 -05:00
|
|
|
virtual HRESULT wxSTDCALL GetHostInfo(DOCHOSTUIINFO *pInfo);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL ShowUI(DWORD dwID,
|
|
|
|
IOleInPlaceActiveObject *pActiveObject,
|
|
|
|
IOleCommandTarget *pCommandTarget,
|
|
|
|
IOleInPlaceFrame *pFrame,
|
|
|
|
IOleInPlaceUIWindow *pDoc);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL HideUI(void);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL UpdateUI(void);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL EnableModeless(BOOL fEnable);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL OnDocWindowActivate(BOOL fActivate);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL OnFrameWindowActivate(BOOL fActivate);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL ResizeBorder(LPCRECT prcBorder,
|
|
|
|
IOleInPlaceUIWindow *pUIWindow,
|
|
|
|
BOOL fRameWindow);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL TranslateAccelerator(LPMSG lpMsg,
|
|
|
|
const GUID *pguidCmdGroup,
|
|
|
|
DWORD nCmdID);
|
|
|
|
|
2012-03-28 14:00:30 -04:00
|
|
|
virtual HRESULT wxSTDCALL GetOptionKeyPath(LPOLESTR *pchKey,
|
2012-01-15 14:19:00 -05:00
|
|
|
DWORD dw);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL GetDropTarget(IDropTarget *pDropTarget,
|
|
|
|
IDropTarget **ppDropTarget);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL GetExternal(IDispatch **ppDispatch);
|
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL TranslateUrl(DWORD dwTranslate,
|
2012-01-16 03:21:33 -05:00
|
|
|
OLECHAR *pchURLIn,
|
|
|
|
OLECHAR **ppchURLOut);
|
2012-01-15 14:19:00 -05:00
|
|
|
|
|
|
|
virtual HRESULT wxSTDCALL FilterDataObject(IDataObject *pDO,
|
|
|
|
IDataObject **ppDORet);
|
|
|
|
//IUnknown
|
|
|
|
DECLARE_IUNKNOWN_METHODS;
|
2012-12-31 08:21:21 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
wxWebView* m_browser;
|
2012-01-15 14:19:00 -05:00
|
|
|
};
|
|
|
|
|
2012-08-28 13:13:13 -04:00
|
|
|
class wxFindPointers
|
|
|
|
{
|
|
|
|
public:
|
2012-09-10 16:02:58 -04:00
|
|
|
wxFindPointers(wxIMarkupPointer *ptrBegin, wxIMarkupPointer *ptrEnd)
|
2012-08-28 13:13:13 -04:00
|
|
|
{
|
|
|
|
begin = ptrBegin;
|
|
|
|
end = ptrEnd;
|
|
|
|
}
|
|
|
|
//The two markup pointers.
|
2012-09-10 16:02:58 -04:00
|
|
|
wxIMarkupPointer *begin, *end;
|
2012-08-28 13:13:13 -04:00
|
|
|
};
|
|
|
|
|
2011-09-12 14:35:39 -04:00
|
|
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
2011-05-04 14:24:30 -04:00
|
|
|
|
|
|
|
#endif // wxWebViewIE_H
|