Up
Authors
- Adam Fedor (
fedor@gnu.org
)
-
- Chad Hardin (
cehardin@mac.com
)
-
Standard panel for querying user about printing.
Copyright: (C) 2001,2004 Free Software Foundation, Inc.
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.
- Declared in:
- AppKit/NSPrintPanel.h
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
+ (
NSPrintPanel*)
printPanel;
Availability: OpenStep
Creates (if needed) and returns a shared instance
of the NSPrintPanel panel.
- (
NSArray*)
accessoryControllers;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (
NSView*)
accessoryView;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
- (void)
addAccessoryController: (NSViewController<
NSPrintPanelAccessorizing>*)accessoryController;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
beginSheetWithPrintInfo: (
NSPrintInfo*)printInfo
modalForWindow: (
NSWindow*)docWindow
delegate: (id)delegate
didEndSelector: (SEL)didEndSelector
contextInfo: (void*)contextInfo;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
NSString*)
defaultButtonTitle;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
finalWritePrintInfo;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
Saves information set by the user in the receiver's
panel in the NSPrintInfo object from the current
NSPrintOperation.
- (
NSString*)
helpAnchor;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (
NSString*)
jobStyleHint;
Availability: MacOS-X 10.2.0
Description forthcoming.
- (void)
pickedAllPages: (id)sender;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
This method has been depreciated. It doesn't do
anything useful.
- (void)
pickedButton: (id)sender;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
This method has been depreciated. It doesn't do
anything useful.
- (void)
pickedLayoutList: (id)sender;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
This method has been depreciated. It doesn't do
anything useful.
- (
NSPrintInfo*)
printInfo;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
removeAccessoryController: (NSViewController<
NSPrintPanelAccessorizing>*)accessoryController;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (
NSInteger)
runModal;
Availability: 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. Unlike other panels, this one does
not order itself out after the modal session is
finished. You must do that yourself.
- (
NSInteger)
runModalWithPrintInfo: (
NSPrintInfo*)printInfo;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
setAccessoryView: (
NSView*)aView;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
Sets the accessory view for the print panel to
aView
See Also:
-accessoryView
- (void)
setDefaultButtonTitle: (
NSString*)defaultButtonTitle;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
setHelpAnchor: (
NSString*)helpAnchor;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
setJobStyleHint: (
NSString*)hint;
Availability: MacOS-X 10.2.0
Description forthcoming.
- (void)
setOptions: (
NSPrintPanelOptions)options;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (void)
updateFromPrintInfo;
Availability: Not in OpenStep/MacOS-X removed at MacOS-X 10.5.0
Setup the display in the receiver's panel based on
the values stored in the NSPrintInfo object from the
current NSPrintOperation.
Instance Variables for NSPrintPanel Class
@protected NSMutableArray* _accessoryControllers;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSView* _accessoryView;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _helpAnchor;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _jobStyleHint;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _optionPanel;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSPrintPanelOptions _options;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSRange _pages;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _panel;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected int _picked;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSPrintInfo* _printInfo;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _savePath;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
- Declared in:
- AppKit/NSPrintPanel.h
Availability: OpenStep
Warning this category is private,
which means that the methods are for internal use by
the package. You should not use them in external code.
Method summary
- (BOOL)
_getSavePath;
Availability: OpenStep
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
_setStatusStringValue: (
NSString*)string;
Availability: OpenStep
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- Declared in:
- AppKit/NSPrintPanel.h
Availability: MacOS-X 10.5.0
Description forthcoming.
Method summary
- (
NSSet*)
keyPathsForValuesAffectingPreview;
Availability: MacOS-X 10.5.0
Description forthcoming.
- (
NSArray*)
localizedSummaryItems;
Availability: MacOS-X 10.5.0
Description forthcoming.
Up