mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
List box implementation
This commit is contained in:
@ -27,6 +27,8 @@ class QPdfWriter;
|
||||
namespace pdf
|
||||
{
|
||||
|
||||
using PDFIntegerVector = std::vector<PDFInteger>;
|
||||
|
||||
struct WrapName
|
||||
{
|
||||
WrapName(const char* name) :
|
||||
@ -928,6 +930,20 @@ public:
|
||||
void setDocumentTitle(QString title);
|
||||
|
||||
|
||||
/// Sets form field list box indices.
|
||||
/// \param formField Form field
|
||||
/// \param indices Sorted list of selected indices
|
||||
void setFormFieldChoiceIndices(PDFObjectReference formField,
|
||||
PDFIntegerVector indices);
|
||||
|
||||
|
||||
/// Sets form field list box top index. Top index is zero-based index of first item visible in the list box.
|
||||
/// \param formField Form field
|
||||
/// \param topIndex Zero-based index of first visible item
|
||||
void setFormFieldChoiceTopIndex(PDFObjectReference formField,
|
||||
PDFInteger topIndex);
|
||||
|
||||
|
||||
/// Sets form field value. Value must be correct for this form field, no checking is performed. Also, if
|
||||
/// you use this function, annotation widgets, which are attached to this form field, should also be
|
||||
/// updated (for example, appearance state and sometimes appearance streams).
|
||||
|
Reference in New Issue
Block a user