2000-03-05 17:39:16 +00:00
|
|
|
<html><head>
|
2001-03-03 10:07:01 +00:00
|
|
|
<title>NSPrintPanel</title>
|
2000-03-05 17:39:16 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>NSPrintPanel</h1>
|
2001-03-03 10:07:01 +00:00
|
|
|
<h3>Authors </h3>
|
|
|
|
<dl>
|
2001-10-16 02:09:09 +00:00
|
|
|
<dt>Adam Fedor
|
2000-03-05 17:39:16 +00:00
|
|
|
<dd>
|
|
|
|
</dl>
|
2001-10-16 02:09:09 +00:00
|
|
|
<blockquote>
|
|
|
|
Standard panel for querying user about printing.
|
|
|
|
</blockquote>
|
|
|
|
<p>Copyright: (C) 2001 Free Software Foundation, Inc.</p>
|
|
|
|
<h2><a name ="cont-0">Class Description</a></h2>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
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 <code>NO</code> argument.
|
|
|
|
</p>
|
2001-03-03 10:07:01 +00:00
|
|
|
<h2><a name ="NSPrintPanel">NSPrintPanel</a></h2>
|
2001-10-16 02:09:09 +00:00
|
|
|
<p><b>Declared in: </b> NSPrintPanel.h</p>
|
2001-03-03 10:07:01 +00:00
|
|
|
<p><b>Inherits from: </b> NSPanel</p>
|
2000-03-05 17:39:16 +00:00
|
|
|
<hr>
|
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<h2>Instance Variables </h2>
|
2000-03-05 17:39:16 +00:00
|
|
|
<ul>
|
|
|
|
</ul>
|
2001-03-03 10:07:01 +00:00
|
|
|
<h2>Methods </h2>
|
|
|
|
<ul>
|
2001-10-16 02:09:09 +00:00
|
|
|
<li ><a href ="NSPrintPanel.html#method-0">+printPanel</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-1">-accessoryView</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-2">-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-3">-finalWritePrintInfo</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-4">-pickedAllPages:</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-5">-pickedButton:</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-6">-pickedLayoutList:</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-7">-runModal</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-8">-setAccessoryView:</a>
|
|
|
|
<li ><a href ="NSPrintPanel.html#method-9">-updateFromPrintInfo</a>
|
2001-03-03 10:07:01 +00:00
|
|
|
</ul>
|
|
|
|
<hr><h2>Class Methods </h2>
|
|
|
|
<h3><a name ="method-0">printPanel</a></h3>
|
|
|
|
+ (NSPrintPanel*) <b>printPanel</b>;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Creates and returns a shared instance of the
|
|
|
|
NSPrintPanel panel.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
|
|
|
<hr><h2>Instances Methods </h2>
|
|
|
|
<h3><a name ="method-1">accessoryView</a></h3>
|
|
|
|
- (NSView*) <b>accessoryView</b>;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Returns the accessory view for the print panel
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h3><a name ="method-2">beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a></h3>
|
|
|
|
- (void) <b>beginSheetWithPrintInfo:</b> (NSPrintInfo*)printInfo <b>modalForWindow:</b> (NSWindow*)docWindow <b>delegate:</b> (id)delegate <b>didEndSelector:</b> (SEL)didEndSelector <b>contextInfo:</b> (void*)contextInfo;<br>
|
|
|
|
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-3">finalWritePrintInfo</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>finalWritePrintInfo</b>;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Saves information set by the user in the receiver's
|
|
|
|
panel in the NSPrintInfo object from the current
|
|
|
|
NSPrintOperation.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-4">pickedAllPages:</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>pickedAllPages:</b> (id)sender;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-5">pickedButton:</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>pickedButton:</b> (id)sender;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-6">pickedLayoutList:</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>pickedLayoutList:</b> (id)sender;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-7">runModal</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (int) <b>runModal</b>;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
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.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-8">setAccessoryView:</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>setAccessoryView:</b> (NSView*)aView;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Set the accessory view for the print panel
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2001-10-16 02:09:09 +00:00
|
|
|
<h3><a name ="method-9">updateFromPrintInfo</a></h3>
|
2001-03-03 10:07:01 +00:00
|
|
|
- (void) <b>updateFromPrintInfo</b>;<br>
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Setup the display in the receiver's panel based on
|
|
|
|
the values stored in the NSPrintInfo object from the
|
|
|
|
current NSPrintOperation.
|
2000-03-05 17:39:16 +00:00
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
<hr>
|
2000-03-05 17:39:16 +00:00
|
|
|
</body>
|
|
|
|
|
2001-03-03 10:07:01 +00:00
|
|
|
</html>
|