1 /*
2    NSDocumentFramworkPrivate.h
3 
4    The private methods of all the classes of the document framework
5 
6    Copyright (C) 1999 Free Software Foundation, Inc.
7 
8    Author: Carl Lindberg <Carl.Lindberg@hbo.com>
9    Date: 1999
10 
11    This file is part of the GNUstep GUI Library.
12 
13    This library is free software; you can redistribute it and/or
14    modify it under the terms of the GNU Lesser General Public
15    License as published by the Free Software Foundation; either
16    version 2 of the License, or (at your option) any later version.
17 
18    This library is distributed in the hope that it will be useful,
19    but WITHOUT ANY WARRANTY; without even the implied warranty of
20    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
21    Lesser General Public License for more details.
22 
23    You should have received a copy of the GNU Lesser General Public
24    License along with this library; see the file COPYING.LIB.
25    If not, see <http://www.gnu.org/licenses/> or write to the
26    Free Software Foundation, 51 Franklin Street, Fifth Floor,
27    Boston, MA 02110-1301, USA.
28 */
29 
30 #ifndef _GNUstep_H_NSDocumentFramworkPrivate
31 #define _GNUstep_H_NSDocumentFramworkPrivate
32 
33 #import "AppKit/NSDocument.h"
34 #import "AppKit/NSDocumentController.h"
35 #import "AppKit/NSWindowController.h"
36 
37 @class NSTimer;
38 
39 @interface NSDocumentController (Private)
40 - (NSArray *)_readableTypesForClass:(Class)documentClass;
41 - (NSArray *)_writableTypesForClass:(Class)documentClass;
42 - (NSString *)_autosaveDirectory: (BOOL)create;
43 - (void)_autosaveDocuments: (NSTimer *)timer;
44 - (BOOL)_reopenAutosavedDocuments;
45 - (void)_recordAutosavedDocument: (NSDocument *)document;
46 @end
47 
48 @interface NSDocumentController (RecentDocumentsMenu)
49 - (NSMenu *) _recentDocumentsMenu;
50 - (void) _setRecentDocumentsMenu: (NSMenu *)menu;
51 - (void) _updateRecentDocumentsMenu;
52 - (IBAction) _openRecentDocument: (id)sender;
53 - (void) _saveRecentDocuments;
54 - (void) _loadRecentDocuments;
55 @end
56 
57 @interface NSDocument (Private)
58 - (void)_removeWindowController:(NSWindowController *)controller;
59 - (NSWindow *)_transferWindowOwnership;
60 - (void)_removeAutosavedContentsFile;
61 @end
62 
63 @interface NSWindowController (Private)
64 - (void)_windowDidLoad;
65 @end
66 
67 #endif // _GNUstep_H_NSDocumentFramworkPrivate
68