1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <sal/types.h>
16 /// Allows creating, updating and writing PDF objects in a container.
17 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI PDFObjectContainer
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;
32 ~PDFObjectContainer() noexcept
= default;
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */