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