home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2_4.1 < prev    next >
Text File  |  2001-01-27  |  5KB  |  108 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.4.1">
  5. <title>
  6. 2.4.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.4.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.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.5"><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="HDR4610DBD"><H3> 2.4.1   Binding</H3></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31.    As with most objects, only the data part is stored when the document is 
  32.    saved.  The data is stored in the OpenDoc storage system Bento.  A part 
  33.    handler on the other hand is loaded into the memory only once, although it 
  34.    may be used by several active objects of the same kind.  Therefore, there 
  35.    must be a binding process to associate the data part with the right part 
  36.    handler at the documents loading time as shown in<a href="#FIG4610D44"> Figure 22</a>. 
  37. <p>
  38. <a name="FIG4610D44"><hr>
  39.  </a>
  40. <p>
  41. <p>
  42.                                    <a href="picture-22?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P22.GIF" alt="PICTURE 22"></a>           
  43. <p>
  44. <p>
  45. <hr>
  46.  
  47.    Figure 22. OpenDoc Binding 
  48. <p>
  49.    To define those associations, OpenDoc provides a notebook in the OpenDoc 
  50.    folder called Part Editor Preferences, where part editor associations can 
  51.    be defined for different component kinds (see <a href="#FIG4610D20">Figure 23</a>).  It can also 
  52.    define preferred editors for component categories (see<a href="#FIG4610D21"> Figure 24</a>). 
  53. <p>
  54.    OpenDoc provides a six step sequence for that binding process.  OpenDoc 
  55.    uses a special service class ODBinding to make the right decision. 
  56.    OpenDoc maintains a table that maps data types to the part handler. This 
  57.    is defined with another service class, ODNameSpace.  (For class 
  58.    relationship, see<a href="2.7.5#FIG4610D13">Figure 47 in topic 2.7.5</a>.)  The binding is done in a 
  59.    recursive way, starting with the topmost container part of the document 
  60.    hierarchy, which then invokes the binding for its embedded parts. 
  61. <p>
  62. <a name="FIG4610D20"><hr>
  63.  </a>
  64. <p>
  65. <p>
  66.                                    <a href="picture-23?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P23.GIF" alt="PICTURE 23"></a>           
  67. <p>
  68. <p>
  69. <hr>
  70.  
  71.    Figure 23. Part Editor Preferences for Kinds 
  72. <p>
  73.    This binding is done from OpenDoc in the following order: 
  74. <p>
  75.    1.  ODBinding starts to look for a part handler by checking whether there 
  76.        is a preferred editor for this kind specified, as shown in <a href="#FIG4610D20">Figure 23</a>. 
  77.    2.  If no preferred editor was specified, it looks for the part editor 
  78.        with which the part was created. 
  79.    3.  If such an editor is not available, it looks for any installed part 
  80.        handler supporting this part kind. 
  81.    4.  Then it looks for another part handler of the same category which can 
  82.        work with the data type the part has stored its data with. 
  83.    5.  Then it looks whether there are translations supported by a special 
  84.        object ODTranslation to another data type understood by a part handler 
  85.        available. 
  86.    6.  If nothing is available, it binds the part to an editor as a last 
  87.        resort.  This editor will show the part as a black box, so a user can 
  88.        work with the rest of the document. 
  89. <p>
  90. <a name="FIG4610D21"><hr>
  91.  </a>
  92. <p>
  93. <p>
  94.                                    <a href="picture-24?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P24.GIF" alt="PICTURE 24"></a>           
  95. <p>
  96. <p>
  97. <hr>
  98.  
  99.    Figure 24. Part Editor Preferences for Categories 
  100. </pre>
  101. </pre>
  102. <hr>
  103. <br><a href="2.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  104. <a href="2.5"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  105. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  106. <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>
  107. </BODY></HTML>
  108.