summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorMuthu Subramanian K <sumuthu@novell.com>2010-12-10 21:38:16 +0530
committerMuthu Subramanian K <sumuthu@novell.com>2010-12-10 21:44:11 +0530
commitb75f3f82f82676784f79c9624bfc8914e23d15d6 (patch)
tree6572e6226f08e2bb5bc138e9684ca3c23ca54e2a /sax/source
parent7e34142abaa37a73f0846b00f08c39a423dc7c54 (diff)
XLSX VML Export fixes.
Make generation of xml header optional.
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/fshelper.cxx5
1 files changed, 3 insertions, 2 deletions
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()