LibreOffice Module sc (master)  1
xllink.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #pragma once
21 
22 #include <ostream>
23 
24 #include <sal/types.h>
25 
26 // Constants and Enumerations =================================================
27 
28 const sal_uInt16 EXC_TAB_EXTERNAL = 0xFFFE;
29 const sal_uInt16 EXC_TAB_DELETED = 0xFFFF;
30 
31 // (0x0016) EXTERNCOUNT -------------------------------------------------------
32 
33 const sal_uInt16 EXC_ID_EXTERNCOUNT = 0x0016;
34 
35 // (0x0017) EXTERNSHEET -------------------------------------------------------
36 
37 const sal_uInt16 EXC_ID_EXTERNSHEET = 0x0017;
38 
39 const sal_Unicode EXC_EXTSH_URL = '\x01';
44 
45 // (0x0023) EXTERNNAME --------------------------------------------------------
46 
47 const sal_uInt16 EXC_ID_EXTERNNAME = 0x0023;
48 
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;
52 
53 const sal_uInt16 EXC_EXTN_EXPDDE_STDDOC = 0x7FEA;
54 const sal_uInt16 EXC_EXTN_EXPDDE = 0x7FE2;
55 
56 // (0x0059, 0x005A) XCT, CRN --------------------------------------------------
57 
58 const sal_uInt16 EXC_ID_XCT = 0x0059;
59 const sal_uInt16 EXC_ID_CRN = 0x005A;
60 
61 // (0x013D) TABID -------------------------------------------------------------
62 
63 const sal_uInt16 EXC_ID_TABID = 0x013D;
64 
65 // (0x01AE) SUPBOOK -----------------------------------------------------------
66 
67 const sal_uInt16 EXC_ID_SUPBOOK = 0x01AE;
68 
69 const sal_uInt16 EXC_SUPB_SELF = 0x0401;
70 const sal_uInt16 EXC_SUPB_ADDIN = 0x3A01;
71 
73 enum class XclSupbookType
74 {
75  Unknown,
76  Self,
77  Extern,
78  Addin,
79  Special,
80  Eurotool
81 };
82 
83 template< typename charT, typename traits >
84 inline std::basic_ostream<charT, traits> & operator <<(
85  std::basic_ostream<charT, traits> & stream, const XclSupbookType& type )
86 {
87  switch (type)
88  {
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);
96  }
97 }
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 sal_Unicode