mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
Revert change to NSView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40017 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c990c0152e
commit
564ea8d330
1 changed files with 0 additions and 15 deletions
|
@ -4235,26 +4235,12 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
|
|||
fonts: (NSString*)fontNames
|
||||
{
|
||||
NSPrintOperation *printOp = [NSPrintOperation currentOperation];
|
||||
NSPrintInfo *info = [printOp printInfo];
|
||||
NSGraphicsContext *ctxt = [printOp context];
|
||||
NSSize paperSize = [info paperSize];
|
||||
CGFloat scale = (double)([self frame].size.width/paperSize.width);
|
||||
CGFloat xoff = 0.0;
|
||||
CGFloat yoff = (paperSize.height - [self frame].size.height) / scale;
|
||||
|
||||
[ctxt beginPage: ordinalNum
|
||||
label: aString
|
||||
bBox: pageRect
|
||||
fonts: fontNames];
|
||||
|
||||
// Need to align the view being printed based on the size of the page.
|
||||
|
||||
// Add to scale the page down
|
||||
DPSscale(ctxt, scale, scale);
|
||||
|
||||
// Add translation
|
||||
DPStranslate(ctxt, xoff, yoff);
|
||||
|
||||
}
|
||||
|
||||
- (void) beginPageSetupRect: (NSRect)aRect placement: (NSPoint)location
|
||||
|
@ -4284,7 +4270,6 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
|
|||
|
||||
- (void) addToPageSetup
|
||||
{
|
||||
// Override this method when you want to add something to the view specific to printing.
|
||||
}
|
||||
|
||||
- (void) beginSetup
|
||||
|
|
Loading…
Reference in a new issue