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

void PoDoFo::PdfField::SetFieldFlag ( long  lValue,
bool  bSet 
) [protected, inherited]

Create a copy of a PdfField object. Not the field on the page is copied - only the PdfField object referring to the field on the page is copied!

rhsthe field to copy
this field Set a bit in the field flags value of the fields dictionary.
lValuethe value specifying the bits to set
bSetif true the value will be set otherwise they will be cleared.
See also:

Definition at line 169 of file PdfField.cpp.

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

Referenced by PoDoFo::PdfComboBox::PdfComboBox(), PoDoFo::PdfListBox::PdfListBox(), SetCombs(), PoDoFo::PdfComboBox::SetEditable(), PoDoFo::PdfField::SetExport(), SetFileField(), SetMultiLine(), PoDoFo::PdfListField::SetMultiSelect(), SetPasswordField(), PoDoFo::PdfField::SetReadOnly(), PoDoFo::PdfField::SetRequired(), SetRichText(), SetScrollBarsEnabled(), PoDoFo::PdfListField::SetSorted(), PoDoFo::PdfListField::SetSpellcheckingEnabled(), and SetSpellcheckingEnabled().

    pdf_int64 lCur = 0;

    if( m_pObject->GetDictionary().HasKey( PdfName("Ff") ) )
        lCur = m_pObject->GetDictionary().GetKey( PdfName("Ff") )->GetNumber();
    if( bSet )
        lCur |= lValue;
        if( (lCur & lValue) == lValue )
            lCur ^= lValue;

    m_pObject->GetDictionary().AddKey( PdfName("Ff"), lCur );

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