home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2_3_2.1 < prev    next >
Text File  |  2001-01-27  |  7KB  |  150 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML>
  3. <HEAD>
  4. <base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.3.2.1">
  5. <title>
  6. 2.3.2.1 "OS/2 WARP and OpenDoc" 
  7.   via IBM BookManager BookServer
  8. </title>
  9. </head>
  10. <body background="/bookmgr/backdrop.gif">
  11. <banner><br>
  12. <a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
  13. <a  href="CONTENTS#2.3.2.1"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="2.3.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.3.3"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  17. <a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
  18. <img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
  19. <img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
  20. <img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
  21. <img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
  22. <img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
  23. <a  href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
  24. <a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
  25. <a  href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
  26. <hr>
  27. <a name="HDR4610DFF"><H4> 2.3.2.1   Frames and Facets</H4></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31.    The logical structure of a document, which underlies its graphical 
  32.    presentation, consists of the embedding relationships among its parts and 
  33.    their frames as shown in<a href="#FIG4610D46"> Figure 11</a>. 
  34. <p>
  35.    A frame is an area of the display screen that represents a component. 
  36.    Frames are normally rectangular, but they need not be. 
  37. <p>
  38.    Like icons, frames can do the following: 
  39. <p>
  40.    ░   Provide a handle onto parts, allowing parts to be manipulated as a 
  41.        whole 
  42. <p>
  43.    ░   Be dragged on the desktop and between windows 
  44. <p>
  45.    ░   Be the target for drops during drag operations 
  46. <p>
  47.    ░   Be opened into windows and closed back into frames 
  48. <p>
  49.    ░   Be closed into icons and reopened back into frames 
  50. <p>
  51. <p>
  52.    Unlike an icon, however, a frame allows a part's contents to be seen and 
  53.    edited. 
  54. <p>
  55.    Frames show how a document is composed of embedded parts. 
  56. <p>
  57.    Frames allow a part's content to be edited in place, without requiring the 
  58.    user to open separate windows.  In addition, there may be many frames 
  59.    showing the content of a single part. 
  60. <p>
  61.    For example, when editing a 3D drawing, the user may wish to see a top 
  62.    view, side view, face-on view, and wire-frame view.  Or, a part might 
  63.    provide a graphical and tabular view of its contents.  Or, the header on a 
  64.    page layout part might be showing the same part on each page of a 
  65.    document.  Any change the user makes in one frame is immediately reflected 
  66.    in all other visible frames on the same part.  Because different kinds of 
  67.    parts have different requirements for passing changes to all frames, 
  68.    OpenDoc provides the capability but does not specify the interface. 
  69. <p>
  70.    Frames (like icons) can be opened into windows.  Such windows are 
  71.    transitory views; that means they are not permanent representations of 
  72.    components, while frames are persistent.  When a frame is opened into a 
  73.    window, the frame remains visible in its place.  Because frames already 
  74.    show the contents of parts, one might ask why one would open a frame into 
  75.    a window.  The answer is that some parts contain more content than can be 
  76.    displayed in their frames. For example, a spreadsheet part may be quite 
  77.    large, with only a portion of it appearing in a particular frame.  Opening 
  78.    it into a window allows the entire spreadsheet to be seen and edited and 
  79.    allows the user to adjust which portion will appear in the frame. 
  80. <p>
  81.    The preferred representation of contained parts is a property of the 
  82.    container.  Some parts, such as folders, prefer to show embedded parts as 
  83.    icons.  Others, such as text documents, prefer to show them as frames. 
  84.    When a part is copied from a Desktop folder to an OpenDoc document, the 
  85.    copied part changes its representation from an icon to a frame.  On the 
  86.    other hand, when a part is copied from an OpenDoc document to a desktop 
  87.    folder, the copied part changes its representation from a frame to an 
  88.    icon.  In either case, the contents or properties of the copied part do 
  89.    not change, but once inside a container, a part's representations may be 
  90.    specified on a part-by-part basis. 
  91. <p>
  92.    The containing part tracks all frames directly embedded within it.  An 
  93.    embedded part is logically contained in its containing part, just as its 
  94.    frame is visually embedded in the containing part's frame.  A containing 
  95.    part treats its embedded frames as regular elements of its own content. 
  96.    It can move, select, delete, or otherwise manipulate them, without regard 
  97.    to what they display and what data kind they are.  The embedded part 
  98.    itself, however, takes care of drawing its contents and event handling 
  99.    within an embedded frame. 
  100. <p>
  101.    The components must render themselves within their frame shape. 
  102. <p>
  103.    Those frames may have any shape, for example, square, uneven linear or any 
  104.    other shape.  The frames may even overlay each other.  The actual 
  105.    rendering is done by using facets.  The facets represent the actual 
  106.    drawing surface associated with a components frame.  They simplify the 
  107.    determination of the drawing location and the event dispatching.  Facets 
  108.    are only needed when a frame becomes visible. 
  109. <p>
  110. <a name="FIG4610D46"><hr>
  111.  </a>
  112. <p>
  113. <p>
  114.                                    <a href="picture-11?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P11.GIF" alt="PICTURE 11"></a>           
  115. <p>
  116. <p>
  117. <hr>
  118.  
  119.    Figure 11. OpenDoc Frames and Facets 
  120. <p>
  121. <p>
  122. <p>
  123.    If a part is dragged into another part, frame negotiations take place as 
  124.    shown in <a href="#FIG4610D29">Figure 12</a>. The embedded component in this example is indicated by 
  125.    the black solid pattern.  The required space of the dragged part may 
  126.    exceed the page limit or may be in conflict with the layout of the 
  127.    containing part, so both have to agree on a common layout.  The containing 
  128.    component has the last decision.  OpenDoc enables these negotiations by 
  129.    providing a common interface. 
  130. <p>
  131. <p>
  132. <a name="FIG4610D29"><hr>
  133.  </a>
  134. <p>
  135. <p>
  136.                                    <a href="picture-12?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P12.GIF" alt="PICTURE 12"></a>           
  137. <p>
  138. <p>
  139. <hr>
  140.  
  141.    Figure 12. OpenDoc Frame Negotiation 
  142. </pre>
  143. </pre>
  144. <hr>
  145. <br><a href="2.3.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  146. <a href="2.3.3"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  147. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  148. <HR><p><h6><a href="/cgi-bin/bookmgr/library">IBM BookManager« BookServer</a> Copyright 1989, 1999<a href="http://www.ibm.com/"> IBM</a> Corporation.  All rights reserved.</h6><p>
  149. </BODY></HTML>
  150.