
549
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Syntax
ElementDefIsText()
NewElement
Description
Creates a structural element
(FO_Element)
in a FrameMaker document.
NewElement()
inserts the new element at the specified location in text, using the specified element definition.
For object (noncontainer) elements,
NewElement()
inserts the appropriate type of object for the element. If there is a
matching format rule,
NewElement()
uses it to format the object. Otherwise, the method uses one of the following
default formats:
The method returns the created element, on success.
On failure, the method returns one of the following values to
FA_errno
:
Returns
Element
Syntax
NewElement(textLoc)
Parameters
Object Type
Object Inserted
Format Used By Default
Constants.
FV_FO_XREF (3)
Cross Reference
Undefined XRef
Constants.
FV_FO_EQN (7)
Equation
Medium
Constants.
FV_FO_MARKER (4)
Marker
Type 11
Constants.FV_FO_TBL (8)
Table with the format specified by the table
format.
Format A
if it exists; otherwise, a table with a heading
row, 8 body rows, a footing row, and 5 columns.
Constants.FV_FO_SYS_VAR (2)
Variable
Filename (Long)
Constants.FV_FO_GRAPHIC (6)
A centered 1.0-inch by 1.0-inch anchored
frame below the current position; cropped
is off, and floating is on.
-
Error
Reason
Constants.FE_BadNew (-23)
Object cannot be created.
Constants.FE_BadObjId (-3)
Invalid object.
Constants.FE_NotTextObject(-41)
Object specified for the text location is not a paragraph (FO_Pgf) or a text line
(FO_TextLine).
Constants.FE_OffsetNotFound (-21)
Offset specified for the text location could not be found in the specified paragraph or text
line.
Parameter name
Data Type
Optional
Description
textLoc
TextLoc
No
The text location at which to insert the new element.