LibreOffice Module dtrans (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CXTDataObject Class Reference

#include <XTDataObject.hxx>

Inheritance diagram for CXTDataObject:
[legend]
Collaboration diagram for CXTDataObject:
[legend]

Public Member Functions

 CXTDataObject (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::datatransfer::XTransferable > &aXTransferable)
 
virtual ~CXTDataObject ()
 
STDMETHODIMP QueryInterface (REFIID iid, void **ppvObject) override
 
 STDMETHODIMP_ (ULONG) AddRef() override
 
 STDMETHODIMP_ (ULONG) Release() override
 
STDMETHODIMP GetData (FORMATETC *pFormatetc, STGMEDIUM *pmedium) override
 
STDMETHODIMP GetDataHere (FORMATETC *pFormatetc, STGMEDIUM *pmedium) override
 
STDMETHODIMP QueryGetData (FORMATETC *pFormatetc) override
 
STDMETHODIMP GetCanonicalFormatEtc (FORMATETC *pFormatectIn, FORMATETC *pFormatetcOut) override
 
STDMETHODIMP SetData (FORMATETC *pFormatetc, STGMEDIUM *pmedium, BOOL fRelease) override
 
STDMETHODIMP EnumFormatEtc (DWORD dwDirection, IEnumFORMATETC **ppenumFormatetc) override
 
STDMETHODIMP DAdvise (FORMATETC *pFormatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) override
 
STDMETHODIMP DUnadvise (DWORD dwConnection) override
 
STDMETHODIMP EnumDAdvise (IEnumSTATDATA **ppenumAdvise) override
 
 operator IDataObject * ()
 
 CXTDataObject ()
 
STDMETHODIMP QueryInterface (REFIID iid, LPVOID *ppvObject)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
STDMETHODIMP GetData (LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium)
 
STDMETHODIMP GetDataHere (LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium)
 
STDMETHODIMP QueryGetData (LPFORMATETC pFormatetc)
 
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFormatectIn, LPFORMATETC pFormatetcOut)
 
STDMETHODIMP SetData (LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium, BOOL fRelease)
 
STDMETHODIMP EnumFormatEtc (DWORD dwDirection, IEnumFORMATETC **ppenumFormatetc)
 
STDMETHODIMP DAdvise (LPFORMATETC pFormatetc, DWORD advf, LPADVISESINK pAdvSink, DWORD *pdwConnection)
 
STDMETHODIMP DUnadvise (DWORD dwConnection)
 
STDMETHODIMP EnumDAdvise (LPENUMSTATDATA *ppenumAdvise)
 
 operator IDataObject * ()
 

Private Member Functions

css::datatransfer::DataFlavor formatEtcToDataFlavor (const FORMATETC &aFormatEtc) const
 
void renderLocaleAndSetupStgMedium (FORMATETC const &fetc, STGMEDIUM &stgmedium)
 
void renderUnicodeAndSetupStgMedium (FORMATETC const &fetc, STGMEDIUM &stgmedium)
 
void renderAnyDataAndSetupStgMedium (FORMATETC &fetc, STGMEDIUM &stgmedium)
 
HRESULT renderSynthesizedFormatAndSetupStgMedium (FORMATETC &fetc, STGMEDIUM &stgmedium)
 
void renderSynthesizedUnicodeAndSetupStgMedium (FORMATETC const &fetc, STGMEDIUM &stgmedium)
 
void renderSynthesizedTextAndSetupStgMedium (FORMATETC &fetc, STGMEDIUM &stgmedium)
 
void renderSynthesizedHtmlAndSetupStgMedium (FORMATETC &fetc, STGMEDIUM &stgmedium)
 
void InitializeFormatEtcContainer ()
 

Private Attributes

LONG m_nRefCnt
 
css::uno::Reference< css::datatransfer::XTransferable > m_XTransferable
 
css::uno::Reference< css::uno::XComponentContext > m_XComponentContext
 
CFormatEtcContainer m_FormatEtcContainer
 
bool m_bFormatEtcContainerInitialized
 
CDataFormatTranslator m_DataFormatTranslator
 
CFormatRegistrar m_FormatRegistrar
 

Detailed Description

Definition at line 59 of file XTDataObject.hxx.

Constructor & Destructor Documentation

CXTDataObject::CXTDataObject ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::datatransfer::XTransferable > &  aXTransferable 
)
CXTDataObject::~CXTDataObject ( )
virtual

Definition at line 195 of file XTDataObject.cxx.

References m_XComponentContext, and m_XTransferable.

CXTDataObject::CXTDataObject ( )

Definition at line 51 of file XTDo.cxx.

Member Function Documentation

STDMETHODIMP CXTDataObject::DAdvise ( LPFORMATETC  pFormatetc,
DWORD  advf,
LPADVISESINK  pAdvSink,
DWORD *  pdwConnection 
)

Definition at line 194 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::DAdvise ( FORMATETC *  pFormatetc,
DWORD  advf,
IAdviseSink *  pAdvSink,
DWORD *  pdwConnection 
)
override

Definition at line 606 of file XTDataObject.cxx.

STDMETHODIMP CXTDataObject::DUnadvise ( DWORD  dwConnection)
STDMETHODIMP CXTDataObject::DUnadvise ( DWORD  dwConnection)
override

Definition at line 613 of file XTDataObject.cxx.

STDMETHODIMP CXTDataObject::EnumDAdvise ( LPENUMSTATDATA *  ppenumAdvise)

Definition at line 208 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::EnumDAdvise ( IEnumSTATDATA **  ppenumAdvise)
override

Definition at line 620 of file XTDataObject.cxx.

STDMETHODIMP CXTDataObject::EnumFormatEtc ( DWORD  dwDirection,
IEnumFORMATETC **  ppenumFormatetc 
)
STDMETHODIMP CXTDataObject::EnumFormatEtc ( DWORD  dwDirection,
IEnumFORMATETC **  ppenumFormatetc 
)
override

Definition at line 543 of file XTDataObject.cxx.

References InitializeFormatEtcContainer(), and m_FormatEtcContainer.

DataFlavor CXTDataObject::formatEtcToDataFlavor ( const FORMATETC &  aFormatEtc) const
inlineprivate
STDMETHODIMP CXTDataObject::GetCanonicalFormatEtc ( LPFORMATETC  pFormatectIn,
LPFORMATETC  pFormatetcOut 
)

Definition at line 180 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::GetCanonicalFormatEtc ( FORMATETC *  pFormatectIn,
FORMATETC *  pFormatetcOut 
)
override

Definition at line 592 of file XTDataObject.cxx.

STDMETHODIMP CXTDataObject::GetData ( LPFORMATETC  pFormatetc,
LPSTGMEDIUM  pmedium 
)

Definition at line 119 of file XTDo.cxx.

References hr, NULL, and TRUE.

STDMETHODIMP CXTDataObject::GetData ( FORMATETC *  pFormatetc,
STGMEDIUM *  pmedium 
)
override
STDMETHODIMP CXTDataObject::GetDataHere ( LPFORMATETC  pFormatetc,
LPSTGMEDIUM  pmedium 
)

Definition at line 173 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::GetDataHere ( FORMATETC *  pFormatetc,
STGMEDIUM *  pmedium 
)
override

Definition at line 585 of file XTDataObject.cxx.

void CXTDataObject::InitializeFormatEtcContainer ( )
inlineprivate
CXTDataObject::operator IDataObject * ( )
CXTDataObject::operator IDataObject * ( )

Definition at line 627 of file XTDataObject.cxx.

STDMETHODIMP CXTDataObject::QueryGetData ( LPFORMATETC  pFormatetc)

Definition at line 166 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::QueryGetData ( FORMATETC *  pFormatetc)
override
STDMETHODIMP CXTDataObject::QueryInterface ( REFIID  iid,
LPVOID *  ppvObject 
)

Definition at line 59 of file XTDo.cxx.

References hr, and NULL.

STDMETHODIMP CXTDataObject::QueryInterface ( REFIID  iid,
void **  ppvObject 
)
override

Definition at line 204 of file XTDataObject.cxx.

void CXTDataObject::renderAnyDataAndSetupStgMedium ( FORMATETC &  fetc,
STGMEDIUM &  stgmedium 
)
private
void CXTDataObject::renderLocaleAndSetupStgMedium ( FORMATETC const &  fetc,
STGMEDIUM &  stgmedium 
)
private
HRESULT CXTDataObject::renderSynthesizedFormatAndSetupStgMedium ( FORMATETC &  fetc,
STGMEDIUM &  stgmedium 
)
private
void CXTDataObject::renderSynthesizedHtmlAndSetupStgMedium ( FORMATETC &  fetc,
STGMEDIUM &  stgmedium 
)
private
void CXTDataObject::renderSynthesizedTextAndSetupStgMedium ( FORMATETC &  fetc,
STGMEDIUM &  stgmedium 
)
private
void CXTDataObject::renderSynthesizedUnicodeAndSetupStgMedium ( FORMATETC const &  fetc,
STGMEDIUM &  stgmedium 
)
private
void CXTDataObject::renderUnicodeAndSetupStgMedium ( FORMATETC const &  fetc,
STGMEDIUM &  stgmedium 
)
private

Definition at line 303 of file XTDataObject.cxx.

References Any, formatEtcToDataFlavor(), and m_XTransferable.

Referenced by GetData().

STDMETHODIMP CXTDataObject::SetData ( LPFORMATETC  pFormatetc,
LPSTGMEDIUM  pmedium,
BOOL  fRelease 
)

Definition at line 187 of file XTDo.cxx.

STDMETHODIMP CXTDataObject::SetData ( FORMATETC *  pFormatetc,
STGMEDIUM *  pmedium,
BOOL  fRelease 
)
override

Definition at line 599 of file XTDataObject.cxx.

CXTDataObject::STDMETHODIMP_ ( ULONG  )
CXTDataObject::STDMETHODIMP_ ( ULONG  )
CXTDataObject::STDMETHODIMP_ ( ULONG  )
override
CXTDataObject::STDMETHODIMP_ ( ULONG  )
override

Member Data Documentation

bool CXTDataObject::m_bFormatEtcContainerInitialized
private

Definition at line 105 of file XTDataObject.hxx.

Referenced by InitializeFormatEtcContainer().

CDataFormatTranslator CXTDataObject::m_DataFormatTranslator
private

Definition at line 106 of file XTDataObject.hxx.

Referenced by formatEtcToDataFlavor().

CFormatEtcContainer CXTDataObject::m_FormatEtcContainer
private

Definition at line 104 of file XTDataObject.hxx.

Referenced by EnumFormatEtc(), InitializeFormatEtcContainer(), and QueryGetData().

CFormatRegistrar CXTDataObject::m_FormatRegistrar
private
LONG CXTDataObject::m_nRefCnt
private

Definition at line 101 of file XTDataObject.hxx.

css::uno::Reference< css::uno::XComponentContext> CXTDataObject::m_XComponentContext
private

Definition at line 103 of file XTDataObject.hxx.

Referenced by ~CXTDataObject().

css::uno::Reference< css::datatransfer::XTransferable > CXTDataObject::m_XTransferable
private

The documentation for this class was generated from the following files: