Adobe InDesign CS2 (4.0) Object Model JS: XMLExportMaps

InDesign CS2

Class

XMLExportMaps

 A collection of XML export maps.

QuickLinks

add, anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

XMLExportMap add (mappedStyle: any, markupTag: any[, withProperties: Object])
Creates a new mapping of a paragraph style or character style to an XML tag.

ParameterTypeDescription
mappedStyleCharacterStyle
ParagraphStyle
String
The style (paragraph, character, object, table, or cell) to map to the specified XML tag. Can accept: ParagraphStyle, CharacterStyle or String.
markupTagString
XMLTag
The XML tag. Can accept: XMLTag or String.
withPropertiesObjectInitial values for properties of the new XMLExportMap (Optional)

XMLExportMap anyItem ()
Returns any XMLExportMap in the collection.

number count ()
Displays the number of elements in the XMLExportMap.

Array of XMLExportMap everyItem ()
Returns every XMLExportMap in the collection.

XMLExportMap firstItem ()
Returns the first XMLExportMap in the collection.

XMLExportMap item (index: any)
Returns the XMLExportMap with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

XMLExportMap itemByName (name: string)
Returns the XMLExportMap with the specified name.

ParameterTypeDescription
namestringThe name.

Array of XMLExportMap itemByRange (from: any, to: any)
Returns the XMLExportMaps within the specified range.

ParameterTypeDescription
fromLong
String
XMLExportMap
The XMLExportMap, index, or name at the beginning of the range. Can accept: XMLExportMap, Long or String.
toLong
String
XMLExportMap
The XMLExportMap, index, or name at the end of the range. Can accept: XMLExportMap, Long or String.

XMLExportMap lastItem ()
Returns the last XMLExportMap in the collection.

XMLExportMap middleItem ()
Returns the middle XMLExportMap in the collection.

XMLExportMap nextItem (obj: XMLExportMap)
Returns the XMLExportMap whose index follows the specified XMLExportMap in the collection.

ParameterTypeDescription
objXMLExportMapThe XMLExportMap whose index comes before the desired XMLExportMap.

XMLExportMap previousItem (obj: XMLExportMap)
Returns the XMLExportMap with the index previous to the specified index.

ParameterTypeDescription
objXMLExportMapThe index of the XMLExportMap that follows the desired XMLExportMap.

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

Element of

Application.xmlExportMaps

Document.xmlExportMaps

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