Adobe InDesign CS (3.0) Object Model JS: LayoutWindow

InDesign CS

Class

LayoutWindow

 A layout window. Base Class: Window

QuickLinks

bringToFront, close, maximize, minimize, restore, select, zoom

Hierarchy

Application | Document
Window
LayoutWindow

Properties

PropertyTypeAccessDescription
activeLayerLayer r/wThe active layer
activePagePage r/wThe front-most page.
activeSpreadSpread r/wThe active spread.
bounds Array of Measurement Unit (Number or String) r/wThe bounds of the LayoutWindow, in the format [y1, x1, y2, x2].
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.
parentApplicationDocument readonlyThe parent of the LayoutWindow (a Document or Application).
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 r/wThe current zoom.

Methods

Instances

void bringToFront ()
Brings the LayoutWindow to the front.

void close ()
Closes the LayoutWindow.

void maximize ()
Maximizes the window.

void minimize ()
Minimizes the window.

void restore ()
Restores the window.

void select (selectableItems: any[, existingSelection: SelectionOptions=SelectionOptions.REPLACE])
Select one or more objects.

ParameterTypeDescription
selectableItems Array of Objects
NothingEnum
Object
The object(s) to select. Can accept: Object, Array of Objects or NothingEnum enumerator.
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE)

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

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