home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
SG244883.ZIP
/
2_6.3
< prev
next >
Wrap
Text File
|
2001-01-27
|
5KB
|
79 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.6.3">
<title>
2.6.3 "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.6.3"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
<img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
<a href="2.6.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.6.4"><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="HDR4610DEO"><H3> 2.6.3 Event Objects</H3></a>
</banner>
<pre width="80">
<p>
The OSA Event Registry: Standard Suites includes definitions for OSA event
object classes, which are simply names for objects that can be acted upon
by each kind of OSA event. Applications use these definitions and OSA
Event Manager routines to create complex descriptions of almost any
discrete item in another application or its documents. For example, an
application could use OSA Event Manager routines and standard object class
definitions to construct a Get Data event that requests for example:
<p>
<samp>the</samp> <samp>most</samp> <samp>recent</samp> <samp>invoice</samp> <samp>to</samp> <samp>John</samp> <samp>Miller</samp> <samp>in</samp> <samp>the</samp> <samp>Invoices</samp>
<samp>database</samp> <samp>on</samp> <samp>the</samp> <samp>Archives</samp> <samp>server</samp>
<p>
and send the event to the appropriate application across the network.
<p>
An OSA event object is any item supported by an application, such as a
word, paragraph, shape, or document, that can be described in an OSA
event. In the example in <a href="2.6.2#HDR4610DS2">" Standard Events" in topic 2.6.2</a>, the specified
document, chapter, paragraph, string, and word are nested OSA event
objects. Nearly any item that a user can differentiate and manipulate on
an OSA-compliant system can be described as an OSA event object of a
specified object class nested within other OSA event objects. When
handling an OSA event that includes such a description, an application
must locate the specified OSA event object and perform the requested
action on it.
<p>
These functions are called object accessor functions according to the
event objects they are supporting. An OSA-aware application must provide
for each defined object class for example, paragraph and word, an object
accessor function. This function is called by the OpenDoc ODNameResolver
object to resolve the specified object. The target object is resolved in
a recursive process from the outside most general object for example,
chapter to the inside words to be changed. The document itself has no
idea about the words to change, but it can resolve chapters 5 through 7;
the chapters can resolve the paragraphs; the paragraphs can resolve the
words which in turn know their color attribute.
<p>
Most of the standard OSA events, defined in the OSA Event Registry:
Standard Suites, require applications to recognize specific OSA event
object classes. Support for the standard OSA events, including OSA event
object classes, allows your application to respond to requests for
services or information from any other application or process.
</pre>
</pre>
<hr>
<br><a href="2.6.2"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.6.4"><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>