mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Redaction bugfixing
This commit is contained in:
@ -136,6 +136,16 @@ void PDFOutlineItem::setStructureElement(PDFObjectReference structureElement)
|
||||
m_structureElement = structureElement;
|
||||
}
|
||||
|
||||
void PDFOutlineItem::apply(const std::function<void (PDFOutlineItem*)>& functor)
|
||||
{
|
||||
functor(this);
|
||||
|
||||
for (const auto& item : m_children)
|
||||
{
|
||||
item->apply(functor);
|
||||
}
|
||||
}
|
||||
|
||||
bool PDFOutlineItem::isFontBold() const
|
||||
{
|
||||
return m_fontBold;
|
||||
@ -171,6 +181,11 @@ const PDFAction* PDFOutlineItem::getAction() const
|
||||
return m_action.get();
|
||||
}
|
||||
|
||||
PDFAction* PDFOutlineItem::getAction()
|
||||
{
|
||||
return m_action.get();
|
||||
}
|
||||
|
||||
void PDFOutlineItem::setAction(const PDFActionPtr& action)
|
||||
{
|
||||
m_action = action;
|
||||
|
Reference in New Issue
Block a user