Adobe InDesign CS4 (6.0) Object Model JS: Change

InDesign CS4

Class

Change

 A tracked change made to a story.

QuickLinks

accept, getElements, reject, toSource, toSpecifier

Hierarchy

Cell | Story
Change
Character | InsertionPoint | Line | Paragraph | Text | TextColumn | TextStyleRange | TextVariableInstance | Word

Properties

PropertyTypeAccessDescription
changeTypeChangeTypes:
ChangeTypes.INSERTED_TEXT
ChangeTypes.DELETED_TEXT
ChangeTypes.MOVED_TEXT
readonlyThe type of tracked change. Note: Valid only when track changes is true.
charactersCharacters readonlyA collection of characters.
dateDate readonlyThe date on which the tracked change was made. Note: Valid only when track changes is true.
indexnumber readonlyThe index of the Change within its containing object.
insertionPointsInsertionPoints readonlyA collection of insertion points.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
linesLines readonlyA collection of lines.
paragraphsParagraphs readonlyA collection of paragraphs.
parentCell
Story
readonlyThe parent of the Change (a Story or Cell).
propertiesObject r/wA property that allows setting of several properties at the same time.
storyOffsetInsertionPoint readonlyThe location of the first insertion point in the object (relative to the beginning of the story).
textColumnsTextColumns readonlyA collection of text columns.
textStyleRangesTextStyleRanges readonlyA collection of text style ranges.
textVariableInstancesTextVariableInstances readonlyA collection of text variable instances.
textsTexts readonlyA collection of text objects.
userNamestring readonlyThe user who made the change. Note: Valid only when track changes is true.
wordsWords readonlyA collection of words.

Methods

Instances

void accept ()
Accepts the tracked change. Note: Valid only when track changes is true.

Array of Change getElements ()
Resolves the object specifier, creating an array of object references.

void reject ()
Rejects the tracked change. Note: Valid only when track changes is true.

string toSource ()
Generates a string which, if executed, will return the Change.

string toSpecifier ()
Retrieves the object specifier.

Element of

TextVariableInstance.parent

Used in:

array of Change Changes.itemByRange (from: any, to: any)

Change Changes.nextItem (obj: Change)

Change Changes.previousItem (obj: Change)

TextVariableInstance TextVariableInstances.add ([to: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

Return

Array of Change Change.getElements ()

Change Changes.[] (index: number)

Change Changes.anyItem ()

Array of Change Changes.everyItem ()

Change Changes.firstItem ()

Change Changes.item (index: any)

Change Changes.itemByName (name: string)

Array of Change Changes.itemByRange (from: any, to: any)

Change Changes.lastItem ()

Change Changes.middleItem ()

Change Changes.nextItem (obj: Change)

Change Changes.previousItem (obj: Change)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index