5#ifndef PDF_CONTAINER_DATATYPE_H
6#define PDF_CONTAINER_DATATYPE_H
8#include "PdfBaseDataTypes.h"
37 inline PdfObject* GetOwner() {
return m_Owner; }
53 virtual void resetDirty() = 0;
56 [[deprecated(
"Use GetDocument() instead")]]
57 PdfDocument* GetObjectDocument()
const {
return m_Document; }
59 bool IsIndirectReferenceAllowed(
const PdfObject& obj);
60 virtual void setChildrenParent() = 0;
61 void AssertMutable()
const;
67 void SetOwner(PdfObject& owner, PdfDocument* document);
72 void SetOwnerShallow(PdfObject& owner) { m_Owner = &owner; }
78 PdfDocument* m_Document;
81class PODOFO_API PdfIndirectIterableBase
83 template <
typename TObject,
typename TListIterator>
84 friend class PdfArrayIndirectIterableBase;
86 template <
typename TObject,
typename TMapIterator>
87 friend class PdfDictionaryIndirectIterableBase;
90 PdfIndirectIterableBase();
92 PdfIndirectIterableBase(PdfDataContainer& container);
95 static PdfObject* GetObject(
const PdfIndirectObjectList& list,
const PdfReference& ref);
97 PdfIndirectObjectList* GetObjects()
const {
return m_Objects; }
100 PdfIndirectObjectList* m_Objects;
An interface for writing blocks of data to a data source.
Definition OutputStream.h:15
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition PdfArray.h:77
A PdfDataProvider object with a PdfObject owner, specialized in holding objects.
Definition PdfDataContainer.h:18
virtual void Write(OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt *encrypt, charbuff &buffer) const =0
Write the complete datatype to a file.
const PdfObject * GetOwner() const
Definition PdfDataContainer.h:36
PdfDocument * GetDocument() const
Definition PdfDataContainer.h:50
An helper class to inherit to provide common serialization methods.
Definition PdfBaseDataTypes.h:36
The PDF dictionary data type of PoDoFo (inherits from PdfDataContainer, the base class for such repre...
Definition PdfDictionary.h:77
PdfDocument is the core interface for working with PDF documents.
Definition PdfDocument.h:108
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
A reference is a pointer to a object in the PDF file of the form "4 0 R", where 4 is the object numbe...
Definition PdfReference.h:20
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
PdfWriteFlags
Specify additional options for writing the PDF.
Definition PdfDeclarations.h:136