A document added to a book.
Go to Property Listing | Method Listing
preflight, move, remove, replace, synchronize, insertLabel, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Book, BookContentStatus, Boolean, Date, EventListeners, Events, File, Number, Object, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
date |
readonly |
The date and time the BookContent was created. |
|
|
documentPageRange |
readonly |
The page range of the book content object within the book. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
filePath |
readonly |
The full path to the file. |
|
|
fullName |
readonly |
The full path to the BookContent, including the name of the BookContent. |
|
|
id |
readonly |
The unique ID of the BookContent. |
|
|
index |
readonly |
The index of the BookContent within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
name |
readonly |
The name of the BookContent. |
|
|
parent |
readonly |
The parent of the BookContent (a Book). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
size |
readonly |
The size of the BookContent file. |
|
|
status |
BookContentStatus.NORMAL BookContentStatus.MISSING_DOCUMENT BookContentStatus.DOCUMENT_OUT_OF_DATE BookContentStatus.DOCUMENT_IN_USE BookContentStatus.DOCUMENT_IS_OPEN |
readonly |
The status of the book content object file. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
BookContent getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
BookContent move ([to:LocationOptions=LocationOptions], reference:BookContent)
Moves the book content object.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN |
The location relative to the reference object or within the book. (Optional) (default: LocationOptions.AT_END) |
|
reference |
The reference object. Note: Required when the to parameter specifies before or after. (Optional) |
undefined preflight (to:File, [autoOpen:Boolean=Boolean])
Preflight a book content object and optionally save the resulting report.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The preflight report to save to. (Optional) |
|
|
autoOpen |
If true, automatically open the report after creation. (Optional) (default: false) |
undefined remove ()
Deletes the BookContent.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
BookContent replace (using:File)
Replaces a book content object with a new file. Note: If the new file replaces the current style source document, the new file becomes the style source document.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The full path name of the new book content object. |
undefined synchronize ()
Matches the formatting of the book content object to the style source document.
String toSource ()
Generates a string which, if executed, will return the BookContent.
String toSpecifier ()
Retrieves the object specifier.