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_XLLINK_HXX 25 #define SC_XLLINK_HXX 26 27 #include <sal/types.h> 28 29 // Constants and Enumerations ================================================= 30 31 const sal_uInt16 EXC_TAB_EXTERNAL = 0xFFFE; /// Special sheet index for external links. 32 const sal_uInt16 EXC_TAB_DELETED = 0xFFFF; /// Deleted sheet in a 3D reference. 33 34 // (0x0016) EXTERNCOUNT ------------------------------------------------------- 35 36 const sal_uInt16 EXC_ID_EXTERNCOUNT = 0x0016; 37 38 // (0x0017) EXTERNSHEET ------------------------------------------------------- 39 40 const sal_uInt16 EXC_ID_EXTERNSHEET = 0x0017; 41 42 const sal_Unicode EXC_EXTSH_URL = '\x01'; 43 const sal_Unicode EXC_EXTSH_OWNTAB = '\x02'; 44 const sal_Unicode EXC_EXTSH_TABNAME = '\x03'; 45 const sal_Unicode EXC_EXTSH_OWNDOC = '\x04'; 46 const sal_Unicode EXC_EXTSH_ADDIN = '\x3A'; 47 48 // (0x0023) EXTERNNAME -------------------------------------------------------- 49 50 const sal_uInt16 EXC_ID_EXTERNNAME = 0x0023; 51 52 const sal_uInt16 EXC_EXTN_BUILTIN = 0x0001; 53 const sal_uInt16 EXC_EXTN_OLE = 0x0010; 54 const sal_uInt16 EXC_EXTN_OLE_OR_DDE = 0xFFFE; 55 56 const sal_uInt16 EXC_EXTN_EXPDDE_STDDOC = 0x7FEA; /// for export 57 const sal_uInt16 EXC_EXTN_EXPDDE = 0x7FE2; /// for export 58 59 // (0x0059, 0x005A) XCT, CRN -------------------------------------------------- 60 61 const sal_uInt16 EXC_ID_XCT = 0x0059; 62 const sal_uInt16 EXC_ID_CRN = 0x005A; 63 64 // (0x013D) TABID ------------------------------------------------------------- 65 66 const sal_uInt16 EXC_ID_TABID = 0x013D; 67 68 // (0x01AE) SUPBOOK ----------------------------------------------------------- 69 70 const sal_uInt16 EXC_ID_SUPBOOK = 0x01AE; 71 72 const sal_uInt16 EXC_SUPB_SELF = 0x0401; 73 const sal_uInt16 EXC_SUPB_ADDIN = 0x3A01; 74 75 /** This enumeration specifies the type of a SUPBOOK record. */ 76 enum XclSupbookType 77 { 78 EXC_SBTYPE_UNKNOWN, /// unknown SUPBOOK record type. 79 EXC_SBTYPE_SELF, /// SUPBOOK is used for internal references. 80 EXC_SBTYPE_EXTERN, /// SUPBOOK is used for external references. 81 EXC_SBTYPE_ADDIN, /// SUPBOOK contains add-in functions. 82 EXC_SBTYPE_SPECIAL, /// SUPBOOK is used for DDE or OLE links. 83 EXC_SBTYPE_EUROTOOL /// SUPBOOK is uesd for EUROCONVERT. 84 }; 85 86 // ============================================================================ 87 88 #endif 89 90