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 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XLLINK_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XLLINK_HXX
22 
23 #include <ostream>
24 
25 #include <sal/types.h>
26 
27 // Constants and Enumerations =================================================
28 
29 const sal_uInt16 EXC_TAB_EXTERNAL = 0xFFFE;
30 const sal_uInt16 EXC_TAB_DELETED = 0xFFFF;
31 
32 // (0x0016) EXTERNCOUNT -------------------------------------------------------
33 
34 const sal_uInt16 EXC_ID_EXTERNCOUNT = 0x0016;
35 
36 // (0x0017) EXTERNSHEET -------------------------------------------------------
37 
38 const sal_uInt16 EXC_ID_EXTERNSHEET = 0x0017;
39 
40 const sal_Unicode EXC_EXTSH_URL = '\x01';
45 
46 // (0x0023) EXTERNNAME --------------------------------------------------------
47 
48 const sal_uInt16 EXC_ID_EXTERNNAME = 0x0023;
49 
50 const sal_uInt16 EXC_EXTN_BUILTIN = 0x0001;
51 const sal_uInt16 EXC_EXTN_OLE = 0x0010;
52 const sal_uInt16 EXC_EXTN_OLE_OR_DDE = 0xFFFE;
53 
54 const sal_uInt16 EXC_EXTN_EXPDDE_STDDOC = 0x7FEA;
55 const sal_uInt16 EXC_EXTN_EXPDDE = 0x7FE2;
56 
57 // (0x0059, 0x005A) XCT, CRN --------------------------------------------------
58 
59 const sal_uInt16 EXC_ID_XCT = 0x0059;
60 const sal_uInt16 EXC_ID_CRN = 0x005A;
61 
62 // (0x013D) TABID -------------------------------------------------------------
63 
64 const sal_uInt16 EXC_ID_TABID = 0x013D;
65 
66 // (0x01AE) SUPBOOK -----------------------------------------------------------
67 
68 const sal_uInt16 EXC_ID_SUPBOOK = 0x01AE;
69 
70 const sal_uInt16 EXC_SUPB_SELF = 0x0401;
71 const sal_uInt16 EXC_SUPB_ADDIN = 0x3A01;
72 
74 enum class XclSupbookType
75 {
76  Unknown,
77  Self,
78  Extern,
79  Addin,
80  Special,
81  Eurotool
82 };
83 
84 template< typename charT, typename traits >
85 inline std::basic_ostream<charT, traits> & operator <<(
86  std::basic_ostream<charT, traits> & stream, const XclSupbookType& type )
87 {
88  switch (type)
89  {
90  case XclSupbookType::Unknown: return stream << "unknown";
91  case XclSupbookType::Self: return stream << "self";
92  case XclSupbookType::Extern: return stream << "extern";
93  case XclSupbookType::Addin: return stream << "addin";
94  case XclSupbookType::Special: return stream << "special";
95  case XclSupbookType::Eurotool: return stream << "eurotool";
96  default: return stream << static_cast<int>(type);
97  }
98 }
99 
100 #endif
101 
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 sal_Unicode