Adobe InDesign CS4 (6.0) Object Model JS: DTD

InDesign CS4

Class

DTD

 The document DTD. Base Class: XMLItem

QuickLinks

getElements, remove, select, toSource, toSpecifier

Hierarchy

Document
XMLItem
DTD

Properties

PropertyTypeAccessDescription
contentsSpecialCharactersString readonlyThe contents of the text. Can return: String or SpecialCharacters enumerator.
idnumber readonlyThe unique ID of the DTD.
indexnumber readonlyThe index of the DTD within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentDocument readonlyThe parent of the DTD (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
publicIdstring readonlyThe public ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.
rootTagXMLTag r/wThe tag of the root object.
systemIdstring readonlyThe system ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.

Methods

Instances

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

void remove ()
Deletes the DTD.

void select ([existingSelection: SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the object.

ParameterTypeDescription
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE_WITH
The selection status of the DTD in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH)

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of DTD DTDs.itemByRange (from: any, to: any)

DTD DTDs.nextItem (obj: DTD)

DTD DTDs.previousItem (obj: DTD)

Return

Array of DTD DTD.getElements ()

DTD DTDs.[] (index: number)

DTD DTDs.anyItem ()

Array of DTD DTDs.everyItem ()

DTD DTDs.firstItem ()

DTD DTDs.item (index: any)

DTD DTDs.itemByID (id: number)

DTD DTDs.itemByName (name: string)

Array of DTD DTDs.itemByRange (from: any, to: any)

DTD DTDs.lastItem ()

DTD DTDs.middleItem ()

DTD DTDs.nextItem (obj: DTD)

DTD DTDs.previousItem (obj: DTD)

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