summaryrefslogtreecommitdiff
path: root/sax/source/tools/fshelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source/tools/fshelper.cxx')
-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()