NSPrintInfo *printInfo; /* PrintInfo, used when hasMultiplePages is true */
BOOL isDocumentEdited;
BOOL hasMultiplePages;
BOOL isRichText;
BOOL uniqueZone; /* YES if the zone was created specially for this document */
int encodingIfPlainText;
NSString *potentialSaveDirectory; /* if non-nil, is path prefix where to save it. */
}
/* Don't call init; call one of these methods... */
- (id)initWithPath:(NSString *)filename encoding:(int)encoding uniqueZone:(BOOL)flag; /* Should be an absolute path here; nil for untitled. uniqueZone = YES indicates the zone should be recycled when the doc is dealloced. */
+ (BOOL)openDocumentWithPath:(NSString *)filename encoding:(int)encoding; /* Brings window front. Checks to see if document already open. */
+ (BOOL)openUntitled; /* Brings window front */
/* These set/get the documentName instance var and also set the window title accordingly. "nil" is used if no title. */
- (void)setDocumentName:(NSString *)fileName;
- (NSString *)documentName;
/* These determine if document has been edited since last save */
/* setPotentialSaveDirectory gets called automatically when a doc is made "new" UNTITLED. The name is taken from the current main window, if any. The directory is used to put up the save panel the first time the doc is saved from the UNTITLED state. It is only used when the preference "OpenPanelFollowsMainWindow" is set to YES.