xref: /aoo41x/main/sc/source/filter/inc/xltable.hxx (revision 38d50f7b)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_XLTABLE_HXX
25 #define SC_XLTABLE_HXX
26 
27 #include <sal/types.h>
28 
29 // Constants and Enumerations =================================================
30 
31 // Specials for outlines ------------------------------------------------------
32 
33 const sal_uInt8 EXC_OUTLINE_MAX             = 7;
34 const sal_uInt8 EXC_OUTLINE_COUNT           = EXC_OUTLINE_MAX + 1;
35 
36 // (0x0000, 0x0200) DIMENSIONS ------------------------------------------------
37 
38 const sal_uInt16 EXC_ID2_DIMENSIONS         = 0x0000;
39 const sal_uInt16 EXC_ID3_DIMENSIONS         = 0x0200;
40 
41 // (0x0001, 0x0201) BLANK -----------------------------------------------------
42 
43 const sal_uInt16 EXC_ID2_BLANK              = 0x0001;
44 const sal_uInt16 EXC_ID3_BLANK              = 0x0201;
45 
46 // (0x0002) INTEGER -----------------------------------------------------------
47 
48 const sal_uInt16 EXC_ID2_INTEGER            = 0x0002;
49 
50 // (0x0003, 0x0203) NUMBER ----------------------------------------------------
51 
52 const sal_uInt16 EXC_ID2_NUMBER             = 0x0003;
53 const sal_uInt16 EXC_ID3_NUMBER             = 0x0203;
54 
55 // (0x0004, 0x0204) LABEL -----------------------------------------------------
56 
57 const sal_uInt16 EXC_ID2_LABEL              = 0x0004;
58 const sal_uInt16 EXC_ID3_LABEL              = 0x0204;
59 
60 const sal_uInt8 EXC_LABEL_MAXLEN            = 0xFF;
61 
62 // (0x0005, 0x0205) BOOLERR ---------------------------------------------------
63 
64 const sal_uInt16 EXC_ID2_BOOLERR            = 0x0005;
65 const sal_uInt16 EXC_ID3_BOOLERR            = 0x0205;
66 
67 const sal_uInt8 EXC_BOOLERR_BOOL            = 0x00;
68 const sal_uInt8 EXC_BOOLERR_ERROR           = 0x01;
69 
70 // (0x0006, 0x0206, 0x0406) FORMULA -------------------------------------------
71 
72 const sal_uInt16 EXC_ID2_FORMULA            = 0x0006;
73 const sal_uInt16 EXC_ID3_FORMULA            = 0x0206;
74 const sal_uInt16 EXC_ID4_FORMULA            = 0x0406;
75 
76 const sal_uInt16 EXC_FORMULA_RECALC_ALWAYS  = 0x0001;
77 const sal_uInt16 EXC_FORMULA_RECALC_ONLOAD  = 0x0002;
78 const sal_uInt16 EXC_FORMULA_SHARED         = 0x0008;
79 const sal_uInt16 EXC_FORMULA_DEFAULTFLAGS   = EXC_FORMULA_RECALC_ONLOAD;
80 
81 const sal_uInt8 EXC_FORMULA_RES_STRING      = 0x00;     /// Result is a string.
82 const sal_uInt8 EXC_FORMULA_RES_BOOL        = 0x01;     /// Result is Boolean value.
83 const sal_uInt8 EXC_FORMULA_RES_ERROR       = 0x02;     /// Result is error code.
84 const sal_uInt8 EXC_FORMULA_RES_EMPTY       = 0x03;     /// Result is empty cell (BIFF8 only).
85 
86 // (0x0007, 0x0207) STRING ----------------------------------------------------
87 
88 const sal_uInt16 EXC_ID2_STRING             = 0x0007;
89 const sal_uInt16 EXC_ID3_STRING             = 0x0207;
90 
91 // (0x0008, 0x0208) ROW -------------------------------------------------------
92 
93 const sal_uInt16 EXC_ID2_ROW                = 0x0008;
94 const sal_uInt16 EXC_ID3_ROW                = 0x0208;
95 
96 const sal_uInt16 EXC_ROW_COLLAPSED          = 0x0010;
97 const sal_uInt16 EXC_ROW_HIDDEN             = 0x0020;
98 const sal_uInt16 EXC_ROW_UNSYNCED           = 0x0040;
99 const sal_uInt16 EXC_ROW_USEDEFXF           = 0x0080;
100 const sal_uInt16 EXC_ROW_DEFAULTFLAGS       = 0x0100;
101 
102 const sal_uInt16 EXC_ROW_XFMASK             = 0x0FFF;
103 
104 const sal_uInt16 EXC_ROW_DEFAULTHEIGHT      = 255;
105 const sal_uInt16 EXC_ROW_FLAGDEFHEIGHT      = 0x8000;
106 const sal_uInt16 EXC_ROW_HEIGHTMASK         = 0x7FFF;
107 
108 const sal_uInt16 EXC_ROW_ROWBLOCKSIZE       = 32;       /// Number of rows in a row block.
109 
110 // (0x0020) COLUMNDEFAULT -----------------------------------------------------
111 
112 const sal_uInt16 EXC_ID_COLUMNDEFAULT       = 0x0020;
113 
114 // (0x0021, 0x0221) ARRAY -----------------------------------------------------
115 
116 const sal_uInt16 EXC_ID2_ARRAY              = 0x0021;
117 const sal_uInt16 EXC_ID3_ARRAY              = 0x0221;
118 
119 const sal_uInt16 EXC_ARRAY_RECALC_ALWAYS    = 0x0001;
120 const sal_uInt16 EXC_ARRAY_RECALC_ONLOAD    = 0x0002;
121 const sal_uInt16 EXC_ARRAY_DEFAULTFLAGS     = EXC_ARRAY_RECALC_ONLOAD;
122 
123 // (0x0024) COLWIDTH ----------------------------------------------------------
124 
125 const sal_uInt16 EXC_ID_COLWIDTH            = 0x0024;
126 
127 // (0x0025, 0x0225) DEFAULTROWHEIGHT ------------------------------------------
128 
129 const sal_uInt16 EXC_ID2_DEFROWHEIGHT       = 0x0025;
130 const sal_uInt16 EXC_ID3_DEFROWHEIGHT       = 0x0225;
131 
132 const sal_uInt16 EXC_DEFROW_UNSYNCED        = 0x0001;
133 const sal_uInt16 EXC_DEFROW_HIDDEN          = 0x0002;
134 const sal_uInt16 EXC_DEFROW_SPACEABOVE      = 0x0004;
135 const sal_uInt16 EXC_DEFROW_SPACEBELOW      = 0x0008;
136 const sal_uInt16 EXC_DEFROW_DEFAULTFLAGS    = 0x0000;
137 
138 const sal_uInt16 EXC_DEFROW_DEFAULTHEIGHT   = 255;
139 
140 // (0x0036, 0x0236) TABLEOP ---------------------------------------------------
141 
142 const sal_uInt16 EXC_ID2_TABLEOP            = 0x0036;
143 const sal_uInt16 EXC_ID3_TABLEOP            = 0x0236;
144 
145 const sal_uInt16 EXC_TABLEOP_RECALC_ALWAYS  = 0x0001;
146 const sal_uInt16 EXC_TABLEOP_RECALC_ONLOAD  = 0x0002;
147 const sal_uInt16 EXC_TABLEOP_ROW            = 0x0004;
148 const sal_uInt16 EXC_TABLEOP_BOTH           = 0x0008;
149 const sal_uInt16 EXC_TABLEOP_DEFAULTFLAGS   = EXC_TABLEOP_RECALC_ONLOAD;
150 
151 // (0x0037) TABLEOP2 ----------------------------------------------------------
152 
153 const sal_uInt16 EXC_ID2_TABLEOP2           = 0x0037;
154 
155 // (0x0055) DEFCOLWIDTH -------------------------------------------------------
156 
157 const sal_uInt16 EXC_ID_DEFCOLWIDTH         = 0x0055;
158 const sal_uInt16 EXC_DEFCOLWIDTH_DEF        = 10;
159 
160 // (0x007D) COLINFO -----------------------------------------------------------
161 
162 const sal_uInt16 EXC_ID_COLINFO             = 0x007D;
163 
164 const sal_uInt16 EXC_COLINFO_HIDDEN         = 0x0001;
165 const sal_uInt16 EXC_COLINFO_COLLAPSED      = 0x1000;
166 
167 // (0x0080) GUTS --------------------------------------------------------------
168 
169 const sal_uInt16 EXC_ID_GUTS                = 0x0080;
170 
171 // (0x00BD) MULRK -------------------------------------------------------------
172 
173 const sal_uInt16 EXC_ID_MULRK               = 0x00BD;
174 
175 // (0x00BE) MULBLANK ----------------------------------------------------------
176 
177 const sal_uInt16 EXC_ID_MULBLANK            = 0x00BE;
178 
179 // (0x00D6) RSTRING -----------------------------------------------------------
180 
181 const sal_uInt16 EXC_ID_RSTRING             = 0x00D6;
182 
183 // (0x00FD) LABELSST ----------------------------------------------------------
184 
185 const sal_uInt16 EXC_ID_LABELSST            = 0x00FD;
186 
187 // (0x027E) RK ----------------------------------------------------------------
188 
189 const sal_uInt16 EXC_ID_RK                  = 0x027E;
190 
191 // (0x04BC) SHRFMLA -----------------------------------------------------------
192 
193 const sal_uInt16 EXC_ID_SHRFMLA             = 0x04BC;
194 
195 // ============================================================================
196 
197 #endif
198 
199