com.trolltech.qt.gui
Class QPrintEngine
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QPrintEngine
- All Implemented Interfaces:
- QtJambiInterface
public abstract class QPrintEngine
- extends QtJambiObject
The QPrintEngine
class defines an interface for how QPrinter
interacts with a given printing subsystem. The common case when creating your own print engine is to derive from both QPaintEngine
and QPrintEngine
. Various properties of a print engine are given with property()
and set with setProperty()
.
See also:
QPaintEngine
.
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 |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
currentSender |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QPrintEngine
public QPrintEngine()
abort
public abstract boolean abort()
- Instructs the print engine to abort the printing process. Returns true if successful; otherwise returns false.
metric
public abstract int metric(QPaintDevice.PaintDeviceMetric arg__1)
- Returns the metric for the given id.
newPage
public abstract boolean newPage()
- Instructs the print engine to start a new page. Returns true if the printer was able to create the new page; otherwise returns false.
printerState
public abstract QPrinter.PrinterState printerState()
- Returns the current state of the printer being used by the print engine.
property
public abstract java.lang.Object property(QPrintEngine.PrintEnginePropertyKey key)
- Returns the print engine's property specified by key.
- See also:
setProperty()
.
setProperty
public abstract void setProperty(QPrintEngine.PrintEnginePropertyKey key,
java.lang.Object value)
- Sets the print engine's property specified by key to the given value.
- See also:
property()
.