2001-12-17 16:51:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NSPageLayout</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2002-01-28 04:50:14 +00:00
|
|
|
<a href="Gui.html">Up</a>
|
|
|
|
<br />
|
|
|
|
<h1><a name="title$NSPageLayout">NSPageLayout</a></h1>
|
2001-12-17 16:51:51 +00:00
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt>Adam Fedor(<a href="mailto:fedor@gnu.org"><code>
|
|
|
|
fedor@gnu.org
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<blockquote>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-10-16 02:09:09 +00:00
|
|
|
Standard panel for querying user about page layout.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</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">NSPageLayout</a>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
<hr width="50%" align="left" />
|
|
|
|
</div>
|
|
|
|
<h1><a name="001000000000">NSPageLayout</a></h1>
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
NSPageLayout provides a panel that allows the user
|
|
|
|
to specify certain information about the printer and how
|
|
|
|
data is formatted for printing. This includes information
|
|
|
|
about the paper size and orientation. Typically you would
|
|
|
|
create a page layout panel with the
|
2002-01-28 04:50:14 +00:00
|
|
|
<a rel="gsdoc" href="#method$(nil)+pageLayout">
|
|
|
|
+pageLayout
|
|
|
|
</a>
|
2001-12-17 16:51:51 +00:00
|
|
|
|
|
|
|
class method. However, the best way to use the panel is
|
|
|
|
to have the application call the runPageLayout: method in
|
|
|
|
the NSApplication object which would both create a standard
|
|
|
|
NSPageLayout panel and display it in a modal loop.
|
|
|
|
This method would be sent up the responder chain if the
|
|
|
|
user clicked on a Page Layout menu item.
|
|
|
|
</p>
|
2002-01-28 04:50:14 +00:00
|
|
|
<h2><a name="class$NSPageLayout">NSPageLayout</a> : <a rel="gsdoc" href="NSPanel.html#class$NSPanel">NSPanel</a></h2>
|
|
|
|
<blockquote>
|
|
|
|
<dl>
|
|
|
|
<dt><b>Declared in:</b></dt>
|
|
|
|
<dd>AppKit/NSPageLayout.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="NSPageLayout.html#method$NSPageLayout+pageLayout">+pageLayout</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-accessoryView">-accessoryView</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:">-beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-convertOldFactor:newFactor:">-convertOldFactor:newFactor:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-pickedButton:">-pickedButton:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-pickedOrientation:">-pickedOrientation:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-pickedPaperSize:">-pickedPaperSize:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-pickedUnits:">-pickedUnits:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-printInfo">-printInfo</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-readPrintInfo">-readPrintInfo</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-runModal">-runModal</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-runModalWithPrintInfo:">-runModalWithPrintInfo:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-setAccessoryView:">-setAccessoryView:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSPageLayout.html#method$NSPageLayout-writePrintInfo">-writePrintInfo</a></li>
|
|
|
|
</ul>
|
|
|
|
<hr width="50%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout+pageLayout">pageLayout</a></h3>
|
|
|
|
+ (<a rel="gsdoc" href="#class$NSPageLayout">NSPageLayout</a>*) <b>pageLayout</b>;<br />
|
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
|
|
<p>
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Creates and returns a shared instance of the
|
|
|
|
NSPageLayout panel.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-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>
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Returns the accessory view for the page layout
|
|
|
|
panel
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-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$NSPageLayout-convertOldFactor:newFactor:">convertOldFactor:newFactor:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>convertOldFactor:</b> (float*)old<b> newFactor:</b> (float*)new;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Convert the <var>old</var> value to a
|
|
|
|
<var>new</var> one based on the current units. This
|
|
|
|
method has been depreciated. It doesn't do anything
|
|
|
|
useful
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-pickedButton:">pickedButton:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>pickedButton:</b> (id)sender;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-pickedOrientation:">pickedOrientation:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>pickedOrientation:</b> (id)sender;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-pickedPaperSize:">pickedPaperSize:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>pickedPaperSize:</b> (id)sender;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-pickedUnits:">pickedUnits:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>pickedUnits:</b> (id)sender;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
This method has been depreciated. It doesn't do
|
|
|
|
anything useful.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-printInfo">printInfo</a></h3>
|
|
|
|
- (<a rel="gsdoc" href="NSPrintInfo.html#class$NSPrintInfo">NSPrintInfo</a>*) <b>printInfo</b>;<br />
|
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
|
|
<p>
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Return the NSPrintInfo object that the receiver
|
|
|
|
stores layout information into.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-readPrintInfo">readPrintInfo</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>readPrintInfo</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Updates the receiver panel with information from
|
|
|
|
its NSPrintInfo object
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-runModal">runModal</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (int) <b>runModal</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Display the Page Layout panel in a modal loop.
|
|
|
|
Saves any aquired information in the shared
|
|
|
|
NSPrintInfo object. Returns NSCancelButton if
|
|
|
|
the user clicks the Cancel button or NSOKButton
|
|
|
|
otherwise.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-runModalWithPrintInfo:">runModalWithPrintInfo:</a></h3>
|
|
|
|
- (int) <b>runModalWithPrintInfo:</b> (<a rel="gsdoc" href="NSPrintInfo.html#class$NSPrintInfo">NSPrintInfo</a>*)pInfo;<br />
|
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
|
|
|
<p>
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Display the Page Layout panel in a modal loop.
|
|
|
|
Saves any aquired information in the indicated
|
|
|
|
NSPrintInfo object. Returns NSCancelButton if
|
|
|
|
the user clicks the Cancel button or NSOKButton
|
|
|
|
otherwise.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-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>
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Set the accessory view for the page layout panel
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSPageLayout-writePrintInfo">writePrintInfo</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>writePrintInfo</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<b>Standards:</b> GNUstep, MacOS-X, OpenStep<br />
|
2001-12-17 16:51:51 +00:00
|
|
|
<p>
|
2002-01-28 04:50:14 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Writes any layout information set by the user to the
|
|
|
|
receiver's NSPrintInfo object
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<br />
|
|
|
|
<a href="Gui.html">Up</a>
|
2001-12-17 16:51:51 +00:00
|
|
|
</body>
|
|
|
|
</html>
|