diff options
author | Eike Rathke [er] <erAck@sun.com> | 2010-07-16 15:58:36 +0200 |
---|---|---|
committer | Eike Rathke [er] <erAck@sun.com> | 2010-07-16 15:58:36 +0200 |
commit | 98cdf3324314ebf7ee69605af2a8fc28be092528 (patch) | |
tree | d65a24b2527fbfa240a7bf5323fd3f929876a6ed /sc/source/ui/inc/viewdata.hxx | |
parent | d5d147219645771f745d46db17d6fd2c31347aae (diff) |
calc56: #i113139# various performance improvements for 1MB rows, especially with large hidden segments
Diffstat (limited to 'sc/source/ui/inc/viewdata.hxx')
-rw-r--r-- | sc/source/ui/inc/viewdata.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx index 106d196a8175..fb9c674a4488 100644 --- a/sc/source/ui/inc/viewdata.hxx +++ b/sc/source/ui/inc/viewdata.hxx @@ -482,6 +482,24 @@ public: BOOL IsSelCtrlMouseClick() { return bSelCtrlMouseClick; } static inline long ToPixel( USHORT nTwips, double nFactor ); + + /** while (rScrY <= nEndPixels && rPosY <= nEndRow) add pixels of row + heights converted with nPPTY to rScrY, optimized for row height + segments. Upon return rPosY is the last row evaluated <= nEndRow, rScrY + may be > nEndPixels! + */ + static void AddPixelsWhile( long & rScrY, long nEndPixels, + SCROW & rPosY, SCROW nEndRow, double nPPTY, + const ScDocument * pDoc, SCTAB nTabNo ); + + /** while (rScrY <= nEndPixels && rPosY >= nStartRow) add pixels of row + heights converted with nPPTY to rScrY, optimized for row height + segments. Upon return rPosY is the last row evaluated >= nStartRow, + rScrY may be > nEndPixels! + */ + static void AddPixelsWhileBackward( long & rScrY, long nEndPixels, + SCROW & rPosY, SCROW nStartRow, double nPPTY, + const ScDocument * pDoc, SCTAB nTabNo ); }; |