com.trolltech.qt.gui
Class QPageSetupDialog

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QObject
                  extended by com.trolltech.qt.gui.QWidget
                      extended by com.trolltech.qt.gui.QDialog
                          extended by com.trolltech.qt.gui.QAbstractPageSetupDialog
                              extended by com.trolltech.qt.gui.QPageSetupDialog
All Implemented Interfaces:
QPaintDeviceInterface, QtJambiInterface

public class QPageSetupDialog
extends QAbstractPageSetupDialog

The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. On Windows and Mac OS X the page setup dialog is implemented using the native page setup dialogs.

Note that on Windows and Mac OS X custom paper sizes won't be reflected in the native page setup dialogs. Additionally, custom page margins set on a QPrinter won't show in the native Mac OS X page setup dialog.

See also:
QPrinter, and QPrintDialog.


Nested Class Summary
static class QPageSetupDialog.PageSetupDialogOption
          Used to specify options to the page setup dialog
static class QPageSetupDialog.PageSetupDialogOptions
           
 
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.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, 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
QPageSetupDialog()
          Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.
QPageSetupDialog(QPrinter printer)
          Constructs a page setup dialog that configures printer with parent as the parent widget.
QPageSetupDialog(QPrinter printer, QWidget parent)
          Constructs a page setup dialog that configures printer with parent as the parent widget.
QPageSetupDialog(QWidget parent)
          Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.
 
Method Summary
 void addEnabledOption(QPageSetupDialog.PageSetupDialogOption option)
          Use setOption(option, true) instead.
 QPageSetupDialog.PageSetupDialogOptions enabledOptions()
          Use options() instead.
 boolean isOptionEnabled(QPageSetupDialog.PageSetupDialogOption option)
          Use testOption(option) instead.
 QPageSetupDialog.PageSetupDialogOptions options()
          This property holds the various options that affect the look and feel of the dialog.
 void setEnabledOptions(QPageSetupDialog.PageSetupDialogOption[] options)
          This is an overloaded method provided for convenience.
 void setEnabledOptions(QPageSetupDialog.PageSetupDialogOptions options)
          Use setOptions(options) instead.
 void setOption(QPageSetupDialog.PageSetupDialogOption option)
          Sets the given option to be enabled if on is true; otherwise, clears the given option.
 void setOption(QPageSetupDialog.PageSetupDialogOption option, boolean on)
          Sets the given option to be enabled if on is true; otherwise, clears the given option.
 void setOptions(QPageSetupDialog.PageSetupDialogOption[] options)
          This is an overloaded method provided for convenience.
 void setOptions(QPageSetupDialog.PageSetupDialogOptions options)
          This property holds the various options that affect the look and feel of the dialog.
 boolean testOption(QPageSetupDialog.PageSetupDialogOption option)
          Returns true if the given option is enabled; otherwise, returns false.
 
Methods inherited from class com.trolltech.qt.gui.QDialog
accept, done, exec, isSizeGripEnabled, open, reject, result, setModal, setResult, setSizeGripEnabled
 
Methods inherited from class com.trolltech.qt.gui.QWidget
acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsRect, contextMenuEvent, contextMenuPolicy, cursor, depth, destroy, destroy, destroy, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsProxyWidget, hasFocus, hasMouseTracking, height, heightForWidth, heightMM, hide, hideEvent, inputContext, inputMethodEvent, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isMaximized, isMinimized, isModal, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyPressEvent, keyReleaseEvent, languageChange, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, numColors, overrideWindowFlags, overrideWindowFlags, overrideWindowState, paintEngine, paintEvent, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, raise, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resetInputContext, resize, resize, resizeEvent, restoreGeometry, saveGeometry, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setHidden, setInputContext, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, underMouse, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, widthMM, window, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
 
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

QPageSetupDialog

public QPageSetupDialog(QPrinter printer)
Constructs a page setup dialog that configures printer with parent as the parent widget.


QPageSetupDialog

public QPageSetupDialog(QPrinter printer,
                        QWidget parent)
Constructs a page setup dialog that configures printer with parent as the parent widget.


QPageSetupDialog

public QPageSetupDialog()
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.

See also:
printer().


QPageSetupDialog

public QPageSetupDialog(QWidget parent)
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.

See also:
printer().

Method Detail

addEnabledOption

public final void addEnabledOption(QPageSetupDialog.PageSetupDialogOption option)
Use setOption(option, true) instead.


enabledOptions

public final QPageSetupDialog.PageSetupDialogOptions enabledOptions()
Use options() instead.

See also:
setEnabledOptions().


isOptionEnabled

public final boolean isOptionEnabled(QPageSetupDialog.PageSetupDialogOption option)
Use testOption(option) instead.


options

public final QPageSetupDialog.PageSetupDialogOptions options()
This property holds the various options that affect the look and feel of the dialog. By default, all options are disabled.

Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).

See also:
setOption(), and testOption().


setEnabledOptions

public final void setEnabledOptions(QPageSetupDialog.PageSetupDialogOption[] options)
This is an overloaded method provided for convenience.


setEnabledOptions

public final void setEnabledOptions(QPageSetupDialog.PageSetupDialogOptions options)
Use setOptions(options) instead.

See also:
enabledOptions().


setOption

public final void setOption(QPageSetupDialog.PageSetupDialogOption option)
Sets the given option to be enabled if on is true; otherwise, clears the given option.

See also:
options, and testOption().


setOption

public final void setOption(QPageSetupDialog.PageSetupDialogOption option,
                            boolean on)
Sets the given option to be enabled if on is true; otherwise, clears the given option.

See also:
options, and testOption().


setOptions

public final void setOptions(QPageSetupDialog.PageSetupDialogOption[] options)
This is an overloaded method provided for convenience.


setOptions

public final void setOptions(QPageSetupDialog.PageSetupDialogOptions options)
This property holds the various options that affect the look and feel of the dialog. By default, all options are disabled.

Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).

See also:
setOption(), and testOption().


testOption

public final boolean testOption(QPageSetupDialog.PageSetupDialogOption option)
Returns true if the given option is enabled; otherwise, returns false.

See also:
options, and setOption().