diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-27 05:16:37 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-27 05:16:37 +0200 |
commit | 3cd8167ef8e78343106abd2d908a28310769718e (patch) | |
tree | d51281285d0439fd566effc2176e91b7f00eb626 /sc/inc | |
parent | a469086c254bdc1375aa2f4f3f8283d3af484f7a (diff) |
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
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cell.hxx | 2 | ||||
-rw-r--r-- | sc/inc/column.hxx | 4 | ||||
-rw-r--r-- | sc/inc/compiler.hxx | 2 | ||||
-rw-r--r-- | sc/inc/rangenam.hxx | 4 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx index 36d66a049..34e978120 100644 --- a/sc/inc/cell.hxx +++ b/sc/inc/cell.hxx @@ -442,7 +442,7 @@ public: void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY ); - void UpdateInsertTab(SCTAB nTable); + void UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets = 1); void UpdateInsertTabAbs(SCTAB nTable); sal_Bool UpdateDeleteTab(SCTAB nTable, sal_Bool bIsMove = false); void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo); diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index dcd7b648d..d3ea6ad23 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -290,8 +290,8 @@ public: SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCsCOL nDx, SCsROW nDy, SCsTAB nDz, ScDocument* pUndoDoc = NULL ); - void UpdateInsertTab( SCTAB nTable); - void UpdateInsertTabOnlyCells( SCTAB nTable); + void UpdateInsertTab( SCTAB nTable, SCTAB nNewSheets = 1); + void UpdateInsertTabOnlyCells( SCTAB nTable, SCTAB nNewSheets = 1); void UpdateDeleteTab( SCTAB nTable, bool bIsMove, ScColumn* pRefUndo = NULL ); void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo); void UpdateCompile( bool bForceIfNameInUse = false ); diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 407b58076..5d6cb6c92 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -444,7 +444,7 @@ public: const ScAddress& rOldPos, const ScRange&, SCsCOL nDx, SCsROW nDy, SCsTAB nDz ); - ScRangeData* UpdateInsertTab(SCTAB nTable, sal_Bool bIsName ); + ScRangeData* UpdateInsertTab(SCTAB nTable, sal_Bool bIsName, SCTAB nNewSheets = 1 ); ScRangeData* UpdateDeleteTab(SCTAB nTable, sal_Bool bIsMove, sal_Bool bIsName, sal_Bool& bCompile); ScRangeData* UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, sal_Bool bIsName ); diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index c6a64a739..a891535d7 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); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 49c705fdb..c559181a3 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -476,7 +476,7 @@ public: void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY ); - void UpdateInsertTab(SCTAB nTable); + void UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets = 1); void UpdateDeleteTab( SCTAB nTable, sal_Bool bIsMove, ScTable* pRefUndo = NULL ); void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo, ScProgress& ); void UpdateCompile( sal_Bool bForceIfNameInUse = false ); |