ADocumentBase
Handles standard document-related commands.
Superclass: ACommandHandler, ANavDialogClient, ANavEventHandler
The command-related functionality is isolated into a separate
class to simplify the ADocument template.
This class handles the Save, Save As, and Revert commands,
including the Navigation Services sheets necessary to carry
out those commands.
The default implementation of FileTypes gets its data from
the Info.plist file, similar to how Cocoa's NSDocument works.
The returned array includes all document types whose role is
"Editor", and whose type does not match the value returned by
DocumentTypeName, since that will be the item that appears
at the top of the menu.
The mTypeIndex member is an index into the array returned by
FileTypes, indicating the user's file type choice when
saving the file. A value of -1 indicates the "main" file type,
which is excluded by the default implementation of FileTypes.
Subclasses should at least override ReadFile() and WriteFile().
(Last Updated October 06, 2006)
HTML documentation generated by HeaderDoc