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