Problem: 1392926
Title: (Documents) SaveDocument should reset change count.
Received: Oct 1 1996 4:19PM
I believe that the change count management should be moved up into TDocument. This would mean having SaveDocument reset the change count upon a successful save (not a save a copy). TCloseDocCommand::DoIt would then need to call SaveDocument. And similar modifications would need to be made to TDocument::ReadDocument, ::ReadStationary, and ::RevertDocument.
This change would centralize the management of the change count and allow us to remove direct calls to SetChangeCount from TCloseDocCommand::DoIt and TCloseFileDocCommand::DoIt.
This problem was recognized while helping another developer solve a problem where he wanted to be able to cancel a document closing if the document failed to validate.