1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <sal/types.h>
23 #include <rtl/ustring.hxx>
25 // (0x009B, 0x009D, 0x009E) AUTOFILTER ========================================
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;
38 const sal_uInt8 EXC_AFTYPE_NOTUSED
= 0x00;
39 const sal_uInt8 EXC_AFTYPE_RK
= 0x02;
40 const sal_uInt8 EXC_AFTYPE_DOUBLE
= 0x04;
41 const sal_uInt8 EXC_AFTYPE_STRING
= 0x06;
42 const sal_uInt8 EXC_AFTYPE_BOOLERR
= 0x08;
43 const sal_uInt8 EXC_AFTYPE_INVALID
= 0x0A;
44 const sal_uInt8 EXC_AFTYPE_EMPTY
= 0x0C;
45 const sal_uInt8 EXC_AFTYPE_NOTEMPTY
= 0x0E;
47 // comparison operands
48 const sal_uInt8 EXC_AFOPER_NONE
= 0x00;
49 const sal_uInt8 EXC_AFOPER_LESS
= 0x01;
50 const sal_uInt8 EXC_AFOPER_EQUAL
= 0x02;
51 const sal_uInt8 EXC_AFOPER_LESSEQUAL
= 0x03;
52 const sal_uInt8 EXC_AFOPER_GREATER
= 0x04;
53 const sal_uInt8 EXC_AFOPER_NOTEQUAL
= 0x05;
54 const sal_uInt8 EXC_AFOPER_GREATEREQUAL
= 0x06;
56 // (0x00AE, 0x00AF) SCENARIO, SCENMAN =========================================
58 #define EXC_SCEN_MAXCELL 32
60 // defines for change tracking ================================================
62 inline constexpr OUStringLiteral EXC_STREAM_USERNAMES
= u
"User Names";
63 inline constexpr OUStringLiteral EXC_STREAM_REVLOG
= u
"Revision Log";
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
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
89 #define EXC_CHTR_NOTHING 0x0000
90 #define EXC_CHTR_ACCEPT 0x0001
91 #define EXC_CHTR_REJECT 0x0003
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */