diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 11:12:49 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:19:28 -0400 |
commit | d5b4cb00bedd08ad72885defbc35c971b573ecd8 (patch) | |
tree | 42f0bd375c5f1b23120359b140b8cfbfecb220b1 /sc/inc/document.hxx | |
parent | fc470416281b92e6b481885b64d59bc01ea4c3a6 (diff) |
Keep track of column block positions when mass-pasting formula cells.
This speeds up the following scenario:
1) type =B1 in A1. Leave A2 empty.
2) Select A1:A2 and Ctrl-C to copy.
3) Select A3:A50000 (or longer if you so wish), and ctrl-V to paste.
This causes the broadcaster storage array in column B to be heavily
partitioned due to the empty cells interspersed between formula cells
in column A. Without tracking the column position this would cause a
O(n^2) complexity algorithm.
Change-Id: Ic2f23c2c2bea3353c517faa73fe5412c7528bd95
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index f01e811eb94e..544c9b50890b 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -49,6 +49,7 @@ namespace editeng { class SvxBorderLine; } namespace sc { struct FormulaGroupContext; + class StartListeningContext; class EndListeningContext; class CopyFromClipContext; struct ColumnBlockPosition; @@ -1765,6 +1766,7 @@ public: void EndListeningCell( const ScAddress& rAddress, SvtListener* pListener ); + void StartListeningCell( sc::StartListeningContext& rCxt, const ScAddress& rPos, SvtListener& rListener ); void EndListeningCell( sc::EndListeningContext& rCxt, const ScAddress& rPos, SvtListener& rListener ); void EndListeningFormulaCells( std::vector<ScFormulaCell*>& rCells ); |