Small improvements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8503 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2001-01-08 01:12:31 +00:00
parent 494ab80f7a
commit 4f5d29c6a3
2 changed files with 11 additions and 3 deletions

View file

@ -8,7 +8,7 @@
Author: Scott Christley <scottc@net-community.com>
Date: 1996
Author: Fred Kiefer <fredkiefer@gmx.de>
Date: 2000
Date: November 2000
This file is part of the GNUstep GUI Library.

View file

@ -55,6 +55,8 @@
toData:(NSMutableData *)data
printInfo:(NSPrintInfo *)aPrintInfo;
- (void) _print;
@end
// Subclass for the regular printing
@ -380,10 +382,9 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
NSGraphicsContext *oldContext = [NSGraphicsContext currentContext];
[NSGraphicsContext setCurrentContext: _context];
// This is the actual printing
NS_DURING
{
[_view displayRect: _rect];
[self _print];
}
NS_HANDLER
{
@ -396,6 +397,7 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
result = [self deliverResult];
[self cleanUpOperation];
return result;
}
@ -451,6 +453,12 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
return self;
}
- (void) _print
{
// This is the actual printing
[_view displayRect: _rect];
}
@end