xref: /aoo4110/main/sc/source/filter/inc/excdefs.hxx (revision b1cdbd2c)
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 
24 #ifndef SC_EXCDEFS_HXX
25 #define SC_EXCDEFS_HXX
26 
27 #include <sal/types.h>
28 
29 // (0x009B, 0x009D, 0x009E) AUTOFILTER ========================================
30 
31 // flags
32 const sal_uInt16 EXC_AFFLAG_AND             = 0x0000;
33 const sal_uInt16 EXC_AFFLAG_OR              = 0x0001;
34 const sal_uInt16 EXC_AFFLAG_ANDORMASK       = 0x0003;
35 const sal_uInt16 EXC_AFFLAG_SIMPLE1         = 0x0004;
36 const sal_uInt16 EXC_AFFLAG_SIMPLE2         = 0x0008;
37 const sal_uInt16 EXC_AFFLAG_TOP10           = 0x0010;
38 const sal_uInt16 EXC_AFFLAG_TOP10TOP        = 0x0020;
39 const sal_uInt16 EXC_AFFLAG_TOP10PERC       = 0x0040;
40 
41 // data types
42 const sal_uInt8 EXC_AFTYPE_NOTUSED          = 0x00;
43 const sal_uInt8 EXC_AFTYPE_RK               = 0x02;
44 const sal_uInt8 EXC_AFTYPE_DOUBLE           = 0x04;
45 const sal_uInt8 EXC_AFTYPE_STRING           = 0x06;
46 const sal_uInt8 EXC_AFTYPE_BOOLERR          = 0x08;
47 const sal_uInt8 EXC_AFTYPE_INVALID          = 0x0A;
48 const sal_uInt8 EXC_AFTYPE_EMPTY            = 0x0C;
49 const sal_uInt8 EXC_AFTYPE_NOTEMPTY         = 0x0E;
50 
51 // comparison operands
52 const sal_uInt8 EXC_AFOPER_NONE             = 0x00;
53 const sal_uInt8 EXC_AFOPER_LESS             = 0x01;
54 const sal_uInt8 EXC_AFOPER_EQUAL            = 0x02;
55 const sal_uInt8 EXC_AFOPER_LESSEQUAL        = 0x03;
56 const sal_uInt8 EXC_AFOPER_GREATER          = 0x04;
57 const sal_uInt8 EXC_AFOPER_NOTEQUAL         = 0x05;
58 const sal_uInt8 EXC_AFOPER_GREATEREQUAL     = 0x06;
59 
60 // (0x00AE, 0x00AF) SCENARIO, SCENMAN =========================================
61 
62 #define EXC_SCEN_MAXCELL			32
63 
64 // defines for change tracking ================================================
65 
66 #define EXC_STREAM_USERNAMES        CREATE_STRING( "User Names" )
67 #define EXC_STREAM_REVLOG           CREATE_STRING( "Revision Log" )
68 
69 // opcodes
70 #define EXC_CHTR_OP_COLFLAG			0x0001
71 #define EXC_CHTR_OP_DELFLAG			0x0002
72 #define EXC_CHTR_OP_INSROW			0x0000
73 #define EXC_CHTR_OP_INSCOL			EXC_CHTR_OP_COLFLAG
74 #define EXC_CHTR_OP_DELROW			EXC_CHTR_OP_DELFLAG
75 #define EXC_CHTR_OP_DELCOL			(EXC_CHTR_OP_COLFLAG|EXC_CHTR_OP_DELFLAG)
76 #define EXC_CHTR_OP_MOVE			0x0004
77 #define EXC_CHTR_OP_INSTAB			0x0005
78 #define EXC_CHTR_OP_CELL			0x0008
79 #define EXC_CHTR_OP_RENAME			0x0009
80 #define EXC_CHTR_OP_NAME			0x000A
81 #define EXC_CHTR_OP_FORMAT			0x000B
82 #define EXC_CHTR_OP_UNKNOWN			0xFFFF
83 
84 // data types
85 #define EXC_CHTR_TYPE_MASK			0x0007
86 #define EXC_CHTR_TYPE_FORMATMASK	0xFF00
87 #define EXC_CHTR_TYPE_EMPTY			0x0000
88 #define EXC_CHTR_TYPE_RK			0x0001
89 #define EXC_CHTR_TYPE_DOUBLE		0x0002
90 #define EXC_CHTR_TYPE_STRING		0x0003
91 #define EXC_CHTR_TYPE_BOOL			0x0004
92 #define EXC_CHTR_TYPE_FORMULA		0x0005
93 
94 // accept flags
95 #define EXC_CHTR_NOTHING			0x0000
96 #define EXC_CHTR_ACCEPT				0x0001
97 #define EXC_CHTR_REJECT				0x0003
98 
99 // ============================================================================
100 
101 #endif // _EXCDEFS_HXX
102 
103