diff options
Diffstat (limited to 'dtrans/source/win32/dtobj/DTransHelper.cxx')
-rw-r--r-- | dtrans/source/win32/dtobj/DTransHelper.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/dtrans/source/win32/dtobj/DTransHelper.cxx b/dtrans/source/win32/dtobj/DTransHelper.cxx index 6f7094351cdd..46b1086fe18d 100644 --- a/dtrans/source/win32/dtobj/DTransHelper.cxx +++ b/dtrans/source/win32/dtobj/DTransHelper.cxx @@ -21,10 +21,8 @@ #include <osl/diagnose.h> #include "DTransHelper.hxx" - // implementation - CStgTransferHelper::CStgTransferHelper( sal_Bool bAutoInit, HGLOBAL hGlob, sal_Bool bDelStgOnRelease ) : @@ -35,21 +33,16 @@ CStgTransferHelper::CStgTransferHelper( sal_Bool bAutoInit, init( hGlob, m_bDelStgOnRelease ); } - // dtor - - CStgTransferHelper::~CStgTransferHelper( ) { if ( m_lpStream ) m_lpStream->Release( ); } - // TransferData into the - void SAL_CALL CStgTransferHelper::write( const void* lpData, ULONG cb, ULONG* cbWritten ) { HRESULT hr = E_FAIL; @@ -71,10 +64,8 @@ void SAL_CALL CStgTransferHelper::write( const void* lpData, ULONG cb, ULONG* cb #endif } - // read - void SAL_CALL CStgTransferHelper::read( LPVOID pv, ULONG cb, ULONG* pcbRead ) { HRESULT hr = E_FAIL; @@ -86,10 +77,8 @@ void SAL_CALL CStgTransferHelper::read( LPVOID pv, ULONG cb, ULONG* pcbRead ) throw CStgTransferException( hr ); } - // GetHGlobal - HGLOBAL SAL_CALL CStgTransferHelper::getHGlobal( ) const { OSL_ASSERT( m_lpStream ); @@ -106,10 +95,8 @@ HGLOBAL SAL_CALL CStgTransferHelper::getHGlobal( ) const return hGlob; } - // getIStream - void SAL_CALL CStgTransferHelper::getIStream( LPSTREAM* ppStream ) { OSL_ASSERT( ppStream ); @@ -118,10 +105,8 @@ void SAL_CALL CStgTransferHelper::getIStream( LPSTREAM* ppStream ) static_cast< LPUNKNOWN >( *ppStream )->AddRef( ); } - // Init - void SAL_CALL CStgTransferHelper::init( SIZE_T newSize, sal_uInt32 uiFlags, sal_Bool bDelStgOnRelease ) @@ -149,10 +134,8 @@ void SAL_CALL CStgTransferHelper::init( SIZE_T newSize, #endif } - // Init - void SAL_CALL CStgTransferHelper::init( HGLOBAL hGlob, sal_Bool bDelStgOnRelease ) { @@ -165,10 +148,8 @@ void SAL_CALL CStgTransferHelper::init( HGLOBAL hGlob, throw CStgTransferException( hr ); } - // free the global memory and invalidate the stream pointer - void SAL_CALL CStgTransferHelper::cleanup( ) { if ( m_lpStream && !m_bDelStgOnRelease ) @@ -185,10 +166,8 @@ void SAL_CALL CStgTransferHelper::cleanup( ) } } - // return the size of memory we point to - sal_uInt32 SAL_CALL CStgTransferHelper::memSize( CLIPFORMAT cf ) const { DWORD dwSize = 0; |