16 lines
9.9 KiB
Plaintext
16 lines
9.9 KiB
Plaintext
en·vÅos DOC-OBJECTS
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
DOC-OBJECTS
|
||
1
|
||
|
||
4
|
||
|
||
Johannes A. G. M. Koomen
|
||
(Koomen.wbst@Xerox.com or Koomen@CS.Rochester.edu)
|
||
Uses: TEDIT, IMAGEOBJ, DATEFORMAT-EDITOR
|
||
This document last edited on October 27, 1987.
|
||
DESCRIPTION
|
||
DOC-OBJECTS is a generic, extensible interface for including image objects in TEdit documents. It hooks into TEdit by an extra entry on TEdit's middle button menu, as well as by redefining what happens on typing CTRL-O. Clicking the menu entry or typing CTRL-O brings up an Objects menu. Selecting an object causes an instance of the designated object to be inserted in the document at the position of the caret. Clicking outside the Objects menu has no effect. DOC-OBJECTS comes with a set of predefined Document Objects, which are described below. Additional Objects can easily be added to the Objects menu.
|
||
Predefined Objects
|
||
Time Stamp [Document Object]
|
||
A TimeStamp reflects the date the document containing it was last PUT into a file. Each PUT causes a TimeStamp to be updated. Clicking the mIddle button over a TimeStamp brings up a DateFormat editor. The TimeStamp can be given any appearance consistent with the function DATEFORMAT (see IRM, Section 12.5). The object following the next colon is a TimeStamp object for this file: (620344626 NIL (DATEFORMAT TIME.ZONE NO.SECONDS DAY.OF.WEEK SPACES))
|
||
. Individual characters of a TimeStamp cannot be altered by TEdit, but a TimeStamp can be given arbitrary TEdit Looks. The DATEFORMAT-EDITOR package is automatically loaded by the DOC-OBJECTS package.
|
||
File Stamp [Document Object]
|
||
A FileStamp reflects the name of the file into which the document containing it was last PUT. Each PUT causes a FileStamp to be updated. It cannot be edited. A FileStamp is initially displayed as ©©-- not yet filed --¹¹.
|
||
Include [Document Object]
|
||
This document object is a dynamic version of the static TEdit Include command, and is intended to facilitate the unbundling of document chapters and sections, while maintaining the ability to print the entire document or any portion of it. When an Include object is created, the user is prompted for a file name. An Include object can be enabled or disabled. If it is enabled, the object shows in the TEdit window ÿÿ |