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 .
20 #ifndef INCLUDED_SOT_FORMATS_HXX
21 #define INCLUDED_SOT_FORMATS_HXX
23 #ifdef _SOT_FORMATS_INCLUDE_SYSTEMFORMATS
27 #pragma warning(push, 1)
28 #pragma warning(disable: 4917)
38 #include <tools/solar.h>
40 // - predefined formats -
41 // Do NOT change the order of these values as the implementation depends on them!
42 enum class SotClipboardFormatId
: sal_uLong
44 // standard formats for that Copy/Paste methods exist
51 // further formats (only via CopyData/PasteData)
55 ONLY_USED_IN_SW
= 8, // the SW module essentially creates its own ID's and this is one of them
61 INTERNALLINK_STATE
= 16,
63 NETSCAPE_BOOKMARK
= 18,
74 STARWRITERWEB_40
= 29,
75 STARWRITERWEB_50
= 30,
76 STARWRITERGLOB_40
= 31,
77 STARWRITERGLOB_50
= 32,
94 STAROBJECT_PAINTDOC
= 49,
99 CNT_MSGATTACHFILE
= 54,
106 STARDRAW_TABBAR
= 61,
109 STAR_FRAMESET_DOC
= 64,
120 SVX_FORMFIELDEXCH
= 75,
121 EXTENDED_TABBAR
= 76,
122 SBA_DATAEXCHANGE
= 77,
123 SBA_FIELDDATAEXCHANGE
= 78,
124 SBA_PRIVATE_URL
= 79,
128 OBJECTDESCRIPTOR
= 83,
129 LINKSRCDESCRIPTOR
= 84,
134 FILEGRPDESCRIPTOR
= 89,
137 EMBEDDED_OBJ_OLE
= 92,
138 EMBED_SOURCE_OLE
= 93,
139 OBJECTDESCRIPTOR_OLE
= 94,
140 LINKSRCDESCRIPTOR_OLE
= 95,
141 LINK_SOURCE_OLE
= 96,
142 SBA_CTRLDATAEXCHANGE
= 97,
146 NETSCAPE_IMAGE
= 101,
147 SBA_FORMEXCHANGE
= 102,
148 SBA_REPORTEXCHANGE
= 103,
149 UNIFORMRESOURCELOCATOR
= 104,
150 STARCHARTDOCUMENT_50
= 105,
153 STARWRITERWEB_60
= 108,
154 STARWRITERGLOB_60
= 109,
156 STARIMPRESS_60
= 111,
161 DBACCESS_QUERY
= 116,
162 DBACCESS_TABLE
= 117,
163 DBACCESS_COMMAND
= 118,
168 HTML_NO_COMMENT
= 123,
170 STARWRITERWEB_8
= 125,
171 STARWRITERGLOB_8
= 126,
178 STARWRITER_8_TEMPLATE
= 133,
179 STARDRAW_8_TEMPLATE
= 134,
180 STARIMPRESS_8_TEMPLATE
= 135,
181 STARCALC_8_TEMPLATE
= 136,
182 STARCHART_8_TEMPLATE
= 137,
183 STARMATH_8_TEMPLATE
= 138,
185 HC_GDIMETAFILE
= 140,
187 STARWRITERGLOB_8_TEMPLATE
= 142,
188 // the point at which we start allocating "runtime" format IDs
189 USER_END
= STARWRITERGLOB_8_TEMPLATE
192 /** Make it easier to iterate over format IDs */
193 inline SotClipboardFormatId
& operator++(SotClipboardFormatId
& v
)
195 v
= static_cast<SotClipboardFormatId
>(static_cast<sal_uLong
>(v
) + 1);
199 #define SOT_FORMAT_SYSTEM_START SotClipboardFormatId::NONE
201 #endif // INCLUDED_SOT_FORMATS_HXX
203 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */