#include <IDataObjectUtils.h>
|
| COM_QI_SIMPLE (IDataObject) HRESULT STDMETHODCALLTYPE GetData(FORMATETC *formatetc |
|
HRESULT STDMETHODCALLTYPE | DAdvise (FORMATETC *pFormatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) |
|
HRESULT STDMETHODCALLTYPE | DUnadvise (DWORD dwConnection) |
|
HRESULT STDMETHODCALLTYPE | EnumDAdvise (IEnumSTATDATA **ppenumAdvise) |
|
HRESULT STDMETHODCALLTYPE | EnumFormatEtc (DWORD dwDirection, IEnumFORMATETC **ppenumFormatetc) |
|
HRESULT STDMETHODCALLTYPE | GetCanonicalFormatEtc (FORMATETC *in, FORMATETC *out) |
|
HRESULT STDMETHODCALLTYPE | GetDataHere (FORMATETC *formatetc, STGMEDIUM *medium) |
|
HRESULT STDMETHODCALLTYPE | QueryGetData (FORMATETC *formatetc) |
|
HRESULT STDMETHODCALLTYPE | SetData (FORMATETC *pFormatetc, STGMEDIUM *pmedium, BOOL fRelease) |
|
Definition at line 52 of file IDataObjectUtils.h.
static void IDataObjectUtils::CDataObjectBase::AddFormat |
( |
TFormatList & |
out, |
|
|
UINT |
code |
|
) |
| |
|
inlinestaticprotected |
Definition at line 136 of file IDataObjectUtils.h.
138 fmt.dwAspect = DVASPECT_CONTENT;
141 for(
t_size medWalk = 0; medWalk < 32; ++medWalk) {
142 const DWORD med = 1 << medWalk;
static const DWORD DataBlockToSTGMEDIUM_SupportedTymeds
IDataObjectUtils::CDataObjectBase::COM_QI_SIMPLE |
( |
IDataObject |
| ) |
|
HRESULT IDataObjectUtils::CDataObjectBase::CreateIEnumFORMATETC |
( |
IEnumFORMATETC ** |
outptr | ) |
const |
throw | ( | |
| ) | | |
|
inlineprotected |
Definition at line 159 of file IDataObjectUtils.h.
const t_item * get_ptr() const
virtual void EnumFormats(TFormatList &out) const
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::DAdvise |
( |
FORMATETC * |
pFormatetc, |
|
|
DWORD |
advf, |
|
|
IAdviseSink * |
pAdvSink, |
|
|
DWORD * |
pdwConnection |
|
) |
| |
|
inline |
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::DUnadvise |
( |
DWORD |
dwConnection | ) |
|
|
inline |
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::EnumDAdvise |
( |
IEnumSTATDATA ** |
ppenumAdvise | ) |
|
|
inline |
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::EnumFormatEtc |
( |
DWORD |
dwDirection, |
|
|
IEnumFORMATETC ** |
ppenumFormatetc |
|
) |
| |
|
inline |
Definition at line 83 of file IDataObjectUtils.h.
84 if (dwDirection == DATADIR_GET) {
85 if (ppenumFormatetc == NULL)
return E_INVALIDARG;
87 }
else if (dwDirection == DATADIR_SET) {
HRESULT CreateIEnumFORMATETC(IEnumFORMATETC **outptr) const
virtual void IDataObjectUtils::CDataObjectBase::EnumFormats |
( |
TFormatList & |
out | ) |
const |
|
inlineprotectedvirtual |
Definition at line 150 of file IDataObjectUtils.h.
153 formats.
add_item( walk->m_key.cfFormat );
static void AddFormat(TFormatList &out, UINT code)
const_iterator first() const
t_storage & add_item(t_param const &p_item)
t_content::const_iterator const_iterator
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::GetCanonicalFormatEtc |
( |
FORMATETC * |
in, |
|
|
FORMATETC * |
out |
|
) |
| |
|
inline |
Definition at line 75 of file IDataObjectUtils.h.
77 if (in == NULL || out == NULL)
80 return DATA_S_SAMEFORMATETC;
HRESULT IDataObjectUtils::CDataObjectBase::GetData_internal |
( |
FORMATETC * |
formatetc, |
|
|
STGMEDIUM * |
medium, |
|
|
bool |
bHere |
|
) |
| |
|
inlineprivate |
Definition at line 167 of file IDataObjectUtils.h.
168 if (formatetc == NULL ||
medium == NULL)
return E_INVALIDARG;
172 HRESULT hr =
RenderData(formatetc->cfFormat,formatetc->dwAspect,formatetc->lindex,out);
173 if (FAILED(hr))
return hr;
const t_item * get_ptr() const
HRESULT DataBlockToSTGMEDIUM(const void *blockPtr, t_size blockSize, STGMEDIUM *medium, DWORD tymed, bool bHere)
virtual HRESULT RenderData(UINT format, DWORD aspect, LONG dataIndex, stream_writer_formatter<> &out) const
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::GetDataHere |
( |
FORMATETC * |
formatetc, |
|
|
STGMEDIUM * |
medium |
|
) |
| |
|
inline |
Definition at line 60 of file IDataObjectUtils.h.
HRESULT GetData_internal(FORMATETC *formatetc, STGMEDIUM *medium, bool bHere)
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::QueryGetData |
( |
FORMATETC * |
formatetc | ) |
|
|
inline |
Definition at line 64 of file IDataObjectUtils.h.
65 if (formatetc == NULL)
return E_INVALIDARG;
70 return RenderDataTest(formatetc->cfFormat,formatetc->dwAspect,formatetc->lindex);
static const DWORD DataBlockToSTGMEDIUM_SupportedTymeds
virtual HRESULT RenderDataTest(UINT format, DWORD aspect, LONG dataIndex) const
virtual HRESULT IDataObjectUtils::CDataObjectBase::RenderData |
( |
UINT |
format, |
|
|
DWORD |
aspect, |
|
|
LONG |
dataIndex, |
|
|
stream_writer_formatter<> & |
out |
|
) |
| const |
|
inlineprotectedvirtual |
Definition at line 118 of file IDataObjectUtils.h.
120 fmt.cfFormat = format; fmt.dwAspect = aspect; fmt.lindex = dataIndex;
126 return DV_E_FORMATETC;
const t_item * get_ptr() const
const t_storage_value * query_ptr(const _t_key &p_key) const
virtual HRESULT IDataObjectUtils::CDataObjectBase::RenderDataTest |
( |
UINT |
format, |
|
|
DWORD |
aspect, |
|
|
LONG |
dataIndex |
|
) |
| const |
|
inlineprotectedvirtual |
Definition at line 128 of file IDataObjectUtils.h.
130 fmt.cfFormat = format; fmt.dwAspect = aspect; fmt.lindex = dataIndex;
132 return DV_E_FORMATETC;
bool have_item(const _t_key &p_key) const
HRESULT STDMETHODCALLTYPE IDataObjectUtils::CDataObjectBase::SetData |
( |
FORMATETC * |
pFormatetc, |
|
|
STGMEDIUM * |
pmedium, |
|
|
BOOL |
fRelease |
|
) |
| |
|
inline |
Definition at line 94 of file IDataObjectUtils.h.
96 ReleaseStgMediumScope relScope(fRelease ? pmedium : NULL);
97 if (pFormatetc == NULL || pmedium == NULL)
return E_INVALIDARG;
109 if (FAILED(state))
return state;
HRESULT STGMEDIUMToDataBlock(const STGMEDIUM &med, pfc::array_t< t_uint8 > &out)
void set(const _t_key &p_key, const _t_value &p_value)
t_entries IDataObjectUtils::CDataObjectBase::m_entries |
|
private |
STGMEDIUM* IDataObjectUtils::CDataObjectBase::medium |
The documentation for this class was generated from the following file: