summaryrefslogtreecommitdiff
path: root/sc/inc/sortparam.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-31 18:33:21 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-31 18:33:21 +0200
commit1c78b6dc0d10eb5873c45d6185576633470a593d (patch)
tree9d0b8a31009d826e071fa3c4a81ed033e8a6710d /sc/inc/sortparam.hxx
parent3d86e4e7223b15d561d1efdac736e932ea41e6a0 (diff)
revert "remove limitation to 3 sort entries in calc part1"
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();
};