summaryrefslogtreecommitdiff
path: root/sax
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
parent7e34142abaa37a73f0846b00f08c39a423dc7c54 (diff)
XLSX VML Export fixes.
Make generation of xml header optional.
Diffstat (limited to 'sax')
-rw-r--r--sax/inc/sax/fshelper.hxx2
-rw-r--r--sax/source/tools/fshelper.cxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/sax/inc/sax/fshelper.hxx b/sax/inc/sax/fshelper.hxx
index 5d5668a8f9f5..f6651fa8b647 100644
--- a/sax/inc/sax/fshelper.hxx
+++ b/sax/inc/sax/fshelper.hxx
@@ -52,7 +52,7 @@ class SAX_DLLPUBLIC FastSerializerHelper
{
public:
- FastSerializerHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream );
+ FastSerializerHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream, bool bWriteHeader = true );
~FastSerializerHelper();
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()