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