summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 16:30:54 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 16:30:54 +0000
commit3913a043f77705a44d74d593f629d6d847d7a8b4 (patch)
tree419b8b233fc71f58e31afb9bf67240321d226846 /sc/source/core
parent27eb2262b8b7c358077d49d5ed999caa035e2890 (diff)
INTEGRATION: CWS aquavcl05_DEV300 (1.81.12); FILE MERGED
2008/02/14 15:55:29 pl 1.81.12.2: RESYNC: (1.81-1.84); FILE MERGED 2008/02/11 10:06:35 nn 1.81.12.1: #i85992# single progress for updating row heights of all sheets after loading
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/document.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 8d18e2618295..39b958daac13 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: document.cxx,v $
*
- * $Revision: 1.84 $
+ * $Revision: 1.85 $
*
- * last change: $Author: vg $ $Date: 2008-02-12 14:24:19 $
+ * last change: $Author: kz $ $Date: 2008-03-05 17:30:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -2712,6 +2712,23 @@ BOOL ScDocument::SetOptimalHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, U
}
+void ScDocument::UpdateAllRowHeights( OutputDevice* pDev, double nPPTX, double nPPTY,
+ const Fraction& rZoomX, const Fraction& rZoomY )
+{
+ // one progress across all sheets
+ ScProgress aProgress( GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), GetWeightedCount() );
+
+ ULONG nProgressStart = 0;
+ for ( SCTAB nTab=0; nTab<=MAXTAB; nTab++ )
+ if ( pTab[nTab] )
+ {
+ pTab[nTab]->SetOptimalHeight( 0, MAXROW, 0,
+ pDev, nPPTX, nPPTY, rZoomX, rZoomY, FALSE, &aProgress, nProgressStart );
+ nProgressStart += pTab[nTab]->GetWeightedCount();
+ }
+}
+
+
//
// Spalten-/Zeilen-Flags ----------------------------------------------
//