GEOS SDK TechDocs
|
|
1.1 The Document Control Objects
|
1.3 Document Control Models
A simple user operation will usually involve all three types of objects. For example, suppose the user selects the Open trigger from the File menu. The following actions will be taken:
MSG_GEN_DOCUMENT_CONTROL_INITIATE_OPEN_DOC
to the GenDocumentControl object. The GenDocumentControl object responds by displaying a file selector.
MSG_GEN_DOCUMENT_GROUP_OPEN_DOC
to the GenDocumentGroup, passing the name and path of the file to open.
GenDocumentClass
or of a programmer-specified class. The GenDocumentGroup object sends a
MSG_GEN_DOCUMENT_OPEN
to the document object, passing the file and path name to be opened.
Most of these steps are transparent to the application programmer. Typically, an application will intercept
MSG_GEN_DOCUMENT_INITIALIZE_DOCUMENT_FILE
; the programmer needs only to write this handler, not all the code needed for the above steps.
GEOS SDK TechDocs
|
|
1.1 The Document Control Objects
|
1.3 Document Control Models