Adobe InDesign CS5.5 (7.5) Object Model JS: GalleyPreference

InDesign CS5.5

Class

GalleyPreference

 Galley preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application | Document
Preference
GalleyPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
antiAliasTypeAntiAliasType:
AntiAliasType.GRAY_ANTIALIASING
AntiAliasType.COLOR_ANTIALIASING
AntiAliasType.THICKER_ANTIALIASING
r/wThe type of text anti-aliasing to use in story and galley views.
backgroundColor3 Reals (0 - 255)
InCopyUIColors
r/wThe background color, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as an InCopy UI color. . Can return: Array of 3 Reals (0 - 255) or InCopyUIColors enumerator.
blinkCursorbool r/wIf true, the cursor blinks.
cursorTypeCursorTypes:
CursorTypes.STANDARD_CURSOR
CursorTypes.THICK_CURSOR
CursorTypes.BARBELL_CURSOR
CursorTypes.BLOCK_CURSOR
r/wThe cursor type for galley and story views.
displayFontstring r/wFont family name to use for text display.
displayFontSizeMeasurement Unit (Number or String) r/wSize to use for text display.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
infoColumnWidthMeasurement Unit (Number or String) r/wInfo column width.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
lineSpacingValueLineSpacingType:
LineSpacingType.SINGLE_SPACE
LineSpacingType.ONE_AND_HALF_SPACE
LineSpacingType.DOUBLE_SPACE
LineSpacingType.TRIPLE_SPACE
r/wAmount of spacing between lines.
parentApplication
Document
readonlyThe parent of the GalleyPreference (a Application or Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
showDepthRulerbool r/wIf true, displays the depth ruler.
showInfoColumnbool r/wIf true, display the Info column.
showParagraphBreakMarksbool r/wIf true, show paragraph break marks.
showParagraphStyleNamesbool r/wIf true, show paragraph style names.
smoothTextbool r/wIf true, galley text is anti-aliased.
textColor3 Reals (0 - 255)
InCopyUIColors
r/wThe text color, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as an InCopy UI color. Can return: Array of 3 Reals (0 - 255) or InCopyUIColors enumerator.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.galleyPreferences

Document.galleyPreferences

Return

Array of GalleyPreference GalleyPreference.getElements ()

Jongware, 28-Apr-2012 v3.0.3iContents :: Index