diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-04 13:20:58 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-04 13:20:58 +0000 |
commit | 7d16a1006314eb2d619af56ed6ad55d8c02da0ae (patch) | |
tree | fa8875945a9e72e0ed00e7e6d6ecd7a5afc13a18 /sc/source/filter/xml/xmlwrap.cxx | |
parent | e0b635b93c9fb8ed00b93454e22e99cd95edcbdc (diff) |
INTEGRATION: CWS fwk42 (1.63.12); FILE MERGED
2006/08/01 18:05:39 mav 1.63.12.1: #139038# change the default value
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index a43d047e3252..3d19a680fb47 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.63 $ + * $Revision: 1.64 $ * - * last change: $Author: kz $ $Date: 2006-07-21 12:59:39 $ + * last change: $Author: ihi $ $Date: 2006-08-04 14:20:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -704,12 +704,15 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic if (xSet.is()) { 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 { -//REMOVE xSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Encrypted")), aAny); - xSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UseCommonStoragePasswordEncryption")), uno::makeAny(sal_True)); + xSet->setPropertyValue( aUseCommonPassPropName, uno::makeAny(sal_True)); } } |