shdocvw: Added IHlinkFrame stub implementation.
[wine/wine-gecko.git] / dlls / shdocvw / shdocvw.h
blobace8fff6bf15a415ed4e8bd67ab776fd3b62c60f
1 /*
2 * Header includes for shdocvw.dll
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
5 * Copyright 2005-2006 Jacek Caban for CodeWeavers
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __WINE_SHDOCVW_H
23 #define __WINE_SHDOCVW_H
25 #define COM_NO_WINDOWS_H
26 #define COBJMACROS
28 #include <stdarg.h>
30 #include "windef.h"
31 #include "winbase.h"
32 #include "wingdi.h"
33 #include "winuser.h"
35 #include "ole2.h"
36 #include "olectl.h"
37 #include "shlobj.h"
38 #include "exdisp.h"
39 #include "mshtmhst.h"
40 #include "hlink.h"
42 /**********************************************************************
43 * IClassFactory declaration for SHDOCVW.DLL
45 typedef struct
47 /* IUnknown fields */
48 const IClassFactoryVtbl *lpVtbl;
49 LONG ref;
50 } IClassFactoryImpl;
52 extern IClassFactoryImpl SHDOCVW_ClassFactory;
54 /**********************************************************************
55 * Shell Instance Objects
57 extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
58 REFIID riid, LPVOID *ppvClassObj);
60 /**********************************************************************
61 * WebBrowser declaration for SHDOCVW.DLL
64 typedef struct ConnectionPoint ConnectionPoint;
66 typedef struct {
67 /* Interfaces available via WebBrowser object */
69 const IWebBrowser2Vtbl *lpWebBrowser2Vtbl;
70 const IOleObjectVtbl *lpOleObjectVtbl;
71 const IOleInPlaceObjectVtbl *lpOleInPlaceObjectVtbl;
72 const IOleControlVtbl *lpOleControlVtbl;
73 const IPersistStorageVtbl *lpPersistStorageVtbl;
74 const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
75 const IProvideClassInfo2Vtbl *lpProvideClassInfoVtbl;
76 const IConnectionPointContainerVtbl *lpConnectionPointContainerVtbl;
77 const IViewObject2Vtbl *lpViewObjectVtbl;
78 const IOleInPlaceActiveObjectVtbl *lpOleInPlaceActiveObjectVtbl;
79 const IOleCommandTargetVtbl *lpWBOleCommandTargetVtbl;
80 const IHlinkFrameVtbl *lpHlinkFrameVtbl;
82 /* Interfaces available for embeded document */
84 const IOleClientSiteVtbl *lpOleClientSiteVtbl;
85 const IOleInPlaceSiteVtbl *lpOleInPlaceSiteVtbl;
86 const IDocHostUIHandler2Vtbl *lpDocHostUIHandlerVtbl;
87 const IOleDocumentSiteVtbl *lpOleDocumentSiteVtbl;
88 const IOleCommandTargetVtbl *lpClOleCommandTargetVtbl;
89 const IDispatchVtbl *lpDispatchVtbl;
91 /* Interfaces of InPlaceFrame object */
93 const IOleInPlaceFrameVtbl *lpOleInPlaceFrameVtbl;
95 LONG ref;
97 IUnknown *document;
99 IOleClientSite *client;
100 IOleContainer *container;
101 IOleDocumentView *view;
102 IDocHostUIHandler *hostui;
104 LPOLESTR url;
106 /* window context */
108 HWND iphwnd;
109 HWND frame_hwnd;
110 IOleInPlaceFrame *frame;
111 IOleInPlaceUIWindow *uiwindow;
112 RECT pos_rect;
113 RECT clip_rect;
114 OLEINPLACEFRAMEINFO frameinfo;
116 HWND doc_view_hwnd;
117 HWND shell_embedding_hwnd;
119 /* Connection points */
121 ConnectionPoint *cp_wbe2;
122 ConnectionPoint *cp_wbe;
123 ConnectionPoint *cp_pns;
124 } WebBrowser;
126 #define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
127 #define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
128 #define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
129 #define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectVtbl)
130 #define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
131 #define PERSTORAGE(x) ((IPersistStorage*) &(x)->lpPersistStorageVtbl)
132 #define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
133 #define CLASSINFO(x) ((IProvideClassInfo2*) &(x)->lpProvideClassInfoVtbl)
134 #define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
135 #define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
136 #define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
137 #define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
138 #define WBOLECMD(x) ((IOleCommandTarget*) &(x)->lpWBOleCommandTargetVtbl)
139 #define HLINKFRAME(x) ((IHlinkFrame*) &(x)->lpHlinkFrameVtbl)
141 #define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
142 #define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
143 #define DOCHOSTUI(x) ((IDocHostUIHandler*) &(x)->lpDocHostUIHandlerVtbl)
144 #define DOCHOSTUI2(x) ((IDocHostUIHandler2*) &(x)->lpDocHostUIHandlerVtbl)
145 #define DOCSITE(x) ((IOleDocumentSite*) &(x)->lpOleDocumentSiteVtbl)
146 #define CLOLECMD(x) ((IOleCommandTarget*) &(x)->lpClOleCommandTargetVtbl)
147 #define CLDISP(x) ((IDispatch*) &(x)->lpDispatchVtbl)
149 #define INPLACEFRAME(x) ((IOleInPlaceFrame*) &(x)->lpOleInPlaceFrameVtbl)
151 void WebBrowser_OleObject_Init(WebBrowser*);
152 void WebBrowser_ViewObject_Init(WebBrowser*);
153 void WebBrowser_Persist_Init(WebBrowser*);
154 void WebBrowser_ClassInfo_Init(WebBrowser*);
155 void WebBrowser_Events_Init(WebBrowser*);
156 void WebBrowser_HlinkFrame_Init(WebBrowser*);
158 void WebBrowser_ClientSite_Init(WebBrowser*);
159 void WebBrowser_DocHost_Init(WebBrowser*);
161 void WebBrowser_Frame_Init(WebBrowser*);
163 void WebBrowser_OleObject_Destroy(WebBrowser*);
164 void WebBrowser_Events_Destroy(WebBrowser*);
165 void WebBrowser_ClientSite_Destroy(WebBrowser*);
167 HRESULT WebBrowser_Create(IUnknown*,REFIID,void**);
169 void create_doc_view_hwnd(WebBrowser *This);
170 void deactivate_document(WebBrowser*);
171 void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
173 #define WB_WM_NAVIGATE2 (WM_USER+100)
175 #define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
177 /**********************************************************************
178 * Dll lifetime tracking declaration for shdocvw.dll
180 extern LONG SHDOCVW_refCount;
181 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
182 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
184 extern HINSTANCE shdocvw_hinstance;
186 #endif /* __WINE_SHDOCVW_H */