com.trolltech.qt.gui
Class QPrinter.OutputFormat
java.lang.Object
java.lang.Enum
com.trolltech.qt.gui.QPrinter.OutputFormat
- All Implemented Interfaces:
- QtEnumerator, java.io.Serializable, java.lang.Comparable
- Enclosing class:
- QPrinter
public static final class QPrinter.OutputFormat
- extends java.lang.Enum
- implements QtEnumerator
The OutputFormat
enum is used to describe the format QPrinter
should use for printing.
See also:
outputFormat()
, setOutputFormat()
, and setOutputFileName()
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NativeFormat
public static final QPrinter.OutputFormat NativeFormat
QPrinter
will print output using a method defined by the platform it is running on. This mode is the default when printing directly to a printer.
PdfFormat
public static final QPrinter.OutputFormat PdfFormat
QPrinter
will generate its output as a searchable PDF file. This mode is the default when printing to a file.
PostScriptFormat
public static final QPrinter.OutputFormat PostScriptFormat
QPrinter
will generate its output as in the PostScript
format. (This feature was introduced in Qt 4.2.)
values
public static QPrinter.OutputFormat[] values()
valueOf
public static QPrinter.OutputFormat valueOf(java.lang.String name)
value
public int value()
- This function should return an integer value for the enum values of the enumeration that implements this interface.
- Specified by:
value
in interface QtEnumerator
resolve
public static QPrinter.OutputFormat resolve(int value)
- Returns the OutputFormat constant with the specified int.