<class name="QAbstractPrintDialog" doc="/** <p>The <a href="QAbstractPrintDialog.html#QAbstractPrintDialog(com.trolltech.qt.gui.QPrinter, com.trolltech.qt.gui.QWidget)"><tt>QAbstractPrintDialog</tt></a> class provides a base implementation for print dialogs used to configure printers.</p> <p>This class implements getter and setter functions that are used to customize settings shown in print dialogs, but it is not used directly. Use <a href="QPrintDialog.html"><tt>QPrintDialog</tt></a> to display a print dialog in your application.</p> @see <a href="QPrintDialog.html"><tt>QPrintDialog</tt></a> @see <a href="QPrinter.html"><tt>QPrinter</tt></a> @see <a href="%2E%2E/printing.html">Printing with Qt</tt></a> */"> <signal name="protected final void accepted()" doc="/** <p>This signal is emitted when the dialog has been accepted either by the user or by calling <a href="QDialog.html#accept()"><tt>accept</tt></a> or <a href="QDialog.html#done(int)"><tt>done</tt></a> with the QDialog::Accepted argument.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QAbstractPrintDialog.html#finished(int)"><tt>finished</tt></a>, <a href="QAbstractPrintDialog.html#rejected()"><tt>rejected</tt></a></dd> </dl> */"/> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <signal name="protected final void finished(int result)" doc="/** <p>This signal is emitted when the dialog's <tt>result</tt> code has been set, either by the user or by calling <a href="QDialog.html#done(int)"><tt>done</tt></a>, <a href="QDialog.html#accept()"><tt>accept</tt></a>, or <a href="QDialog.html#reject()"><tt>reject</tt></a>.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(int result)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QAbstractPrintDialog.html#accepted()"><tt>accepted</tt></a>, <a href="QAbstractPrintDialog.html#rejected()"><tt>rejected</tt></a></dd> </dl> */"/> <signal name="protected final void rejected()" doc="/** <p>This signal is emitted when the dialog has been rejected either by the user or by calling <a href="QDialog.html#reject()"><tt>reject</tt></a> or <a href="QDialog.html#done(int)"><tt>done</tt></a> with the QDialog::Rejected argument.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QAbstractPrintDialog.html#finished(int)"><tt>finished</tt></a>, <a href="QAbstractPrintDialog.html#accepted()"><tt>accepted</tt></a></dd> </dl> */"/> <method name="public QAbstractPrintDialog(com.trolltech.qt.gui.QPrinter printer, com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs an abstract print dialog for <tt>printer</tt> with <tt>parent</tt> as parent widget.</p> */"/> <method name="public QAbstractPrintDialog(com.trolltech.qt.gui.QPrinter printer)" doc="/** <p>Equivalent to <a href="QAbstractPrintDialog.html#QAbstractPrintDialog(com.trolltech.qt.gui.QPrinter, com.trolltech.qt.gui.QWidget)"><tt>QAbstractPrintDialog</tt></a>(<tt>printer</tt>, 0). */"/> <method name="public final void addEnabledOption(com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOption option)" doc="/** <p>Adds the option <tt>option</tt> to the set of enabled options in this dialog.</p> <p>Note that this function has no effect on Mac OS X. See the <a href="QPrintDialog.html"><tt>QPrintDialog</tt></a> documentation for more information.</p> */"/> <method name="public final com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOptions enabledOptions()" doc="/** <p>Returns the set of enabled options in this dialog.</p> @see <a href="QAbstractPrintDialog.html#setEnabledOptions(com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOptions)"><tt>setEnabledOptions</tt></a> */"/> <method name="public final int fromPage()" doc="/** <p>Returns the first page to be printed</p> */"/> <method name="public final boolean isOptionEnabled(com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOption option)" doc="/** <p>Returns true if the specified <tt>option</tt> is enabled; otherwise returns false</p> */"/> <method name="public final int maxPage()" doc="/** <p>Returns the maximum page in the page range.</p> */"/> <method name="public final int minPage()" doc="/** <p>Returns the minimum page in the page range.</p> */"/> <method name="public final com.trolltech.qt.gui.QAbstractPrintDialog.PrintRange printRange()" doc="/** <p>Returns the print range.</p> @see <a href="QAbstractPrintDialog.html#setPrintRange(com.trolltech.qt.gui.QAbstractPrintDialog.PrintRange)"><tt>setPrintRange</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QPrinter printer()" doc="/** <p>Returns the printer that this printer dialog operates on.</p> */"/> <method name="public final void setEnabledOptions(com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOptions options)" doc="/** <p>Sets the set of options that should be enabled in the print dialog to <tt>options</tt>.</p> <p>Note that this function has no effect on Mac OS X. See the <a href="QPrintDialog.html"><tt>QPrintDialog</tt></a> documentation for more information.</p> @see <a href="QAbstractPrintDialog.html#enabledOptions()"><tt>enabledOptions</tt></a> */"/> <method name="public final void setFromTo(int fromPage, int toPage)" doc="/** <p>Sets the range in the print dialog to be from <tt>fromPage</tt> to <tt>toPage</tt>.</p> */"/> <method name="public final void setMinMax(int min, int max)" doc="/** <p>Sets the page range in this dialog to be from <tt>min</tt> to <tt>max</tt>. This also enables the <a href="QAbstractPrintDialog.html#PrintDialogOption-enum"><tt>PrintPageRange</tt></a> option.</p> */"/> <method name="public final void setPrintRange(com.trolltech.qt.gui.QAbstractPrintDialog.PrintRange range)" doc="/** <p>Sets the print range option in to be <tt>range</tt>.</p> @see <a href="QAbstractPrintDialog.html#printRange()"><tt>printRange</tt></a> */"/> <method name="public final int toPage()" doc="/** <p>Returns the last page to be printed.</p> */"/> <method name="public abstract int exec()" doc="/** <p>This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.</p> */"/> <enum name="PrintRange" doc="/** <p>Used to specify the print range selection option.</p> @see <tt>QPrinter::PrintRange</tt> */"> <enum-value name="AllPages" doc="/** <p>All pages should be printed.</p> */"/> <enum-value name="Selection" doc="/** <p>Only the selection should be printed.</p> */"/> <enum-value name="PageRange" doc="/** <p>The specified page range should be printed.</p> */"/> </enum> <enum name="PrintDialogOption" doc="/** <p>Used to specify which parts of the print dialog should be enabled.</p> */"> <enum-value name="None" doc="/** <p>None of the options are enabled.</p> */"/> <enum-value name="PrintToFile" doc="/** <p>The print to file option is enabled.</p> */"/> <enum-value name="PrintSelection" doc="/** <p>The print selection option is enalbed.</p> */"/> <enum-value name="PrintPageRange" doc="/** <p>The page range selection option is enabled.</p> */"/> <enum-value name="PrintCollateCopies" doc="/** Internal. */"/> </enum> </class>