
468
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
The
Constants.FF_INTERACTIVE
flag takes precedence over other flags. If you specify
Constants.FF_INTERACTIVE
| Constants.FF_DONT_DELETE_HIDDEN_TEXT
and the selection contains hidden text, then FrameMaker allows you
to select whether to delete the hidden text or to retain it.
The method returns
FE_Success
if it succeeds. On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
Clear(flags)
Parameters
ClearAllChangebars
Description
Clears all change bars from a specified document.
Note:
The method performs the same function as clicking the Clear All Change Bars box in the Change Bars dialog box.
The method returns
FE_Success
if it succeeds. On failure, the method returns one of the following values to
FA_errno
:
Constants.FF_CUT_TBL_CELLS (0x0002)
Remove cleared table cells.
Constants.FF_VISIBLE_ONLY (0x0010)
Clear only the visible portion of the selection.
Constants.FF_DONT_DELETE_HIDDEN_TEXT (0x0004)
Do not delete hidden text.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadSelectionForOperation (-59)
Current selection is invalid for this operation.
Constants.FE_Canceled (-44)
The User or parameters canceled the operation.
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation.
Parameter name
Data Type
Optional
Description
flags
int
No
Bit field that specifies how to clear the text and how to handle
interactive alerts. For default settings, specify 0.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation.
Constants.FE_SystemError (-42)
A system error occurred.
Flags
Meaning