TypefiPageSettings

Typefi settings on the page level

Methods:

addEventListener, applyPrefixAndMarker, createSection, getElements, mainStoryFrame, mainStoryFrames, removeEventListener, toSource, toSpecifier

Hierarchy:

Superclass: Preference

Class: TypefiPageSettings

Property Listing

Property

Type

Access

Description

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Page

readonly

The parent of the TypefiPageSettings (a Page).

properties

Object

read/write

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

sectionInstance

TypefiSectionInstance

read/write

Section instance

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

undefined applyPrefixAndMarker (type:Varies TypefiSectionDefinition String)

Apply sectionPrefix and marker strings to section

Parameter

Type

Description

type

TypefiSectionDefinition

String

The name of a Typefi section definition or a Typefi section definition object. Can accept: TypefiSectionDefinition or String.

Section createSection (type:Varies TypefiSectionDefinition String, isStartSection:Boolean, [externalId:String=String], startPageNumber:Number, parentSection:Varies TypefiSectionInstance Section)

Make the current page the first page of a new Typefi section instance and set the first page number of the section if provided

Parameter

Type

Description

type

TypefiSectionDefinition

String

The name of a Typefi section definition or a Typefi section definition object. Can accept: TypefiSectionDefinition or String.

isStartSection

Boolean

Optionally specify whether the section is the start section of the document (Optional)

externalId

String

An optional string that acts as id. If not specified, a GUID is generated (Optional)

(default: )

startPageNumber

Number (range 1 - 999999)

The optional first page number of the section. Usually only needed for the first section of a publication (Optional)

parentSection

TypefiSectionInstance

Section

Optionally specify the parent section if you want to use the section as sub-section. Can accept: TypefiSectionInstance or Section. (Optional)

TypefiPageSettings getElements ()

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

TextFrame mainStoryFrame ()

Get the main story text frame of the page

TextFrame mainStoryFrames ()

Get the chain of main story text frames of the page

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

Generates a string which, if executed, will return the TypefiPageSettings.

String toSpecifier ()

Retrieves the object specifier.

Object of

Event.parent

EventListener.parent

MutationEvent.parent

Page.typefiSettings

Return

TypefiPageSettings.getElements()