diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 09:03:32 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 09:03:32 +0000 |
commit | e062ee60450f436a102ebc4bb68284911e2be56c (patch) | |
tree | 3bf56fabc03d5a9689394733854b662d6143c5cd /sc/source/filter/xml/xmlwrap.cxx | |
parent | ba8dc821c26fa4b341efa1669b5847980a08dce5 (diff) |
INTEGRATION: CWS mav23 (1.65.96); FILE MERGED
2007/06/19 12:02:00 mav 1.65.96.1: #i78344# even plain streams must be encrypted in encrypted document
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 09b6c87f0f6a..098e5dce5c03 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -4,9 +4,9 @@ * * $RCSfile: xmlwrap.cxx,v $ * - * $Revision: 1.65 $ + * $Revision: 1.66 $ * - * last change: $Author: vg $ $Date: 2007-02-27 12:53:42 $ + * last change: $Author: hr $ $Date: 2007-06-26 10:03:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -713,14 +713,10 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic xSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MediaType")), uno::makeAny(sMediaType)); OUString aUseCommonPassPropName( RTL_CONSTASCII_USTRINGPARAM("UseCommonStoragePasswordEncryption") ); if (bPlainText) - { xSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Compressed")), uno::makeAny(sal_False)); - xSet->setPropertyValue( aUseCommonPassPropName, uno::makeAny(sal_False)); - } - else - { - xSet->setPropertyValue( aUseCommonPassPropName, uno::makeAny(sal_True)); - } + + // even plain stream should be encrypted in encrypted documents + xSet->setPropertyValue( aUseCommonPassPropName, uno::makeAny(sal_True) ); } xOut = xStream->getOutputStream(); |