2001-01-11 23:32:44 +01:00
|
|
|
/*
|
2002-05-05 21:40:57 +02:00
|
|
|
* Header includes for shdocvw.dll
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright 2001 John R. Sheets (for CodeWeavers)
|
2006-01-25 13:14:57 +01:00
|
|
|
* Copyright 2005-2006 Jacek Caban for CodeWeavers
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-01-11 23:32:44 +01:00
|
|
|
*/
|
|
|
|
|
2002-05-05 21:40:57 +02:00
|
|
|
#ifndef __WINE_SHDOCVW_H
|
|
|
|
#define __WINE_SHDOCVW_H
|
|
|
|
|
2003-01-03 20:12:55 +01:00
|
|
|
#define COM_NO_WINDOWS_H
|
2005-09-06 13:41:14 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
2002-05-05 21:40:57 +02:00
|
|
|
#include "winbase.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "wingdi.h"
|
2002-05-05 21:40:57 +02:00
|
|
|
#include "winuser.h"
|
|
|
|
|
2002-12-05 21:33:07 +01:00
|
|
|
#include "ole2.h"
|
|
|
|
#include "olectl.h"
|
|
|
|
#include "shlobj.h"
|
2003-09-04 04:00:46 +02:00
|
|
|
#include "exdisp.h"
|
2005-11-17 12:03:53 +01:00
|
|
|
#include "mshtmhst.h"
|
2006-02-08 12:42:23 +01:00
|
|
|
#include "hlink.h"
|
2002-05-05 21:40:57 +02:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* IClassFactory declaration for SHDOCVW.DLL
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-06-06 21:50:35 +02:00
|
|
|
const IClassFactoryVtbl *lpVtbl;
|
2005-07-13 13:59:15 +02:00
|
|
|
LONG ref;
|
2002-05-05 21:40:57 +02:00
|
|
|
} IClassFactoryImpl;
|
|
|
|
|
|
|
|
extern IClassFactoryImpl SHDOCVW_ClassFactory;
|
|
|
|
|
2005-11-08 17:12:06 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Shell Instance Objects
|
|
|
|
*/
|
|
|
|
extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
|
|
|
|
REFIID riid, LPVOID *ppvClassObj);
|
2002-05-05 21:40:57 +02:00
|
|
|
|
|
|
|
/**********************************************************************
|
2005-09-06 13:41:14 +02:00
|
|
|
* WebBrowser declaration for SHDOCVW.DLL
|
2002-05-05 21:40:57 +02:00
|
|
|
*/
|
2005-12-02 11:26:32 +01:00
|
|
|
|
|
|
|
typedef struct ConnectionPoint ConnectionPoint;
|
|
|
|
|
2005-09-06 13:41:14 +02:00
|
|
|
typedef struct {
|
2005-11-15 13:03:25 +01:00
|
|
|
/* Interfaces available via WebBrowser object */
|
|
|
|
|
2005-09-12 23:17:57 +02:00
|
|
|
const IWebBrowser2Vtbl *lpWebBrowser2Vtbl;
|
2005-09-12 12:10:04 +02:00
|
|
|
const IOleObjectVtbl *lpOleObjectVtbl;
|
|
|
|
const IOleInPlaceObjectVtbl *lpOleInPlaceObjectVtbl;
|
|
|
|
const IOleControlVtbl *lpOleControlVtbl;
|
|
|
|
const IPersistStorageVtbl *lpPersistStorageVtbl;
|
|
|
|
const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
|
|
|
|
const IProvideClassInfo2Vtbl *lpProvideClassInfoVtbl;
|
|
|
|
const IConnectionPointContainerVtbl *lpConnectionPointContainerVtbl;
|
2005-11-12 20:09:46 +01:00
|
|
|
const IViewObject2Vtbl *lpViewObjectVtbl;
|
2005-12-01 11:36:52 +01:00
|
|
|
const IOleInPlaceActiveObjectVtbl *lpOleInPlaceActiveObjectVtbl;
|
2006-01-26 13:29:35 +01:00
|
|
|
const IOleCommandTargetVtbl *lpWBOleCommandTargetVtbl;
|
2006-02-08 12:42:23 +01:00
|
|
|
const IHlinkFrameVtbl *lpHlinkFrameVtbl;
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-11-15 13:03:25 +01:00
|
|
|
/* Interfaces available for embeded document */
|
|
|
|
|
|
|
|
const IOleClientSiteVtbl *lpOleClientSiteVtbl;
|
2005-11-16 12:21:00 +01:00
|
|
|
const IOleInPlaceSiteVtbl *lpOleInPlaceSiteVtbl;
|
2005-11-17 12:03:53 +01:00
|
|
|
const IDocHostUIHandler2Vtbl *lpDocHostUIHandlerVtbl;
|
2005-11-28 11:24:49 +01:00
|
|
|
const IOleDocumentSiteVtbl *lpOleDocumentSiteVtbl;
|
2006-01-26 13:28:43 +01:00
|
|
|
const IOleCommandTargetVtbl *lpClOleCommandTargetVtbl;
|
2006-01-26 13:30:04 +01:00
|
|
|
const IDispatchVtbl *lpDispatchVtbl;
|
2005-11-15 13:03:25 +01:00
|
|
|
|
2005-11-28 11:01:17 +01:00
|
|
|
/* Interfaces of InPlaceFrame object */
|
|
|
|
|
|
|
|
const IOleInPlaceFrameVtbl *lpOleInPlaceFrameVtbl;
|
|
|
|
|
2005-07-13 13:59:15 +02:00
|
|
|
LONG ref;
|
2005-09-16 20:44:37 +02:00
|
|
|
|
2005-11-15 13:03:25 +01:00
|
|
|
IUnknown *document;
|
|
|
|
|
2005-09-16 20:44:37 +02:00
|
|
|
IOleClientSite *client;
|
2005-11-16 12:46:56 +01:00
|
|
|
IOleContainer *container;
|
2005-11-28 11:24:49 +01:00
|
|
|
IOleDocumentView *view;
|
2006-01-25 13:14:57 +01:00
|
|
|
IDocHostUIHandler *hostui;
|
2005-11-16 12:46:56 +01:00
|
|
|
|
2005-11-28 20:57:04 +01:00
|
|
|
LPOLESTR url;
|
|
|
|
|
2005-11-16 12:46:56 +01:00
|
|
|
/* window context */
|
|
|
|
|
|
|
|
HWND iphwnd;
|
|
|
|
HWND frame_hwnd;
|
|
|
|
IOleInPlaceFrame *frame;
|
|
|
|
IOleInPlaceUIWindow *uiwindow;
|
|
|
|
RECT pos_rect;
|
|
|
|
RECT clip_rect;
|
|
|
|
OLEINPLACEFRAMEINFO frameinfo;
|
2005-11-17 12:40:55 +01:00
|
|
|
|
2005-11-22 12:59:57 +01:00
|
|
|
HWND doc_view_hwnd;
|
|
|
|
HWND shell_embedding_hwnd;
|
|
|
|
|
2005-11-17 12:40:55 +01:00
|
|
|
/* Connection points */
|
|
|
|
|
2005-12-02 11:26:32 +01:00
|
|
|
ConnectionPoint *cp_wbe2;
|
|
|
|
ConnectionPoint *cp_wbe;
|
|
|
|
ConnectionPoint *cp_pns;
|
2005-09-06 13:41:14 +02:00
|
|
|
} WebBrowser;
|
|
|
|
|
2005-09-12 23:17:57 +02:00
|
|
|
#define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
|
|
|
|
#define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
|
2005-09-12 12:10:04 +02:00
|
|
|
#define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
|
|
|
|
#define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
|
|
|
|
#define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
|
|
|
|
#define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
|
|
|
|
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
|
|
|
|
#define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
|
|
|
|
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
|
2005-11-12 20:09:46 +01:00
|
|
|
#define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
|
|
|
|
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
|
2005-12-01 11:36:52 +01:00
|
|
|
#define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
|
2006-01-26 13:29:35 +01:00
|
|
|
#define WBOLECMD(x) ((IOleCommandTarget*) &(x)->lpWBOleCommandTargetVtbl)
|
2006-02-08 12:42:23 +01:00
|
|
|
#define HLINKFRAME(x) ((IHlinkFrame*) &(x)->lpHlinkFrameVtbl)
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-11-15 13:03:25 +01:00
|
|
|
#define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
|
2005-11-16 12:21:00 +01:00
|
|
|
#define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
|
2005-11-17 12:03:53 +01:00
|
|
|
#define DOCHOSTUI(x) ((IDocHostUIHandler*) &(x)->lpDocHostUIHandlerVtbl)
|
|
|
|
#define DOCHOSTUI2(x) ((IDocHostUIHandler2*) &(x)->lpDocHostUIHandlerVtbl)
|
2005-11-28 11:24:49 +01:00
|
|
|
#define DOCSITE(x) ((IOleDocumentSite*) &(x)->lpOleDocumentSiteVtbl)
|
2006-01-26 13:28:43 +01:00
|
|
|
#define CLOLECMD(x) ((IOleCommandTarget*) &(x)->lpClOleCommandTargetVtbl)
|
2006-01-26 13:30:04 +01:00
|
|
|
#define CLDISP(x) ((IDispatch*) &(x)->lpDispatchVtbl)
|
2005-11-15 13:03:25 +01:00
|
|
|
|
2005-11-28 11:01:17 +01:00
|
|
|
#define INPLACEFRAME(x) ((IOleInPlaceFrame*) &(x)->lpOleInPlaceFrameVtbl)
|
|
|
|
|
2005-09-06 13:41:14 +02:00
|
|
|
void WebBrowser_OleObject_Init(WebBrowser*);
|
2005-11-12 20:09:46 +01:00
|
|
|
void WebBrowser_ViewObject_Init(WebBrowser*);
|
2005-09-08 13:01:57 +02:00
|
|
|
void WebBrowser_Persist_Init(WebBrowser*);
|
2005-09-08 20:55:50 +02:00
|
|
|
void WebBrowser_ClassInfo_Init(WebBrowser*);
|
2005-09-12 12:10:04 +02:00
|
|
|
void WebBrowser_Events_Init(WebBrowser*);
|
2006-02-08 12:42:23 +01:00
|
|
|
void WebBrowser_HlinkFrame_Init(WebBrowser*);
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-11-15 13:03:25 +01:00
|
|
|
void WebBrowser_ClientSite_Init(WebBrowser*);
|
2005-11-17 12:03:53 +01:00
|
|
|
void WebBrowser_DocHost_Init(WebBrowser*);
|
2005-11-15 13:03:25 +01:00
|
|
|
|
2005-11-28 11:01:17 +01:00
|
|
|
void WebBrowser_Frame_Init(WebBrowser*);
|
|
|
|
|
2005-11-16 12:46:56 +01:00
|
|
|
void WebBrowser_OleObject_Destroy(WebBrowser*);
|
2005-11-18 13:06:12 +01:00
|
|
|
void WebBrowser_Events_Destroy(WebBrowser*);
|
2005-11-28 11:24:49 +01:00
|
|
|
void WebBrowser_ClientSite_Destroy(WebBrowser*);
|
2005-11-16 12:46:56 +01:00
|
|
|
|
2005-09-06 13:41:14 +02:00
|
|
|
HRESULT WebBrowser_Create(IUnknown*,REFIID,void**);
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-11-28 11:17:28 +01:00
|
|
|
void create_doc_view_hwnd(WebBrowser *This);
|
2006-01-18 13:22:52 +01:00
|
|
|
void deactivate_document(WebBrowser*);
|
2005-12-02 11:26:32 +01:00
|
|
|
void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
|
2005-11-28 11:17:28 +01:00
|
|
|
|
2005-11-28 20:57:04 +01:00
|
|
|
#define WB_WM_NAVIGATE2 (WM_USER+100)
|
|
|
|
|
2005-09-06 13:41:14 +02:00
|
|
|
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
|
|
|
|
|
2005-01-27 11:43:53 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for shdocvw.dll
|
|
|
|
*/
|
|
|
|
extern LONG SHDOCVW_refCount;
|
2005-06-20 16:18:03 +02:00
|
|
|
static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
|
|
|
|
static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
|
2005-01-27 11:43:53 +01:00
|
|
|
|
2005-11-22 12:59:57 +01:00
|
|
|
extern HINSTANCE shdocvw_hinstance;
|
|
|
|
|
2002-05-05 21:40:57 +02:00
|
|
|
#endif /* __WINE_SHDOCVW_H */
|