diff options
author | Eike Rathke <erack@redhat.com> | 2015-05-04 23:45:15 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-05-05 03:02:41 +0200 |
commit | 1aa43709f1eafe76bb5b2c658bf88c16bb73ea4f (patch) | |
tree | 44848757b44aa079b6f1513a37e6d4545b2fc7ec /sc/inc/document.hxx | |
parent | 61231964a2683ffcc6c4ca139eee3fdb28d9ef42 (diff) |
rework Sort trim data area logic
Determine the effective data area before all operations, so obtaining
uniform row heights, the actual sort and setting dirty and setting row
heights after sort is done only on the trimmed area.
Also make sorting leading empty columns to the end work again if no row
headers were given.
Change-Id: If2b6a15ca69e0db2ca71a888a134f7441b04cc27
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 8f2e65fae59e..e5e6a5b4363d 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1096,12 +1096,17 @@ public: @param o_bShrunk Out parameter, true if area was shrunk, false if not. + @param bStickyTopRow + If TRUE, do not adjust the top row. + @param bStickyLeftCol + If TRUE, do not adjust the left column. @returns true if there is any data, false if not. */ bool ShrinkToUsedDataArea( bool& o_bShrunk, SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow, - SCCOL& rEndCol, SCROW& rEndRow, bool bColumnsOnly ) const; + SCCOL& rEndCol, SCROW& rEndRow, bool bColumnsOnly, + bool bStickyTopRow = false, bool bStickyLeftCol = false ) const; /** * Return the last non-empty row position in given columns that's no @@ -1718,12 +1723,9 @@ public: SC_DLLPUBLIC SvNumberFormatter* GetFormatTable() const; SC_DLLPUBLIC SvNumberFormatter* CreateFormatTable() const; - /** Sort a range of data. - @param rSortParam may get adjusted to the actual range used if it did - encompass leading or trailing empty blocks - */ + /** Sort a range of data. */ void Sort( - SCTAB nTab, ScSortParam& rSortParam, bool bKeepQuery, bool bUpdateRefs, + SCTAB nTab, const ScSortParam& rSortParam, bool bKeepQuery, bool bUpdateRefs, ScProgress* pProgress, sc::ReorderParam* pUndo ); void Reorder( const sc::ReorderParam& rParam, ScProgress* pProgress ); |