Line data Source code
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_SOT_FORMATS_HXX
21 : #define INCLUDED_SOT_FORMATS_HXX
22 :
23 : #ifdef _SOT_FORMATS_INCLUDE_SYSTEMFORMATS
24 :
25 : #ifdef WNT
26 : #ifdef _MSC_VER
27 : #pragma warning(push, 1)
28 : #pragma warning(disable: 4917)
29 : #endif
30 : #include <shlobj.h>
31 : #ifdef _MSC_VER
32 : #pragma warning(pop)
33 : #endif
34 : #endif
35 :
36 : #endif
37 :
38 : #include <tools/solar.h>
39 :
40 : // - predefined formats -
41 : // Do NOT change the order of these values as the implementation depends on them!
42 : enum class SotClipboardFormatId : sal_uLong
43 : {
44 : // standard formats for that Copy/Paste methods exist
45 : STRING = 1,
46 : BITMAP = 2,
47 : GDIMETAFILE = 3,
48 : PRIVATE = 4,
49 : SIMPLE_FILE = 5,
50 : FILE_LIST = 6,
51 : // further formats (only via CopyData/PasteData)
52 : RTF = 10,
53 :
54 : NONE = 0,
55 : ONLY_USED_IN_SW = 8, // the SW module essentially creates its own ID's and this is one of them
56 : DRAWING = 11,
57 : SVXB = 12,
58 : SVIM = 13,
59 : XFA = 14,
60 : EDITENGINE = 15,
61 : INTERNALLINK_STATE = 16,
62 : SOLK = 17,
63 : NETSCAPE_BOOKMARK = 18,
64 : TREELISTBOX = 19,
65 : NATIVE = 20,
66 : OWNERLINK = 21,
67 : STARSERVER = 22,
68 : STAROBJECT = 23,
69 : APPLETOBJECT = 24,
70 : PLUGIN_OBJECT = 25,
71 : STARWRITER_30 = 26,
72 : STARWRITER_40 = 27,
73 : STARWRITER_50 = 28,
74 : STARWRITERWEB_40 = 29,
75 : STARWRITERWEB_50 = 30,
76 : STARWRITERGLOB_40 = 31,
77 : STARWRITERGLOB_50 = 32,
78 : STARDRAW = 33,
79 : STARDRAW_40 = 34,
80 : STARIMPRESS_50 = 35,
81 : STARDRAW_50 = 36,
82 : STARCALC = 37,
83 : STARCALC_40 = 38,
84 : STARCALC_50 = 39,
85 : STARCHART = 40,
86 : STARCHART_40 = 41,
87 : STARCHART_50 = 42,
88 : STARIMAGE = 43,
89 : STARIMAGE_40 = 44,
90 : STARIMAGE_50 = 45,
91 : STARMATH = 46,
92 : STARMATH_40 = 47,
93 : STARMATH_50 = 48,
94 : STAROBJECT_PAINTDOC = 49,
95 : FILLED_AREA = 50,
96 : HTML = 51,
97 : HTML_SIMPLE = 52,
98 : CHAOS = 53,
99 : CNT_MSGATTACHFILE = 54,
100 : BIFF_5 = 55,
101 : BIFF__5 = 56,
102 : SYLK = 57,
103 : SYLK_BIGCAPS = 58,
104 : LINK = 59,
105 : DIF = 60,
106 : STARDRAW_TABBAR = 61,
107 : SONLK = 62,
108 : MSWORD_DOC = 63,
109 : STAR_FRAMESET_DOC = 64,
110 : OFFICE_DOC = 65,
111 : NOTES_DOCINFO = 66,
112 : NOTES_HNOTE = 67,
113 : NOTES_NATIVE = 68,
114 : SFX_DOC = 69,
115 : EVDF = 70,
116 : ESDF = 71,
117 : IDF = 72,
118 : EFTP = 73,
119 : EFD = 74,
120 : SVX_FORMFIELDEXCH = 75,
121 : EXTENDED_TABBAR = 76,
122 : SBA_DATAEXCHANGE = 77,
123 : SBA_FIELDDATAEXCHANGE = 78,
124 : SBA_PRIVATE_URL = 79,
125 : SBA_TABED = 80,
126 : SBA_TABID = 81,
127 : SBA_JOIN = 82,
128 : OBJECTDESCRIPTOR = 83,
129 : LINKSRCDESCRIPTOR = 84,
130 : EMBED_SOURCE = 85,
131 : LINK_SOURCE = 86,
132 : EMBEDDED_OBJ = 87,
133 : FILECONTENT = 88,
134 : FILEGRPDESCRIPTOR = 89,
135 : FILENAME = 90,
136 : SD_OLE = 91,
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,
143 : OUTPLACE_OBJ = 98,
144 : CNT_OWN_CLIP = 99,
145 : INET_IMAGE = 100,
146 : NETSCAPE_IMAGE = 101,
147 : SBA_FORMEXCHANGE = 102,
148 : SBA_REPORTEXCHANGE = 103,
149 : UNIFORMRESOURCELOCATOR = 104,
150 : STARCHARTDOCUMENT_50 = 105,
151 : GRAPHOBJ = 106,
152 : STARWRITER_60 = 107,
153 : STARWRITERWEB_60 = 108,
154 : STARWRITERGLOB_60 = 109,
155 : STARDRAW_60 = 110,
156 : STARIMPRESS_60 = 111,
157 : STARCALC_60 = 112,
158 : STARCHART_60 = 113,
159 : STARMATH_60 = 114,
160 : WMF = 115,
161 : DBACCESS_QUERY = 116,
162 : DBACCESS_TABLE = 117,
163 : DBACCESS_COMMAND = 118,
164 : DIALOG_60 = 119,
165 : EMF = 120,
166 : BIFF_8 = 121,
167 : BMP = 122,
168 : HTML_NO_COMMENT = 123,
169 : STARWRITER_8 = 124,
170 : STARWRITERWEB_8 = 125,
171 : STARWRITERGLOB_8 = 126,
172 : STARDRAW_8 = 127,
173 : STARIMPRESS_8 = 128,
174 : STARCALC_8 = 129,
175 : STARCHART_8 = 130,
176 : STARMATH_8 = 131,
177 : XFORMS = 132,
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,
184 : STARBASE_8 = 139,
185 : HC_GDIMETAFILE = 140,
186 : PNG = 141,
187 : STARWRITERGLOB_8_TEMPLATE = 142,
188 : // the point at which we start allocating "runtime" format IDs
189 : USER_END = STARWRITERGLOB_8_TEMPLATE
190 : };
191 :
192 : /** Make it easier to iterate over format IDs */
193 510141 : inline SotClipboardFormatId& operator++(SotClipboardFormatId& v)
194 : {
195 510141 : v = static_cast<SotClipboardFormatId>(static_cast<sal_uLong>(v) + 1);
196 510141 : return v;
197 : }
198 :
199 : #define SOT_FORMAT_SYSTEM_START SotClipboardFormatId::NONE
200 :
201 : #endif // INCLUDED_SOT_FORMATS_HXX
202 :
203 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|