Adobe InDesign CS6 (8.0) Object Model JS: ParaStyleMapping

InDesign CS6

Class

ParaStyleMapping

 A para style mapping.

QuickLinks

addEventListener, getElements, remove, removeEventListener, toSource, toSpecifier

Hierarchy

Application | Document | Story | XmlStory
ParaStyleMapping
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
destinationStyleNamestring r/wThe destination style name property.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
indexnumber readonlyThe index of the ParaStyleMapping within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
mappingRuleTypeMapType:
MapType.STYLE_MAPPING_RULE
MapType.GROUP_MAPPING_RULE
MapType.STYLE_TO_GROUP_MAPPING_RULE
MapType.GROUP_TO_STYLE_MAPPING_RULE
r/wThe type of the mapping rule.
parentApplication
Document
Story
XmlStory
readonlyThe parent of the ParaStyleMapping (a Application, Document, Story or XmlStory).
propertiesObject r/wA property that allows setting of several properties at the same time.
sourceStyleNamestring r/wThe source style name property.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

void remove ()
deletes a style mapping.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

ParaStyleMapping ParaStyleMappings.nextItem (obj: ParaStyleMapping)

ParaStyleMapping ParaStyleMappings.previousItem (obj: ParaStyleMapping)

Return

Array of ParaStyleMapping ParaStyleMapping.getElements ()

ParaStyleMapping ParaStyleMappings.[] (index: number)

ParaStyleMapping ParaStyleMappings.add (sourceStyleName: string, destinationStyleName: string, mappingRuleType: MapType[, withProperties: Object])

ParaStyleMapping ParaStyleMappings.anyItem ()

Array of ParaStyleMapping ParaStyleMappings.everyItem ()

ParaStyleMapping ParaStyleMappings.firstItem ()

ParaStyleMapping ParaStyleMappings.item (index: varies)

Array of ParaStyleMapping ParaStyleMappings.itemByRange (from: varies, to: varies)

ParaStyleMapping ParaStyleMappings.lastItem ()

ParaStyleMapping ParaStyleMappings.middleItem ()

ParaStyleMapping ParaStyleMappings.nextItem (obj: ParaStyleMapping)

ParaStyleMapping ParaStyleMappings.previousItem (obj: ParaStyleMapping)

Jongware, 28-Apr-2012 v3.0.3hContents :: Index