home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2_6.2 < prev    next >
Text File  |  2001-01-27  |  6KB  |  128 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.6.2">
  5. <title>
  6. 2.6.2 "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.6.2"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="2.6.1"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.6.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="HDR4610DS2"><H3> 2.6.2   Standard Events</H3></a>
  28. </banner>
  29. <pre width="80">
  30.    The current edition of OSA Event Registry: Standard Suites defines the 
  31.    standard suites of OSA events, which are groups of related events that are 
  32.    usually implemented together.  The OSA Event Registry maintains the OSA 
  33.    Event Registry: Standard Suites and other information about the ongoing 
  34.    development of OSA event suites. 
  35. <p>
  36.    The standard suites include the following: 
  37. <p>
  38.    1.  The required suite consists of four OSA events. These events are Open 
  39.        Application, Open Documents, Print Documents, and Quit Application. 
  40.        An application or component supporting OSA must support the OSA events 
  41.        as described in the required suite. 
  42. <p>
  43.    2.  The core suite consists of the basic OSA events, including Get Data, 
  44.        Set Data, Move, Delete, and Save, that nearly all applications use to 
  45.        communicate. 
  46. <p>
  47.    3.  A functional-area suite consists of a group of OSA events that support 
  48.        a related functional area.  Functional-area suites include the text 
  49.        suite and the database suite.  You can decide which functional-area 
  50.        suites to support according to which features your application 
  51.        provides.  For example, most word-processing applications should 
  52.        support the text suite, and most database applications should support 
  53.        the database suite. 
  54. <p>
  55. <p>
  56.    These functional-area suites provide greater portability of OpenDoc 
  57.    documents by ensuring that other part handlers compliant to the text suite 
  58.    can be used on another machine for the same document, still providing the 
  59.    same set of functions, defined by the text event suite.  CI Labs is 
  60.    maintaining the event suites. 
  61. <p>
  62.    A part handler has to register the suites it is supporting at run-time 
  63.    with OpenDoc thus exposing its interface to the outside world.  The suites 
  64.    beyond the required suite are called <I>extensions</I>.  These extensions can be 
  65.    modified or extended by the part supporting a suite.  A client component 
  66.    or program can ask a component it wants to collaborate with, whether it is 
  67.    supporting a certain extension or not.  If it is supported, the client can 
  68.    request access to to the interface and invoke functions provided by the 
  69.    interface.  (This is quite similar to what OLE offers with its IUnknown 
  70.    interface, which can be asked whether an interface is supported or not.) 
  71. <p>
  72.    An OSA Event consists of the following four parts: 
  73. <p>
  74.    1.  Events (for example, Open, Close, Get, Set, etc.) 
  75.    2.  Event objects (for example, document, word, paragraph, etc.) 
  76.    3.  Descriptors (for example, last, first, third ) 
  77.    4.  Parameters (for example, bold, blue) 
  78. <p>
  79.    <B>Script</B> <B>sample</B> 
  80. <p>
  81.    <I>Put</I> <I>the</I> <I>color</I> <I>attribute</I> <I>to</I> <I>blue</I> <I>for</I> <I>all</I> <I>words</I> <I>containing</I> <I>the</I> <I>string</I> <I>"IBM"</I> 
  82.    <I>in</I> <I>chapter</I> <I>5</I> <I>through</I> <I>7</I> <I>of</I> <I>document</I> <I>"Foo"</I> . 
  83. <p>
  84.    <B>Event</B>          Put 
  85.    <B>Event</B> <B>objects</B>  Color attribute, word, string, paragraph, chapter, document 
  86.    <B>Descriptors</B>    All, 5 through 7, containing the string IBM 
  87.    <B>Parameter</B>      Blue 
  88. <p>
  89.    The scripting component maps the script commands to OSA events and sends 
  90.    it to the Event Manager who figures out who the addressed application for 
  91.    this event is.  As shown in <a href="#FIG4610D34">Figure 34</a>, the Event Manager prepares a reply 
  92.    object to give the results back to the scripting component, which can be 
  93.    used as a parameter for the next event. 
  94. <p>
  95. <a name="FIG4610D34"><hr>
  96.  </a>
  97. <p>
  98. <p>
  99.                                    <a href="picture-34?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P34.GIF" alt="PICTURE 34"></a>           
  100. <p>
  101. <p>
  102. <hr>
  103.  
  104.    Figure 34. OpenDoc Description 
  105. <p>
  106.    As shown in <a href="#FIG4610D33">Figure 35</a>, the application addressed by the event must have an 
  107.    event handler able to handle the request. 
  108. <p>
  109. <p>
  110. <a name="FIG4610D33"><hr>
  111.  </a>
  112. <p>
  113. <p>
  114.                                    <a href="picture-35?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P35.GIF" alt="PICTURE 35"></a>           
  115. <p>
  116. <p>
  117. <hr>
  118.  
  119.    Figure 35. Interapplication Communication 
  120. </pre>
  121. </pre>
  122. <hr>
  123. <br><a href="2.6.1"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  124. <a href="2.6.3"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  125. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  126. <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>
  127. </BODY></HTML>
  128.