/* # Created by Matteo Rattotti on 13/03/06. # Copyright (c) 2006 - 2008 Shiny Frog. All rights reserved. # Contact matteo.rattotti@shinyfrog.net for any problem # This program 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 any later version. # 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. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ // // webImpressor.h // Netfixer // // Created by Matteo Rattotti on 10/07/06. // Copyright 2006 __MyCompanyName__. All rights reserved. // #import #import @interface webImpressor : NSObject{ NSString* fName; NSProgressIndicator *pwell; NSBitmapImageFileType imgType; NSRect rect; NSSize size; } - (void)setCanvas:(NSRect)imgRect canvasSize:(NSSize)cSize; - (void)setFormat:(NSBitmapImageFileType)type; - (void)setFileName:(NSString *)filename; - (void)setProgWell:(NSProgressIndicator *)p; - (void)webView:(WebView *)webview didFinishLoadForFrame:(WebFrame *)frame; - (void)webView:(WebView *)webview didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - (void)webView:(WebView *)webview willPerformClientRedirectToURL:(NSURL *)URL delay:(NSTimeInterval)seconds fireDate:(NSDate *)date forFrame:(WebFrame *)frame; - (NSBitmapImageRep *)view2bmp:(NSView *)view; - (NSString *)safeNameForFile:(NSString *)file; - (void)saveImage:(WebFrame*) frame; @end