LayoutWindow

A layout window.

Methods:

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

Objects:

AnchorPoint, Boolean, Layer, MasterSpread, NothingEnum, Number, Object, Page, ProofingType, ScreenModeOptions, Spread, String, ViewDisplaySettings

Hierarchy:

Superclass: Window

Class: LayoutWindow

Property Listing

Property

Type

Access

Description

activeLayer

Layer

String

read/write

The active layer. Can also accept: String.

activePage

Page

read/write

The front-most page.

activeSpread

Spread

MasterSpread

read/write

The front-most spread. Can return: Spread or MasterSpread.

bounds

Array of Number

read/write

The bounds of the window (specified in pixels) in the form [top, left, bottom, right].

index

Number

readonly

The index of the LayoutWindow within its containing object.

name

String

readonly

The name of the LayoutWindow.

overprintPreview

Boolean

read/write

If true, display a simulation of overprinting.

parent

Application

Document

readonly

The parent of the LayoutWindow (a Document or Application).

preserveColorNumbers

Boolean

read/write

If 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.

proofingProfile

String

read/write

The profile used for proofing colors.

proofingType

ProofingType

ProofingType.CUSTOM

ProofingType.DOCUMENT_CMYK

ProofingType.PROOF_OFF

ProofingType.WORKING_CMYK

read/write

The method of proofing colors.

properties

Object

read/write

A property that allows setting of several properties at the same time.

screenMode

ScreenModeOptions

ScreenModeOptions.PREVIEW_OFF

ScreenModeOptions.PREVIEW_TO_BLEED

ScreenModeOptions.PREVIEW_TO_PAGE

ScreenModeOptions.PREVIEW_TO_SLUG

read/write

The screen mode for layout view.

selection

Array of Object

NothingEnum.NOTHING

read/write

The selected object(s). Can also accept: Object or NothingEnum enumerator.

simulateInkBlack

Boolean

read/write

If 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.

simulatePaperWhite

Boolean

read/write

If true, simulates the dingy white of real paper, according to the proofing profile. Note: Valid only when proofing type is custom.

transformReferencePoint

AnchorPoint

AnchorPoint.BOTTOM_CENTER_ANCHOR

AnchorPoint.BOTTOM_LEFT_ANCHOR

AnchorPoint.BOTTOM_RIGHT_ANCHOR

AnchorPoint.CENTER_ANCHOR

AnchorPoint.LEFT_CENTER_ANCHOR

AnchorPoint.RIGHT_CENTER_ANCHOR

AnchorPoint.TOP_CENTER_ANCHOR

AnchorPoint.TOP_LEFT_ANCHOR

AnchorPoint.TOP_RIGHT_ANCHOR

Array of 2 Units.

read/write

The default anchor point around which to transform objects. Can return: AnchorPoint enumerator or Array of 2 Units.

viewDisplaySetting

ViewDisplaySettings

ViewDisplaySettings.HIGH_QUALITY

ViewDisplaySettings.OPTIMIZED

ViewDisplaySettings.TYPICAL

read/write

The display performance preferences override for the view.

zoomPercentage

Number (range 5 - 4000)

read/write

The size (as a percentage) to which to enlarge or reduce the view of the document. (Range: 5 to 4000)

Method Listing

undefined bringToFront ()

Brings the LayoutWindow to the front.

undefined close ()

Closes the LayoutWindow.

LayoutWindow getElements ()

Resolves the object specifier, creating an array of object references.

undefined maximize ()

Maximizes the window.

undefined minimize ()

Minimizes the window.

undefined restore ()

Restores the window.

undefined select (selectableItems:Array of Varies Objects NothingEnum Object SelectAll, [existingSelection:SelectionOptions=SelectionOptions])

Selects the specified object(s).

Parameter

Type

Description

selectableItems

Array of Objects

NothingEnum.NOTHING

Object

SelectAll

SelectAll.ALL

The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.

existingSelection

SelectionOptions

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.

undefined zoom (given:ZoomOptions)

Magnifies or reduces the window to the specified display size.

Parameter

Type

Description

given

ZoomOptions

ZoomOptions.ACTUAL_SIZE

ZoomOptions.FIT_PAGE

ZoomOptions.FIT_SPREAD

ZoomOptions.SHOW_PASTEBOARD

ZoomOptions.ZOOM_IN

ZoomOptions.ZOOM_OUT

The display size.

Object of

Application.activeWindow

Return

LayoutWindow.getElements()

LayoutWindows.anyItem()

LayoutWindows.everyItem()

LayoutWindows.nextItem()

LayoutWindows.previousItem()

LayoutWindows.item()

LayoutWindows.itemByName()

LayoutWindows.itemByRange()

LayoutWindows.firstItem()

LayoutWindows.lastItem()

LayoutWindows.middleItem()