2008-04-29 12:55:25 +00:00
|
|
|
#include <qpdf/QPDFObject.hh>
|
2018-02-16 22:25:27 +00:00
|
|
|
|
|
|
|
QPDFObject::Members::Members() :
|
|
|
|
owning_qpdf(0)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QPDFObject::Members::~Members()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QPDFObject::QPDFObject() :
|
|
|
|
m(new Members)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
QPDFObject::setDescription(QPDF* qpdf, std::string const& description)
|
|
|
|
{
|
|
|
|
this->m->owning_qpdf = qpdf;
|
|
|
|
this->m->object_description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
QPDFObject::getDescription(QPDF*& qpdf, std::string& description)
|
|
|
|
{
|
|
|
|
qpdf = this->m->owning_qpdf;
|
|
|
|
description = this->m->object_description;
|
2019-06-21 10:32:09 +00:00
|
|
|
return this->m->owning_qpdf != 0;
|
2018-02-16 22:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
QPDFObject::hasDescription()
|
|
|
|
{
|
2019-06-21 10:32:09 +00:00
|
|
|
return this->m->owning_qpdf != 0;
|
2018-02-16 22:25:27 +00:00
|
|
|
}
|