From c70b1baac5b6b85048c894c206b8024e1eb537f3 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 27 May 2011 05:16:37 +0200 Subject: rework some other methods for performance improvements inserting several sheets now happens at once and not for every sheet seperately, this accelerates inserting of sheets at all positions dramatically --- sc/inc/rangenam.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/inc/rangenam.hxx') diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index ebf2769e2baf..5d3ff4942e93 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -146,7 +146,7 @@ public: SC_DLLPUBLIC sal_Bool IsValidReference( ScRange& rRef ) const; sal_Bool IsRangeAtBlock( const ScRange& ) const; - void UpdateTabRef(SCTAB nOldTable, sal_uInt16 nFlag, SCTAB nNewTable); + void UpdateTabRef(SCTAB nOldTable, sal_uInt16 nFlag, SCTAB nNewTable, SCTAB nNewSheets); void TransferTabRef( SCTAB nOldTab, SCTAB nNewTab ); void ValidateTabRefs(); @@ -199,7 +199,7 @@ public: SC_DLLPUBLIC ScRangeData* findByIndex(sal_uInt16 i); void UpdateReference(UpdateRefMode eUpdateRefMode, const ScRange& rRange, SCsCOL nDx, SCsROW nDy, SCsTAB nDz); - void UpdateTabRef(SCTAB nTable, sal_uInt16 nFlag, SCTAB nNewTable = 0); + void UpdateTabRef(SCTAB nTable, sal_uInt16 nFlag, SCTAB nNewTable = 0, SCTAB nNewSheets = 1); void UpdateTranspose(const ScRange& rSource, const ScAddress& rDest); void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY); -- cgit