diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-01-18 06:39:48 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-01-18 06:39:48 +0000 |
commit | 4e485380e7c33994876b89a2daaf9319763ab73a (patch) | |
tree | 3368ba8ec0fca29f4e9e813f3b2fadf480f3df55 /ucb/source/ucp | |
parent | 06d2a7cc232acf608bc95887e59eb83572d87493 (diff) |
Chnaged: Adapted to changed property name ( "Compress" -> "Compressed" ).
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
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,10 +2045,16 @@ 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 ////////////////////////////////////////////////////////////////// // Store data stream... |