diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-10 16:28:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-10 16:28:21 -0500 |
commit | 9a3cc6c0cf6447ffd65e86f93c4ca1a90c6e3ad8 (patch) | |
tree | 4caf9aae0e08d2f9940cad71758e9729e0ffe11e /sc/inc/table.hxx | |
parent | a7e04046d004dc7fec59c69e13aa0915e2577d55 (diff) | |
parent | 69bb367315288b644439dc46d34743a2575a3527 (diff) |
Merge branch 'libreoffice-3-3'
Their change regarding the filtering performance conflicted with
mine. I'll just take their code for now.
Conflicts:
sc/inc/document.hxx
sc/source/core/data/table2.cxx
sc/source/core/data/table3.cxx
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index bb7886ae8612..8709aa3825e2 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -92,6 +92,17 @@ struct ScColWidthParam; typedef std::hash_map< ::rtl::OUString, rtl::OUString, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > NameToNameMap; +struct ScShowRowsEntry +{ + SCROW mnRow1; + SCROW mnRow2; + bool mbShow; + + ScShowRowsEntry( SCROW nR1, SCROW nR2, bool bS ) : + mnRow1(nR1), mnRow2(nR2), mbShow(bS) {} +}; + + class ScTable { private: @@ -422,7 +433,8 @@ public: void GetDataArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow, BOOL bIncludeOld, bool bOnlyDown ) const; - bool ShrinkToUsedDataArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow, bool bColumnsOnly ) const; + bool ShrinkToUsedDataArea( bool& o_bShrunk, SCCOL& rStartCol, SCROW& rStartRow, + SCCOL& rEndCol, SCROW& rEndRow, bool bColumnsOnly ) const; SCSIZE GetEmptyLinesInBlock( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScDirection eDir ); @@ -669,7 +681,7 @@ public: void DBShowRow(SCROW nRow, bool bShow); void ShowRows(SCROW nRow1, SCROW nRow2, bool bShow); - void DBShowRows(SCROW nRow1, SCROW nRow2, bool bShow); + void DBShowRows(SCROW nRow1, SCROW nRow2, bool bShow, bool bSetFlags); // if bSetFlags=false, no SetRowHidden/SetRowFiltered void SetColFlags( SCCOL nCol, BYTE nNewFlags ); void SetRowFlags( SCROW nRow, BYTE nNewFlags ); |