|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QDialog
com.trolltech.qt.gui.QAbstractPrintDialog
public abstract class QAbstractPrintDialog
The QAbstractPrintDialog
class provides a base implementation for print dialogs used to configure printers. This class implements getter and setter functions that are used to customize settings shown in print dialogs, but it is not used directly. Use QPrintDialog
to display a print dialog in your application.
QPrintDialog
, QPrinter
, and Printing with Qt.
Nested Class Summary | |
---|---|
static class |
QAbstractPrintDialog.PrintDialogOption
Used to specify which parts of the print dialog should be visible. |
static class |
QAbstractPrintDialog.PrintDialogOptions
This is a flags class for com.trolltech.qt.gui.QAbstractPrintDialog.PrintDialogOption |
static class |
QAbstractPrintDialog.PrintRange
Used to specify the print range selection option. |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QDialog |
---|
QDialog.DialogCode |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.gui.QDialog |
---|
accepted, finished, rejected |
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QAbstractPrintDialog(QPrinter printer)
Constructs an abstract print dialog for printer with parent as parent widget. |
|
QAbstractPrintDialog(QPrinter printer,
QWidget parent)
Constructs an abstract print dialog for printer with parent as parent widget. |
Method Summary | |
---|---|
void |
addEnabledOption(QAbstractPrintDialog.PrintDialogOption option)
Adds the option option to the set of enabled options in this dialog. |
QAbstractPrintDialog.PrintDialogOptions |
enabledOptions()
Returns the set of enabled options in this dialog. |
int |
fromPage()
Returns the first page to be printed By default, this value is set to 0. |
boolean |
isOptionEnabled(QAbstractPrintDialog.PrintDialogOption option)
Returns true if the specified option is enabled; otherwise returns false |
int |
maxPage()
Returns the maximum page in the page range. |
int |
minPage()
Returns the minimum page in the page range. |
QPrinter |
printer()
Returns the printer that this printer dialog operates on. |
QAbstractPrintDialog.PrintRange |
printRange()
Returns the print range. |
void |
setEnabledOptions(QAbstractPrintDialog.PrintDialogOption[] options)
Sets the set of options that should be enabled in the print dialog to options. |
void |
setEnabledOptions(QAbstractPrintDialog.PrintDialogOptions options)
Sets the set of options that should be enabled in the print dialog to options. |
void |
setFromTo(int fromPage,
int toPage)
Sets the range in the print dialog to be from from to to. |
void |
setMinMax(int min,
int max)
Sets the page range in this dialog to be from min to max. |
void |
setOptionTabs(java.util.List tabs)
Set a list of widgets as tabs to be shown on the print dialog, if supported. |
void |
setPrintRange(QAbstractPrintDialog.PrintRange range)
Sets the print range option in to be range. |
int |
toPage()
Returns the last page to be printed. |
Methods inherited from class com.trolltech.qt.gui.QDialog |
---|
accept, done, exec, isSizeGripEnabled, reject, result, setModal, setResult, setSizeGripEnabled |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QAbstractPrintDialog(QPrinter printer)
public QAbstractPrintDialog(QPrinter printer, QWidget parent)
Method Detail |
---|
public final void addEnabledOption(QAbstractPrintDialog.PrintDialogOption option)
Except for the DontUseSheet
option, this function has no effect on Mac OS X. See the QPrintDialog
documentation for more information.
public final QAbstractPrintDialog.PrintDialogOptions enabledOptions()
setEnabledOptions()
.
public final int fromPage()
public final boolean isOptionEnabled(QAbstractPrintDialog.PrintDialogOption option)
public final int maxPage()
public final int minPage()
public final QAbstractPrintDialog.PrintRange printRange()
setPrintRange()
.
public final QPrinter printer()
public final void setEnabledOptions(QAbstractPrintDialog.PrintDialogOption[] options)
Except for the DontUseSheet
option, this function has no effect on Mac OS X. See the QPrintDialog
documentation for more information.
enabledOptions()
.
public final void setEnabledOptions(QAbstractPrintDialog.PrintDialogOptions options)
Except for the DontUseSheet
option, this function has no effect on Mac OS X. See the QPrintDialog
documentation for more information.
enabledOptions()
.
public final void setFromTo(int fromPage, int toPage)
public final void setMinMax(int min, int max)
PrintPageRange
option.
public final void setOptionTabs(java.util.List tabs)
Currently this option is only supported on X11.
Setting the option tabs will transfer their ownership to the print dialog.
public final void setPrintRange(QAbstractPrintDialog.PrintRange range)
printRange()
.
public final int toPage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |