WriteActionState
TheWriteActionStatemethod should write the undo action data into the specified storage-unit view object.
void WriteActionState ( in ODActionData actionState, in ODStorageUnitView storageUnitView);
actionState- A byte array whose buffer contains the data previously logged by this part to allow it to redo the action.
storageUnitView- A reference to a storage-unit view object where the action data is to be written to storage.
DISCUSSION
OpenDoc calls this method when it writes the undo action data to persistent storage. Your part'sWriteActionStatemethod will not be called in OpenDoc 1.0 due to the lack of a persistent undo model; it is provided here for compatibility with future versions of OpenDoc.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).
TheODPart::DisposeActionStatemethod (page 499).
TheODPart::ReadActionStatemethod (page 536).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Implementing Undo" on page 258 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help