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 >
Wrap
Text File
|
2001-01-27
|
5KB
|
108 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.4.1">
<title>
2.4.1 "OS/2 WARP and OpenDoc"
via IBM BookManager BookServer
</title>
</head>
<body background="/bookmgr/backdrop.gif">
<banner><br>
<a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
<a href="CONTENTS#2.4.1"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
<img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
<a href="2.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.5"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
<a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
<img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
<img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
<img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
<img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
<img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
<a href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
<a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
<a href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
<hr>
<a name="HDR4610DBD"><H3> 2.4.1 Binding</H3></a>
</banner>
<pre width="80">
<p>
As with most objects, only the data part is stored when the document is
saved. The data is stored in the OpenDoc storage system Bento. A part
handler on the other hand is loaded into the memory only once, although it
may be used by several active objects of the same kind. Therefore, there
must be a binding process to associate the data part with the right part
handler at the documents loading time as shown in<a href="#FIG4610D44"> Figure 22</a>.
<p>
<a name="FIG4610D44"><hr>
</a>
<p>
<p>
<a href="picture-22?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P22.GIF" alt="PICTURE 22"></a>
<p>
<p>
<hr>
Figure 22. OpenDoc Binding
<p>
To define those associations, OpenDoc provides a notebook in the OpenDoc
folder called Part Editor Preferences, where part editor associations can
be defined for different component kinds (see <a href="#FIG4610D20">Figure 23</a>). It can also
define preferred editors for component categories (see<a href="#FIG4610D21"> Figure 24</a>).
<p>
OpenDoc provides a six step sequence for that binding process. OpenDoc
uses a special service class ODBinding to make the right decision.
OpenDoc maintains a table that maps data types to the part handler. This
is defined with another service class, ODNameSpace. (For class
relationship, see<a href="2.7.5#FIG4610D13">Figure 47 in topic 2.7.5</a>.) The binding is done in a
recursive way, starting with the topmost container part of the document
hierarchy, which then invokes the binding for its embedded parts.
<p>
<a name="FIG4610D20"><hr>
</a>
<p>
<p>
<a href="picture-23?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P23.GIF" alt="PICTURE 23"></a>
<p>
<p>
<hr>
Figure 23. Part Editor Preferences for Kinds
<p>
This binding is done from OpenDoc in the following order:
<p>
1. ODBinding starts to look for a part handler by checking whether there
is a preferred editor for this kind specified, as shown in <a href="#FIG4610D20">Figure 23</a>.
2. If no preferred editor was specified, it looks for the part editor
with which the part was created.
3. If such an editor is not available, it looks for any installed part
handler supporting this part kind.
4. Then it looks for another part handler of the same category which can
work with the data type the part has stored its data with.
5. Then it looks whether there are translations supported by a special
object ODTranslation to another data type understood by a part handler
available.
6. If nothing is available, it binds the part to an editor as a last
resort. This editor will show the part as a black box, so a user can
work with the rest of the document.
<p>
<a name="FIG4610D21"><hr>
</a>
<p>
<p>
<a href="picture-24?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P24.GIF" alt="PICTURE 24"></a>
<p>
<p>
<hr>
Figure 24. Part Editor Preferences for Categories
</pre>
</pre>
<hr>
<br><a href="2.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.5"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
<cite> ⌐ Copyright IBM Corp. 1996</cite>
<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>
</BODY></HTML>