From 064d218dcbe8012948477a1e806ad6b19e2e303d Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Sat, 28 Jul 2001 22:38:02 +0000 Subject: [PATCH] Added declarations for new methods in specification. Some of this where already present in the code. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10603 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSDocument.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Headers/gnustep/gui/NSDocument.h b/Headers/gnustep/gui/NSDocument.h index e535c3b57..d7ebdf7d1 100644 --- a/Headers/gnustep/gui/NSDocument.h +++ b/Headers/gnustep/gui/NSDocument.h @@ -31,6 +31,7 @@ #include #include +#include @class NSURL, NSUndoManager; @@ -82,6 +83,8 @@ typedef enum _NSSaveOperationType { - (void)addWindowController:(NSWindowController *)windowController; - (BOOL)shouldCloseWindowController:(NSWindowController *)windowController; - (void)showWindows; +- (void)removeWindowController:(NSWindowController *)windowController; +- (void)setWindow:(NSWindow *)aWindow; /*" Window controller creation "*/ - (void)makeWindowControllers; // Manual creation @@ -135,6 +138,10 @@ typedef enum _NSSaveOperationType { - (BOOL)shouldRunSavePanelWithAccessoryView; - (NSString *)fileNameFromRunningSavePanelForSaveOperation:(NSSaveOperationType)saveOperation; - (int)runModalSavePanel:(NSSavePanel *)savePanel withAccessoryView:(NSView *)accessoryView; +- (NSString *)fileTypeFromLastRunSavePanel; +- (BOOL)writeWithBackupToFile:(NSString *)fileName + ofType:(NSString *)fileType + saveOperation:(NSSaveOperationType)saveOp; /*" Printing "*/ - (NSPrintInfo *)printInfo; @@ -153,6 +160,7 @@ typedef enum _NSSaveOperationType { /*" Menus "*/ - (BOOL)validateMenuItem:(NSMenuItem *)anItem; +- (BOOL)validateUserInterfaceItem:(id )anItem; /*" Undo "*/ - (NSUndoManager *)undoManager; @@ -160,6 +168,28 @@ typedef enum _NSSaveOperationType { - (BOOL)hasUndoManager; - (void)setHasUndoManager:(BOOL)flag; +/* NEW delegate operations*/ +- (void)shouldCloseWindowController:(NSWindowController *)windowController + delegate:(id)delegate + shouldCloseSelector:(SEL)callback + contextInfo:(void *)contextInfo; +- (void)canCloseDocumentWithDelegate:(id)delegate + shouldCloseSelector:(SEL)shouldCloseSelector + contextInfo:(void *)contextInfo; +- (void)saveToFile:(NSString *)fileName + saveOperation:(NSSaveOperationType)saveOperation + delegate:(id)delegate + didSaveSelector:(SEL)didSaveSelector + contextInfo:(void *)contextInfo; +- (BOOL)prepareSavePanel:(NSSavePanel *)savePanel; +- (void)saveDocumentWithDelegate:(id)delegate + didSaveSelector:(SEL)didSaveSelector + contextInfo:(void *)contextInfo; +- (void)runModalSavePanelForSaveOperation:(NSSaveOperationType)saveOperation + delegate:(id)delegate + didSaveSelector:(SEL)didSaveSelector + contextInfo:(void *)contextInfo; + @end #endif // _GNUstep_H_NSDocument