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

void PoDoFo::PdfVariant::SetDirty ( bool  bDirty ) [inline, protected, inherited]

Sets the dirty flag of this PdfVariant

Parameters:
bDirtytrue if this PdfVariant has been modified from the outside
See also:
IsDirty

Definition at line 913 of file PdfVariant.h.

References PoDoFo::ePdfDataType_Array, PoDoFo::ePdfDataType_Bool, PoDoFo::ePdfDataType_Dictionary, PoDoFo::ePdfDataType_HexString, PoDoFo::ePdfDataType_Name, PoDoFo::ePdfDataType_Null, PoDoFo::ePdfDataType_Number, PoDoFo::ePdfDataType_RawData, PoDoFo::ePdfDataType_Real, PoDoFo::ePdfDataType_Reference, PoDoFo::ePdfDataType_String, PoDoFo::ePdfDataType_Unknown, PoDoFo::PdfVariant::m_bDirty, PoDoFo::PdfVariant::m_eDataType, PoDoFo::PdfVariant::UVariant::pData, and PoDoFo::PdfDataType::SetDirty().

Referenced by PoDoFo::PdfObject::GetStream_NoDL(), PoDoFo::PdfParserObject::ParseFileComplete(), PoDoFo::PdfParserObject::ParseStream(), PoDoFo::PdfVariant::SetBool(), PoDoFo::PdfVariant::SetNumber(), and PoDoFo::PdfVariant::SetReal().

{
    m_bDirty = bDirty;

    if( !m_bDirty ) 
    {
        // Propogate new dirty state to subclasses
        switch( m_eDataType ) 
        {
            case ePdfDataType_Array:
            case ePdfDataType_Dictionary:
                // Arrays and Dictionaries
                // handle dirty status by themselfes
                m_Data.pData->SetDirty( m_bDirty );

            case ePdfDataType_Bool:
            case ePdfDataType_Number:
            case ePdfDataType_Real:
            case ePdfDataType_HexString:
            case ePdfDataType_String:
            case ePdfDataType_Name:
            case ePdfDataType_RawData:
            case ePdfDataType_Reference:
            case ePdfDataType_Null:
            case ePdfDataType_Unknown:
            default:
                break;
        };    
    }
}

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