
470
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
Copy
Description
Copies the current selection to the FrameMaker Clipboard.
If the value of the flags parameter is 0, the method suppresses any interactive alerts or warnings that arise.
You can also OR the following values into flags:
The
Constants.FF_INTERACTIVE (0x0001)
flag takes precedence over other flags. If you specify
Constants.FF_INTERACTIVE (0x0001)| Constants.FF_VISIBLE_ONLY (0x0010)
and the selection is not visible,
then FrameMaker allows the user to choose whether to copy the selection or not.
The method returns
FE_Success
if it succeeds. On failure, the method returns one of the following values to
FA_errno
:
Parameter name
Data Type
Optional
Description
newerDoc
Doc
No
The newer version of the document to be compared.
flags
int
No
Bit flags that specify how to generate the summary and
composite documents. Specify 0 for the default flags.
insertCondTag
string
No
The condition tag to apply to insertions shown in the composite
document. For no insert condition tag, specify
null
.
deleteCondTag
string
No
The condition tag to apply to deletions shown in the composite
document. For no delete condition tag, specify
null
.
replaceText
string
No
Text to appear in place of the deleted text. For no replacement
text, specify
null
.
compareThreshold
int
No
Threshold expresses the percentage of words that can change
before paragraphs are considered not equal. If two paragraphs
are equal, word differences between them are shown within a
paragraph in the composite document.
If this value is set to zero, the compare function uses the default
value of 75.If not zero, the function uses the setting in the
FrameMaker configuration files.
Flags
Meaning
Constants.FF_INTERACTIVE (0x0001)
Prompt user with dialog or alert boxes that arise.
Constants.FF_STRIP_HYPERTEXT (0x0080)
Do not copy any hypertext markers in the selection.
Constants.FF_VISIBLE_ONLY (0x0010)
Copy only the visible portion of the selection.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation
Constants.FE_BadSelectionForOperation (-59)
The Selection doesn’t support the requested operation.
Constants.FE_Canceled (-44)
The User or parameters canceled the operation.
Constants.FE_BadOperation (-27)
The parameters specified an invalid operation.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...