List of frame lists.

Version :
16.10.2024, 11:40 Uhr

List of frame lists.

static ItemListList alloc()

Create a new empty list. The list may be again deleted using release.

Name Type Default Description
Return ItemListList   pointer to a new empty list

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

clear
release

static void clear(ItemListList pl)

Clear all entries of a ItemListList. The entries itself aer not deleted.

Name Type Default Description
pl ItemListList - pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)
Parameter delete_items removed 30.06.2010

priint:comet InDesign® Plug-Ins, comet_pdf

release
itemlistlist::clear

static void release(ItemListList pl)

Delete a list from the active store.

Name Type Default Description
pl ItemListList - pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)
Parameter delete_items removed 30.06.2010

priint:comet InDesign® Plug-Ins, comet_pdf

release
itemlistlist::clear

static int length(ItemListList pl)

Current length of the list

Name Type Default Description
Return int   Number of list elements
pl ItemListList - pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static ItemList get(ItemListList pl, int index)

Get the list element

Name Type Default Description
Return ItemList   found object. In case of error the call returns 0.
pl ItemListList - Pointer to a valid ItemListList
index int - 0-based list index

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static int get_pos(ItemListList pl, ItemList p)

Define the index which has an object in the list.

Name Type Default Description
Return int   0-based list position of the object. If the object is not found, the call returns -1.
pl ItemListList - Pointer to a valid ItemListList
p ItemList - Pointer to a valid product

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static int append(ItemListList pl, ItemList p)

Insert an object to the list.

Name Type Default Description
Return int   0 or ErrorCode
pl ItemListList - pointer to a valid ItemListList
p ItemList - pointer to a valid product

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static int insert(
  ItemListList pl,
  ItemList p,
  int index,
  int allowDoubles = 1)

Insert an object in the list.

Name Type Default Description
Return int   0 or ErrorCode
pl ItemListList - pointer to a valid ItemListList
p ItemList - pointer to a valid product
ix int - Insert in front of this position. The position is 0-based. To insert an object to the list, use append or the Index -1.

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static int remove_pos(ItemListList pl, int index)

Remove an object from the list. The object at the defined list position will be removed from the list. It will not be automatically deleted upon removal from the list. To release the removed list, use itemlist::release.

Name Type Default Description
Return ItemList   The removed object
0 - no object is to be removed from the list
pl ItemListList - pointer to a valid ItemListList
ix int - 0-based list index

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static int remove(ItemListList pl, ItemList p)

Delete an object from the list. The object will be removed from the list. It will not be automatically deleted upon removal from the list. To release the removed list, use itemlist::release.

Name Type Default Description
Return ItemList   The removed object
0 - the object was not found in the list
pl ItemListList - pointer to a valid ItemListList
p ItemList - pointer to a valid product

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static ItemList first(ItemListList pl)

Get the first object of the list and define the current list pointer at the list start.

Name Type Default Description
Return ItemList   First object in the list
0 - Empty list
pl ItemListList - Pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static ItemList next(ItemListList pl)

Move the current list pointer one position onwards and get the next object of the list. The call is dependent on either first or last and some prev calls.

Name Type Default Description
Return ItemList   Next object of the list
0 - List end not reached
pl ItemListList - Pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static ItemList prev(ItemListList pl)

Move the current list pointer one position onwards and get the next object of the list. The call is dependent on either first or last and some next calls.

Name Type Default Description
Return ItemList   Next object of the list
0 - List start reached
pl ItemListList - Pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

static ItemList last(ItemListList pl)

Get the last object of the list and define the current list pointer at the list end.

Name Type Default Description
Return ItemList   Last object of the list
0 - List empty
pl ItemListList - Pointer to a valid ItemListList

Version 1.4 R320 (27. Feb. 2007)

priint:comet InDesign® Plug-Ins, comet_pdf

Author
Paul Seidel
Version
16.10.2024, 11:40 Uhr
Since
Version 1.4 R320 (27. Feb. 2007)
See Also
itemlist
itemlist::logical_groups

Alphabetic index HTML hierarchy of classes or Java