home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
SG244883.ZIP
/
2_3_4.1
< prev
next >
Wrap
Text File
|
2001-01-27
|
6KB
|
114 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.3.4.1">
<title>
2.3.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.3.4.1"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
<img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
<a href="2.3.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.3.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>
<H4> 2.3.4.1 Part Kind and Part Category</H4>
</banner>
<pre width="80">
<p>
Different parts in a document hold data of a different purpose and
different format, understandable to different part editors. OpenDoc must
be able to associate a part editor only with data that the editor can
properly manipulate, in order to avoid file corruption and to have
meaningful drawing and editing. Therefore these two part properties, part
kind and part category, have to be assigned for each part.
<p>
<p>
<B>Part</B> <B>kind</B> OpenDoc uses the concept of part kind, a typing scheme similar
to file type, to determine which part editor is to be associated
with a given part in a document. A part kind refers to the data
format of a part's contents.
<p>
<B>Part</B> <B>category</B> A component category refers to a set of part kinds. A
category describes the type of data contained in a part, such as
styled text. For example, the category styled text includes the
kinds.
<p>
The list of categories is maintained by CI Labs, a consortium that
coordinates cross-platform OpenDoc development; Styled Text and Video are
two examples of part categories. If SurfWriter is a MacWrite-like text
editor, its part kind might be SurfWriter Text and would be in the styled
text category. The SurfWriter editor would most likely allow translation
from other part kinds in the same category.
<p>
<B>View</B> <B>type</B> Your part editor needs to assign the default view type for its
embedded parts, which determines how each part is initially displayed, as
an icon or in a frame.
<p>
░ The icon for a part can be not only the standard 32-by-32 and 16-by-16
pixel sizes, but also a thumbnail icon (64-by-64 pixels). The
thumbnail shows a miniature representation (a poster page) of the
part's contents to help users identify the part.
<p>
░ A part can be displayed with its contents in a bounded area called a
frame (see <a href="2.3.2.1#HDR4610DFF">"Frames and Facets" in topic 2.3.2.1</a>), which allows editing
in place (rather than requiring the part to be opened into a separate
window). Frames are usually, but not necessarily, rectangular. A
part's content may be displayed in more than one frame at a time and
may have multiple representations; for example, a tabular part may be
seen as a chart in one frame and as a text table in another.
<p>
<p>
In the finder, documents are displayed only as 32-by-32 or 16-by-16 pixel
icons in the initial OpenDoc release; eventually thumbnail icons and
frames will also be supported at the finder level.
<p>
<a name="FIG4610D60"><hr>
</a>
<p>
<p>
<a href="picture-14?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P14.GIF" alt="PICTURE 14"></a>
<p>
<p>
<hr>
Figure 14. Frame View for Parts Layout Editing
<p>
Users can change the view type with the Part Info command in the Edit menu
(and possibly with accelerator commands, such as View as Icon, that are
provided by the part editor). In <a href="#FIG4610D60">Figure 14</a>, frame view is desirable
because it allows the user to see the graphic laid out in the document and
to edit it in place. An icon view might be preferable for, say, a
spreadsheet part that gives supporting data on a subject covered broadly
in the text. Any frame may be reduced to an icon at any time, or any icon
opened into a frame, without affecting the view type of any other part;
however, the containing part may reflow content when an embedded part's
view type is changed.
<p>
Except that a part may be edited only when its content is viewed in a
frame, icons and frames are functionally equivalent. Operations such as
drag and drop that may be applied to one may be applied to the other.
Whether viewed as icons or in frames, embedded parts can be opened into
separate windows if desired (although they're still embedded parts and not
documents).
</pre>
</pre>
<hr>
<br><a href="2.3.4"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="2.3.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>