A SERVICE OF

logo

have several. Each different view type can be used to let the user interact
with the data in a different way.
The following figure illustrates the interaction between the document
manager a document class, and the document’ associated views:, s
Figure 9.1
Doc/View model
diagram
File document object
Edit view List view
Property view Dump view
Persistent storage
Document
manager
File menu
This figure shows a file document object from the TFileDocument class,
along with some associated views. The TFileDocument class is shown in the
DOCVIEWX example. This example is in the directory \BC4\EXAMPLES\
OWL\OWLAPI\DOCVIEW where BC4 is the directory in which you,
installed Borland C++ 4.0.
198
OWL P ogrammer’ Guider s