Every document consists of one or more parts, a single part at its top level, called the root part, and other parts that are embedded in the root part. Documents always reside on the desktop or in a folder. (Parts embedded inside other parts aren't considered to be documents.) Users assemble a document by embedding parts as needed, with drag and drop or with the Paste and Insert commands, as we'll see later. Parts can be dragged between documents or onto the desktop (where they become documents); documents can be dragged from the desktop into other documents (where they become embedded parts).
The root part of a document determines the document's overall characteristics such as its basic editing metaphor (for instance, text, drawing, or spreadsheet), the size of its work area (its page), its printing options, and whether saving is manual or automatic. Parts in an OpenDoc document are in a hierarchical arrangement to each other. The logical structure of a document underlying its graphical presentation, consists of the embedding relationships among its parts and their frames. The embedding relationship can be displayed in the tree view of the document as shown in Figure 10.
Figure 10. OpenDoc Part HierarchyIn this example a text component embedded in a PageLayout component has embedded two other components, a component called TestContainer and a graphic component called 2DGraphicsPart.