Bump version to 21.06.18.1
[LibreOffice.git] / include / vcl / filter / pdfobjectcontainer.hxx
blobca4898737e106d95ea413abb1fe27284bdc224f1
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/.
8 */
10 #pragma once
12 #include <sal/types.h>
14 namespace vcl
16 /// Allows creating, updating and writing PDF objects in a container.
17 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI PDFObjectContainer
19 public:
20 /* adds an entry to m_aObjects and returns its index+1,
21 * sets the offset to ~0
23 virtual sal_Int32 createObject() = 0;
24 /* sets the offset of object n to the current position of output file+1
26 virtual bool updateObject(sal_Int32 n) = 0;
28 // Write pBuffer to the end of the output.
29 virtual bool writeBuffer(const void* pBuffer, sal_uInt64 nBytes) = 0;
31 protected:
32 ~PDFObjectContainer() noexcept = default;
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */