summaryrefslogtreecommitdiffstats
path: root/sc/inc/table.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-12-05 21:32:06 +0100
committerEike Rathke <erack@redhat.com>2014-12-05 21:40:27 +0100
commit9a568c41ccd1ccf6073758973da5914a44f629d2 (patch)
tree12658a5dc8f4ad95f24f875fb4384fe2e8e3e869 /sc/inc/table.hxx
parentalso dont confuse clang on OSX (diff)
downloadcore-9a568c41ccd1ccf6073758973da5914a44f629d2.tar.gz
core-9a568c41ccd1ccf6073758973da5914a44f629d2.zip
Ctrl+A and Data Sort took ages to broadcast ALL cells
... now that also empty cells are to be broadcasted. Set dirty and broadcast only the effective data range as determined by Sort. This is more a workaround, a cleaner solution would be to refactor the SetDirty() algorithm to iterate only through broadcasters and use AreaBroadcast() to notify area listeners. However, this can also be easily backported to 4-3. Change-Id: I6d68ca0088cec6a8328a3e93364ac928ef69babe
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r--sc/inc/table.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index ba5529d7759b..73c453ecfd54 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -834,8 +834,12 @@ public:
void StripHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
void ExtendHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
+ /** Sort a range of data.
+ @param rSortParam may get adjusted to the actual range used if it did
+ encompass leading or trailing empty blocks
+ */
void Sort(
- const ScSortParam& rSortParam, bool bKeepQuery, bool bUpdateRefs,
+ ScSortParam& rSortParam, bool bKeepQuery, bool bUpdateRefs,
ScProgress* pProgress, sc::ReorderParam* pUndo );
void Reorder( const sc::ReorderParam& rParam, ScProgress* pProgress );