|
|||||||||
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.gui.QPrinterInfo
public class QPrinterInfo
The QPrinterInfo class gives access to information about existing printers. Use the static functions to generate a list of QPrinterInfo objects. Each QPrinterInfo object in the list represents a single printer and can be queried for name, supported paper sizes, and whether or not it is the default printer.
Nested Class Summary |
---|
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.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QPrinterInfo()
Constructs an empty QPrinterInfo object. |
|
QPrinterInfo(QPrinter printer)
Constructs a QPrinterInfo object from printer. |
|
QPrinterInfo(QPrinterInfo src)
Constructs a copy of src. |
Method Summary | |
---|---|
static java.util.List |
availablePrinters()
Returns a list of available printers on the system. |
QPrinterInfo |
clone()
This method is reimplemented for internal reasons |
static QPrinterInfo |
defaultPrinter()
Returns the default printer on the system. |
boolean |
isDefault()
Returns whether this printer is the default printer. |
boolean |
isNull()
Returns whether this QPrinterInfo object holds a printer definition. |
java.lang.String |
printerName()
Returns the name of the printer. |
java.util.List |
supportedPaperSizes()
Returns a list of supported paper sizes by the printer. |
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 |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QPrinterInfo()
isNull()
.
public QPrinterInfo(QPrinter printer)
public QPrinterInfo(QPrinterInfo src)
Method Detail |
---|
public final boolean isDefault()
public final boolean isNull()
An empty QPrinterInfo object could result for example from calling defaultPrinter()
when there are no printers on the system.
public final java.lang.String printerName()
QPrinter::setPrinterName()
.
public final java.util.List supportedPaperSizes()
Not all printer drivers support this query, so the list may be empty. On Mac OS X 10.3, this function always returns an empty list.
public static java.util.List availablePrinters()
public static QPrinterInfo defaultPrinter()
The return value should be checked using isNull()
before being used, in case there is no default printer.
isNull()
.
public QPrinterInfo clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |