|
|
1.1 ! root 1: @interface DrawDocument : ChangeManager ! 2: { ! 3: GraphicView *view; /* the document's GraphicView */ ! 4: Window *window; /* the window the GraphicView is in */ ! 5: PrintInfo *printInfo; /* the print information for the GraphicView */ ! 6: char *name; /* the name of the document */ ! 7: char *directory; /* the directory it is in */ ! 8: char *iconPathList; /* list of files last dragged over document */ ! 9: BOOL haveSavedDocument; /* whether document has associated disk file */ ! 10: UndoText *undoFieldEditor; ! 11: NXDataLinkManager *linkManager; /* manager of data links */ ! 12: } ! 13: ! 14: /* Very private instance method needed by factory methods */ ! 15: ! 16: - (BOOL)loadDocument:(NXStream *)stream frameSize:(NXRect *)frame frameString:(char *)frameString; ! 17: ! 18: /* Factory methods */ ! 19: ! 20: + new; ! 21: + newFromStream:(NXStream *)stream; ! 22: + newFromFile:(const char *)file andDisplay:(BOOL)display; ! 23: + newFromFile:(const char *)file; ! 24: ! 25: /* Public methods */ ! 26: ! 27: - init; ! 28: - free; ! 29: - close; /* Frees (delayed). */ ! 30: ! 31: /* Data link methods */ ! 32: ! 33: - setLinkManager:(NXDataLinkManager *)aLinkManager; ! 34: - showSelection:(NXSelection *)selection; ! 35: - copyToPasteboard:(Pasteboard *)pasteboard at:(NXSelection *)selection cheapCopyAllowed:(BOOL)flag; ! 36: - pasteFromPasteboard:(Pasteboard *)pasteboard at:(NXSelection *)selection; ! 37: - importFile:(const char *)filename at:(NXSelection *)selection; ! 38: - windowForSelection:(NXSelection *)selection; ! 39: ! 40: /* Overridden from ChangeManager */ ! 41: ! 42: - changeWasDone; ! 43: - changeWasUndone; ! 44: - changeWasRedone; ! 45: - clean:sender; ! 46: - dirty:sender; ! 47: ! 48: /* Public Methods */ ! 49: ! 50: - resetScrollers; ! 51: - view; ! 52: - printInfo; ! 53: ! 54: /* Target/Action methods */ ! 55: ! 56: - changeLayout:sender; ! 57: - changeGrid:sender; ! 58: - save:sender; ! 59: - saveAs:sender; ! 60: - saveTo:sender; ! 61: - revertToSaved:sender; ! 62: - showTextRuler:sender; ! 63: - hideRuler:sender; ! 64: ! 65: /* Private method used by saveTo: method */ ! 66: ! 67: - changeSaveType:sender; ! 68: ! 69: /* Document name and file handling methods */ ! 70: ! 71: - (const char *)filename; ! 72: - (const char *)directory; ! 73: - (const char *)name; ! 74: - setName:(const char *)name andDirectory:(const char *)directory; ! 75: - (BOOL)setName:(const char *)name; ! 76: - setTemporaryTitle:(const char *)title; ! 77: - saveTo:(const char *)type using:(SEL)streamWriter; ! 78: - save; ! 79: - (BOOL)isSameAs:(const char *)filename; ! 80: ! 81: /* Services menu methods */ ! 82: ! 83: - registerForServicesMenu; ! 84: - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType; ! 85: - writeSelectionToPasteboard:pboard types:(NXAtom *)types; ! 86: ! 87: /* Window delegate methods */ ! 88: ! 89: - windowWillClose:sender cancellable:(BOOL)flag; ! 90: ! 91: - windowWillClose:(Window *)sender; ! 92: - windowDidBecomeMain:(Window *)sender; ! 93: - windowWillResize:(Window *)sender toSize:(NXSize *)size; ! 94: - windowWillMiniaturize:(Window *)sender toMiniwindow:counterpart; ! 95: - windowWillReturnFieldEditor:(Window *)sender toObject:client; ! 96: ! 97: /* Menu command validation method */ ! 98: ! 99: - (BOOL)validateCommand:(MenuCell *)menuCell; ! 100: ! 101: /* Cursor setting */ ! 102: ! 103: - resetCursor; ! 104: ! 105: @end ! 106:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.