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

PoDoFo::PdfPushButton::PdfPushButton ( const PdfField rhs )

Create a PdfPushButton from a PdfField

rhsa PdfField that is a push button button

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

Definition at line 445 of file PdfField.cpp.

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

    : PdfButton( rhs )
    if( this->GetType() != ePdfField_CheckBox )
        PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType, "Field cannot be converted into a PdfPushButton" );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index