mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 19:31:18 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12233 72102866-910b-0410-8b05-ffd578937521
187 lines
7.4 KiB
HTML
187 lines
7.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>NSPrintPanel</title>
|
|
</head>
|
|
<body>
|
|
<a href="Gui.html">Up</a>
|
|
<br />
|
|
<h1><a name="title$NSPrintPanel">NSPrintPanel</a></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><b>Copyright:</b> (C) 2001 Free Software Foundation, Inc.</p>
|
|
<div>
|
|
<hr width="50%" align="left" />
|
|
<h3>Contents -</h3>
|
|
<ol>
|
|
<li>
|
|
<a href="#001000000000">Class Description</a>
|
|
</li>
|
|
</ol>
|
|
<hr width="50%" align="left" />
|
|
</div>
|
|
<h1><a name="001000000000">Class Description</a></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 rel="gsdoc" href="NSPanel.html#class$NSPanel">NSPanel</a></h2>
|
|
<blockquote>
|
|
<dl>
|
|
<dt><b>Declared in:</b></dt>
|
|
<dd>AppKit/NSPrintPanel.h</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<blockquote>
|
|
<b>Standards:</b>
|
|
<ul>
|
|
<li>GNUstep</li>
|
|
<li>MacOS-X</li>
|
|
<li>OpenStep</li>
|
|
</ul>
|
|
</blockquote>
|
|
<p>
|
|
|
|
|
|
</p>
|
|
<b>Method summary</b>
|
|
<ul>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel+printPanel">+printPanel</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-accessoryView">-accessoryView</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:">-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-finalWritePrintInfo">-finalWritePrintInfo</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-pickedAllPages:">-pickedAllPages:</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-pickedButton:">-pickedButton:</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-pickedLayoutList:">-pickedLayoutList:</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-runModal">-runModal</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-setAccessoryView:">-setAccessoryView:</a></li>
|
|
<li><a rel="gsdoc" href="NSPrintPanel.html#method$NSPrintPanel-updateFromPrintInfo">-updateFromPrintInfo</a></li>
|
|
</ul>
|
|
<hr width="50%" align="left" />
|
|
<h3><a name="method$NSPrintPanel+printPanel">printPanel</a></h3>
|
|
+ (<a rel="gsdoc" href="#class$NSPrintPanel">NSPrintPanel</a>*) <b>printPanel</b>;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
Creates and returns a shared instance of the
|
|
NSPrintPanel panel.
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-accessoryView">accessoryView</a></h3>
|
|
- (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*) <b>accessoryView</b>;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
Returns the accessory view for the print panel
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:">beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a></h3>
|
|
- (void) <b>beginSheetWithPrintInfo:</b> (<a rel="gsdoc" href="NSPrintInfo.html#class$NSPrintInfo">NSPrintInfo</a>*)printInfo<b> modalForWindow:</b> (<a rel="gsdoc" href="NSWindow.html#class$NSWindow">NSWindow</a>*)docWindow<b> delegate:</b> (id)delegate<b> didEndSelector:</b> (SEL)didEndSelector<b> contextInfo:</b> (void*)contextInfo;<br />
|
|
<b>Standards:</b> NotOpenStep, GNUstep, MacOS-X<br />
|
|
<p>
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-finalWritePrintInfo">finalWritePrintInfo</a></h3>
|
|
- (void) <b>finalWritePrintInfo</b>;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
Saves information set by the user in the receiver's
|
|
panel in the NSPrintInfo object from the current
|
|
NSPrintOperation.
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-pickedAllPages:">pickedAllPages:</a></h3>
|
|
- (void) <b>pickedAllPages:</b> (id)sender;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-pickedButton:">pickedButton:</a></h3>
|
|
- (void) <b>pickedButton:</b> (id)sender;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-pickedLayoutList:">pickedLayoutList:</a></h3>
|
|
- (void) <b>pickedLayoutList:</b> (id)sender;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
This method has been depreciated. It doesn't do
|
|
anything useful.
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-runModal">runModal</a></h3>
|
|
- (int) <b>runModal</b>;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<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 width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-setAccessoryView:">setAccessoryView:</a></h3>
|
|
- (void) <b>setAccessoryView:</b> (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*)aView;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
<p>
|
|
|
|
Set the accessory view for the print panel
|
|
|
|
</p>
|
|
<hr width="25%" align="left" />
|
|
<h3><a name="method$NSPrintPanel-updateFromPrintInfo">updateFromPrintInfo</a></h3>
|
|
- (void) <b>updateFromPrintInfo</b>;<br />
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<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 width="25%" align="left" />
|
|
<br />
|
|
<a href="Gui.html">Up</a>
|
|
</body>
|
|
</html>
|