From 7248cab71b69efe1e5efa3f1400d4d3970271a77 Mon Sep 17 00:00:00 2001 From: m-holger Date: Tue, 2 Aug 2022 13:12:17 +0100 Subject: Add class QPDF_Unresolved Allow QPDFObjectHandle::obj to be set prior resolving object. ot_unresolved has been appended to the list object types in order to preserve the output of existing test cases. --- include/qpdf/Constants.h | 2 ++ include/qpdf/QPDFObject.hh | 1 + 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/qpdf/Constants.h b/include/qpdf/Constants.h index 5d2113bd..cf6bdaef 100644 --- a/include/qpdf/Constants.h +++ b/include/qpdf/Constants.h @@ -82,6 +82,8 @@ enum qpdf_object_type_e { /* Additional object types that can occur in content streams */ ot_operator, ot_inlineimage, + /* Object types internal to qpdf */ + ot_unresolved, /* NOTE: if adding to this list, update QPDFObject.hh */ }; diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index eb7c4b90..8b6f7403 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -61,6 +61,7 @@ class QPDFObject static constexpr object_type_e ot_stream = ::ot_stream; static constexpr object_type_e ot_operator = ::ot_operator; static constexpr object_type_e ot_inlineimage = ::ot_inlineimage; + static constexpr object_type_e ot_unresolved = ::ot_unresolved; virtual ~QPDFObject() = default; virtual std::shared_ptr shallowCopy() = 0; -- cgit v1.2.3-54-g00ecf