LibreOffice Module sc (master)  1
excdefs.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_EXCDEFS_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_EXCDEFS_HXX
22 
23 #include <sal/types.h>
24 
25 // (0x009B, 0x009D, 0x009E) AUTOFILTER ========================================
26 
27 // flags
28 const sal_uInt16 EXC_AFFLAG_AND = 0x0000;
29 const sal_uInt16 EXC_AFFLAG_OR = 0x0001;
30 const sal_uInt16 EXC_AFFLAG_ANDORMASK = 0x0003;
31 const sal_uInt16 EXC_AFFLAG_SIMPLE1 = 0x0004;
32 const sal_uInt16 EXC_AFFLAG_SIMPLE2 = 0x0008;
33 const sal_uInt16 EXC_AFFLAG_TOP10 = 0x0010;
34 const sal_uInt16 EXC_AFFLAG_TOP10TOP = 0x0020;
35 const sal_uInt16 EXC_AFFLAG_TOP10PERC = 0x0040;
36 
37 // data types
39 const sal_uInt8 EXC_AFTYPE_RK = 0x02;
46 
47 // comparison operands
55 
56 // (0x00AE, 0x00AF) SCENARIO, SCENMAN =========================================
57 
58 #define EXC_SCEN_MAXCELL 32
59 
60 // defines for change tracking ================================================
61 
62 #define EXC_STREAM_USERNAMES "User Names"
63 #define EXC_STREAM_REVLOG "Revision Log"
64 
65 // opcodes
66 #define EXC_CHTR_OP_COLFLAG 0x0001
67 #define EXC_CHTR_OP_DELFLAG 0x0002
68 #define EXC_CHTR_OP_INSROW 0x0000
69 #define EXC_CHTR_OP_INSCOL EXC_CHTR_OP_COLFLAG
70 #define EXC_CHTR_OP_DELROW EXC_CHTR_OP_DELFLAG
71 #define EXC_CHTR_OP_DELCOL (EXC_CHTR_OP_COLFLAG|EXC_CHTR_OP_DELFLAG)
72 #define EXC_CHTR_OP_MOVE 0x0004
73 #define EXC_CHTR_OP_INSTAB 0x0005
74 #define EXC_CHTR_OP_CELL 0x0008
75 #define EXC_CHTR_OP_FORMAT 0x000B
76 #define EXC_CHTR_OP_UNKNOWN 0xFFFF
77 
78 // data types
79 #define EXC_CHTR_TYPE_MASK 0x0007
80 #define EXC_CHTR_TYPE_FORMATMASK 0xFF00
81 #define EXC_CHTR_TYPE_EMPTY 0x0000
82 #define EXC_CHTR_TYPE_RK 0x0001
83 #define EXC_CHTR_TYPE_DOUBLE 0x0002
84 #define EXC_CHTR_TYPE_STRING 0x0003
85 #define EXC_CHTR_TYPE_BOOL 0x0004
86 #define EXC_CHTR_TYPE_FORMULA 0x0005
87 
88 // accept flags
89 #define EXC_CHTR_NOTHING 0x0000
90 #define EXC_CHTR_ACCEPT 0x0001
91 #define EXC_CHTR_REJECT 0x0003
92 
93 #endif // _EXCDEFS_HXX
94 
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const sal_uInt8 EXC_AFOPER_GREATER
Definition: excdefs.hxx:52
const sal_uInt8 EXC_AFOPER_LESSEQUAL
Definition: excdefs.hxx:51
const sal_uInt8 EXC_AFTYPE_NOTEMPTY
Definition: excdefs.hxx:45
const sal_uInt8 EXC_AFOPER_NOTEQUAL
Definition: excdefs.hxx:53
const sal_uInt16 EXC_AFFLAG_TOP10TOP
Definition: excdefs.hxx:34
const sal_uInt16 EXC_AFFLAG_SIMPLE2
Definition: excdefs.hxx:32
const sal_uInt8 EXC_AFTYPE_DOUBLE
Definition: excdefs.hxx:40
const sal_uInt8 EXC_AFTYPE_STRING
Definition: excdefs.hxx:41
const sal_uInt8 EXC_AFOPER_EQUAL
Definition: excdefs.hxx:50
const sal_uInt16 EXC_AFFLAG_AND
Definition: excdefs.hxx:28
const sal_uInt16 EXC_AFFLAG_TOP10
Definition: excdefs.hxx:33
const sal_uInt8 EXC_AFOPER_NONE
Definition: excdefs.hxx:48
const sal_uInt8 EXC_AFTYPE_RK
Definition: excdefs.hxx:39
const sal_uInt16 EXC_AFFLAG_ANDORMASK
Definition: excdefs.hxx:30
const sal_uInt8 EXC_AFOPER_LESS
Definition: excdefs.hxx:49
const sal_uInt8 EXC_AFTYPE_INVALID
Definition: excdefs.hxx:43
const sal_uInt16 EXC_AFFLAG_SIMPLE1
Definition: excdefs.hxx:31
const sal_uInt16 EXC_AFFLAG_OR
Definition: excdefs.hxx:29
const sal_uInt8 EXC_AFTYPE_EMPTY
Definition: excdefs.hxx:44
unsigned char sal_uInt8
const sal_uInt8 EXC_AFTYPE_BOOLERR
Definition: excdefs.hxx:42
const sal_uInt8 EXC_AFOPER_GREATEREQUAL
Definition: excdefs.hxx:54
const sal_uInt8 EXC_AFTYPE_NOTUSED
Definition: excdefs.hxx:38
const sal_uInt16 EXC_AFFLAG_TOP10PERC
Definition: excdefs.hxx:35