NOTE
The term component is also used in the computer industry to describe any software
entity, including objects such as
buttons and menu items, that can be connected with other programmatic entities
with the aid of visual programming
tools. Taligent's approach to this broader category of component software is
described in Chapter 5.
From a user's point of view, a component created with the Compound Document framework is similar in many respects to an OpenDoc "part" or OLE "server." It contains native data and possibly one or more other embeddable components. Users can create embeddable components explicitly by using stationery pads or tools and implicitly during paste or drag-and-drop operations. They can also embed any embeddable component within any other embeddable component.
A document is any freestanding embeddable component that isn't embedded within
any other component; therefore, any
embeddable component has the potential to be a document. Any degree of complexity
is possible within a single
document. A user can create a custom document that contains multiple components
and multiple data types, such as text,
graphics, video, and
Figure 20 shows how a typical compound document might be organized. For an
example of a real compound document, see
page 50.
Enclosure occurs when one component contains another, which still exists as a
completely separate object. A component
represented as an enclosable icon is enclosed by another object. Typically, an
object encloses other objects to
organize them, as in a file folder.
Embedding occurs when one component is incorporated into another, but its unique
behavior, such as editing and
presentation, remains available via menus or global tools. A component
represented as a frame is embedded within
another component.
In some cases one component can completely absorb another:
Absorption takes place when one object is completely incorporated into another,
so that it's no longer identifiable as
a separate object. For example, absorption occurs when a text string object is
dropped into a paragraph.
A component might change its representation when it's moved or copied from one
location to another. The component's
container determines what form the component should take. For example, dragging a
frame from a document into a folder
changes the frame to an icon.
Taligent's embeddable components also give developers several significant
advantages over other development
approaches:
sound, without having to open separate applications to create and edit each type.
A document that contains more than
one embedded component is a
compound document. 
Enclosure and embedding
There are two ways a component can maintain its separate identity and still be
contained by another component: 


The four questions
To create an embeddable component, a programmer writes an ensemble based on the
Compound Document framework. Most of
the new code required answers four basic questions:
Chapter 7 explains the terms model, selections, commands, and presentation in
detail. Just as other
dynamic systems based on very simple rules can achieve complex behaviors, the
four questions and the object designs
that answer them facilitate the modeling of complex business functions and other
real-world processes. Advantages of embeddable components
Embeddable components based on the Compound Document framework inherit a
comprehensive set of features with little or
no additional programming:
See "Interoperability Services" on page 284 for more information about Taligent's
support for OpenDoc, OLE, and other
industry standards.
data types.
the embedding and manipulation of OpenDoc parts and OLE servers,
thus ensuring interoperability with operating systems that support
those standards.
[Contents]
[Previous]
[Next]