Adobe InDesign CS2 (4.0) Object Model JS: LayoutWindow

InDesign CS2

Class

LayoutWindow

 A layout window. Base Class: Window

QuickLinks

bringToFront, close, getElements, maximize, minimize, restore, select, toSource, toSpecifier, zoom

Hierarchy

Application | Document
Window
LayoutWindow

Properties

PropertyTypeAccessDescription
activeLayerLayer r/wThe active layer
activePagePage r/wThe front-most page.
activeSpreadMasterSpreadSpread r/wThe front-most spread. Can return: Spread or MasterSpread.
bounds Array of number r/wThe bounds of the window (specified in pixels) in the form [top, left, bottom, right].
indexnumber readonlyThe index of the LayoutWindow within its containing object.
namestring readonlyThe name of the LayoutWindow.
overprintPreviewbool r/wIf true, display a simulation of overprinting.
parentApplication
Document
readonlyThe parent of the LayoutWindow (a Document or Application).
preserveColorNumbersbool r/wIf true, leaves color values unchanged for CMYK objects without embedded profiles and native objects such as line art or type. Note: Converts images whose profiles differ from the profile of the simulated device. Valid only when proofing type is custom.
proofingProfilestring r/wThe profile used for proofing colors.
proofingTypeProofingType:
ProofingType.PROOF_OFF
ProofingType.DOCUMENT_CMYK
ProofingType.WORKING_CMYK
ProofingType.CUSTOM
r/wThe method of proofing colors.
propertiesObject r/wA property that allows setting of several properties at the same time.
selection Array of Objects
NothingEnum
Object
r/wThe selection. Can return: Object, Array of Objects or NothingEnum enumerator.
simulateInkBlackbool r/wIf true, simulates the dark gray produced by many printers in place of solid black, according to the proofing profile. Note: Valid only when proofing type is custom.
simulatePaperWhitebool r/wIf true, simulates the dingy white of real paper, according to the proofing profile. Note: Valid only when proofing type is custom.
transformReferencePointAnchorPoint
Array of 2 Units
r/wThe default anchor point around which to transform objects. Can return: AnchorPoint enumerator or Array of 2 Units.
viewDisplaySettingViewDisplaySettings:
ViewDisplaySettings.HIGH_QUALITY
ViewDisplaySettings.TYPICAL
ViewDisplaySettings.OPTIMIZED
r/wThe display performance preferences override for the view.
zoomPercentagenumber (range: 5 - 4000) r/wThe size (as a percentage) to which to enlarge or reduce the view of the document. (Range: 5 to 4000)

Methods

Instances

void bringToFront ()
Brings the LayoutWindow to the front.

void close ()
Closes the LayoutWindow.

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

void maximize ()
Maximizes the window.

void minimize ()
Minimizes the window.

void restore ()
Restores the window.

void select (selectableItems: any[, existingSelection: SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the specified object(s).

ParameterTypeDescription
selectableItems Array of Objects
NothingEnum
Object
SelectAll
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE_WITH
The selection status of the LayoutWindow in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH)

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

string toSpecifier ()
Retrieves the object specifier.

void zoom (given: ZoomOptions)
Magnifies or reduces the window to the specified display size.

ParameterTypeDescription
givenZoomOptions:
ZoomOptions.ZOOM_IN
ZoomOptions.ZOOM_OUT
ZoomOptions.FIT_SPREAD
ZoomOptions.FIT_PAGE
ZoomOptions.SHOW_PASTEBOARD
ZoomOptions.ACTUAL_SIZE
The display size.

Element of

Application.activeWindow

Used in:

array of LayoutWindow LayoutWindows.itemByRange (from: any, to: any)

LayoutWindow LayoutWindows.nextItem (obj: LayoutWindow)

LayoutWindow LayoutWindows.previousItem (obj: LayoutWindow)

Return

LayoutWindow LayoutWindows.anyItem ()

Array of LayoutWindow LayoutWindows.everyItem ()

LayoutWindow LayoutWindows.firstItem ()

LayoutWindow LayoutWindows.item (index: any)

LayoutWindow LayoutWindows.itemByName (name: string)

Array of LayoutWindow LayoutWindows.itemByRange (from: any, to: any)

LayoutWindow LayoutWindows.lastItem ()

LayoutWindow LayoutWindows.middleItem ()

LayoutWindow LayoutWindows.nextItem (obj: LayoutWindow)

LayoutWindow LayoutWindows.previousItem (obj: LayoutWindow)

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