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 .
24 #include <sal/types.h>
26 // Constants and Enumerations =================================================
28 const sal_uInt16 EXC_TAB_EXTERNAL
= 0xFFFE; /// Special sheet index for external links.
29 const sal_uInt16 EXC_TAB_DELETED
= 0xFFFF; /// Deleted sheet in a 3D reference.
31 // (0x0016) EXTERNCOUNT -------------------------------------------------------
33 const sal_uInt16 EXC_ID_EXTERNCOUNT
= 0x0016;
35 // (0x0017) EXTERNSHEET -------------------------------------------------------
37 const sal_uInt16 EXC_ID_EXTERNSHEET
= 0x0017;
39 const sal_Unicode EXC_EXTSH_URL
= '\x01';
40 const sal_Unicode EXC_EXTSH_OWNTAB
= '\x02';
41 const sal_Unicode EXC_EXTSH_TABNAME
= '\x03';
42 const sal_Unicode EXC_EXTSH_OWNDOC
= '\x04';
43 const sal_Unicode EXC_EXTSH_ADDIN
= '\x3A';
45 // (0x0023) EXTERNNAME --------------------------------------------------------
47 const sal_uInt16 EXC_ID_EXTERNNAME
= 0x0023;
49 const sal_uInt16 EXC_EXTN_BUILTIN
= 0x0001;
50 const sal_uInt16 EXC_EXTN_OLE
= 0x0010;
51 const sal_uInt16 EXC_EXTN_OLE_OR_DDE
= 0xFFFE;
53 const sal_uInt16 EXC_EXTN_EXPDDE_STDDOC
= 0x7FEA; /// for export
54 const sal_uInt16 EXC_EXTN_EXPDDE
= 0x7FE2; /// for export
56 // (0x0059, 0x005A) XCT, CRN --------------------------------------------------
58 const sal_uInt16 EXC_ID_XCT
= 0x0059;
59 const sal_uInt16 EXC_ID_CRN
= 0x005A;
61 // (0x013D) TABID -------------------------------------------------------------
63 const sal_uInt16 EXC_ID_TABID
= 0x013D;
65 // (0x01AE) SUPBOOK -----------------------------------------------------------
67 const sal_uInt16 EXC_ID_SUPBOOK
= 0x01AE;
69 const sal_uInt16 EXC_SUPB_SELF
= 0x0401;
70 const sal_uInt16 EXC_SUPB_ADDIN
= 0x3A01;
72 /** This enumeration specifies the type of a SUPBOOK record. */
73 enum class XclSupbookType
75 Unknown
, /// unknown SUPBOOK record type.
76 Self
, /// SUPBOOK is used for internal references.
77 Extern
, /// SUPBOOK is used for external references.
78 Addin
, /// SUPBOOK contains add-in functions.
79 Special
, /// SUPBOOK is used for DDE or OLE links.
80 Eurotool
/// SUPBOOK is used for EUROCONVERT.
83 template< typename charT
, typename traits
>
84 inline std::basic_ostream
<charT
, traits
> & operator <<(
85 std::basic_ostream
<charT
, traits
> & stream
, const XclSupbookType
& type
)
89 case XclSupbookType::Unknown
: return stream
<< "unknown";
90 case XclSupbookType::Self
: return stream
<< "self";
91 case XclSupbookType::Extern
: return stream
<< "extern";
92 case XclSupbookType::Addin
: return stream
<< "addin";
93 case XclSupbookType::Special
: return stream
<< "special";
94 case XclSupbookType::Eurotool
: return stream
<< "eurotool";
95 default: return stream
<< static_cast<int>(type
);
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */