mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 15:10:55 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
123 lines
4 KiB
HTML
123 lines
4 KiB
HTML
<html>
|
|
<head>
|
|
<title>NSPrintPanel</title>
|
|
</head>
|
|
<body>
|
|
<h1>NSPrintPanel</h1>
|
|
<h3>Authors</h3>
|
|
<dl>
|
|
<dt>Adam Fedor(<a href="mailto:fedor@gnu.org"><code>
|
|
fedor@gnu.org
|
|
</code></a>)</dt>
|
|
<dd>
|
|
</dd>
|
|
</dl>
|
|
<blockquote>
|
|
|
|
Standard panel for querying user about printing.
|
|
</blockquote>
|
|
<p>Copyright: (C) 2001 Free Software Foundation, Inc.</p>
|
|
<h1>Class Description</h1>
|
|
<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>
|
|
<h2><a name="class$NSPrintPanel">NSPrintPanel</a> : <a href="NSPanel.html#class$NSPanel">NSPanel</a></h2>
|
|
Declared: AppKit/NSPrintPanel.h<br />
|
|
<p>
|
|
|
|
</p>
|
|
<h3>printPanel</a></h3>
|
|
+ (<a href="#class$NSPrintPanel">NSPrintPanel</a>*) <b>printPanel</b>;<br />
|
|
<p>
|
|
|
|
Creates and returns a shared instance of the
|
|
NSPrintPanel panel.
|
|
</p>
|
|
<hr />
|
|
<h3>accessoryView</a></h3>
|
|
- (<a href="NSView.html#class$NSView">NSView</a>*) <b>accessoryView</b>;<br />
|
|
<p>
|
|
|
|
Returns the accessory view for the print panel
|
|
</p>
|
|
<hr />
|
|
<h3>beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a></h3>
|
|
- (void) <b>beginSheetWithPrintInfo:</b> (NSPrintInfo*)printInfo<b> modalForWindow:</b> (<a href="NSWindow.html#class$NSWindow">NSWindow</a>*)docWindow<b> delegate:</b> (id)delegate<b> didEndSelector:</b> (SEL)didEndSelector<b> contextInfo:</b> (void*)contextInfo;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>finalWritePrintInfo</a></h3>
|
|
- (void) <b>finalWritePrintInfo</b>;<br />
|
|
<p>
|
|
|
|
Saves information set by the user in the receiver's
|
|
panel in the NSPrintInfo object from the current
|
|
NSPrintOperation.
|
|
</p>
|
|
<hr />
|
|
<h3>pickedAllPages:</a></h3>
|
|
- (void) <b>pickedAllPages:</b> (id)sender;<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
</p>
|
|
<hr />
|
|
<h3>pickedButton:</a></h3>
|
|
- (void) <b>pickedButton:</b> (id)sender;<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
</p>
|
|
<hr />
|
|
<h3>pickedLayoutList:</a></h3>
|
|
- (void) <b>pickedLayoutList:</b> (id)sender;<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
</p>
|
|
<hr />
|
|
<h3>runModal</a></h3>
|
|
- (int) <b>runModal</b>;<br />
|
|
<p>
|
|
|
|
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.
|
|
</p>
|
|
<hr />
|
|
<h3>setAccessoryView:</a></h3>
|
|
- (void) <b>setAccessoryView:</b> (<a href="NSView.html#class$NSView">NSView</a>*)aView;<br />
|
|
<p>
|
|
|
|
Set the accessory view for the print panel
|
|
</p>
|
|
<hr />
|
|
<h3>updateFromPrintInfo</a></h3>
|
|
- (void) <b>updateFromPrintInfo</b>;<br />
|
|
<p>
|
|
|
|
Setup the display in the receiver's panel based on
|
|
the values stored in the NSPrintInfo object from the
|
|
current NSPrintOperation.
|
|
</p>
|
|
<hr />
|
|
</body>
|
|
</html>
|