Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos protegidos
Referencia de la Clase PSPrinter

#include <psprinter.h>

Diagrama de herencias de PSPrinter
QPaintDevice

Lista de todos los miembros.

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)
QIODeviceoutDevice ()
void setCustomPaperSize (const QSize &s)
QSize customPaperSize () const

Métodos protegidos

bool cmd (int, QPainter *, QPDevCmdParam *)
int metric (int) const

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
GrayScale 
Color 
Valores de enumeraciones:
Portrait 
Landscape 
Valores de enumeraciones:
FirstPageFirst 
LastPageFirst 
Valores de enumeraciones:
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 
Valores de enumeraciones:
OnlyOne 
Lower 
Middle 
Manual 
Envelope 
EnvelopeManual 
Auto 
Tractor 
SmallFormat 
LargeFormat 
LargeCapacity 
Cassette 
FormSource 
Valores de enumeraciones:
ScreenResolution 
PrinterResolution 
HighResolution 
Compatible 

Documentación del constructor y destructor

PSPrinter::PSPrinter ( PrinterMode  m = ScreenResolution)

Constructs a printer paint device.

PSPrinter::~PSPrinter ( )

Destructs the printer paint device and cleans up.


Documentación de las funciones miembro

bool PSPrinter::abort ( )

Aborts the print job. Returns TRUE if successful, otherwise FALSE.

Ver también:
aborted()
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.

Ver también:
setFullPage() QPaintDeviceMetrics PageSize
void PSPrinter::margins ( uint top,
uint left,
uint bottom,
uint right 
) const
int PSPrinter::maxPage ( ) const [inline]
int PSPrinter::metric ( int  m) const [protected, virtual]

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.

Ver también:
setOutputFileName(), setOutputToFile()
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::setFromTo ( int  fromPage,
int  toPage 
) [virtual]
void PSPrinter::setFullPage ( bool  fp) [virtual]
void PSPrinter::setMargins ( uint  top,
uint  left,
uint  bottom,
uint  right 
)
void PSPrinter::setMinMax ( int  minPage,
int  maxPage 
) [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.

Ver también:
outputFileName(), setOutputToFile()
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.

bool PSPrinter::setup ( QWidget parent = 0)
int PSPrinter::toPage ( ) const [inline]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'