xref: /aoo42x/main/sw/inc/sortopt.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SORTOPT_HXX
24 #define _SORTOPT_HXX
25 
26 
27 #include <svl/svarray.hxx>
28 #include <tools/string.hxx>
29 #include "swdllapi.h"
30 
31 enum SwSortOrder  		{ SRT_ASCENDING, SRT_DESCENDING	};
32 enum SwSortDirection	{ SRT_COLUMNS, SRT_ROWS			};
33 
34 /*--------------------------------------------------------------------
35 	Beschreibung: SortierSchluessel
36  --------------------------------------------------------------------*/
37 struct SW_DLLPUBLIC SwSortKey
38 {
39 	SwSortKey();
40 	SwSortKey( sal_uInt16 nId, const String& rSrtType, SwSortOrder eOrder );
41 	SwSortKey( const SwSortKey& rOld );
42 
43 	String			sSortType;
44 	SwSortOrder		eSortOrder;
45 	sal_uInt16 			nColumnId;
46 	sal_Bool			bIsNumeric;
47 };
48 
49 SV_DECL_PTRARR(SwSortKeys, SwSortKey*, 3, 1)
50 
51 struct SW_DLLPUBLIC SwSortOptions
52 {
53 	SwSortOptions();
54 	~SwSortOptions();
55 	SwSortOptions(const SwSortOptions& rOpt);
56 
57 	SwSortKeys		aKeys;
58 	SwSortDirection	eDirection;
59 	sal_Unicode		cDeli;
60 	sal_uInt16			nLanguage;
61 	sal_Bool			bTable;
62 	sal_Bool 			bIgnoreCase;
63 };
64 
65 #endif	// _SORTOPT_HXX
66