Fix GNU C++ version check
[LibreOffice.git] / vcl / inc / pdf / XmpMetadata.hxx
blob33fce97a21e38dbf8802f77b28e2e1e3087550eb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 */
11 #pragma once
13 #include <rtl/string.hxx>
14 #include <tools/stream.hxx>
15 #include <memory>
16 #include <vector>
18 namespace vcl::pdf
20 class XmpMetadata
22 private:
23 bool mbWritten;
24 std::unique_ptr<SvMemoryStream> mpMemoryStream;
26 public:
27 OString msTitle;
28 OString msAuthor;
29 OString msSubject;
30 OString msProducer;
31 OString msPDFVersion;
32 OString msKeywords;
33 std::vector<OString> maContributor;
34 OString msCoverage;
35 OString msIdentifier;
36 std::vector<OString> maPublisher;
37 std::vector<OString> maRelation;
38 OString msRights;
39 OString msSource;
40 OString msType;
41 OString m_sCreatorTool;
42 OString m_sCreateDate;
44 sal_Int32 mnPDF_A;
45 bool mbPDF_UA;
47 public:
48 XmpMetadata();
49 sal_uInt64 getSize();
50 const void* getData();
52 private:
53 void write();
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */