summaryrefslogtreecommitdiff
path: root/sc/inc/sortparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-04 15:30:35 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-04-04 15:31:26 -0400
commit568d3912bf8ced76ecb9506bccc3bd361daba082 (patch)
tree087059ed14c2cacd2b3c8c4d63dfd57fc9330f92 /sc/inc/sortparam.hxx
parentbc21df051670cc78094779d9b4cd1d6cc78e9509 (diff)
Cleanup. ScPivot(Collection) is no more.
Diffstat (limited to 'sc/inc/sortparam.hxx')
-rw-r--r--sc/inc/sortparam.hxx23
1 files changed, 6 insertions, 17 deletions
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 <vector>
-
#include "address.hxx"
#include <tools/solar.h>
#include <com/sun/star/lang/Locale.hpp>
#include "scdllapi.h"
+#define MAXSORT 3
+
struct ScSubTotalParam;
struct ScQueryParam;
-struct ScSortKeyState
-{
- bool bDoSort;
- SCCOLROW nField;
- bool bAscending;
-};
-
-typedef ::std::vector<ScSortKeyState> 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();
};