
551
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
WrapElement
Description
Inserts a structural element around the selected text and structural elements in a document.
If the flow that contains the selection is unstructured and the selection does not include the entire flow contents,
WrapElement()
wraps the flow contents into a
NoName
element before wrapping the selection into the specified
element definition.
The method does not return anything on success.
On failure, the method returns one of the following values to
FA_errno
:
Returns
Void
Syntax
WrapElement()
GetAttributeDefs
Description
Gets the attribute definitions of an element definition.
On success, the method returns an
AttributeDefs
structure containing the attribute definitions.
The
attrType
field of the returned
AttributeDefs
structure identifies the attribute value’s type. It can specify one of
the following constants:
Error
Reason
Constants.FE_WrongProduct (-60)
Current product interface is not Structured FrameMaker.
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadElementDefId(-28)
Specified element definition is invalid.
Constants.FE_BadSelectionForOperation (-59)
Current text selection is invalid for this operation.
Constant
Value
Constant.FV_AT_STRING (0)
Any arbitrary text string.
Constant.FV_AT_STRINGS (1)
One or more arbitrary text strings.
Constants.FV_AT_CHOICES (2)
A value from a list of choices.
Constants.FV_AT_INTEGER (3)
A signed whole number (optionally restricted to a range of values).
Constants.FV_AT_INTEGERS (4)
One or more integers (optionally restricted to a range of values).
Constants.FV_AT_REAL (5)
A real number (optionally restricted to a range of values).
Constants.FV_AT_REALS (6)
One or more real numbers (optionally restricted to a range of values).
Constants.FV_AT_UNIQUE_ID (7)
A string that uniquely identifies the element.
Constants.FV_AT_UNIQUE_IDREF (8)
A reference to a UniqueID attribute.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...