1 // 2 // MyDocument.h 3 // PRICE 4 // 5 // Created by Riccardo Mottola on Thu Dec 12 2002. 6 // Copyright (c) 2002-2008 Carduus. All rights reserved. 7 // 8 // This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 10 11 #import <AppKit/AppKit.h> 12 #import "PRWindowController.h" 13 #import "PRCProgress.h" 14 #import "AppController.h" /* so all other controllers have this included */ 15 #import "PRImage.h" 16 #import "PRFilter.h" 17 18 19 @interface MyDocument : NSDocument 20 { 21 PRWindowController *windowController; 22 NSPrintInfo *printInfo; 23 @private PRImage *activeImage; 24 @private PRImage *oldImage; 25 } 26 27 - (NSWindow *)window; 28 - (NSView *)view; 29 - (PRImage *)activeImage; 30 - (void)setActiveImage: (PRImage *)theImage; 31 32 - (void)runFilter:(PRFilter *)filter with:(NSArray *)parameters; 33 34 - (void)restoreLastImage; 35 - (void)saveCurrentImage; 36 - (void)setPrintInfo:(NSPrintInfo *)anObject; 37 - (NSPrintInfo *)printInfo; 38 @end 39