Mapper  0.9.0
API documentation
Public Member Functions | Static Public Member Functions | List of all members
AdvancedPdfPrinter Class Reference

#include <advanced_pdf_printer.h>

Inheritance diagram for AdvancedPdfPrinter:
Inheritance graph
[legend]
Collaboration diagram for AdvancedPdfPrinter:
Collaboration graph
[legend]

Public Member Functions

 AdvancedPdfPrinter (PrinterMode mode=ScreenResolution)
 Creates a PdfFormat printer based on AdvancedPdfPrintEngine. More...
 
 AdvancedPdfPrinter (const QPrinterInfo &printer, PrinterMode mode=ScreenResolution)
 Creates a PdfFormat printer based on AdvancedPdfPrintEngine. More...
 
 ~AdvancedPdfPrinter () override
 Destructor. More...
 
- Public Member Functions inherited from QPrinter
 QPrinter (QPrinter::PrinterMode mode)
 
 QPrinter (const QPrinterInfo &printer, QPrinter::PrinterMode mode)
 
virtual ~QPrinter ()
 
void setOutputFormat (QPrinter::OutputFormat format)
 
QPrinter::OutputFormat outputFormat () const const
 
void setPdfVersion (QPagedPaintDevice::PdfVersion version)
 
QPagedPaintDevice::PdfVersion pdfVersion () const const
 
void setPrinterName (const QString &name)
 
QString printerName () const const
 
bool isValid () const const
 
void setOutputFileName (const QString &fileName)
 
QString outputFileName () const const
 
void setPrintProgram (const QString &printProg)
 
QString printProgram () const const
 
void setDocName (const QString &name)
 
QString docName () const const
 
void setCreator (const QString &creator)
 
QString creator () const const
 
bool setPageLayout (const QPageLayout &newLayout)
 
bool setPageSize (const QPageSize &pageSize)
 
bool setPageOrientation (QPageLayout::Orientation orientation)
 
bool setPageMargins (const QMarginsF &margins)
 
bool setPageMargins (const QMarginsF &margins, QPageLayout::Unit units)
 
QPageLayout pageLayout () const const
 
void setOrientation (QPrinter::Orientation orientation)
 
QPrinter::Orientation orientation () const const
 
virtual void setPageSize (QPagedPaintDevice::PageSize newPageSize) override
 
QPagedPaintDevice::PageSize pageSize () const const
 
virtual void setPageSizeMM (const QSizeF &size) override
 
void setPaperSize (QPrinter::PaperSize newPaperSize)
 
QPrinter::PaperSize paperSize () const const
 
void setPaperSize (const QSizeF &paperSize, QPrinter::Unit unit)
 
QSizeF paperSize (QPrinter::Unit unit) const const
 
void setPaperName (const QString &paperName)
 
QString paperName () const const
 
void setPageOrder (QPrinter::PageOrder pageOrder)
 
QPrinter::PageOrder pageOrder () const const
 
void setResolution (int dpi)
 
int resolution () const const
 
void setColorMode (QPrinter::ColorMode newColorMode)
 
QPrinter::ColorMode colorMode () const const
 
void setCollateCopies (bool collate)
 
bool collateCopies () const const
 
void setFullPage (bool fp)
 
bool fullPage () const const
 
void setNumCopies (int numCopies)
 
int numCopies () const const
 
int actualNumCopies () const const
 
void setCopyCount (int count)
 
int copyCount () const const
 
bool supportsMultipleCopies () const const
 
void setPaperSource (QPrinter::PaperSource source)
 
QPrinter::PaperSource paperSource () const const
 
void setDuplex (QPrinter::DuplexMode duplex)
 
QPrinter::DuplexMode duplex () const const
 
QList< int > supportedResolutions () const const
 
QList< QPrinter::PaperSource > supportedPaperSources () const const
 
void setFontEmbeddingEnabled (bool enable)
 
bool fontEmbeddingEnabled () const const
 
void setDoubleSidedPrinting (bool doubleSided)
 
bool doubleSidedPrinting () const const
 
void setWinPageSize (int pageSize)
 
int winPageSize () const const
 
QRect paperRect () const const
 
QRect pageRect () const const
 
QRectF paperRect (QPrinter::Unit unit) const const
 
QRectF pageRect (QPrinter::Unit unit) const const
 
QString printerSelectionOption () const const
 
void setPrinterSelectionOption (const QString &option)
 
virtual bool newPage () override
 
bool abort ()
 
QPrinter::PrinterState printerState () const const
 
virtual QPaintEnginepaintEngine () const const override
 
QPrintEngineprintEngine () const const
 
void setFromTo (int from, int to)
 
int fromPage () const const
 
int toPage () const const
 
void setPrintRange (QPrinter::PrintRange range)
 
QPrinter::PrintRange printRange () const const
 
virtual void setMargins (const QPagedPaintDevice::Margins &m) override
 
void setPageMargins (qreal left, qreal top, qreal right, qreal bottom, QPrinter::Unit unit)
 
void getPageMargins (qreal *left, qreal *top, qreal *right, qreal *bottom, QPrinter::Unit unit) const const
 
- Public Member Functions inherited from QPagedPaintDevice
 QPagedPaintDevice ()
 
virtual ~QPagedPaintDevice ()
 
bool setPageLayout (const QPageLayout &newPageLayout)
 
bool setPageSize (const QPageSize &pageSize)
 
bool setPageOrientation (QPageLayout::Orientation orientation)
 
bool setPageMargins (const QMarginsF &margins)
 
bool setPageMargins (const QMarginsF &margins, QPageLayout::Unit units)
 
QPageLayout pageLayout () const const
 
QPagedPaintDevice::PageSize pageSize () const const
 
QSizeF pageSizeMM () const const
 
QPagedPaintDevice::Margins margins () const const
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
bool paintingActive () const const
 
int width () const const
 
int height () const const
 
int widthMM () const const
 
int heightMM () const const
 
int logicalDpiX () const const
 
int logicalDpiY () const const
 
int physicalDpiX () const const
 
int physicalDpiY () const const
 
int devicePixelRatio () const const
 
qreal devicePixelRatioF () const const
 
int colorCount () const const
 
int depth () const const
 

Static Public Member Functions

static QPaintEngine::Type paintEngineType ()
 Returns the paint engine type which is used for advanced pdf generation. More...
 

Additional Inherited Members

- Public Attributes inherited from QPrinter
typedef PaperSize
 
- Protected Member Functions inherited from QPrinter
void setEngines (QPrintEngine *printEngine, QPaintEngine *paintEngine)
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 
virtual int metric (QPaintDevice::PaintDeviceMetric metric) const const
 

Constructor & Destructor Documentation

◆ AdvancedPdfPrinter() [1/2]

AdvancedPdfPrinter::AdvancedPdfPrinter ( PrinterMode  mode = ScreenResolution)
explicit

Creates a PdfFormat printer based on AdvancedPdfPrintEngine.

◆ AdvancedPdfPrinter() [2/2]

AdvancedPdfPrinter::AdvancedPdfPrinter ( const QPrinterInfo printer,
PrinterMode  mode = ScreenResolution 
)
explicit

Creates a PdfFormat printer based on AdvancedPdfPrintEngine.

◆ ~AdvancedPdfPrinter()

AdvancedPdfPrinter::~AdvancedPdfPrinter ( )
overridedefault

Destructor.

Member Function Documentation

◆ paintEngineType()

QPaintEngine::Type AdvancedPdfPrinter::paintEngineType ( )
static

Returns the paint engine type which is used for advanced pdf generation.


The documentation for this class was generated from the following files: