summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-08-12 10:55:07 +0000
committerOliver Bolte <obo@openoffice.org>2004-08-12 10:55:07 +0000
commit9c5431a9410aa4f53414d0c434420bcc9bd18b4f (patch)
treeae581124b545f4e8c21e74a214a4eb2865323365 /package
parentca30b0ce703456f38bbc646d408893e80749920b (diff)
INTEGRATION: CWS unotlc (1.66.26); FILE MERGED
2004/08/04 12:06:34 mav 1.66.26.1: #i32418# vnd.sun.star.zip scheme
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackageFolder.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx
index aa4fe03786c4..81443d017acc 100644
--- a/package/source/zippackage/ZipPackageFolder.cxx
+++ b/package/source/zippackage/ZipPackageFolder.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackageFolder.cxx,v $
*
- * $Revision: 1.66 $
+ * $Revision: 1.67 $
*
- * last change: $Author: rt $ $Date: 2004-05-19 09:19:55 $
+ * last change: $Author: obo $ $Date: 2004-08-12 11:55:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -120,8 +120,10 @@ using vos::ORef;
Sequence < sal_Int8 > ZipPackageFolder::aImplementationId = Sequence < sal_Int8 > ();
-ZipPackageFolder::ZipPackageFolder ( const Reference< XMultiServiceFactory >& xFactory )
+ZipPackageFolder::ZipPackageFolder ( const Reference< XMultiServiceFactory >& xFactory,
+ sal_Bool bPackageFormat )
: m_xFactory( xFactory )
+, m_bPackageFormat( bPackageFormat )
{
OSL_ENSURE( m_xFactory.is(), "No factory is provided to the package folder!" );
@@ -602,7 +604,12 @@ void SAL_CALL ZipPackageFolder::setPropertyValue( const OUString& aPropertyName,
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
if (aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MediaType")))
+ {
+ if ( !m_bPackageFormat )
+ throw PropertyVetoException();
+
aValue >>= sMediaType;
+ }
else if (aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Size") ) )
aValue >>= aEntry.nSize;
else