Eneboo - Documentación para desarrolladores
|
#include <psprinter.h>
enum PSPrinter::ColorMode |
enum PSPrinter::PageOrder |
enum PSPrinter::PageSize |
PSPrinter::PSPrinter | ( | PrinterMode | m = ScreenResolution | ) |
Constructs a printer paint device.
PSPrinter::~PSPrinter | ( | ) |
Destructs the printer paint device and cleans up.
bool PSPrinter::abort | ( | ) |
Aborts the print job. Returns TRUE if successful, otherwise FALSE.
bool PSPrinter::aborted | ( | ) | const |
bool PSPrinter::cmd | ( | int | , |
QPainter * | , | ||
QPDevCmdParam * | |||
) | [protected, virtual] |
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.
bool PSPrinter::collateCopies | ( | ) | const [inline] |
bool PSPrinter::collateCopiesEnabled | ( | ) | const [inline] |
PSPrinter::ColorMode PSPrinter::colorMode | ( | ) | const |
QString PSPrinter::creator | ( | ) | const [inline] |
QSize PSPrinter::customPaperSize | ( | ) | const [inline] |
QString PSPrinter::docName | ( | ) | const [inline] |
int PSPrinter::fromPage | ( | ) | const [inline] |
bool PSPrinter::fullPage | ( | ) | const |
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.
int PSPrinter::maxPage | ( | ) | const [inline] |
Internal implementation of the virtual QPaintDevice::metric() function.
Use the QPaintDeviceMetrics class instead.
Reimplementado de QPaintDevice.
int PSPrinter::minPage | ( | ) | const [inline] |
bool PSPrinter::newPage | ( | ) |
Advances to a new page on the printer. Returns TRUE if successful, otherwise FALSE.
int PSPrinter::numCopies | ( | ) | const [inline] |
PSPrinter::Orientation PSPrinter::orientation | ( | ) | const [inline] |
QIODevice * PSPrinter::outDevice | ( | ) |
QString PSPrinter::outputFileName | ( | ) | const [inline] |
Returns the name of the output file. There is no default file name.
bool PSPrinter::outputToFile | ( | ) | const [inline] |
PSPrinter::PageOrder PSPrinter::pageOrder | ( | ) | const |
PSPrinter::PageSize PSPrinter::pageSize | ( | ) | const [inline] |
PSPrinter::PaperSource PSPrinter::paperSource | ( | ) | const |
QString PSPrinter::printerName | ( | ) | const [inline] |
QString PSPrinter::printerSelectionOption | ( | ) | const |
QString PSPrinter::printProgram | ( | ) | const [inline] |
int PSPrinter::resolution | ( | ) | const [virtual] |
Reimplementado de QPaintDevice.
void PSPrinter::setCollateCopies | ( | bool | on | ) |
void PSPrinter::setCollateCopiesEnabled | ( | bool | v | ) | [inline] |
void PSPrinter::setColorMode | ( | ColorMode | newColorMode | ) | [virtual] |
void PSPrinter::setCreator | ( | const QString & | creator | ) | [virtual] |
void PSPrinter::setCustomPaperSize | ( | const QSize & | s | ) | [inline] |
void PSPrinter::setDocName | ( | const QString & | name | ) | [virtual] |
void PSPrinter::setFullPage | ( | bool | fp | ) | [virtual] |
void PSPrinter::setNumCopies | ( | int | numCopies | ) | [virtual] |
void PSPrinter::setOrientation | ( | Orientation | orientation | ) | [virtual] |
void PSPrinter::setOutputFileName | ( | const QString & | fileName | ) | [virtual] |
Sets the name of the output file to fileName.
Setting a null or empty name (0 or "") disables output to a file, i.e. calls setOutputToFile(FALSE). Setting a non-empty name enables output to a file, i.e. calls setOutputToFile(TRUE).
This function is currently only supported under X11.
void PSPrinter::setOutputToFile | ( | bool | enable | ) | [virtual] |
void PSPrinter::setPageOrder | ( | PageOrder | newPageOrder | ) | [virtual] |
void PSPrinter::setPageSize | ( | PageSize | newPageSize | ) | [virtual] |
void PSPrinter::setPaperSource | ( | PaperSource | source | ) | [virtual] |
void PSPrinter::setPrinterName | ( | const QString & | name | ) | [virtual] |
void PSPrinter::setPrinterSelectionOption | ( | const QString & | option | ) | [virtual] |
void PSPrinter::setPrintProgram | ( | const QString & | printProg | ) | [virtual] |
void PSPrinter::setResolution | ( | int | ) | [virtual] |
Reimplementado de QPaintDevice.
int PSPrinter::toPage | ( | ) | const [inline] |