From b75f3f82f82676784f79c9624bfc8914e23d15d6 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian K Date: Fri, 10 Dec 2010 21:38:16 +0530 Subject: XLSX VML Export fixes. Make generation of xml header optional. --- sax/source/tools/fshelper.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sax/source') diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index 3096dc6a3ee2..88b15a00be71 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -10,7 +10,7 @@ using namespace ::com::sun::star::uno; namespace sax_fastparser { -FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >& xOutputStream ) : +FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >& xOutputStream, bool bWriteHeader ) : mpSerializer(new FastSaxSerializer()) { Reference< lang::XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory(); @@ -18,7 +18,8 @@ FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >& mpSerializer->setFastTokenHandler( mxTokenHandler ); mpSerializer->setOutputStream( xOutputStream ); - mpSerializer->startDocument(); + if( bWriteHeader ) + mpSerializer->startDocument(); } FastSerializerHelper::~FastSerializerHelper() -- cgit