diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-08 15:08:29 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-08 18:33:19 -0500 |
commit | 8ff0331bff9db9206e27558aca3958b65afb044b (patch) | |
tree | 6e4a9bbd5bfdf10bdedc1d3f109b80692108391f /sc/inc/document.hxx | |
parent | Let's use enum for better type safety. (diff) | |
download | core-8ff0331bff9db9206e27558aca3958b65afb044b.tar.gz core-8ff0331bff9db9206e27558aca3958b65afb044b.zip |
Move away from TypedScStrCollection in favor of STL's.
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index b402ac83d7e8..004d8e90295f 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -118,7 +118,6 @@ class ScTokenArray; class ScValidationData; class ScValidationDataList; class ScViewOptions; -class TypedScStrCollection; class ScChangeTrack; class ScEditEngineDefaulter; class ScFieldEditEngine; @@ -1479,13 +1478,23 @@ public: SCTAB nTab, ScQueryParam& rQueryParam ); void GetUpperCellString(SCCOL nCol, SCROW nRow, SCTAB nTab, rtl::OUString& rStr); - bool GetFilterEntries( SCCOL nCol, SCROW nRow, SCTAB nTab, - bool bFilter, TypedScStrCollection& rStrings, bool& rHasDates); - SC_DLLPUBLIC bool GetFilterEntriesArea( SCCOL nCol, SCROW nStartRow, SCROW nEndRow, - SCTAB nTab, TypedScStrCollection& rStrings, bool& rHasDates ); - bool GetDataEntries( SCCOL nCol, SCROW nRow, SCTAB nTab, - TypedScStrCollection& rStrings, bool bLimit = false ); - bool GetFormulaEntries( TypedScStrCollection& rStrings ); + /** + * Get a list of unique strings to use in filtering criteria. The string + * values are sorted, and there are no duplicate values in the list. The + * data range to use to populate the filter entries is inferred from the + * database range that contains the specified cell position. + */ + bool GetFilterEntries( + SCCOL nCol, SCROW nRow, SCTAB nTab, bool bFilter, std::vector<TypedStrData>& rStrings, bool& rHasDates); + + SC_DLLPUBLIC bool GetFilterEntriesArea( + SCCOL nCol, SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bCaseSens, + std::vector<TypedStrData>& rStrings, bool& rHasDates); + + bool GetDataEntries( + SCCOL nCol, SCROW nRow, SCTAB nTab, bool bCaseSens, + std::vector<TypedStrData>& rStrings, bool bLimit = false ); + bool GetFormulaEntries( ScTypedCaseStrSet& rStrings ); bool HasAutoFilter( SCCOL nCol, SCROW nRow, SCTAB nTab ); |