mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 09:40:20 +00:00
94 lines
2.9 KiB
C
94 lines
2.9 KiB
C
|
/*
|
||
|
* Copyright 2006 Jacek Caban 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
|
||
|
*/
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#define COBJMACROS
|
||
|
|
||
|
#include "windef.h"
|
||
|
#include "winbase.h"
|
||
|
#include "winuser.h"
|
||
|
#include "ole2.h"
|
||
|
|
||
|
#include "wine/debug.h"
|
||
|
|
||
|
#include "mshtml_private.h"
|
||
|
|
||
|
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
||
|
|
||
|
#define CONPOINT(x) ((IConnectionPoint*) &(x)->lpConnectionPointVtbl);
|
||
|
|
||
|
struct ConnectionPoint {
|
||
|
const IConnectionPointVtbl *lpConnectionPointVtbl;
|
||
|
};
|
||
|
|
||
|
#define CONPTCONT_THIS(iface) DEFINE_THIS(HTMLDocument, ConnectionPointContainer, iface)
|
||
|
|
||
|
static HRESULT WINAPI ConnectionPointContainer_QueryInterface(IConnectionPointContainer *iface,
|
||
|
REFIID riid, void **ppv)
|
||
|
{
|
||
|
HTMLDocument *This = CONPTCONT_THIS(iface);
|
||
|
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
|
||
|
}
|
||
|
|
||
|
static ULONG WINAPI ConnectionPointContainer_AddRef(IConnectionPointContainer *iface)
|
||
|
{
|
||
|
HTMLDocument *This = CONPTCONT_THIS(iface);
|
||
|
return IHTMLDocument2_AddRef(HTMLDOC(This));
|
||
|
}
|
||
|
|
||
|
static ULONG WINAPI ConnectionPointContainer_Release(IConnectionPointContainer *iface)
|
||
|
{
|
||
|
HTMLDocument *This = CONPTCONT_THIS(iface);
|
||
|
return IHTMLDocument2_Release(HTMLDOC(This));
|
||
|
}
|
||
|
|
||
|
static HRESULT WINAPI ConnectionPointContainer_EnumConnectionPoints(IConnectionPointContainer *iface,
|
||
|
IEnumConnectionPoints **ppEnum)
|
||
|
{
|
||
|
HTMLDocument *This = CONPTCONT_THIS(iface);
|
||
|
FIXME("(%p)->(%p)\n", This, ppEnum);
|
||
|
return E_NOTIMPL;
|
||
|
}
|
||
|
|
||
|
static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPointContainer *iface,
|
||
|
REFIID riid, IConnectionPoint **ppCP)
|
||
|
{
|
||
|
HTMLDocument *This = CONPTCONT_THIS(iface);
|
||
|
FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppCP);
|
||
|
return E_NOTIMPL;
|
||
|
}
|
||
|
|
||
|
static const IConnectionPointContainerVtbl ConnectionPointContainerVtbl = {
|
||
|
ConnectionPointContainer_QueryInterface,
|
||
|
ConnectionPointContainer_AddRef,
|
||
|
ConnectionPointContainer_Release,
|
||
|
ConnectionPointContainer_EnumConnectionPoints,
|
||
|
ConnectionPointContainer_FindConnectionPoint
|
||
|
};
|
||
|
|
||
|
#undef CONPTCONT_THIS
|
||
|
|
||
|
void HTMLDocument_ConnectionPoints_Init(HTMLDocument *This)
|
||
|
{
|
||
|
This->lpConnectionPointContainerVtbl = &ConnectionPointContainerVtbl;
|
||
|
}
|