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

const PdfObject * PoDoFo::PdfPage::GetInheritedKeyFromObject ( const char *  inKey,
const PdfObject inObject 
) const [private]

Private method for getting a key value that could be inherited (such as the boxes, resources, etc.)

PdfVariant - the result of the key fetching

Definition at line 199 of file PdfPage.cpp.

References PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfObject::GetIndirectKey(), PoDoFo::PdfDictionary::GetKey(), PoDoFo::PdfDictionary::HasKey(), and PoDoFo::PdfVariant::IsNull().

Referenced by GetPageBox(), GetRotation(), SetPageHeight(), and SetPageWidth().

    const PdfObject* pObj = NULL;

    // check for it in the object itself
    if ( inObject->GetDictionary().HasKey( inKey ) ) 
        pObj = inObject->GetDictionary().GetKey( inKey );
        if ( !pObj->IsNull() ) 
            return pObj;
    // if we get here, we need to go check the parent - if there is one!
    if( inObject->GetDictionary().HasKey( "Parent" ) ) 
        pObj = inObject->GetIndirectKey( "Parent" );
        if( pObj )
            pObj = GetInheritedKeyFromObject( inKey, pObj );

    return pObj;

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