1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
// ddesite.cpp
//
// Methods for CDefClient::COleClientSiteImpl
//
// Author:
// Jason Fuller jasonful 8-16-92
//
// Copyright (c) 1990, 1991 Microsoft Corporation
#include <ole2int.h>
#include "srvr.h"
#include "ddedebug.h"
ASSERTDATA
STDUNKIMPL_FORDERIVED (DefClient, OleClientSiteImpl)
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::SaveObject
(void)
{
intrDebugOut((DEB_ITRACE,
"%x _IN CDefClient::SaveObject\n",
this));
ChkC(m_pDefClient);
if (!m_pDefClient->m_fGotStdCloseDoc)
m_pDefClient->ItemCallBack (OLE_SAVED);
intrDebugOut((DEB_ITRACE,
"%x _OUT CDefClient::SaveObject\n",
this));
return NOERROR;
}
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::GetContainer
(LPOLECONTAINER FAR * lplpContainer)
{
VDATEPTROUT( lplpContainer, LPOLECONTAINER);
*lplpContainer = NULL;
ChkC(m_pDefClient);
return ResultFromScode (E_NOTIMPL);
}
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::GetMoniker
(DWORD dwAssign, DWORD dwWhichMoniker, LPMONIKER FAR* ppmk)
{
VDATEPTROUT( ppmk, LPMONIKER);
*ppmk = NULL;
ChkC(m_pDefClient);
// OLE 1.0 does not support linking to embeddings
return ReportResult(0, E_NOTIMPL, 0, 0);
}
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::ShowObject
(void)
{
ChkC(m_pDefClient);
Puts ("OleClientSite::ShowObject\r\n");
// REVIEW: what are we supposed do?
return ResultFromScode (E_NOTIMPL);
}
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::OnShowWindow
(BOOL fShow)
{
ChkC(m_pDefClient);
Puts ("OleClientSite::OnShowWindow\r\n");
// REVIEW: what are we supposed do?
return NOERROR;
}
STDMETHODIMP NC(CDefClient,COleClientSiteImpl)::RequestNewObjectLayout(void)
{
ChkC(m_pDefClient);
Puts ("OleClientSite::RequestNewObjectLayout\r\n");
return ReportResult(0, S_FALSE, 0, 0);
}
|