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

PoDoFo::PdfOutlineItem::PdfOutlineItem ( const PdfString sTitle,
const PdfAction rAction,
PdfOutlineItem pParentOutline,
PdfVecObjects pParent 
) [protected]

Create a new PdfOutlineItem from scratch

sTitletitle of this item
rActionaction 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 47 of file PdfOutlines.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfElement::GetObject(), PoDoFo::PdfObject::Reference(), SetAction(), 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->SetAction( rAction );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index