TEditDocumentPrivate.mesa
Copyright Ó 1985, 1986, 1987 by Xerox Corporation. All rights reserved.
Edited by Paxton on October 28, 1982 10:51 am
Michael Plass, March 14, 1985 1:55:07 pm PST
Doug Wyatt, January 20, 1987 0:57:26 am PST
DIRECTORY
FS USING [OpenFile],
Rope USING [ROPE],
TextNode USING [Location, Ref],
ViewerClasses USING [ClickProc, Column, MenuEntry, PaintHint, Viewer];
TEditDocumentPrivate: CEDAR DEFINITIONS
= BEGIN
Viewer: TYPE = ViewerClasses.Viewer;
Column: TYPE = ViewerClasses.Column;
ROPE: TYPE = Rope.ROPE;
RecordUnsavedDocument: PROC [fileName: ROPE, root: TextNode.Ref];
FindUnsavedDocument: PROC [fileName: ROPE] RETURNS [root: TextNode.Ref];
KillSelections: PROC [parent: Viewer];
CancelLinks: PROC [viewer: Viewer];
FileIsMoreRecent: PROC [root: TextNode.Ref, file: Rope.ROPE] RETURNS [BOOL];
Reselect: ViewerClasses.ClickProc;
PositionHistory: TYPE = RECORD [ pos, prev: TextNode.Location ];
JumpToPrevious: ViewerClasses.ClickProc;
InitViewerDoc: PROC [self: Viewer, data: REF ANY];
InitViewerDocInternal: PROC [self: Viewer, file: FS.OpenFile, data: REF ANYNIL];
EmptyViewer: PROC [parent: Viewer];
NewViewer: PROC [parent: Viewer];
DoNewViewer: PROC [column: Column ← left, parent: ViewerClasses.Viewer ← NIL]
RETURNS [new: ViewerClasses.Viewer];
CloseAndNewViewer: PROC [parent: Viewer];
DoCloseAndNewViewer: PROC [parent: ViewerClasses.Viewer]
RETURNS [new: ViewerClasses.Viewer];
OpenFile: PROC [parent: Viewer];
DoOpenFile: PROC [fileName: ROPENIL, column: Column ← left, parent: Viewer ← NIL, fileNameProcViewer: Viewer ← NIL] RETURNS [viewer: Viewer];
CloseAndOpenFile: PROC [parent: Viewer, fileNameProcViewer: Viewer ← NIL];
DoCloseAndOpenFile: PROC [parent: Viewer, fileName: ROPENIL]
RETURNS [viewer: Viewer];
OpenImplFile: PROC [parent: Viewer];
DoOpenImplFile: PROC [fileName: ROPENIL, column: Column ← left, parent: Viewer ← NIL]
RETURNS [viewer: Viewer];
CloseAndOpenImplFile: PROC [parent: Viewer];
DoCloseAndOpenImplFile: PROC [parent: Viewer, fileName: ROPENIL]
RETURNS [viewer: Viewer];
LoadFile: PROC [parent: Viewer];
DoLoadFile: PROC [
parent: ViewerClasses.Viewer, fileName: ROPENIL, close: BOOLFALSE,
fileNameProcViewer: ViewerClasses.Viewer ← NIL]
RETURNS [viewer: Viewer];
LoadImplFile: PROC [parent: Viewer];
DoLoadImplFile: PROC [parent: ViewerClasses.Viewer, fileName: ROPENIL, close: BOOLFALSE]
RETURNS [viewer: Viewer];
AnonymousLoadFile: PROC [
parent: Viewer, fileNameProcViewer: ViewerClasses.Viewer ← NIL];
AnonymousLoadImplFile: PROC [parent: Viewer];
LoadPreviousFile: PROC [parent: Viewer];
OpenPreviousFile: PROC [parent: Viewer];
CloseAndOpenPreviousFile: PROC [parent: Viewer];
PreStore: ViewerClasses.ClickProc;
StoreFile: PROC [parent: Viewer];
DoStoreFile: PUBLIC PROC [parent: Viewer, fileName: Rope.ROPENIL];
PositionViewer: PROC [viewer: Viewer, loc: TextNode.Location, hint: ViewerClasses.PaintHint ← client]
RETURNS [ok: BOOL];
DefaultMenus: PROC [viewer: Viewer, paint: BOOLFALSE];
findMenu, levelMenu: ViewerClasses.MenuEntry;
FindMenu: ViewerClasses.ClickProc;
LevelMenu: ViewerClasses.ClickProc;
PreReset: ViewerClasses.ClickProc;
Reset: ViewerClasses.ClickProc;
Save: ViewerClasses.ClickProc;
PreClear: ViewerClasses.ClickProc;
Clear: ViewerClasses.ClickProc;
NewButton: ViewerClasses.ClickProc;
Store: ViewerClasses.ClickProc;
PreLoadPrevious: ViewerClasses.ClickProc;
PreviousFile: ViewerClasses.ClickProc;
PreGetImpl: ViewerClasses.ClickProc;
GetImpl: ViewerClasses.ClickProc;
PreGet: ViewerClasses.ClickProc;
Get: ViewerClasses.ClickProc;
AnonymousLoadImpl: ViewerClasses.ClickProc;
AnonymousLoad: ViewerClasses.ClickProc;
OpenButton: ViewerClasses.ClickProc;
Normalize: ViewerClasses.ClickProc;
Position: ViewerClasses.ClickProc;
Find: ViewerClasses.ClickProc;
FindDef: ViewerClasses.ClickProc;
FindWord: ViewerClasses.ClickProc;
Time: ViewerClasses.ClickProc;
Split: ViewerClasses.ClickProc;
FewerLevels: ViewerClasses.ClickProc;
MoreLevels: ViewerClasses.ClickProc;
AllLevels: ViewerClasses.ClickProc;
FirstLevelOnly: ViewerClasses.ClickProc;
END.