From 4e485380e7c33994876b89a2daaf9319763ab73a Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Thu, 18 Jan 2001 06:39:48 +0000 Subject: Chnaged: Adapted to changed property name ( "Compress" -> "Compressed" ). --- ucb/source/ucp/package/pkgcontent.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'ucb/source/ucp') diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index d13c1ea11ce9..e48b0c956fc5 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pkgcontent.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: kso $ $Date: 2001-01-16 14:30:39 $ + * last change: $Author: kso $ $Date: 2001-01-18 07:39:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1848,9 +1848,15 @@ sal_Bool Content::loadData( ContentProvider* pProvider, { try { +#if SUPD>617 + Any aCompressed + = xPropSet->getPropertyValue( + OUString::createFromAscii( "Compressed" ) ); +#else Any aCompressed = xPropSet->getPropertyValue( OUString::createFromAscii( "Compress" ) ); // Not Compressed !!! +#endif if ( !( aCompressed >>= rProps.bCompressed ) ) { VOS_ENSURE( sal_False, @@ -2039,9 +2045,15 @@ sal_Bool Content::storeData( const Reference< XInputStream >& xStream ) makeAny( m_aProps.aMediaType ) ); #if SUPD>616 +#if SUPD>617 + if ( !isFolder() ) + xPropSet->setPropertyValue( OUString::createFromAscii( "Compressed" ), + makeAny( m_aProps.bCompressed ) ); +#else if ( !isFolder() ) xPropSet->setPropertyValue( OUString::createFromAscii( "Compress" ), // Not Compressed !!! makeAny( m_aProps.bCompressed ) ); +#endif #endif ////////////////////////////////////////////////////////////////// -- cgit