Tipos públicos |
enum | PrinterMode { ScreenResolution,
PrinterResolution,
HighResolution,
Compatible
} |
enum | Orientation { Portrait,
Landscape
} |
enum | PageSize {
A4,
B5,
Letter,
Legal,
Executive,
A0,
A1,
A2,
A3,
A5,
A6,
A7,
A8,
A9,
B0,
B1,
B10,
B2,
B3,
B4,
B6,
B7,
B8,
B9,
C5E,
Comm10E,
DLE,
Folio,
Ledger,
Tabloid,
Custom,
NPageSize = Custom
} |
enum | PageOrder { FirstPageFirst,
LastPageFirst
} |
enum | ColorMode { GrayScale,
Color
} |
enum | PaperSource {
OnlyOne,
Lower,
Middle,
Manual,
Envelope,
EnvelopeManual,
Auto,
Tractor,
SmallFormat,
LargeFormat,
LargeCapacity,
Cassette,
FormSource
} |
Métodos públicos |
| PSPrinter (PrinterMode mode=ScreenResolution) |
| ~PSPrinter () |
QString | printerName () const |
virtual void | setPrinterName (const QString &) |
bool | outputToFile () const |
virtual void | setOutputToFile (bool) |
QString | outputFileName () const |
virtual void | setOutputFileName (const QString &) |
QString | printProgram () const |
virtual void | setPrintProgram (const QString &) |
QString | printerSelectionOption () const |
virtual void | setPrinterSelectionOption (const QString &) |
QString | docName () const |
virtual void | setDocName (const QString &) |
QString | creator () const |
virtual void | setCreator (const QString &) |
Orientation | orientation () const |
virtual void | setOrientation (Orientation) |
PageSize | pageSize () const |
virtual void | setPageSize (PageSize) |
virtual void | setPageOrder (PageOrder) |
PageOrder | pageOrder () const |
void | setResolution (int) |
int | resolution () const |
virtual void | setColorMode (ColorMode) |
ColorMode | colorMode () const |
virtual void | setFullPage (bool) |
bool | fullPage () const |
QSize | margins () const |
void | setMargins (uint top, uint left, uint bottom, uint right) |
void | margins (uint *top, uint *left, uint *bottom, uint *right) const |
int | fromPage () const |
int | toPage () const |
virtual void | setFromTo (int fromPage, int toPage) |
int | minPage () const |
int | maxPage () const |
virtual void | setMinMax (int minPage, int maxPage) |
int | numCopies () const |
virtual void | setNumCopies (int) |
bool | collateCopiesEnabled () const |
void | setCollateCopiesEnabled (bool) |
bool | collateCopies () const |
void | setCollateCopies (bool) |
bool | newPage () |
bool | abort () |
bool | aborted () const |
bool | setup (QWidget *parent=0) |
PaperSource | paperSource () const |
virtual void | setPaperSource (PaperSource) |
QIODevice * | outDevice () |
void | setCustomPaperSize (const QSize &s) |
QSize | customPaperSize () const |
Métodos protegidos |
bool | cmd (int, QPainter *, QPDevCmdParam *) |
int | metric (int) const |
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example QPicture).
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example, QPicture).
Reimplementado de QPaintDevice.
QSize PSPrinter::margins |
( |
| ) |
const |
Returns the width of the left/right and top/bottom margins of the printer. This is a best-effort guess, not based on perfect knowledge.
If you have called setFullPage( TRUE ) (this is recommended for high-quality printing), margins().width() may be treated as the smallest sane left/right margin you can use, and margins().height() as the smallest sane top/bottom margins you can use.
If you have called setFullPage( FALSE ) (this is the default), margins() is automatically subtracted from the pageSize() by PSPrinter.
- Ver también:
- setFullPage() QPaintDeviceMetrics PageSize
La documentación para esta clase fue generada a partir de los siguientes ficheros: