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

#include <DTransHelper.hxx>

Classes

class  CStgTransferException
 

Public Member Functions

 CStgTransferHelper (bool bAutoInit=false, HGLOBAL hGlob=nullptr, bool bDelStgOnRelease=false)
 
 ~CStgTransferHelper ()
 
void write (const void *lpData, ULONG cb, ULONG *cbWritten=nullptr)
 
void read (LPVOID pv, ULONG cb, ULONG *pcbRead=nullptr)
 
HGLOBAL getHGlobal () const
 
void getIStream (LPSTREAM *ppStream)
 
void init (SIZE_T newSize, sal_uInt32 uiFlags=GHND, bool bDelStgOnRelease=false)
 
void init (HGLOBAL hGlob, bool bDelStgOnRelease=false)
 
sal_uInt32 memSize (CLIPFORMAT cf=CF_INVALID) const
 
void cleanup ()
 

Private Member Functions

 CStgTransferHelper (const CStgTransferHelper &)
 
CStgTransferHelperoperator= (const CStgTransferHelper &)
 

Private Attributes

LPSTREAM m_lpStream
 
bool m_bDelStgOnRelease
 

Detailed Description

Definition at line 36 of file DTransHelper.hxx.

Constructor & Destructor Documentation

CStgTransferHelper::CStgTransferHelper ( bool  bAutoInit = false,
HGLOBAL  hGlob = nullptr,
bool  bDelStgOnRelease = false 
)

Definition at line 26 of file DTransHelper.cxx.

References init(), and m_bDelStgOnRelease.

CStgTransferHelper::~CStgTransferHelper ( )

Definition at line 38 of file DTransHelper.cxx.

References m_lpStream.

CStgTransferHelper::CStgTransferHelper ( const CStgTransferHelper )
private

Member Function Documentation

void CStgTransferHelper::cleanup ( )

Definition at line 153 of file DTransHelper.cxx.

References m_bDelStgOnRelease, and m_lpStream.

Referenced by init().

HGLOBAL CStgTransferHelper::getHGlobal ( ) const

Definition at line 82 of file DTransHelper.cxx.

References hr, and m_lpStream.

void CStgTransferHelper::getIStream ( LPSTREAM *  ppStream)

Definition at line 100 of file DTransHelper.cxx.

References m_lpStream.

void CStgTransferHelper::init ( SIZE_T  newSize,
sal_uInt32  uiFlags = GHND,
bool  bDelStgOnRelease = false 
)
void CStgTransferHelper::init ( HGLOBAL  hGlob,
bool  bDelStgOnRelease = false 
)

Definition at line 139 of file DTransHelper.cxx.

References cleanup(), hr, m_bDelStgOnRelease, and m_lpStream.

sal_uInt32 CStgTransferHelper::memSize ( CLIPFORMAT  cf = CF_INVALID) const

Definition at line 171 of file DTransHelper.cxx.

References m_lpStream.

CStgTransferHelper& CStgTransferHelper::operator= ( const CStgTransferHelper )
private
void CStgTransferHelper::read ( LPVOID  pv,
ULONG  cb,
ULONG *  pcbRead = nullptr 
)

Definition at line 69 of file DTransHelper.cxx.

References hr, and m_lpStream.

void CStgTransferHelper::write ( const void lpData,
ULONG  cb,
ULONG *  cbWritten = nullptr 
)

Definition at line 46 of file DTransHelper.cxx.

References hr, and m_lpStream.

Member Data Documentation

bool CStgTransferHelper::m_bDelStgOnRelease
private

Definition at line 79 of file DTransHelper.hxx.

Referenced by cleanup(), CStgTransferHelper(), and init().

LPSTREAM CStgTransferHelper::m_lpStream
private

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