home *** CD-ROM | disk | FTP | other *** search
- #import <objc/Object.h>
- #import <streams/streams.h>
-
- @interface YapDocument:Object {
- id document;
- char *name;
- }
-
- + new;
- + newFromFile:(const char *)fileName;
- - initializePrintInfo;
-
- // Connect to target/action methods
-
- - save:sender;
- - saveAs:sender;
- - execute:sender;
- - print:sender;
-
- // Other methods
-
- - setName:(const char *)title;
- - (const char *)name;
- - (BOOL)saveDocument:(const char *)fileName;
- - (BOOL)closeDocument:(const char *)message andWindow:(BOOL)flag;
- - (BOOL)needsSaving;
-
- // Return the document in the specified window; nil if the
- // window contains no Yap document.
-
- + documentForWindow:window;
-
- // The following delegate method is used for detecting when the user
- // edits the text.
-
- - text:text isEmpty:(BOOL)empty;
-
- // ...and the following when he/she changes the font.
-
- - textWillConvert:textObject fromFont:oldFont toFont:newFont;
-
- // YapDocuments have their own zones; the following two methods allow
- // reuse of zones.
-
- + (NXZone *)newZone;
- + (void)reuseZone:(NXZone *)aZone;
-
- @end
-