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

PoDoFo::PdfListBox::PdfListBox ( const PdfField rhs )

Create a PdfListBox from a PdfField

rhsa PdfField that is a PdfComboBox

Raises an error if PdfField::GetType() != ePdfField_ListBox

Definition at line 954 of file PdfField.cpp.

References PoDoFo::ePdfError_InvalidDataType, PoDoFo::PdfField::GetType(), and PODOFO_RAISE_ERROR_INFO.

    : PdfListField( rhs )
    if( this->GetType() != ePdfField_ListBox )
        PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType, "Field cannot be converted into a PdfTextField" );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index