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
39 /**********************************************************************
40 * IClassFactory declaration for SHDOCVW.DLL
45 const IClassFactoryVtbl
*lpVtbl
;
49 extern IClassFactoryImpl SHDOCVW_ClassFactory
;
51 /**********************************************************************
52 * Shell Instance Objects
54 extern HRESULT
SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid
,
55 REFIID riid
, LPVOID
*ppvClassObj
);
57 /**********************************************************************
58 * WebBrowser declaration for SHDOCVW.DLL
61 /* Interfaces available via WebBrowser object */
63 const IWebBrowser2Vtbl
*lpWebBrowser2Vtbl
;
64 const IOleObjectVtbl
*lpOleObjectVtbl
;
65 const IOleInPlaceObjectVtbl
*lpOleInPlaceObjectVtbl
;
66 const IOleControlVtbl
*lpOleControlVtbl
;
67 const IPersistStorageVtbl
*lpPersistStorageVtbl
;
68 const IPersistStreamInitVtbl
*lpPersistStreamInitVtbl
;
69 const IProvideClassInfo2Vtbl
*lpProvideClassInfoVtbl
;
70 const IQuickActivateVtbl
*lpQuickActivateVtbl
;
71 const IConnectionPointContainerVtbl
*lpConnectionPointContainerVtbl
;
72 const IViewObject2Vtbl
*lpViewObjectVtbl
;
74 /* Interfaces available for embeded document */
76 const IOleClientSiteVtbl
*lpOleClientSiteVtbl
;
77 const IOleInPlaceSiteVtbl
*lpOleInPlaceSiteVtbl
;
83 IOleClientSite
*client
;
84 IOleContainer
*container
;
90 IOleInPlaceFrame
*frame
;
91 IOleInPlaceUIWindow
*uiwindow
;
94 OLEINPLACEFRAMEINFO frameinfo
;
97 #define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
98 #define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
99 #define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
100 #define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
101 #define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
102 #define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
103 #define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
104 #define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
105 #define QUICKACT(x) ((IQuickActivate*) &(x)->lpQuickActivateVtbl)
106 #define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
107 #define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
108 #define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
110 #define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
111 #define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
113 void WebBrowser_OleObject_Init(WebBrowser
*);
114 void WebBrowser_ViewObject_Init(WebBrowser
*);
115 void WebBrowser_Persist_Init(WebBrowser
*);
116 void WebBrowser_ClassInfo_Init(WebBrowser
*);
117 void WebBrowser_Misc_Init(WebBrowser
*);
118 void WebBrowser_Events_Init(WebBrowser
*);
120 void WebBrowser_ClientSite_Init(WebBrowser
*);
122 void WebBrowser_OleObject_Destroy(WebBrowser
*);
124 HRESULT
WebBrowser_Create(IUnknown
*,REFIID
,void**);
126 /**********************************************************************
127 * IConnectionPoint declaration for SHDOCVW.DLL
131 /* IUnknown fields */
132 const IConnectionPointVtbl
*lpVtbl
;
134 } IConnectionPointImpl
;
136 #define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
138 /**********************************************************************
139 * Dll lifetime tracking declaration for shdocvw.dll
141 extern LONG SHDOCVW_refCount
;
142 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount
); }
143 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount
); }
145 #endif /* __WINE_SHDOCVW_H */