From e1c211eaee7450e240b937d3c95307b374b1ea9d Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 17 Nov 2017 17:46:20 +0100 Subject: [PATCH] mshtml: Merge olewnd.c into oleobj.c. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/Makefile.in | 1 - dlls/mshtml/htmldoc.c | 1 - dlls/mshtml/mshtml_private.h | 1 - dlls/mshtml/oleobj.c | 246 ++++++++++++++++++++++++++++++ dlls/mshtml/olewnd.c | 286 ----------------------------------- 5 files changed, 246 insertions(+), 289 deletions(-) delete mode 100644 dlls/mshtml/olewnd.c diff --git a/dlls/mshtml/Makefile.in b/dlls/mshtml/Makefile.in index f281c520882..187c45e7209 100644 --- a/dlls/mshtml/Makefile.in +++ b/dlls/mshtml/Makefile.in @@ -59,7 +59,6 @@ C_SRCS = \ nsservice.c \ olecmd.c \ oleobj.c \ - olewnd.c \ omnavigator.c \ persist.c \ pluginhost.c \ diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 07527304580..1a11ffd529d 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -4864,7 +4864,6 @@ static void init_doc(HTMLDocument *doc, IUnknown *outer, IDispatchEx *dispex) HTMLDocument_OleCmd_Init(doc); HTMLDocument_OleObj_Init(doc); HTMLDocument_View_Init(doc); - HTMLDocument_Window_Init(doc); HTMLDocument_Service_Init(doc); ConnectionPointContainer_Init(&doc->cp_container, (IUnknown*)&doc->IHTMLDocument2_iface, HTMLDocument_cpc); diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 9fff0d23e74..39c9efe84cd 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -867,7 +867,6 @@ void HTMLDocument_Persist_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_OleCmd_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_OleObj_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_View_Init(HTMLDocument*) DECLSPEC_HIDDEN; -void HTMLDocument_Window_Init(HTMLDocument*) DECLSPEC_HIDDEN; void HTMLDocument_Service_Init(HTMLDocument*) DECLSPEC_HIDDEN; void TargetContainer_Init(HTMLDocumentObj*) DECLSPEC_HIDDEN; diff --git a/dlls/mshtml/oleobj.c b/dlls/mshtml/oleobj.c index 7809eb0bb6b..c78272925e6 100644 --- a/dlls/mshtml/oleobj.c +++ b/dlls/mshtml/oleobj.c @@ -971,6 +971,250 @@ static const IOleControlVtbl OleControlVtbl = { OleControl_FreezeEvents }; +/********************************************************** + * IOleInPlaceActiveObject implementation + */ + +static inline HTMLDocument *impl_from_IOleInPlaceActiveObject(IOleInPlaceActiveObject *iface) +{ + return CONTAINING_RECORD(iface, HTMLDocument, IOleInPlaceActiveObject_iface); +} + +static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + return htmldoc_query_interface(This, riid, ppv); +} + +static ULONG WINAPI OleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + return htmldoc_addref(This); +} + +static ULONG WINAPI OleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + return htmldoc_release(This); +} + +static HRESULT WINAPI OleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + + TRACE("(%p)->(%p)\n", This, phwnd); + + if(!phwnd) + return E_INVALIDARG; + + if(!This->doc_obj->in_place_active) { + *phwnd = NULL; + return E_FAIL; + } + + *phwnd = This->doc_obj->hwnd; + return S_OK; +} + +static HRESULT WINAPI OleInPlaceActiveObject_ContextSensitiveHelp(IOleInPlaceActiveObject *iface, BOOL fEnterMode) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + FIXME("(%p)->(%x)\n", This, fEnterMode); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator(IOleInPlaceActiveObject *iface, LPMSG lpmsg) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + FIXME("(%p)->(%p)\n", This, lpmsg); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceActiveObject *iface, + BOOL fActivate) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + + TRACE("(%p)->(%x)\n", This, fActivate); + + if(This->doc_obj->hostui) + IDocHostUIHandler_OnFrameWindowActivate(This->doc_obj->hostui, fActivate); + + return S_OK; +} + +static HRESULT WINAPI OleInPlaceActiveObject_OnDocWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + FIXME("(%p)->(%x)\n", This, fActivate); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceActiveObject_ResizeBorder(IOleInPlaceActiveObject *iface, LPCRECT prcBorder, + IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + FIXME("(%p)->(%p %p %x)\n", This, prcBorder, pUIWindow, fFrameWindow); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceActiveObject_EnableModeless(IOleInPlaceActiveObject *iface, BOOL fEnable) +{ + HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); + FIXME("(%p)->(%x)\n", This, fEnable); + return E_NOTIMPL; +} + +static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = { + OleInPlaceActiveObject_QueryInterface, + OleInPlaceActiveObject_AddRef, + OleInPlaceActiveObject_Release, + OleInPlaceActiveObject_GetWindow, + OleInPlaceActiveObject_ContextSensitiveHelp, + OleInPlaceActiveObject_TranslateAccelerator, + OleInPlaceActiveObject_OnFrameWindowActivate, + OleInPlaceActiveObject_OnDocWindowActivate, + OleInPlaceActiveObject_ResizeBorder, + OleInPlaceActiveObject_EnableModeless +}; + +/********************************************************** + * IOleInPlaceObjectWindowless implementation + */ + +static inline HTMLDocument *impl_from_IOleInPlaceObjectWindowless(IOleInPlaceObjectWindowless *iface) +{ + return CONTAINING_RECORD(iface, HTMLDocument, IOleInPlaceObjectWindowless_iface); +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface(IOleInPlaceObjectWindowless *iface, + REFIID riid, void **ppv) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + return htmldoc_query_interface(This, riid, ppv); +} + +static ULONG WINAPI OleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + return htmldoc_addref(This); +} + +static ULONG WINAPI OleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + return htmldoc_release(This); +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface, + HWND *phwnd) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + return IOleInPlaceActiveObject_GetWindow(&This->IOleInPlaceActiveObject_iface, phwnd); +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_ContextSensitiveHelp(IOleInPlaceObjectWindowless *iface, + BOOL fEnterMode) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + return IOleInPlaceActiveObject_ContextSensitiveHelp(&This->IOleInPlaceActiveObject_iface, fEnterMode); +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceObjectWindowless *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + + TRACE("(%p)\n", This); + + if(This->doc_obj->ui_active) + IOleDocumentView_UIActivate(&This->IOleDocumentView_iface, FALSE); + This->doc_obj->window_active = FALSE; + + if(!This->doc_obj->in_place_active) + return S_OK; + + if(This->doc_obj->frame) { + IOleInPlaceFrame_Release(This->doc_obj->frame); + This->doc_obj->frame = NULL; + } + + if(This->doc_obj->hwnd) { + ShowWindow(This->doc_obj->hwnd, SW_HIDE); + SetWindowPos(This->doc_obj->hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); + } + + This->doc_obj->focus = FALSE; + notif_focus(This->doc_obj); + + This->doc_obj->in_place_active = FALSE; + if(This->doc_obj->ipsite) { + IOleInPlaceSiteEx *ipsiteex; + HRESULT hres; + + hres = IOleInPlaceSite_QueryInterface(This->doc_obj->ipsite, &IID_IOleInPlaceSiteEx, (void**)&ipsiteex); + if(SUCCEEDED(hres)) { + IOleInPlaceSiteEx_OnInPlaceDeactivateEx(ipsiteex, TRUE); + IOleInPlaceSiteEx_Release(ipsiteex); + }else { + IOleInPlaceSite_OnInPlaceDeactivate(This->doc_obj->ipsite); + } + } + + return S_OK; +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_UIDeactivate(IOleInPlaceObjectWindowless *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects(IOleInPlaceObjectWindowless *iface, + LPCRECT lprcPosRect, LPCRECT lprcClipRect) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + FIXME("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_ReactivateAndUndo(IOleInPlaceObjectWindowless *iface) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_OnWindowMessage(IOleInPlaceObjectWindowless *iface, + UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *lpResult) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + FIXME("(%p)->(%u %lu %lu %p)\n", This, msg, wParam, lParam, lpResult); + return E_NOTIMPL; +} + +static HRESULT WINAPI OleInPlaceObjectWindowless_GetDropTarget(IOleInPlaceObjectWindowless *iface, + IDropTarget **ppDropTarget) +{ + HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); + FIXME("(%p)->(%p)\n", This, ppDropTarget); + return E_NOTIMPL; +} + +static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl = { + OleInPlaceObjectWindowless_QueryInterface, + OleInPlaceObjectWindowless_AddRef, + OleInPlaceObjectWindowless_Release, + OleInPlaceObjectWindowless_GetWindow, + OleInPlaceObjectWindowless_ContextSensitiveHelp, + OleInPlaceObjectWindowless_InPlaceDeactivate, + OleInPlaceObjectWindowless_UIDeactivate, + OleInPlaceObjectWindowless_SetObjectRects, + OleInPlaceObjectWindowless_ReactivateAndUndo, + OleInPlaceObjectWindowless_OnWindowMessage, + OleInPlaceObjectWindowless_GetDropTarget +}; + /********************************************************** * IObjectWithSite implementation */ @@ -1222,6 +1466,8 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This) This->IOleObject_iface.lpVtbl = &OleObjectVtbl; This->IOleDocument_iface.lpVtbl = &OleDocumentVtbl; This->IOleControl_iface.lpVtbl = &OleControlVtbl; + This->IOleInPlaceActiveObject_iface.lpVtbl = &OleInPlaceActiveObjectVtbl; + This->IOleInPlaceObjectWindowless_iface.lpVtbl = &OleInPlaceObjectWindowlessVtbl; This->IObjectWithSite_iface.lpVtbl = &ObjectWithSiteVtbl; This->IOleContainer_iface.lpVtbl = &OleContainerVtbl; This->IObjectSafety_iface.lpVtbl = &ObjectSafetyVtbl; diff --git a/dlls/mshtml/olewnd.c b/dlls/mshtml/olewnd.c deleted file mode 100644 index 2a52c021765..00000000000 --- a/dlls/mshtml/olewnd.c +++ /dev/null @@ -1,286 +0,0 @@ -/* - * 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 "config.h" - -#include -#include - -#define COBJMACROS - -#include "windef.h" -#include "winbase.h" -#include "winuser.h" -#include "ole2.h" - -#include "wine/debug.h" - -#include "mshtml_private.h" -#include "resource.h" - -WINE_DEFAULT_DEBUG_CHANNEL(mshtml); - -/********************************************************** - * IOleInPlaceActiveObject implementation - */ - -static inline HTMLDocument *impl_from_IOleInPlaceActiveObject(IOleInPlaceActiveObject *iface) -{ - return CONTAINING_RECORD(iface, HTMLDocument, IOleInPlaceActiveObject_iface); -} - -static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - return htmldoc_query_interface(This, riid, ppv); -} - -static ULONG WINAPI OleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - return htmldoc_addref(This); -} - -static ULONG WINAPI OleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - return htmldoc_release(This); -} - -static HRESULT WINAPI OleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - - TRACE("(%p)->(%p)\n", This, phwnd); - - if(!phwnd) - return E_INVALIDARG; - - if(!This->doc_obj->in_place_active) { - *phwnd = NULL; - return E_FAIL; - } - - *phwnd = This->doc_obj->hwnd; - return S_OK; -} - -static HRESULT WINAPI OleInPlaceActiveObject_ContextSensitiveHelp(IOleInPlaceActiveObject *iface, BOOL fEnterMode) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - FIXME("(%p)->(%x)\n", This, fEnterMode); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator(IOleInPlaceActiveObject *iface, LPMSG lpmsg) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - FIXME("(%p)->(%p)\n", This, lpmsg); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceActiveObject *iface, - BOOL fActivate) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - - TRACE("(%p)->(%x)\n", This, fActivate); - - if(This->doc_obj->hostui) - IDocHostUIHandler_OnFrameWindowActivate(This->doc_obj->hostui, fActivate); - - return S_OK; -} - -static HRESULT WINAPI OleInPlaceActiveObject_OnDocWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - FIXME("(%p)->(%x)\n", This, fActivate); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceActiveObject_ResizeBorder(IOleInPlaceActiveObject *iface, LPCRECT prcBorder, - IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - FIXME("(%p)->(%p %p %x)\n", This, prcBorder, pUIWindow, fFrameWindow); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceActiveObject_EnableModeless(IOleInPlaceActiveObject *iface, BOOL fEnable) -{ - HTMLDocument *This = impl_from_IOleInPlaceActiveObject(iface); - FIXME("(%p)->(%x)\n", This, fEnable); - return E_NOTIMPL; -} - -static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = { - OleInPlaceActiveObject_QueryInterface, - OleInPlaceActiveObject_AddRef, - OleInPlaceActiveObject_Release, - OleInPlaceActiveObject_GetWindow, - OleInPlaceActiveObject_ContextSensitiveHelp, - OleInPlaceActiveObject_TranslateAccelerator, - OleInPlaceActiveObject_OnFrameWindowActivate, - OleInPlaceActiveObject_OnDocWindowActivate, - OleInPlaceActiveObject_ResizeBorder, - OleInPlaceActiveObject_EnableModeless -}; - -/********************************************************** - * IOleInPlaceObjectWindowless implementation - */ - -static inline HTMLDocument *impl_from_IOleInPlaceObjectWindowless(IOleInPlaceObjectWindowless *iface) -{ - return CONTAINING_RECORD(iface, HTMLDocument, IOleInPlaceObjectWindowless_iface); -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface(IOleInPlaceObjectWindowless *iface, - REFIID riid, void **ppv) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - return htmldoc_query_interface(This, riid, ppv); -} - -static ULONG WINAPI OleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - return htmldoc_addref(This); -} - -static ULONG WINAPI OleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - return htmldoc_release(This); -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface, - HWND *phwnd) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - return IOleInPlaceActiveObject_GetWindow(&This->IOleInPlaceActiveObject_iface, phwnd); -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_ContextSensitiveHelp(IOleInPlaceObjectWindowless *iface, - BOOL fEnterMode) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - return IOleInPlaceActiveObject_ContextSensitiveHelp(&This->IOleInPlaceActiveObject_iface, fEnterMode); -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceObjectWindowless *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - - TRACE("(%p)\n", This); - - if(This->doc_obj->ui_active) - IOleDocumentView_UIActivate(&This->IOleDocumentView_iface, FALSE); - This->doc_obj->window_active = FALSE; - - if(!This->doc_obj->in_place_active) - return S_OK; - - if(This->doc_obj->frame) { - IOleInPlaceFrame_Release(This->doc_obj->frame); - This->doc_obj->frame = NULL; - } - - if(This->doc_obj->hwnd) { - ShowWindow(This->doc_obj->hwnd, SW_HIDE); - SetWindowPos(This->doc_obj->hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); - } - - This->doc_obj->focus = FALSE; - notif_focus(This->doc_obj); - - This->doc_obj->in_place_active = FALSE; - if(This->doc_obj->ipsite) { - IOleInPlaceSiteEx *ipsiteex; - HRESULT hres; - - hres = IOleInPlaceSite_QueryInterface(This->doc_obj->ipsite, &IID_IOleInPlaceSiteEx, (void**)&ipsiteex); - if(SUCCEEDED(hres)) { - IOleInPlaceSiteEx_OnInPlaceDeactivateEx(ipsiteex, TRUE); - IOleInPlaceSiteEx_Release(ipsiteex); - }else { - IOleInPlaceSite_OnInPlaceDeactivate(This->doc_obj->ipsite); - } - } - - return S_OK; -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_UIDeactivate(IOleInPlaceObjectWindowless *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects(IOleInPlaceObjectWindowless *iface, - LPCRECT lprcPosRect, LPCRECT lprcClipRect) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - FIXME("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_ReactivateAndUndo(IOleInPlaceObjectWindowless *iface) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_OnWindowMessage(IOleInPlaceObjectWindowless *iface, - UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *lpResult) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - FIXME("(%p)->(%u %lu %lu %p)\n", This, msg, wParam, lParam, lpResult); - return E_NOTIMPL; -} - -static HRESULT WINAPI OleInPlaceObjectWindowless_GetDropTarget(IOleInPlaceObjectWindowless *iface, - IDropTarget **ppDropTarget) -{ - HTMLDocument *This = impl_from_IOleInPlaceObjectWindowless(iface); - FIXME("(%p)->(%p)\n", This, ppDropTarget); - return E_NOTIMPL; -} - -static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl = { - OleInPlaceObjectWindowless_QueryInterface, - OleInPlaceObjectWindowless_AddRef, - OleInPlaceObjectWindowless_Release, - OleInPlaceObjectWindowless_GetWindow, - OleInPlaceObjectWindowless_ContextSensitiveHelp, - OleInPlaceObjectWindowless_InPlaceDeactivate, - OleInPlaceObjectWindowless_UIDeactivate, - OleInPlaceObjectWindowless_SetObjectRects, - OleInPlaceObjectWindowless_ReactivateAndUndo, - OleInPlaceObjectWindowless_OnWindowMessage, - OleInPlaceObjectWindowless_GetDropTarget -}; - -void HTMLDocument_Window_Init(HTMLDocument *This) -{ - This->IOleInPlaceActiveObject_iface.lpVtbl = &OleInPlaceActiveObjectVtbl; - This->IOleInPlaceObjectWindowless_iface.lpVtbl = &OleInPlaceObjectWindowlessVtbl; -}