
466
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
ObjectValid
Description
Identifies whether a
CondFmt
object is valid or not. Returns
True
if the CondFmt object is valid, else returns
False
.
See “
ObjectValid
” on page 414 under the AFrame class for more information.
Returns
int
Syntax
ObjectValid()
Doc
AddText
Description
Inserts text into a paragraph or a text line.
The text you specify for text must use the FrameMaker character set. To add special characters, you must specify octal
(
\
) or hexadecimal (
\x
) sequences. The following table lists some of these sequences.
The method returns the location of the text that was added, on success. On failure, it sets one of the following error
numbers to
FA_errno
:
Returns
TextLoc
Special Character
Hexadecimal Representation
Octal Representation
>
\x3e
\76
“ (straight double quotation mark)
\x22
\42
“ (left double quotation mark)
\xd2
\322
” (right double quotation mark)
\xd3
323
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid Object.
Constants.FE_NotTextObject (-41)
The object that textLoc specifies is not a paragraph (FO_Pgf) or a text line (FO_TextLine).
Constants.FE_OffsetNotFound (-21)
The offset specified for the text location could not be found in the specified text object.
Constants.FE_ReadOnly (-6)
The document is read only.
Constants.FE_BadSelectionForOperation (-
59)
The location that textLoc specifies is invalid. For example, it is inside a variable or outside the
highest level element in a structured FrameMaker document.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...