summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-02-27 15:06:29 +0000
committerSascha Ballach <sab@openoffice.org>2001-02-27 15:06:29 +0000
commit3a1217d92e5f8b540a788ea50a7eec06d986a6ef (patch)
tree841e2386726ae75fe7d5ddd74f0c2b578ccd3808 /sc/source/filter/xml/xmlwrap.cxx
parente38614725c7e012d50e510afdd53707f6d68fed6 (diff)
set the meta stream to not compress and the content stream to the MediaType text/xml (this let the content stream compress)
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index bab6bbe09eec..f82982f288e8 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlwrap.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: cl $ $Date: 2001-02-22 10:03:12 $
+ * last change: $Author: sab $ $Date: 2001-02-27 16:06:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,9 @@
#ifndef _COM_SUN_STAR_TASK_XSTATUSINDICATORFACTORY_HPP_
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
#endif
+#ifndef _CPPUHELPER_EXTRACT_HXX_
+#include <cppuhelper/extract.hxx>
+#endif
#ifndef _XMLEOHLP_HXX
#include <svx/xmleohlp.hxx>
@@ -378,6 +381,8 @@ sal_Bool ScXMLImportWrapper::Export()
OUString sMetaName( RTL_CONSTASCII_USTRINGPARAM( "Meta.xml" ) );
xMetaStream = pStorage->OpenStream( sMetaName,
STREAM_WRITE | STREAM_SHARE_DENYWRITE );
+ uno::Any aAny = ::cppu::bool2any(sal_False);
+ xMetaStream->SetProperty(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Compressed")), aAny);
xMetaStream->SetBufferSize( 16*1024 );
xMetaOut = new utl::OOutputStreamWrapper( *xMetaStream );
}
@@ -423,6 +428,9 @@ sal_Bool ScXMLImportWrapper::Export()
OUString sDocName( RTL_CONSTASCII_USTRINGPARAM( "Content.xml" ) );
xDocStream = pStorage->OpenStream( sDocName,
STREAM_WRITE | STREAM_SHARE_DENYWRITE );
+ rtl::OUString sType(RTL_CONSTASCII_USTRINGPARAM("text/xml"));
+ uno::Any aAny; aAny <<= sType;
+ xDocStream->SetProperty(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MediaType")), aAny);
xDocStream->SetBufferSize( 16*1024 );
xDocOut = new utl::OOutputStreamWrapper( *xDocStream );
}