Adobe InDesign CS5 Server (7.0) Object Model JS: XMLImportMaps

InDesign Server CS5

Class

XMLImportMaps

 A collection of XML import maps.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

XMLImportMap [] (index: number)
Returns the XMLImportMap with the specified index.

ParameterTypeDescription
indexnumberThe index.

XMLImportMap add (markupTag: varies, mappedStyle: varies[, withProperties: Object])
Create a new mapping

ParameterTypeDescription
markupTagString
XMLTag
The tag to map. Can accept: XMLTag or String.
mappedStyleCellStyle
CharacterStyle
ParagraphStyle
String
TableStyle
the mapped style. Can accept: ParagraphStyle, CharacterStyle, TableStyle, CellStyle or String.
withPropertiesObjectInitial values for properties of the new XMLImportMap (Optional)

XMLImportMap anyItem ()
Returns any XMLImportMap in the collection.

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

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

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

XMLImportMap item (index: varies)
Returns the XMLImportMap with the specified index or name.

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

Array of XMLImportMap itemByRange (from: varies, to: varies)
Returns the XMLImportMaps within the specified range.

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

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

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

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

ParameterTypeDescription
objXMLImportMapThe XMLImportMap whose index comes before the desired XMLImportMap.

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

ParameterTypeDescription
objXMLImportMapThe index of the XMLImportMap that follows the desired XMLImportMap.

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

Element of

Application.xmlImportMaps

Document.xmlImportMaps

Jongware, 23-Mar-2011 v3.0.3dContents :: Index