DisposeActionState
TheDisposeActionStatemethod should dispose of the undo action data.
void DisposeActionState (in ODActionData actionState, in ODDoneState doneState);
actionState- A byte array whose buffer contains the data previously logged by this part to allow it to undo the action.
doneState- The state of the undo action. The value of
doneStatemust be one of the following:kODDone,kODReDone, orkODUndone.DISCUSSION
The valueskODDoneandkODReDonefor thedoneStateparameter indicate that the action was on the document's undo stack. The valuekODUndoneindicates that the action was on the document's redo stack.OpenDoc calls this method when it disposes of the undo action data. After this method executes successfully, memory for the action state is reclaimed and is no longer usable for undo operations, effectively committing the action.
OVERRIDING
When you subclassODPart, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrDoesNotUndo- The specified action is not an undo action of this part.
SEE ALSO
TheODActionDatatype (page 898).
TheODDoneStatetype (page 899).
TheODPart::ReadActionStatemethod (page 536).
TheODPart::WriteActionStatemethod (page 552).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Removing an Embedded Frame" on page 121 in OpenDoc Programmer's Guide.
"Implementing Undo" on page 258 in OpenDoc Programmer's Guide.
"Undo and Embedded Frames" on page 262 in OpenDoc Programmer's Guide.
"Handling Cut Data" on page 334 in OpenDoc Programmer's Guide.
"Undo for Clipboard" on page 354 in OpenDoc Programmer's Guide.