User Guide

446 Chapter 19: Enablers
dreamweaver.canRedo()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform a Redo operation in the current context.
Arguments
None.
Returns
A Boolean value that indicates whether any operations can be undone.
dreamweaver.canRevertDocument()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform a Revert (to the last-saved version) operation.
Arguments
documentObject
The documentObject argument is the object at the root of a documents DOM tree (the value
that the
dreamweaver.getDocumentDOM() function returns).
Returns
A Boolean value that indicates whether the document is in an unsaved state and a saved version of
the document exists on a local drive.
dreamweaver.canSaveAll()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform a Save All operation.
Arguments
None.
Returns
A Boolean value that indicates whether one or more unsaved documents are open.
000_DW_API_Print.book Page 446 Wednesday, August 20, 2003 9:14 AM