ReactOS 0.4.15-dev-6054-gbddd8b0
frame.c File Reference
#include "ieframe.h"
#include "wine/debug.h"
Include dependency graph for frame.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
static DocHostimpl_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)
 
void DocHost_Frame_Init (DocHost *This)
 

Variables

static const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
 

Function Documentation

◆ DocHost_Frame_Init()

void DocHost_Frame_Init ( DocHost This)

Definition at line 182 of file frame.c.

183{
184 This->IOleInPlaceFrame_iface.lpVtbl = &OleInPlaceFrameVtbl;
185}
static const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
Definition: frame.c:164

Referenced by DocHost_Init().

◆ impl_from_IOleInPlaceFrame()

◆ InPlaceFrame_AddRef()

static ULONG WINAPI InPlaceFrame_AddRef ( IOleInPlaceFrame iface)
static

Definition at line 58 of file frame.c.

59{
61 return IOleClientSite_AddRef(&This->IOleClientSite_iface);
62}
static DocHost * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: frame.c:25

◆ InPlaceFrame_ContextSensitiveHelp()

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

Definition at line 77 of file frame.c.

79{
81 FIXME("(%p)->(%x)\n", This, fEnterMode);
82 return E_NOTIMPL;
83}
#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 147 of file frame.c.

148{
150 FIXME("(%p)->(%x)\n", This, fEnable);
151 return E_NOTIMPL;
152}

◆ InPlaceFrame_GetBorder()

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

Definition at line 85 of file frame.c.

86{
88 FIXME("(%p)->(%p)\n", This, lprectBorder);
89 return E_NOTIMPL;
90}

◆ InPlaceFrame_GetWindow()

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

Definition at line 70 of file frame.c.

71{
73 FIXME("(%p)->(%p)\n", This, phwnd);
74 return E_NOTIMPL;
75}

◆ InPlaceFrame_InsertMenus()

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

Definition at line 116 of file frame.c.

118{
120 FIXME("(%p)->(%p %p)\n", This, hmenuShared, lpMenuWidths);
121 return E_NOTIMPL;
122}

◆ InPlaceFrame_QueryInterface()

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

Definition at line 30 of file frame.c.

32{
34
36 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
37 *ppv = &This->IOleInPlaceFrame_iface;
38 }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
39 TRACE("(%p)->(IID_IOleWindow %p)\n", This, ppv);
40 *ppv = &This->IOleInPlaceFrame_iface;
42 TRACE("(%p)->(IID_IOleInPlaceUIWindow %p)\n", This, ppv);
43 *ppv = &This->IOleInPlaceFrame_iface;
45 TRACE("(%p)->(IID_IOleInPlaceFrame %p)\n", This, ppv);
46 *ppv = &This->IOleInPlaceFrame_iface;
47 }else {
48 *ppv = NULL;
49 WARN("Unsopported interface %s\n", debugstr_guid(riid));
50 return E_NOINTERFACE;
51 }
52
53
54 IUnknown_AddRef((IUnknown*)*ppv);
55 return S_OK;
56}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:112
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IOleInPlaceFrame
const GUID IID_IOleWindow
const GUID IID_IOleInPlaceUIWindow
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ InPlaceFrame_Release()

static ULONG WINAPI InPlaceFrame_Release ( IOleInPlaceFrame iface)
static

Definition at line 64 of file frame.c.

65{
67 return IOleClientSite_Release(&This->IOleClientSite_iface);
68}

◆ InPlaceFrame_RemoveMenus()

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

Definition at line 132 of file frame.c.

133{
135 FIXME("(%p)->(%p)\n", This, hmenuShared);
136 return E_NOTIMPL;
137}

◆ InPlaceFrame_RequestBorderSpace()

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

Definition at line 92 of file frame.c.

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

◆ InPlaceFrame_SetActiveObject()

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

Definition at line 108 of file frame.c.

110{
112 FIXME("(%p)->(%p %s)\n", This, pActiveObject, debugstr_w(pszObjName));
113 return E_NOTIMPL;
114}
#define debugstr_w
Definition: kernel32.h:32

◆ InPlaceFrame_SetBorderSpace()

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

Definition at line 100 of file frame.c.

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

◆ InPlaceFrame_SetMenu()

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

Definition at line 124 of file frame.c.

126{
128 FIXME("(%p)->(%p %p %p)\n", This, hmenuShared, holemenu, hwndActiveObject);
129 return E_NOTIMPL;
130}

◆ InPlaceFrame_SetStatusText()

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

Definition at line 139 of file frame.c.

141{
143 TRACE("(%p)->(%s)\n", This, debugstr_w(pszStatusText));
144 return This->container_vtbl->set_status_text(This, pszStatusText);
145}

◆ InPlaceFrame_TranslateAccelerator()

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

Definition at line 154 of file frame.c.

156{
158 FIXME("(%p)->(%p %d)\n", This, lpmsg, wID);
159 return E_NOTIMPL;
160}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ OleInPlaceFrameVtbl

const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl
static
Initial value:
= {
}
static HRESULT WINAPI InPlaceFrame_InsertMenus(IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
Definition: frame.c:116
static HRESULT WINAPI InPlaceFrame_EnableModeless(IOleInPlaceFrame *iface, BOOL fEnable)
Definition: frame.c:147
static HRESULT WINAPI InPlaceFrame_GetWindow(IOleInPlaceFrame *iface, HWND *phwnd)
Definition: frame.c:70
static HRESULT WINAPI InPlaceFrame_GetBorder(IOleInPlaceFrame *iface, LPRECT lprectBorder)
Definition: frame.c:85
static ULONG WINAPI InPlaceFrame_Release(IOleInPlaceFrame *iface)
Definition: frame.c:64
static HRESULT WINAPI InPlaceFrame_SetActiveObject(IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
Definition: frame.c:108
static HRESULT WINAPI InPlaceFrame_ContextSensitiveHelp(IOleInPlaceFrame *iface, BOOL fEnterMode)
Definition: frame.c:77
static HRESULT WINAPI InPlaceFrame_SetStatusText(IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
Definition: frame.c:139
static HRESULT WINAPI InPlaceFrame_SetMenu(IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
Definition: frame.c:124
static HRESULT WINAPI InPlaceFrame_RemoveMenus(IOleInPlaceFrame *iface, HMENU hmenuShared)
Definition: frame.c:132
static HRESULT WINAPI InPlaceFrame_TranslateAccelerator(IOleInPlaceFrame *iface, LPMSG lpmsg, WORD wID)
Definition: frame.c:154
static HRESULT WINAPI InPlaceFrame_QueryInterface(IOleInPlaceFrame *iface, REFIID riid, void **ppv)
Definition: frame.c:30
static ULONG WINAPI InPlaceFrame_AddRef(IOleInPlaceFrame *iface)
Definition: frame.c:58
static HRESULT WINAPI InPlaceFrame_SetBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: frame.c:100
static HRESULT WINAPI InPlaceFrame_RequestBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: frame.c:92

Definition at line 164 of file frame.c.

Referenced by DocHost_Frame_Init().