From 568d3912bf8ced76ecb9506bccc3bd361daba082 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 4 Apr 2012 15:30:35 -0400 Subject: Cleanup. ScPivot(Collection) is no more. --- sc/inc/sortparam.hxx | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'sc/inc/sortparam.hxx') diff --git a/sc/inc/sortparam.hxx b/sc/inc/sortparam.hxx index 5f1fee0c3ae2..f1d4e21e9371 100644 --- a/sc/inc/sortparam.hxx +++ b/sc/inc/sortparam.hxx @@ -29,27 +29,16 @@ #ifndef SC_SORTPARAM_HXX #define SC_SORTPARAM_HXX -#define DEFSORT 3 - -#include - #include "address.hxx" #include #include #include "scdllapi.h" +#define MAXSORT 3 + struct ScSubTotalParam; struct ScQueryParam; -struct ScSortKeyState -{ - bool bDoSort; - SCCOLROW nField; - bool bAscending; -}; - -typedef ::std::vector ScSortKeyStateVec; - struct SC_DLLPUBLIC ScSortParam { SCCOL nCol1; @@ -67,12 +56,13 @@ struct SC_DLLPUBLIC ScSortParam SCTAB nDestTab; SCCOL nDestCol; SCROW nDestRow; - ScSortKeyStateVec maKeyState; + bool bDoSort[MAXSORT]; + SCCOLROW nField[MAXSORT]; + bool bAscending[MAXSORT]; ::com::sun::star::lang::Locale aCollatorLocale; ::rtl::OUString aCollatorAlgorithm; sal_uInt16 nCompatHeader; - ScSortParam(); ScSortParam( const ScSortParam& r ); /// SubTotals sort @@ -83,9 +73,8 @@ struct SC_DLLPUBLIC ScSortParam ScSortParam& operator= ( const ScSortParam& r ); bool operator== ( const ScSortParam& rOther ) const; void Clear (); - void MoveToDest(); - inline sal_uInt16 GetSortKeyCount() const { return maKeyState.size(); } + void MoveToDest(); }; -- cgit