diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-02 17:51:58 +0200 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-03 21:10:10 +0200 |
commit | 8c18ffbf9bb250fd49c5fc7ae89cc74155c768c6 (patch) | |
tree | d03d7934e640d51a590ccc7edfbb61532d150a61 /sc/inc/table.hxx | |
parent | Remove (misleading) EditEngine::QuickRemoveCharAttribs (diff) | |
download | core-8c18ffbf9bb250fd49c5fc7ae89cc74155c768c6.tar.gz core-8c18ffbf9bb250fd49c5fc7ae89cc74155c768c6.zip |
fdo#81633: Add a new configuration option to toggle ref update on sort.
The new option is in Calc -> General and is labeled
"Update references when sorting range of cells"
Change-Id: I5ac686e96742df40f7d8ba5ffec23806db2988a6
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 9806a470ef68..6e581edf41a7 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -826,7 +826,9 @@ public: void ExtendHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 ); void Sort( - const ScSortParam& rSortParam, bool bKeepQuery, ScProgress* pProgress, sc::ReorderParam* pUndo ); + const ScSortParam& rSortParam, bool bKeepQuery, bool bUpdateRefs, + ScProgress* pProgress, sc::ReorderParam* pUndo ); + void Reorder( const sc::ReorderParam& rParam, ScProgress* pProgress ); bool ValidQuery( @@ -1023,7 +1025,9 @@ private: short Compare(SCCOLROW nIndex1, SCCOLROW nIndex2) const; short Compare( ScSortInfoArray*, SCCOLROW nIndex1, SCCOLROW nIndex2) const; ScSortInfoArray* CreateSortInfoArray( const sc::ReorderParam& rParam ); - ScSortInfoArray* CreateSortInfoArray( const ScSortParam& rSortParam, SCCOLROW nInd1, SCCOLROW nInd2, bool bKeepQuery ); + ScSortInfoArray* CreateSortInfoArray( + const ScSortParam& rSortParam, SCCOLROW nInd1, SCCOLROW nInd2, + bool bKeepQuery, bool bUpdateRefs ); void QuickSort( ScSortInfoArray*, SCsCOLROW nLo, SCsCOLROW nHi); void SortReorderByColumn( ScSortInfoArray* pArray, SCROW nRow1, SCROW nRow2, bool bPattern, ScProgress* pProgress ); void SortReorderByRow( ScSortInfoArray* pArray, SCCOL nCol1, SCCOL nCol2, ScProgress* pProgress ); |