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

bool PoDoFo::PdfField::GetFieldFlag ( long  lValue,
bool  bDefault 
) const [protected, inherited]
Parameters:
lValueit is checked if these bits are set
bDefaultthe returned value if no field flags are specified
Returns:
true if given bits are set in the field flags
See also:
SetFieldFlag

Definition at line 187 of file PdfField.cpp.

References PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfDictionary::GetKey(), PoDoFo::PdfVariant::GetNumber(), and PoDoFo::PdfDictionary::HasKey().

Referenced by PoDoFo::PdfButton::IsCheckBox(), PoDoFo::PdfListField::IsComboBox(), IsCombs(), PoDoFo::PdfComboBox::IsEditable(), PoDoFo::PdfField::IsExport(), IsFileField(), IsMultiLine(), PoDoFo::PdfListField::IsMultiSelect(), IsPasswordField(), PoDoFo::PdfButton::IsPushButton(), PoDoFo::PdfButton::IsRadioButton(), PoDoFo::PdfField::IsReadOnly(), PoDoFo::PdfField::IsRequired(), IsRichText(), IsScrollBarsEnabled(), PoDoFo::PdfListField::IsSorted(), PoDoFo::PdfListField::IsSpellcheckingEnabled(), and IsSpellcheckingEnabled().

{
    long long lCur = 0;

    if( m_pObject->GetDictionary().HasKey( PdfName("Ff") ) )
    {
        lCur = m_pObject->GetDictionary().GetKey( PdfName("Ff") )->GetNumber();

        return (lCur & lValue) == lValue; 
    }
    
    return bDefault;
}

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