android: Update app-specific/MIME type icons
[LibreOffice.git] / include / vcl / graphic / GraphicMetadata.hxx
blobda27fde015149da0510477064a5e8a87188645fe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
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/.
8 */
9 #ifndef INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
10 #define INCLUDED_VCL_GRAPHIC_GRAPHICMETADATA_HXX
11 // Info class for all supported file formats
12 enum class GraphicFileFormat
14 NOT = 0x0000,
15 BMP = 0x0001,
16 GIF = 0x0002,
17 JPG = 0x0003,
18 PCD = 0x0004,
19 PCX = 0x0005,
20 PNG = 0x0006,
21 TIF = 0x0007,
22 XBM = 0x0008,
23 XPM = 0x0009,
24 PBM = 0x000a,
25 PGM = 0x000b,
26 PPM = 0x000c,
27 RAS = 0x000d,
28 TGA = 0x000e,
29 PSD = 0x000f,
30 EPS = 0x0010,
31 WEBP = 0x0011,
32 MOV = 0x00e0,
33 PDF = 0x00e1,
34 DXF = 0x00f1,
35 MET = 0x00f2,
36 PCT = 0x00f3,
37 // retired SGF = 0x00f4,
38 SVM = 0x00f5,
39 WMF = 0x00f6,
40 // retired SGV = 0x00f7,
41 EMF = 0x00f8,
42 SVG = 0x00f9,
43 WMZ = 0x00fa,
44 EMZ = 0x00fb,
45 SVGZ = 0x00fc
47 struct GraphicMetadata
49 Size maPixSize{};
50 Size maLogSize{};
51 std::optional<Size> maPreferredLogSize = std::nullopt;
52 std::optional<MapMode> maPreferredMapMode = std::nullopt;
53 sal_uInt16 mnBitsPerPixel = 0;
54 sal_uInt16 mnPlanes = 0;
55 GraphicFileFormat mnFormat = GraphicFileFormat::NOT;
56 sal_uInt8 mnNumberOfImageComponents = 0;
57 bool mbIsTransparent = false;
58 bool mbIsAlpha = false;
60 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */