Embedding a model

Models that support embedding document components can inherit from TGUIEmbedderModel, but at a minimum the models must accept the TEmbedderModel type as a data type. Models can hold onto embedded document components directly.

If Figure 64 is revisited and redrawn to show document components embedded, you can see that embedded components are stored within the model of the embedding component.


The Compound Document Framework can only manage instances of model classes that are in the embedding structure. When these instances are not in the document structure, they cannot be locked independently (of their contain-
ing model).

Models are only saved in a document component store if they belong to the embedding hierarchy.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker