2001-01-11 22:32:44 +00:00
|
|
|
/*
|
2002-05-05 19:40:57 +00:00
|
|
|
* Header includes for shdocvw.dll
|
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
* Copyright 2001 John R. Sheets (for CodeWeavers)
|
|
|
|
*
|
|
|
|
* 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 22:32:44 +00:00
|
|
|
*/
|
|
|
|
|
2002-05-05 19:40:57 +00:00
|
|
|
#ifndef __WINE_SHDOCVW_H
|
|
|
|
#define __WINE_SHDOCVW_H
|
|
|
|
|
2003-01-03 19:12:55 +00:00
|
|
|
#define COM_NO_WINDOWS_H
|
2005-09-06 11:41:14 +00:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
2002-05-05 19:40:57 +00:00
|
|
|
#include "winbase.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "wingdi.h"
|
2002-05-05 19:40:57 +00:00
|
|
|
#include "winuser.h"
|
|
|
|
|
2002-12-05 20:33:07 +00:00
|
|
|
#include "ole2.h"
|
|
|
|
#include "olectl.h"
|
|
|
|
#include "shlobj.h"
|
2003-09-04 02:00:46 +00:00
|
|
|
#include "exdisp.h"
|
2002-05-05 19:40:57 +00:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* IClassFactory declaration for SHDOCVW.DLL
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-06-06 19:50:35 +00:00
|
|
|
const IClassFactoryVtbl *lpVtbl;
|
2005-07-13 11:59:15 +00:00
|
|
|
LONG ref;
|
2002-05-05 19:40:57 +00:00
|
|
|
} IClassFactoryImpl;
|
|
|
|
|
|
|
|
extern IClassFactoryImpl SHDOCVW_ClassFactory;
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
2005-09-06 11:41:14 +00:00
|
|
|
* WebBrowser declaration for SHDOCVW.DLL
|
2002-05-05 19:40:57 +00:00
|
|
|
*/
|
2005-09-06 11:41:14 +00:00
|
|
|
typedef struct {
|
2005-09-12 21:17:57 +00:00
|
|
|
const IWebBrowser2Vtbl *lpWebBrowser2Vtbl;
|
2005-09-12 10:10:04 +00:00
|
|
|
const IOleObjectVtbl *lpOleObjectVtbl;
|
|
|
|
const IOleInPlaceObjectVtbl *lpOleInPlaceObjectVtbl;
|
|
|
|
const IOleControlVtbl *lpOleControlVtbl;
|
|
|
|
const IPersistStorageVtbl *lpPersistStorageVtbl;
|
|
|
|
const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
|
|
|
|
const IProvideClassInfo2Vtbl *lpProvideClassInfoVtbl;
|
|
|
|
const IQuickActivateVtbl *lpQuickActivateVtbl;
|
|
|
|
const IConnectionPointContainerVtbl *lpConnectionPointContainerVtbl;
|
2002-05-05 19:40:57 +00:00
|
|
|
|
2005-07-13 11:59:15 +00:00
|
|
|
LONG ref;
|
2005-09-16 18:44:37 +00:00
|
|
|
|
|
|
|
IOleClientSite *client;
|
2005-09-06 11:41:14 +00:00
|
|
|
} WebBrowser;
|
|
|
|
|
2005-09-12 21:17:57 +00:00
|
|
|
#define WEBBROWSER(x) ((IWebBrowser*) &(x)->lpWebBrowser2Vtbl)
|
|
|
|
#define WEBBROWSER2(x) ((IWebBrowser2*) &(x)->lpWebBrowser2Vtbl)
|
2005-09-12 10:10:04 +00: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 QUICKACT(x) ((IQuickActivate*) &(x)->lpQuickActivateVtbl)
|
|
|
|
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
|
2002-05-05 19:40:57 +00:00
|
|
|
|
2005-09-06 11:41:14 +00:00
|
|
|
void WebBrowser_OleObject_Init(WebBrowser*);
|
2005-09-08 11:01:57 +00:00
|
|
|
void WebBrowser_Persist_Init(WebBrowser*);
|
2005-09-08 18:55:50 +00:00
|
|
|
void WebBrowser_ClassInfo_Init(WebBrowser*);
|
2005-09-09 10:05:40 +00:00
|
|
|
void WebBrowser_Misc_Init(WebBrowser*);
|
2005-09-12 10:10:04 +00:00
|
|
|
void WebBrowser_Events_Init(WebBrowser*);
|
2002-05-05 19:40:57 +00:00
|
|
|
|
2005-09-06 11:41:14 +00:00
|
|
|
HRESULT WebBrowser_Create(IUnknown*,REFIID,void**);
|
2002-05-05 19:40:57 +00:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* IConnectionPoint declaration for SHDOCVW.DLL
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-06-06 19:50:35 +00:00
|
|
|
const IConnectionPointVtbl *lpVtbl;
|
2005-07-13 11:59:15 +00:00
|
|
|
LONG ref;
|
2002-05-05 19:40:57 +00:00
|
|
|
} IConnectionPointImpl;
|
|
|
|
|
2005-09-06 11:41:14 +00:00
|
|
|
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
|
|
|
|
|
2005-01-27 10:43:53 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for shdocvw.dll
|
|
|
|
*/
|
|
|
|
extern LONG SHDOCVW_refCount;
|
2005-06-20 14:18:03 +00:00
|
|
|
static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
|
|
|
|
static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
|
2005-01-27 10:43:53 +00:00
|
|
|
|
2002-05-05 19:40:57 +00:00
|
|
|
#endif /* __WINE_SHDOCVW_H */
|