Support of InDesigns® multi state objects (panel Interactive:States).

Version :
17.12.2024, 12:52 Uhr

Support of InDesigns® multi state objects (panel Interactive:States). To create a new states object please use itemlist::create_multistate.

static int count_states(ItemRef mso)

Number of states inside the object.

Name Type Default Description
Return int   Number of states inside the object?

0 : No states object or error
mso ItemRef - Valid reference to frame or object.

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

static int get_states(ItemRef mso, ItemList resultList)

DEPRECATED! Please use the function interactive::get_frames instead.

Name Type Default Description
Return int   0 or ErrorCode

Please use the function interactive::get_frames instead.

static int get_active_state(ItemRef mso)

Index iof th active state of a states object.

Name Type Default Description
Return int   Active state (0-based)

-1 : Error
mso ItemRef - Valid states object.

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

static int set_active_state(ItemRef mso, int objIndex)

Index iof th active state of a states object.

Name Type Default Description
Return int   0 or ErrorCode
mso ItemRef - Valid states object.
oldpos int - 0-based index of the new active state

-1 : last state

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

static int add_state(ItemRef mso, ItemRef frameRef)

DEPRECATED! Please use the function interactive::add_frame instead.

Name Type Default Description
Return int   0 or ErrorCode

Please use the function interactive::add_frame instead.

static int move_state(
  ItemRef mso,
  int oldpos,
  int newpos)

Move a state of a states object.

Name Type Default Description
Return int   0 or ErrorCode
mso ItemRef - Valid states object.
oldpos int - Old position of state (0-based)

-1 : Last state
newpos int - New position of state (0-based)

-1 : Last state

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

static int remove_state(
  ItemRef mso,
  int objIndex = 0,
  ItemList outItems = 0)

DEPRECATED! Please use the function interactive::resolve instead.

Name Type Default Description
Return int   0 or ErrorCode

Please use the function interactive::resolve instead.

static char* get_state_name(
  ItemRef mso,
  int objIndex,
  char* outName)

Get a state name.

Name Type Default Description
Return String or char*   (Depends on parameter outName) Name, same as parameter outName
mso ItemRef - Valid states object.
objIndex int - 0-based index of the state

-1 : Laste state
outName String or char* - Allocated memory for the result

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

static int set_state_name(
  ItemRef mso,
  int objIndex,
  char* newName)

Set a state name.

Name Type Default Description
Return int   0 or ErrorCode
mso ItemRef - Valid states object.
objIndex int - 0-based index of the state

-1 : Laste state
newName String or char* - New name

v3.3 R2660, 26. Sept. 2011 and CS5
itemlist::create_multistate

Author
Paul Seidel
Version
17.12.2024, 12:52 Uhr
Since
v3.3 R2660, 26. Sept. 2011 and CS5
See Also
itemlist::create_multistate

Alphabetic index HTML hierarchy of classes or Java