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 #pragma once
21 
22 #include <sal/types.h>
23 
24 // (0x009B, 0x009D, 0x009E) AUTOFILTER ========================================
25 
26 // flags
27 const sal_uInt16 EXC_AFFLAG_AND = 0x0000;
28 const sal_uInt16 EXC_AFFLAG_OR = 0x0001;
29 const sal_uInt16 EXC_AFFLAG_ANDORMASK = 0x0003;
30 const sal_uInt16 EXC_AFFLAG_SIMPLE1 = 0x0004;
31 const sal_uInt16 EXC_AFFLAG_SIMPLE2 = 0x0008;
32 const sal_uInt16 EXC_AFFLAG_TOP10 = 0x0010;
33 const sal_uInt16 EXC_AFFLAG_TOP10TOP = 0x0020;
34 const sal_uInt16 EXC_AFFLAG_TOP10PERC = 0x0040;
35 
36 // data types
38 const sal_uInt8 EXC_AFTYPE_RK = 0x02;
45 
46 // comparison operands
54 
55 // (0x00AE, 0x00AF) SCENARIO, SCENMAN =========================================
56 
57 #define EXC_SCEN_MAXCELL 32
58 
59 // defines for change tracking ================================================
60 
61 #define EXC_STREAM_USERNAMES "User Names"
62 #define EXC_STREAM_REVLOG "Revision Log"
63 
64 // opcodes
65 #define EXC_CHTR_OP_COLFLAG 0x0001
66 #define EXC_CHTR_OP_DELFLAG 0x0002
67 #define EXC_CHTR_OP_INSROW 0x0000
68 #define EXC_CHTR_OP_INSCOL EXC_CHTR_OP_COLFLAG
69 #define EXC_CHTR_OP_DELROW EXC_CHTR_OP_DELFLAG
70 #define EXC_CHTR_OP_DELCOL (EXC_CHTR_OP_COLFLAG|EXC_CHTR_OP_DELFLAG)
71 #define EXC_CHTR_OP_MOVE 0x0004
72 #define EXC_CHTR_OP_INSTAB 0x0005
73 #define EXC_CHTR_OP_CELL 0x0008
74 #define EXC_CHTR_OP_FORMAT 0x000B
75 #define EXC_CHTR_OP_UNKNOWN 0xFFFF
76 
77 // data types
78 #define EXC_CHTR_TYPE_MASK 0x0007
79 #define EXC_CHTR_TYPE_FORMATMASK 0xFF00
80 #define EXC_CHTR_TYPE_EMPTY 0x0000
81 #define EXC_CHTR_TYPE_RK 0x0001
82 #define EXC_CHTR_TYPE_DOUBLE 0x0002
83 #define EXC_CHTR_TYPE_STRING 0x0003
84 #define EXC_CHTR_TYPE_BOOL 0x0004
85 #define EXC_CHTR_TYPE_FORMULA 0x0005
86 
87 // accept flags
88 #define EXC_CHTR_NOTHING 0x0000
89 #define EXC_CHTR_ACCEPT 0x0001
90 #define EXC_CHTR_REJECT 0x0003
91 
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const sal_uInt8 EXC_AFOPER_GREATER
Definition: excdefs.hxx:51
const sal_uInt8 EXC_AFOPER_LESSEQUAL
Definition: excdefs.hxx:50
const sal_uInt8 EXC_AFTYPE_NOTEMPTY
Definition: excdefs.hxx:44
const sal_uInt8 EXC_AFOPER_NOTEQUAL
Definition: excdefs.hxx:52
const sal_uInt16 EXC_AFFLAG_TOP10TOP
Definition: excdefs.hxx:33
const sal_uInt16 EXC_AFFLAG_SIMPLE2
Definition: excdefs.hxx:31
const sal_uInt8 EXC_AFTYPE_DOUBLE
Definition: excdefs.hxx:39
const sal_uInt8 EXC_AFTYPE_STRING
Definition: excdefs.hxx:40
const sal_uInt8 EXC_AFOPER_EQUAL
Definition: excdefs.hxx:49
const sal_uInt16 EXC_AFFLAG_AND
Definition: excdefs.hxx:27
const sal_uInt16 EXC_AFFLAG_TOP10
Definition: excdefs.hxx:32
const sal_uInt8 EXC_AFOPER_NONE
Definition: excdefs.hxx:47
const sal_uInt8 EXC_AFTYPE_RK
Definition: excdefs.hxx:38
const sal_uInt16 EXC_AFFLAG_ANDORMASK
Definition: excdefs.hxx:29
const sal_uInt8 EXC_AFOPER_LESS
Definition: excdefs.hxx:48
const sal_uInt8 EXC_AFTYPE_INVALID
Definition: excdefs.hxx:42
const sal_uInt16 EXC_AFFLAG_SIMPLE1
Definition: excdefs.hxx:30
const sal_uInt16 EXC_AFFLAG_OR
Definition: excdefs.hxx:28
const sal_uInt8 EXC_AFTYPE_EMPTY
Definition: excdefs.hxx:43
unsigned char sal_uInt8
const sal_uInt8 EXC_AFTYPE_BOOLERR
Definition: excdefs.hxx:41
const sal_uInt8 EXC_AFOPER_GREATEREQUAL
Definition: excdefs.hxx:53
const sal_uInt8 EXC_AFTYPE_NOTUSED
Definition: excdefs.hxx:37
const sal_uInt16 EXC_AFFLAG_TOP10PERC
Definition: excdefs.hxx:34