ReactOS 0.4.15-dev-7953-g1f49173
olewnd.c File Reference
#include "mshtml_private.h"
Include dependency graph for olewnd.c:

Go to the source code of this file.

Functions

static HTMLDocumentimpl_from_IOleInPlaceActiveObject (IOleInPlaceActiveObject *iface)
 
static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface (IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleInPlaceActiveObject_AddRef (IOleInPlaceActiveObject *iface)
 
static ULONG WINAPI OleInPlaceActiveObject_Release (IOleInPlaceActiveObject *iface)
 
static HRESULT WINAPI OleInPlaceActiveObject_GetWindow (IOleInPlaceActiveObject *iface, HWND *phwnd)
 
static HRESULT WINAPI OleInPlaceActiveObject_ContextSensitiveHelp (IOleInPlaceActiveObject *iface, BOOL fEnterMode)
 
static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator (IOleInPlaceActiveObject *iface, LPMSG lpmsg)
 
static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate (IOleInPlaceActiveObject *iface, BOOL fActivate)
 
static HRESULT WINAPI OleInPlaceActiveObject_OnDocWindowActivate (IOleInPlaceActiveObject *iface, BOOL fActivate)
 
static HRESULT WINAPI OleInPlaceActiveObject_ResizeBorder (IOleInPlaceActiveObject *iface, LPCRECT prcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow)
 
static HRESULT WINAPI OleInPlaceActiveObject_EnableModeless (IOleInPlaceActiveObject *iface, BOOL fEnable)
 
static HTMLDocumentimpl_from_IOleInPlaceObjectWindowless (IOleInPlaceObjectWindowless *iface)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface (IOleInPlaceObjectWindowless *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleInPlaceObjectWindowless_AddRef (IOleInPlaceObjectWindowless *iface)
 
static ULONG WINAPI OleInPlaceObjectWindowless_Release (IOleInPlaceObjectWindowless *iface)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow (IOleInPlaceObjectWindowless *iface, HWND *phwnd)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_ContextSensitiveHelp (IOleInPlaceObjectWindowless *iface, BOOL fEnterMode)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate (IOleInPlaceObjectWindowless *iface)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_UIDeactivate (IOleInPlaceObjectWindowless *iface)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects (IOleInPlaceObjectWindowless *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_ReactivateAndUndo (IOleInPlaceObjectWindowless *iface)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_OnWindowMessage (IOleInPlaceObjectWindowless *iface, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *lpResult)
 
static HRESULT WINAPI OleInPlaceObjectWindowless_GetDropTarget (IOleInPlaceObjectWindowless *iface, IDropTarget **ppDropTarget)
 
void HTMLDocument_Window_Init (HTMLDocument *This)
 

Variables

static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
 
static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl
 

Function Documentation

◆ HTMLDocument_Window_Init()

void HTMLDocument_Window_Init ( HTMLDocument This)

Definition at line 265 of file olewnd.c.

266{
267 This->IOleInPlaceActiveObject_iface.lpVtbl = &OleInPlaceActiveObjectVtbl;
268 This->IOleInPlaceObjectWindowless_iface.lpVtbl = &OleInPlaceObjectWindowlessVtbl;
269}
static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
Definition: olewnd.c:115
static const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl
Definition: olewnd.c:251

Referenced by init_doc().

◆ impl_from_IOleInPlaceActiveObject()

◆ impl_from_IOleInPlaceObjectWindowless()

◆ OleInPlaceActiveObject_AddRef()

static ULONG WINAPI OleInPlaceActiveObject_AddRef ( IOleInPlaceActiveObject iface)
static

Definition at line 36 of file olewnd.c.

37{
39 return htmldoc_addref(This);
40}
static ULONG htmldoc_addref(HTMLDocument *This)
static HTMLDocument * impl_from_IOleInPlaceActiveObject(IOleInPlaceActiveObject *iface)
Definition: olewnd.c:25

◆ OleInPlaceActiveObject_ContextSensitiveHelp()

static HRESULT WINAPI OleInPlaceActiveObject_ContextSensitiveHelp ( IOleInPlaceActiveObject iface,
BOOL  fEnterMode 
)
static

Definition at line 66 of file olewnd.c.

67{
69 FIXME("(%p)->(%x)\n", This, fEnterMode);
70 return E_NOTIMPL;
71}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OleInPlaceActiveObject_EnableModeless()

static HRESULT WINAPI OleInPlaceActiveObject_EnableModeless ( IOleInPlaceActiveObject iface,
BOOL  fEnable 
)
static

Definition at line 108 of file olewnd.c.

109{
111 FIXME("(%p)->(%x)\n", This, fEnable);
112 return E_NOTIMPL;
113}

◆ OleInPlaceActiveObject_GetWindow()

static HRESULT WINAPI OleInPlaceActiveObject_GetWindow ( IOleInPlaceActiveObject iface,
HWND phwnd 
)
static

Definition at line 48 of file olewnd.c.

49{
51
52 TRACE("(%p)->(%p)\n", This, phwnd);
53
54 if(!phwnd)
55 return E_INVALIDARG;
56
57 if(!This->doc_obj->in_place_active) {
58 *phwnd = NULL;
59 return E_FAIL;
60 }
61
62 *phwnd = This->doc_obj->hwnd;
63 return S_OK;
64}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4

◆ OleInPlaceActiveObject_OnDocWindowActivate()

static HRESULT WINAPI OleInPlaceActiveObject_OnDocWindowActivate ( IOleInPlaceActiveObject iface,
BOOL  fActivate 
)
static

Definition at line 93 of file olewnd.c.

94{
96 FIXME("(%p)->(%x)\n", This, fActivate);
97 return E_NOTIMPL;
98}

◆ OleInPlaceActiveObject_OnFrameWindowActivate()

static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate ( IOleInPlaceActiveObject iface,
BOOL  fActivate 
)
static

Definition at line 80 of file olewnd.c.

82{
84
85 TRACE("(%p)->(%x)\n", This, fActivate);
86
87 if(This->doc_obj->hostui)
88 IDocHostUIHandler_OnFrameWindowActivate(This->doc_obj->hostui, fActivate);
89
90 return S_OK;
91}

◆ OleInPlaceActiveObject_QueryInterface()

static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface ( IOleInPlaceActiveObject iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 30 of file olewnd.c.

31{
34}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)

◆ OleInPlaceActiveObject_Release()

static ULONG WINAPI OleInPlaceActiveObject_Release ( IOleInPlaceActiveObject iface)
static

Definition at line 42 of file olewnd.c.

43{
45 return htmldoc_release(This);
46}
static ULONG htmldoc_release(HTMLDocument *This)

◆ OleInPlaceActiveObject_ResizeBorder()

static HRESULT WINAPI OleInPlaceActiveObject_ResizeBorder ( IOleInPlaceActiveObject iface,
LPCRECT  prcBorder,
IOleInPlaceUIWindow pUIWindow,
BOOL  fFrameWindow 
)
static

Definition at line 100 of file olewnd.c.

102{
104 FIXME("(%p)->(%p %p %x)\n", This, prcBorder, pUIWindow, fFrameWindow);
105 return E_NOTIMPL;
106}

◆ OleInPlaceActiveObject_TranslateAccelerator()

static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator ( IOleInPlaceActiveObject iface,
LPMSG  lpmsg 
)
static

Definition at line 73 of file olewnd.c.

74{
76 FIXME("(%p)->(%p)\n", This, lpmsg);
77 return E_NOTIMPL;
78}

◆ OleInPlaceObjectWindowless_AddRef()

static ULONG WINAPI OleInPlaceObjectWindowless_AddRef ( IOleInPlaceObjectWindowless iface)
static

Definition at line 144 of file olewnd.c.

145{
147 return htmldoc_addref(This);
148}
static HTMLDocument * impl_from_IOleInPlaceObjectWindowless(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:132

◆ OleInPlaceObjectWindowless_ContextSensitiveHelp()

static HRESULT WINAPI OleInPlaceObjectWindowless_ContextSensitiveHelp ( IOleInPlaceObjectWindowless iface,
BOOL  fEnterMode 
)
static

Definition at line 163 of file olewnd.c.

165{
167 return IOleInPlaceActiveObject_ContextSensitiveHelp(&This->IOleInPlaceActiveObject_iface, fEnterMode);
168}

◆ OleInPlaceObjectWindowless_GetDropTarget()

static HRESULT WINAPI OleInPlaceObjectWindowless_GetDropTarget ( IOleInPlaceObjectWindowless iface,
IDropTarget **  ppDropTarget 
)
static

Definition at line 243 of file olewnd.c.

245{
247 FIXME("(%p)->(%p)\n", This, ppDropTarget);
248 return E_NOTIMPL;
249}

◆ OleInPlaceObjectWindowless_GetWindow()

static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow ( IOleInPlaceObjectWindowless iface,
HWND phwnd 
)
static

Definition at line 156 of file olewnd.c.

158{
160 return IOleInPlaceActiveObject_GetWindow(&This->IOleInPlaceActiveObject_iface, phwnd);
161}

◆ OleInPlaceObjectWindowless_InPlaceDeactivate()

static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate ( IOleInPlaceObjectWindowless iface)
static

Definition at line 170 of file olewnd.c.

171{
173
174 TRACE("(%p)\n", This);
175
176 if(This->doc_obj->ui_active)
177 IOleDocumentView_UIActivate(&This->IOleDocumentView_iface, FALSE);
178 This->doc_obj->window_active = FALSE;
179
180 if(!This->doc_obj->in_place_active)
181 return S_OK;
182
183 if(This->doc_obj->frame) {
184 IOleInPlaceFrame_Release(This->doc_obj->frame);
185 This->doc_obj->frame = NULL;
186 }
187
188 if(This->doc_obj->hwnd) {
189 ShowWindow(This->doc_obj->hwnd, SW_HIDE);
190 SetWindowPos(This->doc_obj->hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
191 }
192
193 This->doc_obj->focus = FALSE;
194 notif_focus(This->doc_obj);
195
196 This->doc_obj->in_place_active = FALSE;
197 if(This->doc_obj->ipsite) {
198 IOleInPlaceSiteEx *ipsiteex;
200
201 hres = IOleInPlaceSite_QueryInterface(This->doc_obj->ipsite, &IID_IOleInPlaceSiteEx, (void**)&ipsiteex);
202 if(SUCCEEDED(hres)) {
203 IOleInPlaceSiteEx_OnInPlaceDeactivateEx(ipsiteex, TRUE);
204 IOleInPlaceSiteEx_Release(ipsiteex);
205 }else {
206 IOleInPlaceSite_OnInPlaceDeactivate(This->doc_obj->ipsite);
207 }
208 }
209
210 return S_OK;
211}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define SUCCEEDED(hr)
Definition: intsafe.h:50
HRESULT hres
Definition: protocol.c:465
void notif_focus(HTMLDocumentObj *) DECLSPEC_HIDDEN
Definition: view.c:130
#define SW_HIDE
Definition: winuser.h:768
#define SWP_NOACTIVATE
Definition: winuser.h:1242
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define HWND_TOPMOST
Definition: winuser.h:1208
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOMOVE
Definition: winuser.h:1244
#define SWP_NOSIZE
Definition: winuser.h:1245

◆ OleInPlaceObjectWindowless_OnWindowMessage()

static HRESULT WINAPI OleInPlaceObjectWindowless_OnWindowMessage ( IOleInPlaceObjectWindowless iface,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT lpResult 
)
static

Definition at line 235 of file olewnd.c.

237{
239 FIXME("(%p)->(%u %lu %lu %p)\n", This, msg, wParam, lParam, lpResult);
240 return E_NOTIMPL;
241}
#define msg(x)
Definition: auth_time.c:54
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139

◆ OleInPlaceObjectWindowless_QueryInterface()

static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface ( IOleInPlaceObjectWindowless iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 137 of file olewnd.c.

◆ OleInPlaceObjectWindowless_ReactivateAndUndo()

static HRESULT WINAPI OleInPlaceObjectWindowless_ReactivateAndUndo ( IOleInPlaceObjectWindowless iface)
static

Definition at line 228 of file olewnd.c.

229{
231 FIXME("(%p)\n", This);
232 return E_NOTIMPL;
233}

◆ OleInPlaceObjectWindowless_Release()

static ULONG WINAPI OleInPlaceObjectWindowless_Release ( IOleInPlaceObjectWindowless iface)
static

Definition at line 150 of file olewnd.c.

◆ OleInPlaceObjectWindowless_SetObjectRects()

static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects ( IOleInPlaceObjectWindowless iface,
LPCRECT  lprcPosRect,
LPCRECT  lprcClipRect 
)
static

Definition at line 220 of file olewnd.c.

222{
224 FIXME("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect);
225 return E_NOTIMPL;
226}

◆ OleInPlaceObjectWindowless_UIDeactivate()

static HRESULT WINAPI OleInPlaceObjectWindowless_UIDeactivate ( IOleInPlaceObjectWindowless iface)
static

Definition at line 213 of file olewnd.c.

214{
216 FIXME("(%p)\n", This);
217 return E_NOTIMPL;
218}

Variable Documentation

◆ OleInPlaceActiveObjectVtbl

const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl
static
Initial value:
= {
}
static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: olewnd.c:80
static ULONG WINAPI OleInPlaceActiveObject_AddRef(IOleInPlaceActiveObject *iface)
Definition: olewnd.c:36
static ULONG WINAPI OleInPlaceActiveObject_Release(IOleInPlaceActiveObject *iface)
Definition: olewnd.c:42
static HRESULT WINAPI OleInPlaceActiveObject_EnableModeless(IOleInPlaceActiveObject *iface, BOOL fEnable)
Definition: olewnd.c:108
static HRESULT WINAPI OleInPlaceActiveObject_OnDocWindowActivate(IOleInPlaceActiveObject *iface, BOOL fActivate)
Definition: olewnd.c:93
static HRESULT WINAPI OleInPlaceActiveObject_TranslateAccelerator(IOleInPlaceActiveObject *iface, LPMSG lpmsg)
Definition: olewnd.c:73
static HRESULT WINAPI OleInPlaceActiveObject_ResizeBorder(IOleInPlaceActiveObject *iface, LPCRECT prcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fFrameWindow)
Definition: olewnd.c:100
static HRESULT WINAPI OleInPlaceActiveObject_GetWindow(IOleInPlaceActiveObject *iface, HWND *phwnd)
Definition: olewnd.c:48
static HRESULT WINAPI OleInPlaceActiveObject_ContextSensitiveHelp(IOleInPlaceActiveObject *iface, BOOL fEnterMode)
Definition: olewnd.c:66
static HRESULT WINAPI OleInPlaceActiveObject_QueryInterface(IOleInPlaceActiveObject *iface, REFIID riid, void **ppv)
Definition: olewnd.c:30

Definition at line 115 of file olewnd.c.

Referenced by HTMLDocument_Window_Init().

◆ OleInPlaceObjectWindowlessVtbl

const IOleInPlaceObjectWindowlessVtbl OleInPlaceObjectWindowlessVtbl
static
Initial value:
= {
}
static ULONG WINAPI OleInPlaceObjectWindowless_Release(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:150
static HRESULT WINAPI OleInPlaceObjectWindowless_GetDropTarget(IOleInPlaceObjectWindowless *iface, IDropTarget **ppDropTarget)
Definition: olewnd.c:243
static HRESULT WINAPI OleInPlaceObjectWindowless_ContextSensitiveHelp(IOleInPlaceObjectWindowless *iface, BOOL fEnterMode)
Definition: olewnd.c:163
static HRESULT WINAPI OleInPlaceObjectWindowless_GetWindow(IOleInPlaceObjectWindowless *iface, HWND *phwnd)
Definition: olewnd.c:156
static HRESULT WINAPI OleInPlaceObjectWindowless_OnWindowMessage(IOleInPlaceObjectWindowless *iface, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *lpResult)
Definition: olewnd.c:235
static HRESULT WINAPI OleInPlaceObjectWindowless_UIDeactivate(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:213
static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects(IOleInPlaceObjectWindowless *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect)
Definition: olewnd.c:220
static ULONG WINAPI OleInPlaceObjectWindowless_AddRef(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:144
static HRESULT WINAPI OleInPlaceObjectWindowless_QueryInterface(IOleInPlaceObjectWindowless *iface, REFIID riid, void **ppv)
Definition: olewnd.c:137
static HRESULT WINAPI OleInPlaceObjectWindowless_ReactivateAndUndo(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:228
static HRESULT WINAPI OleInPlaceObjectWindowless_InPlaceDeactivate(IOleInPlaceObjectWindowless *iface)
Definition: olewnd.c:170

Definition at line 251 of file olewnd.c.

Referenced by HTMLDocument_Window_Init().