2022-08-02 12:12:17 +00:00
|
|
|
#include <qpdf/QPDF_Unresolved.hh>
|
|
|
|
|
2024-03-10 15:34:58 +00:00
|
|
|
#include <qpdf/QPDF.hh>
|
|
|
|
#include <qpdf/QPDFObject_private.hh>
|
2022-08-02 12:12:17 +00:00
|
|
|
|
2022-08-12 14:14:11 +00:00
|
|
|
QPDF_Unresolved::QPDF_Unresolved(QPDF* qpdf, QPDFObjGen const& og) :
|
2024-08-12 16:52:42 +00:00
|
|
|
QPDFValue(::ot_unresolved, qpdf, og)
|
2022-08-02 21:57:33 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-08-12 14:14:11 +00:00
|
|
|
QPDF_Unresolved::create(QPDF* qpdf, QPDFObjGen const& og)
|
2022-08-02 12:12:17 +00:00
|
|
|
{
|
2022-08-12 14:14:11 +00:00
|
|
|
return do_create(new QPDF_Unresolved(qpdf, og));
|
2022-08-02 12:12:17 +00:00
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Unresolved::copy(bool shallow)
|
2022-08-02 12:12:17 +00:00
|
|
|
{
|
2024-03-10 15:34:58 +00:00
|
|
|
return QPDF::Resolver::resolved(qpdf, og)->copy(shallow);
|
2022-08-02 12:12:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string
|
|
|
|
QPDF_Unresolved::unparse()
|
|
|
|
{
|
2024-03-10 15:34:58 +00:00
|
|
|
return QPDF::Resolver::resolved(qpdf, og)->unparse();
|
2022-08-02 12:12:17 +00:00
|
|
|
}
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
void
|
|
|
|
QPDF_Unresolved::writeJSON(int json_version, JSON::Writer& p)
|
|
|
|
{
|
2024-03-10 15:34:58 +00:00
|
|
|
QPDF::Resolver::resolved(qpdf, og)->writeJSON(json_version, p);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string
|
|
|
|
QPDF_Unresolved::getStringValue() const
|
|
|
|
{
|
|
|
|
return QPDF::Resolver::resolved(qpdf, og)->getStringValue();
|
2024-02-09 13:09:08 +00:00
|
|
|
}
|