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

void PoDoFo::PdfOutlineItem::InsertChild ( PdfOutlineItem pItem ) [inherited]

Inserts an existing PdfOutlineItem as a child of this outline item.

pIteman existing outline item

Definition at line 109 of file PdfOutlines.cpp.

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

Referenced by PoDoFo::PdfDocument::Append(), and PoDoFo::PdfOutlineItem::CreateChild().

    if( m_pLast )
        m_pLast->SetNext( pItem );
        pItem->SetPrevious( m_pLast );

    m_pLast = pItem;

    if( !m_pFirst )
        m_pFirst = m_pLast;

    this->GetObject()->GetDictionary().AddKey( "First", m_pFirst->GetObject()->Reference() );
    this->GetObject()->GetDictionary().AddKey( "Last",  m_pLast->GetObject()->Reference() );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index