Up

NSPrintPanel

Authors

Adam Fedor( fedor@gnu.org )
Standard panel for querying user about printing.

Copyright: (C) 2001 Free Software Foundation, Inc.


Contents -

  1. Class Description

Class Description

NSPrintPanel provides a standard print panel allowing the user to specify information about how a document is to be printed, including the page range, number of copies and scale of the document. It also allows the user to save the document to a file or preview it. When a print: message is sent to an NSView or NSWindow, an NSPrintOpertation is created which manages printing of a view. The NSPrintOperation object would by default show a print panel in a modal loop for the user. You can avoid showing the print panel by sending the setShowsPanels: message in the print operation with a NO argument.

NSPrintPanel : NSPanel

Declared in:
AppKit/NSPrintPanel.h
Standards:

Method summary

printPanel

+ (NSPrintPanel*) printPanel;
Standards: GNUstep, MacOS-X, OpenStep

Creates and returns a shared instance of the NSPrintPanel panel.


accessoryView

- (NSView*) accessoryView;
Standards: GNUstep, MacOS-X, OpenStep

Returns the accessory view for the print panel


beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:

- (void) beginSheetWithPrintInfo: (NSPrintInfo*)printInfo modalForWindow: (NSWindow*)docWindow delegate: (id)delegate didEndSelector: (SEL)didEndSelector contextInfo: (void*)contextInfo;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


finalWritePrintInfo

- (void) finalWritePrintInfo;
Standards: GNUstep, MacOS-X, OpenStep

Saves information set by the user in the receiver's panel in the NSPrintInfo object from the current NSPrintOperation.


pickedAllPages:

- (void) pickedAllPages: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

This method has been depreciated. It doesn't do anything useful.


pickedButton:

- (void) pickedButton: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

This method has been depreciated. It doesn't do anything useful.


pickedLayoutList:

- (void) pickedLayoutList: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

This method has been depreciated. It doesn't do anything useful.


runModal

- (int) runModal;
Standards: GNUstep, MacOS-X, OpenStep

Display the Print panel in a modal loop. Saves any aquired information in the NSPrintInfo object for the current NSPrintOperation. Returns NSCancelButton if the user clicks the Cancel button or NSOKButton otherwise.


setAccessoryView:

- (void) setAccessoryView: (NSView*)aView;
Standards: GNUstep, MacOS-X, OpenStep

Set the accessory view for the print panel


updateFromPrintInfo

- (void) updateFromPrintInfo;
Standards: GNUstep, MacOS-X, OpenStep

Setup the display in the receiver's panel based on the values stored in the NSPrintInfo object from the current NSPrintOperation.



Up