(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSPrintInfo 

Inherits From:	NSObject 

Declared In:	appkit/NSPrintInfo.h 

Creating and Initializing a NSPrintInfo Instance 

- (id)initWithDictionary:(NSDictionary *)aDict	Initializes a newly allocated NSPrintInfo object by assigning it the parameters specified in aDict.  This is the designated initializer for the class.

Managing the Shared NSPrintInfo Object 

+ (void)setSharedPrintInfo:(NSPrintInfo *)printInfo
	Sets the shared NSPrintInfo object to printInfo.
+ (NSPrintInfo *)sharedPrintInfo	Returns the shared NSPrintInfo object.

Managing the Printing Rectangle 

- (void)setLeftMargin:(float)value	Sets the left margin to value.
- (void)setRightMargin:(float)value	Sets the right margin to value.
- (void)setTopMargin:(float)value	Sets the top margin to value.
- (void)setBottomMargin:(float)value	Sets the bottom margin to value.
- (float)leftMargin	Returns the width of the left margin.
- (float)rightMargin	Returns the width of the right margin.
- (float)topMargin	Returns the height of the top margin.
- (float)bottomMargin	Returns the height of the bottom margin.
- (void)setOrientation:(NSPrintingOrientation)mode
	Sets the orientation as Portrait or Landscape.
- (NSPrintingOrientation)orientation	Returns whether the orientation is Portrait or Landscape. 
- (void)setPaperSize:(NSSize)size	Sets the width and height of the paper.
- (NSSize)paperSize	Returns the size of the paper.
- (void)setPaperName:(NSString *)type	Sets the paper type. 
- (NSString *)paperName	Returns the paper type.
+ (NSSize)sizeForPaperName:(NSString *)name	Returns the size for the paper named name.

Pagination 

- (void)setHorizontalPagination:(NSPrintingPaginationMode)mode
	Sets the horizontal pagination mode.
- (NSPrintingPaginationMode)horizontalPagination
	Returns the horizontal pagination mode.
- (void)setVerticalPagination:(NSPrintingPaginationMode)mode
	Sets the vertical pagination mode.
- (NSPrintingPaginationMode)verticalPagination	Returns the vertical pagination mode.

Positioning the Image on the Page 

- (void)setHorizontallyCentered:(BOOL)flag	Sets whether the image is centered horizontally.
- (BOOL)isHorizontallyCentered	Returns whether the image is centered horizontally.
- (void)setVerticallyCentered:(BOOL)flag	Sets whether the image is centered vertically.
- (BOOL)isVerticallyCentered	Returns whether the image is centered vertically.

Specifying the Printer 

+ (void)setDefaultPrinter:(NSPrinter *)printer	Sets the user's default printer.
+ (NSPrinter *)defaultPrinter	Returns the user's default printer.
- (void)setPrinter:(NSPrinter *)aPrinter	Sets the printer that's used in subsequent printing jobs.
- (NSPrinter *)printer	Returns the NSPrinter that's used for printing.

Controlling Printing

- (void)setUpPrintOperationDefaultValues	Allows the receiver to set any attribute that hasn't been previously set.  
- (NSString *)jobDisposition	Returns the action specified for the job:  printing, faxing, previewing, etc.
- (void)setJobDisposition:(NSString *)disposition	Sets the action specified for the job:  printing, faxing, previewing, etc.

Accessing the NSPrintInfo Object's Dictionary 

- (NSMutableDictionary *)dictionary	Returns the NSPrintInfo object's dictionary.