diff options
Diffstat (limited to 'dtrans/source/win32/dtobj/Fetc.cxx')
-rw-r--r-- | dtrans/source/win32/dtobj/Fetc.cxx | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/dtrans/source/win32/dtobj/Fetc.cxx b/dtrans/source/win32/dtobj/Fetc.cxx index b237b865f124..9f60a0e5d68e 100644 --- a/dtrans/source/win32/dtobj/Fetc.cxx +++ b/dtrans/source/win32/dtobj/Fetc.cxx @@ -21,10 +21,6 @@ #include "Fetc.hxx" #include "../misc/ImplHelper.hxx" - -// - - CFormatEtc::CFormatEtc( ) { m_FormatEtc.cfFormat = 0; @@ -34,28 +30,18 @@ CFormatEtc::CFormatEtc( ) m_FormatEtc.tymed = TYMED_NULL; } - // transfer of ownership - CFormatEtc::CFormatEtc( const FORMATETC& aFormatEtc ) { CopyFormatEtc( &m_FormatEtc, &const_cast< FORMATETC& >( aFormatEtc ) ); } - -// - - CFormatEtc::~CFormatEtc( ) { DeleteTargetDevice( m_FormatEtc.ptd ); } - -// - - CFormatEtc::CFormatEtc( CLIPFORMAT cf, DWORD tymed, DVTARGETDEVICE* ptd, DWORD dwAspect, LONG lindex ) { m_FormatEtc.cfFormat = cf; @@ -65,10 +51,6 @@ CFormatEtc::CFormatEtc( CLIPFORMAT cf, DWORD tymed, DVTARGETDEVICE* ptd, DWORD d m_FormatEtc.tymed = tymed; } - -// - - CFormatEtc::CFormatEtc( const CFormatEtc& theOther ) { m_FormatEtc.cfFormat = theOther.m_FormatEtc.cfFormat; @@ -78,10 +60,6 @@ CFormatEtc::CFormatEtc( const CFormatEtc& theOther ) m_FormatEtc.tymed = theOther.m_FormatEtc.tymed; } - -// - - CFormatEtc& CFormatEtc::operator=( const CFormatEtc& theOther ) { if ( this != &theOther ) @@ -98,28 +76,16 @@ CFormatEtc& CFormatEtc::operator=( const CFormatEtc& theOther ) return *this; } - -// - - CFormatEtc::operator FORMATETC*( ) { return &m_FormatEtc; } - -// - - CFormatEtc::operator FORMATETC( ) { return m_FormatEtc; } - -// - - void CFormatEtc::getFORMATETC( LPFORMATETC lpFormatEtc ) { OSL_ASSERT( lpFormatEtc ); @@ -128,28 +94,16 @@ void CFormatEtc::getFORMATETC( LPFORMATETC lpFormatEtc ) CopyFormatEtc( lpFormatEtc, &m_FormatEtc ); } - -// - - CLIPFORMAT CFormatEtc::getClipformat( ) const { return m_FormatEtc.cfFormat; } - -// - - DWORD CFormatEtc::getTymed( ) const { return m_FormatEtc.tymed; } - -// - - void CFormatEtc::getTargetDevice( DVTARGETDEVICE** lpDvTargetDevice ) const { OSL_ASSERT( lpDvTargetDevice ); @@ -161,83 +115,49 @@ void CFormatEtc::getTargetDevice( DVTARGETDEVICE** lpDvTargetDevice ) const *lpDvTargetDevice = CopyTargetDevice( m_FormatEtc.ptd ); } - -// - - DWORD CFormatEtc::getDvAspect( ) const { return m_FormatEtc.dwAspect; } - -// - - LONG CFormatEtc::getLindex( ) const { return m_FormatEtc.lindex; } - -// - - void CFormatEtc::setClipformat( CLIPFORMAT cf ) { m_FormatEtc.cfFormat = cf; } - -// - - void CFormatEtc::setTymed( DWORD tymed ) { m_FormatEtc.tymed = tymed; } - // transfer of ownership! - void CFormatEtc::setTargetDevice( DVTARGETDEVICE* ptd ) { DeleteTargetDevice( m_FormatEtc.ptd ); m_FormatEtc.ptd = ptd; } - -// - - void CFormatEtc::setDvAspect( DWORD dwAspect ) { m_FormatEtc.dwAspect = dwAspect; } - -// - - void CFormatEtc::setLindex( LONG lindex ) { m_FormatEtc.lindex = lindex; } - -// - - sal_Int32 operator==( const CFormatEtc& lhs, const CFormatEtc& rhs ) { return CompareFormatEtc( &lhs.m_FormatEtc, &rhs.m_FormatEtc ); } - -// - - sal_Int32 operator!=( const CFormatEtc& lhs, const CFormatEtc& rhs ) { return ( ( lhs == rhs ) != 1 ); |