2 * Header includes for shdocvw.dll
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_SHDOCVW_H
22 #define __WINE_SHDOCVW_H
24 #define COM_NO_WINDOWS_H
40 /**********************************************************************
41 * IClassFactory declaration for SHDOCVW.DLL
46 const IClassFactoryVtbl
*lpVtbl
;
50 extern IClassFactoryImpl SHDOCVW_ClassFactory
;
52 /**********************************************************************
53 * Shell Instance Objects
55 extern HRESULT
SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid
,
56 REFIID riid
, LPVOID
*ppvClassObj
);
58 /**********************************************************************
59 * WebBrowser declaration for SHDOCVW.DLL
62 /* Interfaces available via WebBrowser object */
64 const IWebBrowser2Vtbl
*lpWebBrowser2Vtbl
;
65 const IOleObjectVtbl
*lpOleObjectVtbl
;
66 const IOleInPlaceObjectVtbl
*lpOleInPlaceObjectVtbl
;
67 const IOleControlVtbl
*lpOleControlVtbl
;
68 const IPersistStorageVtbl
*lpPersistStorageVtbl
;
69 const IPersistStreamInitVtbl
*lpPersistStreamInitVtbl
;
70 const IProvideClassInfo2Vtbl
*lpProvideClassInfoVtbl
;
71 const IQuickActivateVtbl
*lpQuickActivateVtbl
;
72 const IConnectionPointContainerVtbl
*lpConnectionPointContainerVtbl
;
73 const IViewObject2Vtbl
*lpViewObjectVtbl
;
74 const IOleInPlaceActiveObjectVtbl
*lpOleInPlaceActiveObjectVtbl
;
76 /* Interfaces available for embeded document */
78 const IOleClientSiteVtbl
*lpOleClientSiteVtbl
;
79 const IOleInPlaceSiteVtbl
*lpOleInPlaceSiteVtbl
;
80 const IDocHostUIHandler2Vtbl
*lpDocHostUIHandlerVtbl
;
81 const IOleDocumentSiteVtbl
*lpOleDocumentSiteVtbl
;
83 /* Interfaces of InPlaceFrame object */
85 const IOleInPlaceFrameVtbl
*lpOleInPlaceFrameVtbl
;
91 IOleClientSite
*client
;
92 IOleContainer
*container
;
93 IOleDocumentView
*view
;
101 IOleInPlaceFrame
*frame
;
102 IOleInPlaceUIWindow
*uiwindow
;
105 OLEINPLACEFRAMEINFO frameinfo
;
108 HWND shell_embedding_hwnd
;
110 /* Connection points */
112 IConnectionPoint
*cp_wbe2
;
113 IConnectionPoint
*cp_wbe
;
114 IConnectionPoint
*cp_pns
;
117 #define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
118 #define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
119 #define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
120 #define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
121 #define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
122 #define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
123 #define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
124 #define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
125 #define QUICKACT(x) ((IQuickActivate*) &(x)->lpQuickActivateVtbl)
126 #define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
127 #define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
128 #define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
129 #define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
131 #define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
132 #define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
133 #define DOCHOSTUI(x) ((IDocHostUIHandler*) &(x)->lpDocHostUIHandlerVtbl)
134 #define DOCHOSTUI2(x) ((IDocHostUIHandler2*) &(x)->lpDocHostUIHandlerVtbl)
135 #define DOCSITE(x) ((IOleDocumentSite*) &(x)->lpOleDocumentSiteVtbl)
137 #define INPLACEFRAME(x) ((IOleInPlaceFrame*) &(x)->lpOleInPlaceFrameVtbl)
139 void WebBrowser_OleObject_Init(WebBrowser
*);
140 void WebBrowser_ViewObject_Init(WebBrowser
*);
141 void WebBrowser_Persist_Init(WebBrowser
*);
142 void WebBrowser_ClassInfo_Init(WebBrowser
*);
143 void WebBrowser_Misc_Init(WebBrowser
*);
144 void WebBrowser_Events_Init(WebBrowser
*);
146 void WebBrowser_ClientSite_Init(WebBrowser
*);
147 void WebBrowser_DocHost_Init(WebBrowser
*);
149 void WebBrowser_Frame_Init(WebBrowser
*);
151 void WebBrowser_OleObject_Destroy(WebBrowser
*);
152 void WebBrowser_Events_Destroy(WebBrowser
*);
153 void WebBrowser_ClientSite_Destroy(WebBrowser
*);
155 HRESULT
WebBrowser_Create(IUnknown
*,REFIID
,void**);
157 void create_doc_view_hwnd(WebBrowser
*This
);
159 #define WB_WM_NAVIGATE2 (WM_USER+100)
161 #define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
163 /**********************************************************************
164 * Dll lifetime tracking declaration for shdocvw.dll
166 extern LONG SHDOCVW_refCount
;
167 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount
); }
168 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount
); }
170 extern HINSTANCE shdocvw_hinstance
;
172 #endif /* __WINE_SHDOCVW_H */