2008-04-11 12:45:31 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2005 Jacek Caban
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mshtml_private.h"
|
|
|
|
|
|
|
|
typedef struct {
|
2013-05-19 21:21:20 +00:00
|
|
|
IOleUndoManager IOleUndoManager_iface;
|
2008-04-11 12:45:31 +00:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
} UndoManager;
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
static inline UndoManager *impl_from_IOleUndoManager(IOleUndoManager *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, UndoManager, IOleUndoManager_iface);
|
|
|
|
}
|
2008-04-11 12:45:31 +00:00
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_QueryInterface(IOleUndoManager *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
|
|
|
|
if(IsEqualGUID(riid, &IID_IUnknown)) {
|
|
|
|
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
|
2013-05-19 21:21:20 +00:00
|
|
|
*ppv = &This->IOleUndoManager_iface;
|
2008-04-11 12:45:31 +00:00
|
|
|
}else if(IsEqualGUID(riid, &IID_IOleUndoManager)) {
|
|
|
|
TRACE("(%p)->(IID_IOleUndoManager %p)\n", This, ppv);
|
2013-05-19 21:21:20 +00:00
|
|
|
*ppv = &This->IOleUndoManager_iface;
|
|
|
|
}else {
|
|
|
|
*ppv = NULL;
|
|
|
|
FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI OleUndoManager_AddRef(IOleUndoManager *iface)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
LONG ref = InterlockedIncrement(&This->ref);
|
|
|
|
|
|
|
|
TRACE("(%p) ref=%d\n", This, ref);
|
|
|
|
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI OleUndoManager_Release(IOleUndoManager *iface)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
LONG ref = InterlockedDecrement(&This->ref);
|
|
|
|
|
|
|
|
TRACE("(%p) ref=%d\n", This, ref);
|
|
|
|
|
|
|
|
if(!ref)
|
|
|
|
heap_free(This);
|
|
|
|
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_Open(IOleUndoManager *iface, IOleParentUndoUnit *pPUU)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pPUU);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_Close(IOleUndoManager *iface, IOleParentUndoUnit *pPUU,
|
|
|
|
BOOL fCommit)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p %x)\n", This, pPUU, fCommit);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_Add(IOleUndoManager *iface, IOleUndoUnit *pUU)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pUU);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_GetOpenParentState(IOleUndoManager *iface, DWORD *pdwState)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pdwState);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_DiscardFrom(IOleUndoManager *iface, IOleUndoUnit *pUU)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pUU);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_UndoTo(IOleUndoManager *iface, IOleUndoUnit *pUU)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pUU);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_RedoTo(IOleUndoManager *iface, IOleUndoUnit *pUU)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pUU);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_EnumUndoable(IOleUndoManager *iface,
|
|
|
|
IEnumOleUndoUnits **ppEnum)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppEnum);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_EnumRedoable(IOleUndoManager *iface,
|
|
|
|
IEnumOleUndoUnits **ppEnum)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppEnum);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_GetLastUndoDescription(IOleUndoManager *iface, BSTR *pBstr)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pBstr);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_GetLastRedoDescription(IOleUndoManager *iface, BSTR *pBstr)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%p)\n", This, pBstr);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI OleUndoManager_Enable(IOleUndoManager *iface, BOOL fEnable)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
UndoManager *This = impl_from_IOleUndoManager(iface);
|
2008-04-11 12:45:31 +00:00
|
|
|
FIXME("(%p)->(%x)\n", This, fEnable);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IOleUndoManagerVtbl OleUndoManagerVtbl = {
|
|
|
|
OleUndoManager_QueryInterface,
|
|
|
|
OleUndoManager_AddRef,
|
|
|
|
OleUndoManager_Release,
|
|
|
|
OleUndoManager_Open,
|
|
|
|
OleUndoManager_Close,
|
|
|
|
OleUndoManager_Add,
|
|
|
|
OleUndoManager_GetOpenParentState,
|
|
|
|
OleUndoManager_DiscardFrom,
|
|
|
|
OleUndoManager_UndoTo,
|
|
|
|
OleUndoManager_RedoTo,
|
|
|
|
OleUndoManager_EnumUndoable,
|
|
|
|
OleUndoManager_EnumRedoable,
|
|
|
|
OleUndoManager_GetLastUndoDescription,
|
|
|
|
OleUndoManager_GetLastRedoDescription,
|
|
|
|
OleUndoManager_Enable
|
|
|
|
};
|
|
|
|
|
|
|
|
static IOleUndoManager *create_undomgr(void)
|
|
|
|
{
|
|
|
|
UndoManager *ret = heap_alloc(sizeof(UndoManager));
|
|
|
|
|
2015-11-28 21:10:43 +00:00
|
|
|
if (!ret) return NULL;
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
ret->IOleUndoManager_iface.lpVtbl = &OleUndoManagerVtbl;
|
2008-04-11 12:45:31 +00:00
|
|
|
ret->ref = 1;
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
return &ret->IOleUndoManager_iface;
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
2015-11-28 21:10:43 +00:00
|
|
|
typedef struct {
|
|
|
|
IHTMLEditServices IHTMLEditServices_iface;
|
|
|
|
LONG ref;
|
|
|
|
} editsvcs;
|
|
|
|
|
|
|
|
static inline editsvcs *impl_from_IHTMLEditServices(IHTMLEditServices *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, editsvcs, IHTMLEditServices_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_QueryInterface(IHTMLEditServices *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
|
|
|
|
|
|
|
if(IsEqualGUID(riid, &IID_IUnknown)) {
|
|
|
|
*ppv = &This->IHTMLEditServices_iface;
|
|
|
|
} else if(IsEqualGUID(riid, &IID_IHTMLEditServices)) {
|
|
|
|
*ppv = &This->IHTMLEditServices_iface;
|
|
|
|
} else {
|
|
|
|
*ppv = NULL;
|
|
|
|
FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI editsvcs_AddRef(IHTMLEditServices *iface)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
LONG ref = InterlockedIncrement(&This->ref);
|
|
|
|
|
|
|
|
TRACE("(%p) ref=%d\n", This, ref);
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI editsvcs_Release(IHTMLEditServices *iface)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
LONG ref = InterlockedDecrement(&This->ref);
|
|
|
|
|
|
|
|
TRACE("(%p) ref=%d\n", This, ref);
|
|
|
|
|
|
|
|
if(!ref)
|
|
|
|
heap_free(This);
|
|
|
|
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_AddDesigner(IHTMLEditServices *iface,
|
|
|
|
IHTMLEditDesigner *pIDesigner)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pIDesigner);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_RemoveDesigner(IHTMLEditServices *iface,
|
|
|
|
IHTMLEditDesigner *pIDesigner)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pIDesigner);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_GetSelectionServices(IHTMLEditServices *iface,
|
|
|
|
IMarkupContainer *pIContainer, ISelectionServices **ppSelSvc)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p,%p)\n", This, pIContainer, ppSelSvc);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_MoveToSelectionAnchor(IHTMLEditServices *iface,
|
|
|
|
IMarkupPointer *pIStartAnchor)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pIStartAnchor);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_MoveToSelectionEnd(IHTMLEditServices *iface,
|
|
|
|
IMarkupPointer *pIEndAnchor)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pIEndAnchor);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI editsvcs_SelectRange(IHTMLEditServices *iface,
|
|
|
|
IMarkupPointer *pStart, IMarkupPointer *pEnd, SELECTION_TYPE eType)
|
|
|
|
{
|
|
|
|
editsvcs *This = impl_from_IHTMLEditServices(iface);
|
|
|
|
FIXME("(%p)->(%p,%p,%#x)\n", This, pStart, pEnd, eType);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLEditServicesVtbl editsvcsVtbl = {
|
|
|
|
editsvcs_QueryInterface,
|
|
|
|
editsvcs_AddRef,
|
|
|
|
editsvcs_Release,
|
|
|
|
editsvcs_AddDesigner,
|
|
|
|
editsvcs_RemoveDesigner,
|
|
|
|
editsvcs_GetSelectionServices,
|
|
|
|
editsvcs_MoveToSelectionAnchor,
|
|
|
|
editsvcs_MoveToSelectionEnd,
|
|
|
|
editsvcs_SelectRange,
|
|
|
|
};
|
|
|
|
|
|
|
|
static IHTMLEditServices *create_editsvcs(void)
|
|
|
|
{
|
|
|
|
editsvcs *ret = heap_alloc(sizeof(*ret));
|
|
|
|
|
|
|
|
if (ret) {
|
|
|
|
ret->IHTMLEditServices_iface.lpVtbl = &editsvcsVtbl;
|
|
|
|
ret->ref = 1;
|
|
|
|
return &ret->IHTMLEditServices_iface;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2008-04-11 12:45:31 +00:00
|
|
|
/**********************************************************
|
|
|
|
* IServiceProvider implementation
|
|
|
|
*/
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
static inline HTMLDocument *impl_from_IServiceProvider(IServiceProvider *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLDocument, IServiceProvider_iface);
|
|
|
|
}
|
2008-04-11 12:45:31 +00:00
|
|
|
|
|
|
|
static HRESULT WINAPI ServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
HTMLDocument *This = impl_from_IServiceProvider(iface);
|
|
|
|
return htmldoc_query_interface(This, riid, ppv);
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ServiceProvider_AddRef(IServiceProvider *iface)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
HTMLDocument *This = impl_from_IServiceProvider(iface);
|
|
|
|
return htmldoc_addref(This);
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
HTMLDocument *This = impl_from_IServiceProvider(iface);
|
|
|
|
return htmldoc_release(This);
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
HTMLDocument *This = impl_from_IServiceProvider(iface);
|
|
|
|
|
2008-04-11 12:45:31 +00:00
|
|
|
if(IsEqualGUID(&CLSID_CMarkup, guidService)) {
|
|
|
|
FIXME("(%p)->(CLSID_CMarkup %s %p)\n", This, debugstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
if(IsEqualGUID(&SID_SOleUndoManager, guidService)) {
|
|
|
|
TRACE("SID_SOleUndoManager\n");
|
2008-04-11 12:45:31 +00:00
|
|
|
|
2009-10-20 19:28:02 +00:00
|
|
|
if(!This->doc_obj->undomgr)
|
|
|
|
This->doc_obj->undomgr = create_undomgr();
|
2008-04-11 12:45:31 +00:00
|
|
|
|
2015-11-28 21:10:43 +00:00
|
|
|
if (!This->doc_obj->undomgr)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
return IOleUndoManager_QueryInterface(This->doc_obj->undomgr, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(IsEqualGUID(&SID_SContainerDispatch, guidService)) {
|
|
|
|
TRACE("SID_SContainerDispatch\n");
|
|
|
|
return IHTMLDocument2_QueryInterface(&This->IHTMLDocument2_iface, riid, ppv);
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
if(IsEqualGUID(&IID_IWindowForBindingUI, guidService)) {
|
|
|
|
TRACE("IID_IWindowForBindingUI\n");
|
|
|
|
return IWindowForBindingUI_QueryInterface(&This->doc_obj->IWindowForBindingUI_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
2015-11-28 21:10:43 +00:00
|
|
|
if(IsEqualGUID(&SID_SHTMLEditServices, guidService)) {
|
|
|
|
TRACE("SID_SHTMLEditServices\n");
|
|
|
|
|
|
|
|
if(!This->doc_obj->editsvcs)
|
|
|
|
This->doc_obj->editsvcs = create_editsvcs();
|
|
|
|
|
|
|
|
if (!This->doc_obj->editsvcs)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
return IHTMLEditServices_QueryInterface(This->doc_obj->editsvcs, riid, ppv);
|
|
|
|
}
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
|
|
|
|
2010-01-18 16:27:14 +00:00
|
|
|
if(This->doc_obj->client) {
|
|
|
|
HRESULT hres;
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
hres = do_query_service((IUnknown*)This->doc_obj->client, guidService, riid, ppv);
|
|
|
|
if(SUCCEEDED(hres))
|
|
|
|
return hres;
|
2010-01-18 16:27:14 +00:00
|
|
|
}
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
FIXME("unknown service %s\n", debugstr_guid(guidService));
|
2010-01-18 16:27:14 +00:00
|
|
|
return E_NOINTERFACE;
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IServiceProviderVtbl ServiceProviderVtbl = {
|
|
|
|
ServiceProvider_QueryInterface,
|
|
|
|
ServiceProvider_AddRef,
|
|
|
|
ServiceProvider_Release,
|
|
|
|
ServiceProvider_QueryService
|
|
|
|
};
|
|
|
|
|
|
|
|
void HTMLDocument_Service_Init(HTMLDocument *This)
|
|
|
|
{
|
2013-05-19 21:21:20 +00:00
|
|
|
This->IServiceProvider_iface.lpVtbl = &ServiceProviderVtbl;
|
2008-04-11 12:45:31 +00:00
|
|
|
}
|