ReactOS 0.4.15-dev-7924-g5949c20
ipwindow.c File Reference
#include "mshtml_private.h"
Include dependency graph for ipwindow.c:

Go to the source code of this file.

Classes

struct  InPlaceFrame
 
struct  InPlaceUIWindow
 

Functions

static InPlaceFrameimpl_from_IOleInPlaceFrame (IOleInPlaceFrame *iface)
 
static HRESULT WINAPI InPlaceFrame_QueryInterface (IOleInPlaceFrame *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI InPlaceFrame_AddRef (IOleInPlaceFrame *iface)
 
static ULONG WINAPI InPlaceFrame_Release (IOleInPlaceFrame *iface)
 
static HRESULT WINAPI InPlaceFrame_GetWindow (IOleInPlaceFrame *iface, HWND *phwnd)
 
static HRESULT WINAPI InPlaceFrame_ContextSensitiveHelp (IOleInPlaceFrame *iface, BOOL fEnterMode)
 
static HRESULT WINAPI InPlaceFrame_GetBorder (IOleInPlaceFrame *iface, LPRECT lprectBorder)
 
static HRESULT WINAPI InPlaceFrame_RequestBorderSpace (IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI InPlaceFrame_SetBorderSpace (IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI InPlaceFrame_SetActiveObject (IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
 
static HRESULT WINAPI InPlaceFrame_InsertMenus (IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
 
static HRESULT WINAPI InPlaceFrame_SetMenu (IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
 
static HRESULT WINAPI InPlaceFrame_RemoveMenus (IOleInPlaceFrame *iface, HMENU hmenuShared)
 
static HRESULT WINAPI InPlaceFrame_SetStatusText (IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
 
static HRESULT WINAPI InPlaceFrame_EnableModeless (IOleInPlaceFrame *iface, BOOL fEnable)
 
static HRESULT WINAPI InPlaceFrame_TranslateAccelerator (IOleInPlaceFrame *iface, LPMSG lpmsg, WORD wID)
 
HRESULT create_ip_frame (IOleInPlaceFrame **ret)
 
static InPlaceUIWindowimpl_from_IOleInPlaceUIWindow (IOleInPlaceUIWindow *iface)
 
static HRESULT WINAPI InPlaceUIWindow_QueryInterface (IOleInPlaceUIWindow *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI InPlaceUIWindow_AddRef (IOleInPlaceUIWindow *iface)
 
static ULONG WINAPI InPlaceUIWindow_Release (IOleInPlaceUIWindow *iface)
 
static HRESULT WINAPI InPlaceUIWindow_GetWindow (IOleInPlaceUIWindow *iface, HWND *phwnd)
 
static HRESULT WINAPI InPlaceUIWindow_ContextSensitiveHelp (IOleInPlaceUIWindow *iface, BOOL fEnterMode)
 
static HRESULT WINAPI InPlaceUIWindow_GetBorder (IOleInPlaceUIWindow *iface, LPRECT lprectBorder)
 
static HRESULT WINAPI InPlaceUIWindow_RequestBorderSpace (IOleInPlaceUIWindow *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI InPlaceUIWindow_SetBorderSpace (IOleInPlaceUIWindow *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI InPlaceUIWindow_SetActiveObject (IOleInPlaceUIWindow *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
 
HRESULT create_ip_window (IOleInPlaceUIWindow **ret)
 

Variables

static const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
 
static const IOleInPlaceUIWindowVtbl OleInPlaceUIWindowVtbl
 

Function Documentation

◆ create_ip_frame()

HRESULT create_ip_frame ( IOleInPlaceFrame **  ret)

Definition at line 189 of file ipwindow.c.

190{
191 InPlaceFrame *frame;
192
193 frame = heap_alloc_zero(sizeof(*frame));
194 if(!frame)
195 return E_OUTOFMEMORY;
196
198 frame->ref = 1;
199
200 *ret = &frame->IOleInPlaceFrame_iface;
201 return S_OK;
202}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define S_OK
Definition: intsafe.h:52
static const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
Definition: ipwindow.c:171
IOleInPlaceFrame IOleInPlaceFrame_iface
Definition: ipwindow.c:22
LONG ref
Definition: ipwindow.c:23
int ret

Referenced by PHInPlaceSite_GetWindowContext().

◆ create_ip_window()

HRESULT create_ip_window ( IOleInPlaceUIWindow **  ret)

Definition at line 317 of file ipwindow.c.

318{
319 InPlaceUIWindow *uiwindow;
320
321 uiwindow = heap_alloc_zero(sizeof(*uiwindow));
322 if(!uiwindow)
323 return E_OUTOFMEMORY;
324
326 uiwindow->ref = 1;
327
328 *ret = &uiwindow->IOleInPlaceUIWindow_iface;
329 return S_OK;
330}
static const IOleInPlaceUIWindowVtbl OleInPlaceUIWindowVtbl
Definition: ipwindow.c:305
IOleInPlaceUIWindow IOleInPlaceUIWindow_iface
Definition: ipwindow.c:205

Referenced by PHInPlaceSite_GetWindowContext().

◆ impl_from_IOleInPlaceFrame()

◆ impl_from_IOleInPlaceUIWindow()

◆ InPlaceFrame_AddRef()

static ULONG WINAPI InPlaceFrame_AddRef ( IOleInPlaceFrame iface)
static

Definition at line 56 of file ipwindow.c.

57{
60
61 TRACE("(%p) ref=%d\n", This, ref);
62
63 return ref;
64}
#define InterlockedIncrement
Definition: armddk.h:53
static InPlaceFrame * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: ipwindow.c:26
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
Definition: send.c:48

◆ InPlaceFrame_ContextSensitiveHelp()

static HRESULT WINAPI InPlaceFrame_ContextSensitiveHelp ( IOleInPlaceFrame iface,
BOOL  fEnterMode 
)
static

Definition at line 86 of file ipwindow.c.

88{
90 FIXME("(%p)->(%x)\n", This, fEnterMode);
91 return E_NOTIMPL;
92}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ InPlaceFrame_EnableModeless()

static HRESULT WINAPI InPlaceFrame_EnableModeless ( IOleInPlaceFrame iface,
BOOL  fEnable 
)
static

Definition at line 156 of file ipwindow.c.

157{
159 FIXME("(%p)->(%x)\n", This, fEnable);
160 return E_NOTIMPL;
161}

◆ InPlaceFrame_GetBorder()

static HRESULT WINAPI InPlaceFrame_GetBorder ( IOleInPlaceFrame iface,
LPRECT  lprectBorder 
)
static

Definition at line 94 of file ipwindow.c.

95{
97 FIXME("(%p)->(%p)\n", This, lprectBorder);
98 return E_NOTIMPL;
99}

◆ InPlaceFrame_GetWindow()

static HRESULT WINAPI InPlaceFrame_GetWindow ( IOleInPlaceFrame iface,
HWND phwnd 
)
static

Definition at line 79 of file ipwindow.c.

80{
82 FIXME("(%p)->(%p)\n", This, phwnd);
83 return E_NOTIMPL;
84}

◆ InPlaceFrame_InsertMenus()

static HRESULT WINAPI InPlaceFrame_InsertMenus ( IOleInPlaceFrame iface,
HMENU  hmenuShared,
LPOLEMENUGROUPWIDTHS  lpMenuWidths 
)
static

Definition at line 125 of file ipwindow.c.

127{
129 FIXME("(%p)->(%p %p)\n", This, hmenuShared, lpMenuWidths);
130 return E_NOTIMPL;
131}

◆ InPlaceFrame_QueryInterface()

static HRESULT WINAPI InPlaceFrame_QueryInterface ( IOleInPlaceFrame iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 31 of file ipwindow.c.

33{
35
36 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
37
39 *ppv = &This->IOleInPlaceFrame_iface;
40 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
41 *ppv = &This->IOleInPlaceFrame_iface;
43 *ppv = &This->IOleInPlaceFrame_iface;
45 *ppv = &This->IOleInPlaceFrame_iface;
46 }else {
47 WARN("Unsopported interface %s\n", debugstr_mshtml_guid(riid));
48 *ppv = NULL;
49 return E_NOINTERFACE;
50 }
51
52 IUnknown_AddRef((IUnknown*)*ppv);
53 return S_OK;
54}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:112
#define NULL
Definition: types.h:112
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IOleInPlaceFrame
const GUID IID_IOleWindow
const GUID IID_IOleInPlaceUIWindow
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ InPlaceFrame_Release()

static ULONG WINAPI InPlaceFrame_Release ( IOleInPlaceFrame iface)
static

Definition at line 66 of file ipwindow.c.

67{
70
71 TRACE("(%p) ref=%d\n", This, ref);
72
73 if(!ref)
75
76 return ref;
77}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52

◆ InPlaceFrame_RemoveMenus()

static HRESULT WINAPI InPlaceFrame_RemoveMenus ( IOleInPlaceFrame iface,
HMENU  hmenuShared 
)
static

Definition at line 141 of file ipwindow.c.

142{
144 FIXME("(%p)->(%p)\n", This, hmenuShared);
145 return E_NOTIMPL;
146}

◆ InPlaceFrame_RequestBorderSpace()

static HRESULT WINAPI InPlaceFrame_RequestBorderSpace ( IOleInPlaceFrame iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 101 of file ipwindow.c.

103{
105 FIXME("(%p)->(%p)\n", This, pborderwidths);
106 return E_NOTIMPL;
107}

◆ InPlaceFrame_SetActiveObject()

static HRESULT WINAPI InPlaceFrame_SetActiveObject ( IOleInPlaceFrame iface,
IOleInPlaceActiveObject pActiveObject,
LPCOLESTR  pszObjName 
)
static

Definition at line 117 of file ipwindow.c.

119{
121 FIXME("(%p)->(%p %s)\n", This, pActiveObject, debugstr_w(pszObjName));
122 return E_NOTIMPL;
123}
#define debugstr_w
Definition: kernel32.h:32

◆ InPlaceFrame_SetBorderSpace()

static HRESULT WINAPI InPlaceFrame_SetBorderSpace ( IOleInPlaceFrame iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 109 of file ipwindow.c.

111{
113 FIXME("(%p)->(%p)\n", This, pborderwidths);
114 return E_NOTIMPL;
115}

◆ InPlaceFrame_SetMenu()

static HRESULT WINAPI InPlaceFrame_SetMenu ( IOleInPlaceFrame iface,
HMENU  hmenuShared,
HOLEMENU  holemenu,
HWND  hwndActiveObject 
)
static

Definition at line 133 of file ipwindow.c.

135{
137 FIXME("(%p)->(%p %p %p)\n", This, hmenuShared, holemenu, hwndActiveObject);
138 return E_NOTIMPL;
139}

◆ InPlaceFrame_SetStatusText()

static HRESULT WINAPI InPlaceFrame_SetStatusText ( IOleInPlaceFrame iface,
LPCOLESTR  pszStatusText 
)
static

Definition at line 148 of file ipwindow.c.

150{
152 FIXME("(%p)->(%s)\n", This, debugstr_w(pszStatusText));
153 return E_NOTIMPL;
154}

◆ InPlaceFrame_TranslateAccelerator()

static HRESULT WINAPI InPlaceFrame_TranslateAccelerator ( IOleInPlaceFrame iface,
LPMSG  lpmsg,
WORD  wID 
)
static

Definition at line 163 of file ipwindow.c.

165{
167 FIXME("(%p)->(%p %d)\n", This, lpmsg, wID);
168 return E_NOTIMPL;
169}

◆ InPlaceUIWindow_AddRef()

static ULONG WINAPI InPlaceUIWindow_AddRef ( IOleInPlaceUIWindow iface)
static

Definition at line 236 of file ipwindow.c.

237{
240
241 TRACE("(%p) ref=%d\n", This, ref);
242
243 return ref;
244}
static InPlaceUIWindow * impl_from_IOleInPlaceUIWindow(IOleInPlaceUIWindow *iface)
Definition: ipwindow.c:209

◆ InPlaceUIWindow_ContextSensitiveHelp()

static HRESULT WINAPI InPlaceUIWindow_ContextSensitiveHelp ( IOleInPlaceUIWindow iface,
BOOL  fEnterMode 
)
static

Definition at line 266 of file ipwindow.c.

268{
270 FIXME("(%p)->(%x)\n", This, fEnterMode);
271 return E_NOTIMPL;
272}

◆ InPlaceUIWindow_GetBorder()

static HRESULT WINAPI InPlaceUIWindow_GetBorder ( IOleInPlaceUIWindow iface,
LPRECT  lprectBorder 
)
static

Definition at line 274 of file ipwindow.c.

275{
277 FIXME("(%p)->(%p)\n", This, lprectBorder);
278 return E_NOTIMPL;
279}

◆ InPlaceUIWindow_GetWindow()

static HRESULT WINAPI InPlaceUIWindow_GetWindow ( IOleInPlaceUIWindow iface,
HWND phwnd 
)
static

Definition at line 259 of file ipwindow.c.

260{
262 FIXME("(%p)->(%p)\n", This, phwnd);
263 return E_NOTIMPL;
264}

◆ InPlaceUIWindow_QueryInterface()

static HRESULT WINAPI InPlaceUIWindow_QueryInterface ( IOleInPlaceUIWindow iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 214 of file ipwindow.c.

215{
217
218 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
219
221 *ppv = &This->IOleInPlaceUIWindow_iface;
222 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
223 *ppv = &This->IOleInPlaceUIWindow_iface;
225 *ppv = &This->IOleInPlaceUIWindow_iface;
226 }else {
227 WARN("Unsopported interface %s\n", debugstr_mshtml_guid(riid));
228 *ppv = NULL;
229 return E_NOINTERFACE;
230 }
231
232 IUnknown_AddRef((IUnknown*)*ppv);
233 return S_OK;
234}

◆ InPlaceUIWindow_Release()

static ULONG WINAPI InPlaceUIWindow_Release ( IOleInPlaceUIWindow iface)
static

Definition at line 246 of file ipwindow.c.

247{
250
251 TRACE("(%p) ref=%d\n", This, ref);
252
253 if(!ref)
255
256 return ref;
257}

◆ InPlaceUIWindow_RequestBorderSpace()

static HRESULT WINAPI InPlaceUIWindow_RequestBorderSpace ( IOleInPlaceUIWindow iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 281 of file ipwindow.c.

283{
285 FIXME("(%p)->(%p)\n", This, pborderwidths);
286 return E_NOTIMPL;
287}

◆ InPlaceUIWindow_SetActiveObject()

static HRESULT WINAPI InPlaceUIWindow_SetActiveObject ( IOleInPlaceUIWindow iface,
IOleInPlaceActiveObject pActiveObject,
LPCOLESTR  pszObjName 
)
static

Definition at line 297 of file ipwindow.c.

299{
301 FIXME("(%p)->(%p %s)\n", This, pActiveObject, debugstr_w(pszObjName));
302 return E_NOTIMPL;
303}

◆ InPlaceUIWindow_SetBorderSpace()

static HRESULT WINAPI InPlaceUIWindow_SetBorderSpace ( IOleInPlaceUIWindow iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 289 of file ipwindow.c.

291{
293 FIXME("(%p)->(%p)\n", This, pborderwidths);
294 return E_NOTIMPL;
295}

Variable Documentation

◆ OleInPlaceFrameVtbl

const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
static
Initial value:
= {
}
static HRESULT WINAPI InPlaceFrame_InsertMenus(IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
Definition: ipwindow.c:125
static HRESULT WINAPI InPlaceFrame_EnableModeless(IOleInPlaceFrame *iface, BOOL fEnable)
Definition: ipwindow.c:156
static HRESULT WINAPI InPlaceFrame_GetWindow(IOleInPlaceFrame *iface, HWND *phwnd)
Definition: ipwindow.c:79
static HRESULT WINAPI InPlaceFrame_GetBorder(IOleInPlaceFrame *iface, LPRECT lprectBorder)
Definition: ipwindow.c:94
static ULONG WINAPI InPlaceFrame_Release(IOleInPlaceFrame *iface)
Definition: ipwindow.c:66
static HRESULT WINAPI InPlaceFrame_SetActiveObject(IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
Definition: ipwindow.c:117
static HRESULT WINAPI InPlaceFrame_ContextSensitiveHelp(IOleInPlaceFrame *iface, BOOL fEnterMode)
Definition: ipwindow.c:86
static HRESULT WINAPI InPlaceFrame_SetStatusText(IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
Definition: ipwindow.c:148
static HRESULT WINAPI InPlaceFrame_SetMenu(IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
Definition: ipwindow.c:133
static HRESULT WINAPI InPlaceFrame_RemoveMenus(IOleInPlaceFrame *iface, HMENU hmenuShared)
Definition: ipwindow.c:141
static HRESULT WINAPI InPlaceFrame_TranslateAccelerator(IOleInPlaceFrame *iface, LPMSG lpmsg, WORD wID)
Definition: ipwindow.c:163
static HRESULT WINAPI InPlaceFrame_QueryInterface(IOleInPlaceFrame *iface, REFIID riid, void **ppv)
Definition: ipwindow.c:31
static ULONG WINAPI InPlaceFrame_AddRef(IOleInPlaceFrame *iface)
Definition: ipwindow.c:56
static HRESULT WINAPI InPlaceFrame_SetBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: ipwindow.c:109
static HRESULT WINAPI InPlaceFrame_RequestBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: ipwindow.c:101

Definition at line 171 of file ipwindow.c.

Referenced by create_ip_frame().

◆ OleInPlaceUIWindowVtbl

const IOleInPlaceUIWindowVtbl OleInPlaceUIWindowVtbl
static
Initial value:
= {
}
static ULONG WINAPI InPlaceUIWindow_Release(IOleInPlaceUIWindow *iface)
Definition: ipwindow.c:246
static ULONG WINAPI InPlaceUIWindow_AddRef(IOleInPlaceUIWindow *iface)
Definition: ipwindow.c:236
static HRESULT WINAPI InPlaceUIWindow_SetBorderSpace(IOleInPlaceUIWindow *iface, LPCBORDERWIDTHS pborderwidths)
Definition: ipwindow.c:289
static HRESULT WINAPI InPlaceUIWindow_SetActiveObject(IOleInPlaceUIWindow *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
Definition: ipwindow.c:297
static HRESULT WINAPI InPlaceUIWindow_ContextSensitiveHelp(IOleInPlaceUIWindow *iface, BOOL fEnterMode)
Definition: ipwindow.c:266
static HRESULT WINAPI InPlaceUIWindow_GetWindow(IOleInPlaceUIWindow *iface, HWND *phwnd)
Definition: ipwindow.c:259
static HRESULT WINAPI InPlaceUIWindow_QueryInterface(IOleInPlaceUIWindow *iface, REFIID riid, void **ppv)
Definition: ipwindow.c:214
static HRESULT WINAPI InPlaceUIWindow_GetBorder(IOleInPlaceUIWindow *iface, LPRECT lprectBorder)
Definition: ipwindow.c:274
static HRESULT WINAPI InPlaceUIWindow_RequestBorderSpace(IOleInPlaceUIWindow *iface, LPCBORDERWIDTHS pborderwidths)
Definition: ipwindow.c:281

Definition at line 305 of file ipwindow.c.

Referenced by create_ip_window().