diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-25 23:30:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 10:05:17 +0100 |
commit | b1a8b71be4d774ad04e83b8aa4588fd31a5370a2 (patch) | |
tree | 84e4d6e98f7a84701aca8cdaa4b2b99b80188fcb /lotuswordpro | |
parent | ByteString::CreateFromInt32->rtl::OStringBuffer::append (diff) | |
download | core-b1a8b71be4d774ad04e83b8aa4588fd31a5370a2.tar.gz core-b1a8b71be4d774ad04e83b8aa4588fd31a5370a2.zip |
callcatcher: remove unused Write methods
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.cxx | 53 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.hxx | 4 |
2 files changed, 1 insertions, 56 deletions
diff --git a/lotuswordpro/source/filter/lwpoleobject.cxx b/lotuswordpro/source/filter/lwpoleobject.cxx index 09e1eeae180c..80c911c3f86c 100644 --- a/lotuswordpro/source/filter/lwpoleobject.cxx +++ b/lotuswordpro/source/filter/lwpoleobject.cxx @@ -329,57 +329,4 @@ sal_Bool LwpOlePres::Read( SvStream & /*rStm*/ ) return sal_True; } -/** -* @descr: Write OLE object picture information. -*/ -void LwpOlePres::Write( SvStream & rStm ) -{ - WriteClipboardFormat( rStm, FORMAT_GDIMETAFILE ); - rStm << (sal_Int32)(nJobLen +4); // immer leeres TargetDevice - if( nJobLen ) - rStm.Write( pJob, nJobLen ); - rStm << (sal_uInt32)nAspect; - rStm << (sal_Int32)-1; //L-Index immer -1 - rStm << (sal_Int32)nAdvFlags; - rStm << (sal_Int32)0; //Compression - rStm << (sal_Int32)aSize.Width(); - rStm << (sal_Int32)aSize.Height(); - sal_uLong nPos = rStm.Tell(); - rStm << (sal_Int32)0; - - if( GetFormat() == FORMAT_GDIMETAFILE && pMtf ) - { - // Immer auf 1/100 mm, bis Mtf-Loesung gefunden - // Annahme (keine Skalierung, keine Org-Verschiebung) - DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleX() == Fraction( 1, 1 ), - "X-Skalierung im Mtf" ); - DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleY() == Fraction( 1, 1 ), - "Y-Skalierung im Mtf" ); - DBG_ASSERT( pMtf->GetPrefMapMode().GetOrigin() == Point(), - "Origin-Verschiebung im Mtf" ); - MapUnit nMU = pMtf->GetPrefMapMode().GetMapUnit(); - if( MAP_100TH_MM != nMU ) - { - Size aPrefS( pMtf->GetPrefSize() ); - Size aS( aPrefS ); - aS = OutputDevice::LogicToLogic( aS, nMU, MAP_100TH_MM ); - - pMtf->Scale( Fraction( aS.Width(), aPrefS.Width() ), - Fraction( aS.Height(), aPrefS.Height() ) ); - pMtf->SetPrefMapMode( MAP_100TH_MM ); - pMtf->SetPrefSize( aS ); - } - WriteWindowMetafileBits( rStm, *pMtf ); - } - else - { - OSL_FAIL( "unknown format" ); - } - sal_uLong nEndPos = rStm.Tell(); - rStm.Seek( nPos ); - rStm << (sal_uInt32)(nEndPos - nPos - 4); - rStm.Seek( nEndPos ); -} -//End by - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/lwpoleobject.hxx b/lotuswordpro/source/filter/lwpoleobject.hxx index 7e40d43f6c94..96afa3301e0a 100644 --- a/lotuswordpro/source/filter/lwpoleobject.hxx +++ b/lotuswordpro/source/filter/lwpoleobject.hxx @@ -183,12 +183,10 @@ public: sal_uLong GetAdviseFlags() const { return nAdvFlags; } void SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; } void SetSize( const Size & rSize ) { aSize = rSize; } - Size GetSize() const { return aSize; } //Add by , 10/26/2005 + Size GetSize() const { return aSize; } /// return FALSE => unknown format sal_Bool Read( SvStream & rStm ); - void Write( SvStream & rStm ); }; -//End by #endif |