Typefi settings on the page item level
Go to Property Listing | Method Listing
addEventListener, applyAudioFrameData, applyImageFrameData, applyPoster, applyVideoFrameData, clearElement, clearFrame, createAnchor, createAssociation, getElements, getFieldValue, getNextFreeImageFrame, isAnchor, isElement, isFrame, isMaster, makeAudioFrame, makeContentFrame, makeElement, makeEndnoteFrame, makeImageFrame, makeIndexFrame, makeMainStoryFrame, makeTOCFrame, makeVideoFrame, removeAssociation, removeEventListener, resetAllToDefaults, setField, toSource, toSpecifier
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
Element anchor |
||
readonly |
Anchor type |
||
readonly |
Typefi element |
||
readonly |
Element type |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
Typdefi frame |
||
readonly |
The Typefi frame type |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The parent of the TypefiPageItemSettings (a PageItem, HtmlItem, FormField, SignatureField, TextBox, RadioButton, ListBox, ComboBox, CheckBox, MultiStateObject, Button, MediaItem, Sound, Movie, EPSText, SplineItem, Polygon, GraphicLine, Rectangle, Oval, Graphic, ImportedPage, PICT, WMF, PDF, EPS, Image, Group, TextFrame, EndnoteTextFrame or TextPath). |
||
readonly |
A collection of preferences objects. |
||
read/write |
A property that allows setting of several properties at the same time. |
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined applyAudioFrameData ()
Apply the associated Typefi audio frame data on the page item
undefined applyImageFrameData ()
Apply the associated Typefi image frame data on the page item
undefined applyPoster ()
Apply poster to the associated audio or video on the page item
undefined applyVideoFrameData ()
Apply the associated Typefi video frame data on the page item
undefined clearElement ()
Reset the Typefi element information, i.e. the page item is no longer a Typefi Element
undefined clearFrame ()
Reset the Tyefi frame type information to 'none'
TypefiElementAnchor createAnchor (storyOffset:InsertionPoint)
Create a Typefi element anchor at the given position
Parameter |
Type |
Description |
---|---|---|
storyOffset |
The location within the story, specified as an insertion point |
undefined createAssociation (object:Varies TypefiElementAnchor TypefiElementPageItem PageItem, [anchorPoint:AnchorPoint=AnchorPoint])
Create an association between this Typefi page item and another Typefi page item
Parameter |
Type |
Description |
---|---|---|
object |
The Typefi object. Can accept: TypefiElementAnchor, TypefiElementPageItem or PageItem. |
|
anchorPoint |
The optional anchor point to use in the element for the display of the line to the element anchor (Optional) (default: AnchorPoint.CENTER_ANCHOR) |
TypefiPageItemSettings getElements ()
Resolves the object specifier, creating an array of object references.
String getFieldValue (name:String)
Get the value of a field of TypefiPageItemSettings
Parameter |
Type |
Description |
---|---|---|
name |
The name of the field |
PageItem getNextFreeImageFrame (storyOffset:InsertionPoint)
Get the next free Typefi Image Frame object searching from the the given position
Parameter |
Type |
Description |
---|---|---|
storyOffset |
The location within the story to start the search from, specified as an insertion point |
Boolean isAnchor ()
Test whether the object is a Typefi Element Anchor
Boolean isElement ()
Test whether the object is a Typefi Element page item
Boolean isFrame ()
Test whether the object is a Typefi Frame page item
Boolean isMaster ()
Test whether the object is a Typefi Master Element page item
undefined makeAudioFrame (mediaFittingOption:TypefiMediaFitOptions, playOnPageTurn:Boolean, stopOnPageTurn:Boolean, loop:Boolean, posterType:TypefiPosterTypes)
Make the page item a Typefi element audio frame
Parameter |
Type |
Description |
---|---|---|
mediaFittingOption |
Media fitting option. Default is 'None' (Optional) |
|
playOnPageTurn |
Enable play on page turn for Typefi audio. Default is 'false' (Optional) |
|
stopOnPageTurn |
Enable stop on page turn for Typefi audio. Default is 'false' (Optional) |
|
loop |
Enable looping for Typefi audio. Default is 'false' (Optional) |
|
posterType |
Typefi poster type. Default is 'None' (Optional) |
undefined makeContentFrame (style:ParagraphStyle)
Make the page item a Typefi element content frame
Parameter |
Type |
Description |
---|---|---|
style |
The optional first paragraph style (Optional) |
undefined makeElement (type:Varies String TypefiElementDefinition TypefiElementVariantDefinition TypefiElementInstance, elementInstance:Varies String TypefiElementInstance)
Make the page item a Typefi element
Parameter |
Type |
Description |
---|---|---|
type |
An element definition reference, an element variant object, or an element instance object. Can accept: String, TypefiElementDefinition, TypefiElementVariantDefinition or TypefiElementInstance. |
|
elementInstance |
Optionally specify an element instance. Can accept: String or TypefiElementInstance. (Optional) |
undefined makeEndnoteFrame ()
Make the page item a Typefi Endnote frame
undefined makeImageFrame (fittingOption:TypefiFitOptions, anchorPoint:AnchorPoint, spineRelative:Boolean, [expansionLimit:Varies Real(>=0) TypefiLimitType=Varies Real(>=0) TypefiLimitType], [reductionLimit:Varies Real(>=0) TypefiLimitType=Varies Real(>=0) TypefiLimitType])
Make the page item a Typefi (element) image frame
Parameter |
Type |
Description |
---|---|---|
fittingOption |
Fitting option |
|
anchorPoint |
The anchor point to expand an image from |
|
spineRelative |
Treat the anchor point spine relative. Default is 'false' (Optional) |
|
expansionLimit |
Real(>=0) |
Optional expansion limit. Default is NO_LIMIT. Can accept: Real (>= 0) or TypefiLimitType enumerator. (Optional) (default: TypefiLimitType.NO_LIMIT) |
reductionLimit |
Real(>=0) |
Optional reduction limit. Default is NO_LIMIT. Can accept: Real (>= 0) or TypefiLimitType enumerator. (Optional) (default: TypefiLimitType.NO_LIMIT) |
undefined makeIndexFrame ()
Make the page item a Typefi index frame
undefined makeMainStoryFrame (style:ParagraphStyle)
Make the page item a Typefi main story frame
Parameter |
Type |
Description |
---|---|---|
style |
The optional first paragraph style (Optional) |
undefined makeTOCFrame (style:TOCStyle)
Make the page item a Typefi TOC frame
Parameter |
Type |
Description |
---|---|---|
style |
The TOC style. If not provided, the InDesign default TOC style will be used (Optional) |
undefined makeVideoFrame (mediaFittingOption:TypefiMediaFitOptions, playOnPageTurn:Boolean, loop:Boolean, posterType:TypefiPosterTypes, controllerSkin:Boolean, showController:Boolean)
Make the page item a Typefi element video frame
Parameter |
Type |
Description |
---|---|---|
mediaFittingOption |
Media fitting option (Optional) |
|
playOnPageTurn |
Enable play on page turn for Typefi video. Default is 'false' (Optional) |
|
loop |
Enable looping for Typefi video. Default is 'false' (Optional) |
|
posterType |
Typefi poster type. Default is 'None' (Optional) |
|
controllerSkin |
Enable controller skin for Typefi video. Default is 'false' and it sets controller skin as 'None'. If 'true', it setscontroller skin as 'SkinOverAll' (Optional) |
|
showController |
Show controller on rollover for Typefi video. Default is 'false'. Only valid when 'controllerSkin' is true. (Optional) |
undefined removeAssociation (object:Varies PageItem TypefiElementAnchor TypefiElementPageItem)
Remove the association between this Typefi page item object and another Typefi page item
Parameter |
Type |
Description |
---|---|---|
object |
A page item, a Typefi anchor page item or a Typefi element page item representation. Can accept: PageItem, TypefiElementAnchor or TypefiElementPageItem. (Optional) |
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined resetAllToDefaults ()
Reset the Typefi specific data of TypefiPageItemSettings to the default values
undefined setField (name:String, [value:Varies String LongInteger=Varies String LongInteger])
Set the value of a field of TypefiPageItemSettings
Parameter |
Type |
Description |
---|---|---|
name |
The name of the field |
|
value |
LongInteger |
The value of the field as string or as integer. The empty string will recompute the value of a counter field! If not specified, the field value will be reset. Can accept: String or Long Integer. (Optional) (default: ) |
String toSource ()
Generates a string which, if executed, will return the TypefiPageItemSettings.
String toSpecifier ()
Retrieves the object specifier.
Event.parent
EventListener.parent
MutationEvent.parent
Preference.parent
TypefiElementPageItem.parent
TypefiFrameItem.parent
FormField.typefiSettings
Button.typefiSettings
MultiStateObject.typefiSettings
CheckBox.typefiSettings
ComboBox.typefiSettings
ListBox.typefiSettings
RadioButton.typefiSettings
TextBox.typefiSettings
SignatureField.typefiSettings
Movie.typefiSettings
Sound.typefiSettings
PageItem.typefiSettings
Oval.typefiSettings
Rectangle.typefiSettings
GraphicLine.typefiSettings
Polygon.typefiSettings
Group.typefiSettings
Image.typefiSettings
EPS.typefiSettings
PDF.typefiSettings
WMF.typefiSettings
PICT.typefiSettings
Graphic.typefiSettings
SplineItem.typefiSettings
EPSText.typefiSettings
ImportedPage.typefiSettings
MediaItem.typefiSettings
HtmlItem.typefiSettings
TextFrame.typefiSettings
EndnoteTextFrame.typefiSettings
TextPath.typefiSettings