Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

PoDoFo::PdfOutlineItem::PdfOutlineItem ( const PdfString sTitle,
const PdfDestination rDest,
PdfOutlineItem pParentOutline,
PdfVecObjects pParent 
) [protected]

Create a new PdfOutlineItem from scratch

Parameters:
sTitletitle of this item
rDestdestination of this item
pParentOutlineparent of this outline item in the outline item hierarchie
pParentparent vector of objects which is required to create new objects

Definition at line 32 of file PdfOutlines.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfElement::GetObject(), PoDoFo::PdfObject::Reference(), SetDestination(), and SetTitle().

    : PdfElement( NULL, pParent ), 
      m_pParentOutline( pParentOutline ), m_pPrev( NULL ), m_pNext( NULL ), 
      m_pFirst( NULL ), m_pLast( NULL ), m_pDestination( NULL ), m_pAction( NULL )
{
    if( pParentOutline )
        this->GetObject()->GetDictionary().AddKey( "Parent", pParentOutline->GetObject()->Reference() );

    this->SetTitle( sTitle );
    this->SetDestination( rDest );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index