#include <PdfField.h>
Inheritance diagram for PoDoFo::PdfListField:

Public Member Functions | |
| PdfListField (const PdfField &rhs) | |
| void | InsertItem (const PdfString &rsValue, const PdfString &rsDisplayName=PdfString::StringNull) |
| void | RemoveItem (int nIndex) |
| const PdfString | GetItem (int nIndex) const |
| const PdfString | GetItemDisplayText (int nIndex) const |
| size_t | GetItemCount () const |
| void | SetSelectedItem (int nIndex) |
| int | GetSelectedItem () const |
| bool | IsComboBox () const |
| void | SetSpellcheckingEnabled (bool bSpellcheck) |
| bool | IsSpellcheckingEnabled () const |
| void | SetSorted (bool bSorted) |
| bool | IsSorted () const |
| void | SetMultiSelect (bool bMulti) |
| bool | IsMultiSelect () const |
Protected Member Functions | |
| PdfListField (EPdfField eField, PdfAnnotation *pWidget, PdfAcroForm *pParent) | |
| PdfListField (EPdfField eField, PdfPage *pPage, const PdfRect &rRect, PdfAcroForm *pParent) | |
| PdfListField (EPdfField eField, PdfPage *pPage, const PdfRect &rRect, PdfDocument *pDoc) | |
| PdfListField (EPdfField eField, PdfPage *pPage, const PdfRect &rRect, PdfStreamedDocument *pDoc) | |
| PoDoFo::PdfListField::PdfListField | ( | EPdfField | eField, | |
| PdfAnnotation * | pWidget, | |||
| PdfAcroForm * | pParent | |||
| ) | [protected] |
Create a new PdfTextField
| PoDoFo::PdfListField::PdfListField | ( | EPdfField | eField, | |
| PdfPage * | pPage, | |||
| const PdfRect & | rRect, | |||
| PdfAcroForm * | pParent | |||
| ) | [protected] |
Create a new PdfTextField
| PoDoFo::PdfListField::PdfListField | ( | EPdfField | eField, | |
| PdfPage * | pPage, | |||
| const PdfRect & | rRect, | |||
| PdfDocument * | pDoc | |||
| ) | [protected] |
Create a new PdfTextField
| PoDoFo::PdfListField::PdfListField | ( | EPdfField | eField, | |
| PdfPage * | pPage, | |||
| const PdfRect & | rRect, | |||
| PdfStreamedDocument * | pDoc | |||
| ) | [protected] |
Create a new PdfTextField
| PoDoFo::PdfListField::PdfListField | ( | const PdfField & | rhs | ) |
Create a PdfListField from a PdfField
| rhs | a PdfField that is a list field |
| const PdfString PoDoFo::PdfListField::GetItem | ( | int | nIndex | ) | const |
| nIndex | index of the item |
| size_t PoDoFo::PdfListField::GetItemCount | ( | ) | const |
| const PdfString PoDoFo::PdfListField::GetItemDisplayText | ( | int | nIndex | ) | const |
| int PoDoFo::PdfListField::GetSelectedItem | ( | ) | const |
Sets the currently selected item
| void PoDoFo::PdfListField::InsertItem | ( | const PdfString & | rsValue, | |
| const PdfString & | rsDisplayName = PdfString::StringNull | |||
| ) |
Inserts a new item into the list
| rsValue | the value of the item | |
| rsDisplayName | an optional display string that is displayed in the viewer instead of the value |
| bool PoDoFo::PdfListField::IsComboBox | ( | ) | const [inline] |
| bool PoDoFo::PdfListField::IsMultiSelect | ( | ) | const [inline] |
| bool PoDoFo::PdfListField::IsSorted | ( | ) | const [inline] |
| bool PoDoFo::PdfListField::IsSpellcheckingEnabled | ( | ) | const [inline] |
| void PoDoFo::PdfListField::RemoveItem | ( | int | nIndex | ) |
Removes an item for the list
| nIndex | index of the item to remove |
| void PoDoFo::PdfListField::SetMultiSelect | ( | bool | bMulti | ) | [inline] |
Sets wether multiple items can be selected by the user in the list.
| bMulti | if true multiselect will be enabled |
| void PoDoFo::PdfListField::SetSelectedItem | ( | int | nIndex | ) |
Sets the currently selected item
| nIndex | index of the currently selected item |
| void PoDoFo::PdfListField::SetSorted | ( | bool | bSorted | ) | [inline] |
Enable or disable sorting of items. The sorting does not happen in acrobat reader but whenever adding items using PoDoFo or another PDF editing application.
| bSorted | enable/disable sorting |
| void PoDoFo::PdfListField::SetSpellcheckingEnabled | ( | bool | bSpellcheck | ) | [inline] |
Enable/disable spellchecking for this combobox
| bSpellcheck | if true spellchecking will be enabled |
1.4.7