1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef SC_EXCDEFS_HXX
29 #define SC_EXCDEFS_HXX
31 #include <sal/types.h>
33 // (0x009B, 0x009D, 0x009E) AUTOFILTER ========================================
36 const sal_uInt16 EXC_AFFLAG_AND
= 0x0000;
37 const sal_uInt16 EXC_AFFLAG_OR
= 0x0001;
38 const sal_uInt16 EXC_AFFLAG_ANDORMASK
= 0x0003;
39 const sal_uInt16 EXC_AFFLAG_SIMPLE1
= 0x0004;
40 const sal_uInt16 EXC_AFFLAG_SIMPLE2
= 0x0008;
41 const sal_uInt16 EXC_AFFLAG_TOP10
= 0x0010;
42 const sal_uInt16 EXC_AFFLAG_TOP10TOP
= 0x0020;
43 const sal_uInt16 EXC_AFFLAG_TOP10PERC
= 0x0040;
46 const sal_uInt8 EXC_AFTYPE_NOTUSED
= 0x00;
47 const sal_uInt8 EXC_AFTYPE_RK
= 0x02;
48 const sal_uInt8 EXC_AFTYPE_DOUBLE
= 0x04;
49 const sal_uInt8 EXC_AFTYPE_STRING
= 0x06;
50 const sal_uInt8 EXC_AFTYPE_BOOLERR
= 0x08;
51 const sal_uInt8 EXC_AFTYPE_INVALID
= 0x0A;
52 const sal_uInt8 EXC_AFTYPE_EMPTY
= 0x0C;
53 const sal_uInt8 EXC_AFTYPE_NOTEMPTY
= 0x0E;
55 // comparison operands
56 const sal_uInt8 EXC_AFOPER_NONE
= 0x00;
57 const sal_uInt8 EXC_AFOPER_LESS
= 0x01;
58 const sal_uInt8 EXC_AFOPER_EQUAL
= 0x02;
59 const sal_uInt8 EXC_AFOPER_LESSEQUAL
= 0x03;
60 const sal_uInt8 EXC_AFOPER_GREATER
= 0x04;
61 const sal_uInt8 EXC_AFOPER_NOTEQUAL
= 0x05;
62 const sal_uInt8 EXC_AFOPER_GREATEREQUAL
= 0x06;
64 // (0x00AE, 0x00AF) SCENARIO, SCENMAN =========================================
66 #define EXC_SCEN_MAXCELL 32
68 // defines for change tracking ================================================
70 #define EXC_STREAM_USERNAMES CREATE_STRING( "User Names" )
71 #define EXC_STREAM_REVLOG CREATE_STRING( "Revision Log" )
74 #define EXC_CHTR_OP_COLFLAG 0x0001
75 #define EXC_CHTR_OP_DELFLAG 0x0002
76 #define EXC_CHTR_OP_INSROW 0x0000
77 #define EXC_CHTR_OP_INSCOL EXC_CHTR_OP_COLFLAG
78 #define EXC_CHTR_OP_DELROW EXC_CHTR_OP_DELFLAG
79 #define EXC_CHTR_OP_DELCOL (EXC_CHTR_OP_COLFLAG|EXC_CHTR_OP_DELFLAG)
80 #define EXC_CHTR_OP_MOVE 0x0004
81 #define EXC_CHTR_OP_INSTAB 0x0005
82 #define EXC_CHTR_OP_CELL 0x0008
83 #define EXC_CHTR_OP_RENAME 0x0009
84 #define EXC_CHTR_OP_NAME 0x000A
85 #define EXC_CHTR_OP_FORMAT 0x000B
86 #define EXC_CHTR_OP_UNKNOWN 0xFFFF
89 #define EXC_CHTR_TYPE_MASK 0x0007
90 #define EXC_CHTR_TYPE_FORMATMASK 0xFF00
91 #define EXC_CHTR_TYPE_EMPTY 0x0000
92 #define EXC_CHTR_TYPE_RK 0x0001
93 #define EXC_CHTR_TYPE_DOUBLE 0x0002
94 #define EXC_CHTR_TYPE_STRING 0x0003
95 #define EXC_CHTR_TYPE_BOOL 0x0004
96 #define EXC_CHTR_TYPE_FORMULA 0x0005
99 #define EXC_CHTR_NOTHING 0x0000
100 #define EXC_CHTR_ACCEPT 0x0001
101 #define EXC_CHTR_REJECT 0x0003
103 // ============================================================================
105 #endif // _EXCDEFS_HXX