[Libreoffice-commits] .: sax/inc sax/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Fri Dec 10 08:17:18 PST 2010
sax/inc/sax/fshelper.hxx | 2 +-
sax/source/tools/fshelper.cxx | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 4d6cb7adef33e083ced554045212176574545a64
Author: Muthu Subramanian K <sumuthu at novell.com>
Date: Fri Dec 10 21:38:16 2010 +0530
XLSX VML Export fixes.
Make generation of xml header optional.
diff --git a/sax/inc/sax/fshelper.hxx b/sax/inc/sax/fshelper.hxx
index 5d5668a..f6651fa 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 0ea7cf6..57665db 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()
More information about the Libreoffice-commits
mailing list