From e2e5ef04347bfb17abd7415dafa72561bd6dbfcf Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sun, 27 Nov 2011 20:03:11 +0100 Subject: [PATCH] dr78: #i115641# don't increment progress for empty repeated cells # HG changeset patch # User Niklas Nebel # Date 1290090240 -3600 # Node ID c19d748c11d669e4679736aa6b0f809a773a5fd1 # Parent 12ba194ace3d3cb17c347ff712d9268d8cdabd09 --- sc/source/filter/xml/xmlexprt.cxx | 20 +++++++++++--------- sc/source/filter/xml/xmlexprt.hxx | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 8e0f03450ce3..3ad8b8bab4f3 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2830,16 +2830,14 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const ReferenceGetLastColumn(nTable), pSharedData->GetLastRow(nTable), nTable); } @@ -2872,8 +2869,11 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const Reference 0) { sal_Int32 nTemp(nEqualCellCount + 1); OUString sOUEqualCellCount(OUString::valueOf(nTemp)); AddAttribute(sAttrColumnsRepeated, sOUEqualCellCount); - IncrementProgressBar(false, nEqualCellCount); + if (bIncProgress) + IncrementProgressBar(sal_False, nEqualCellCount); } } diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx index b7142a4d0309..5e65953c71aa 100644 --- a/sc/source/filter/xml/xmlexprt.hxx +++ b/sc/source/filter/xml/xmlexprt.hxx @@ -183,14 +183,14 @@ class ScXMLExport : public SvXMLExport bool GetCellText (ScMyCell& rMyCell, const ScAddress& aPos) const; void WriteTable(sal_Int32 nTable, const ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet>& xTable); - void WriteCell (ScMyCell& aCell); + void WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount); void WriteAreaLink(const ScMyCell& rMyCell); void WriteAnnotation(ScMyCell& rMyCell); void WriteDetective(const ScMyCell& rMyCell); void ExportShape(const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& xShape, com::sun::star::awt::Point* pPoint); void WriteShapes(const ScMyCell& rMyCell); void WriteTableShapes(); - void SetRepeatAttribute (const sal_Int32 nEqualCellCount); + void SetRepeatAttribute(sal_Int32 nEqualCellCount, bool bIncProgress); bool IsCellTypeEqual (const ScMyCell& aCell1, const ScMyCell& aCell2) const; bool IsEditCell(const com::sun::star::table::CellAddress& aAddress, ScMyCell* pMyCell = NULL) const; -- 2.11.4.GIT