Mapper  0.9.0
API documentation
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
AdvancedPdfPrintEngine Class Reference

#include <printengine_advanced_pdf_p.h>

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

Public Member Functions

 AdvancedPdfPrintEngine (QPrinter::PrinterMode m, AdvancedPdfEngine::PdfVersion version=AdvancedPdfEngine::Version_1_4)
 Copyright 2015 Kai Pastor. More...
 
 ~AdvancedPdfPrintEngine () override
 
bool begin (QPaintDevice *pdev) override
 
bool end () override
 
bool abort () override
 
QPrinter::PrinterState printerState () const override
 
bool newPage () override
 
int metric (QPaintDevice::PaintDeviceMetric) const override
 
void setProperty (PrintEnginePropertyKey key, const QVariant &value) override
 
QVariant property (PrintEnginePropertyKey key) const override
 
 AdvancedPdfPrintEngine (QPrinter::PrinterMode m)
 This file is part of OpenOrienteering. More...
 
 ~AdvancedPdfPrintEngine () override
 
bool begin (QPaintDevice *pdev) Q_DECL_OVERRIDE
 
bool end () Q_DECL_OVERRIDE
 
bool abort () Q_DECL_OVERRIDE
 
QPrinter::PrinterState printerState () const Q_DECL_OVERRIDE
 
bool newPage () Q_DECL_OVERRIDE
 
int metric (QPaintDevice::PaintDeviceMetric) const Q_DECL_OVERRIDE
 
void setProperty (PrintEnginePropertyKey key, const QVariant &value) Q_DECL_OVERRIDE
 
QVariant property (PrintEnginePropertyKey key) const Q_DECL_OVERRIDE
 
- Public Member Functions inherited from AdvancedPdfEngine
 AdvancedPdfEngine ()
 
 AdvancedPdfEngine (AdvancedPdfEnginePrivate &d)
 
 ~AdvancedPdfEngine () override
 
void setOutputFilename (const QString &filename)
 
void setResolution (int resolution)
 
int resolution () const
 
void setPdfVersion (PdfVersion version)
 
void drawPoints (const QPointF *points, int pointCount) override
 
void drawLines (const QLineF *lines, int lineCount) override
 
void drawRects (const QRectF *rects, int rectCount) override
 
void drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) override
 
void drawPath (const QPainterPath &path) override
 
void drawTextItem (const QPointF &p, const QTextItem &textItem) override
 
void drawPixmap (const QRectF &rectangle, const QPixmap &pixmap, const QRectF &sr) override
 
void drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) override
 
void drawTiledPixmap (const QRectF &rectangle, const QPixmap &pixmap, const QPointF &point) override
 
void drawHyperlink (const QRectF &r, const QUrl &url)
 
void updateState (const QPaintEngineState &state) override
 
int metric (QPaintDevice::PaintDeviceMetric metricType) const
 
Type type () const override
 
bool newPage ()
 
void setPageLayout (const QPageLayout &pageLayout)
 
void setPageSize (const QPageSize &pageSize)
 
void setPageOrientation (QPageLayout::Orientation orientation)
 
void setPageMargins (const QMarginsF &margins, QPageLayout::Unit units=QPageLayout::Point)
 
QPageLayout pageLayout () const
 
void setPen ()
 
void setBrush ()
 
void setupGraphicsState (QPaintEngine::DirtyFlags flags)
 
 AdvancedPdfEngine ()
 
 AdvancedPdfEngine (AdvancedPdfEnginePrivate &d)
 
 ~AdvancedPdfEngine () override
 
void setOutputFilename (const QString &filename)
 
void setResolution (int resolution)
 
int resolution () const
 
void drawPoints (const QPointF *points, int pointCount) Q_DECL_OVERRIDE
 
void drawLines (const QLineF *lines, int lineCount) Q_DECL_OVERRIDE
 
void drawRects (const QRectF *rects, int rectCount) Q_DECL_OVERRIDE
 
void drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE
 
void drawPath (const QPainterPath &path) Q_DECL_OVERRIDE
 
void drawTextItem (const QPointF &p, const QTextItem &textItem) Q_DECL_OVERRIDE
 
void drawPixmap (const QRectF &rectangle, const QPixmap &pixmap, const QRectF &sr) Q_DECL_OVERRIDE
 
void drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) Q_DECL_OVERRIDE
 
void drawTiledPixmap (const QRectF &rectangle, const QPixmap &pixmap, const QPointF &point) Q_DECL_OVERRIDE
 
void updateState (const QPaintEngineState &state) Q_DECL_OVERRIDE
 
int metric (QPaintDevice::PaintDeviceMetric metricType) const
 
Type type () const Q_DECL_OVERRIDE
 
bool newPage ()
 
void setPageLayout (const QPageLayout &pageLayout)
 
void setPageSize (const QPageSize &pageSize)
 
void setPageOrientation (QPageLayout::Orientation orientation)
 
void setPageMargins (const QMarginsF &margins, QPageLayout::Unit units=QPageLayout::Point)
 
QPageLayout pageLayout () const
 
void setPen ()
 
void setBrush ()
 
void setupGraphicsState (QPaintEngine::DirtyFlags flags)
 
- Public Member Functions inherited from QPaintEngine
 QPaintEngine (QPaintEngine::PaintEngineFeatures caps)
 
virtual ~QPaintEngine ()
 
bool isActive () const const
 
void setActive (bool state)
 
virtual void drawRects (const QRect *rects, int rectCount)
 
virtual void drawLines (const QLine *lines, int lineCount)
 
virtual void drawEllipse (const QRectF &rect)
 
virtual void drawEllipse (const QRect &rect)
 
virtual void drawPoints (const QPoint *points, int pointCount)
 
virtual void drawPolygon (const QPointF *points, int pointCount, QPaintEngine::PolygonDrawMode mode)
 
virtual void drawPolygon (const QPoint *points, int pointCount, QPaintEngine::PolygonDrawMode mode)
 
QPaintDevicepaintDevice () const const
 
bool hasFeature (QPaintEngine::PaintEngineFeatures feature) const const
 
QPainterpainter () const const
 
- Public Member Functions inherited from QPrintEngine
virtual ~QPrintEngine ()
 
virtual void setProperty (QPrintEngine::PrintEnginePropertyKey key, const QVariant &value)=0
 
virtual QVariant property (QPrintEngine::PrintEnginePropertyKey key) const const=0
 

Public Attributes

QPrinter::PrinterState state
 
- Public Attributes inherited from QPaintEngine
typedef PaintEngineFeatures
 
typedef DirtyFlags
 

Protected Member Functions

 AdvancedPdfPrintEngine (AdvancedPdfPrintEnginePrivate &p)
 
 AdvancedPdfPrintEngine (AdvancedPdfPrintEnginePrivate &p)
 

Additional Inherited Members

- Public Types inherited from AdvancedPdfEngine
enum  PdfVersion { Version_1_4, Version_A1b, Version_1_6 }
 
- Static Public Attributes inherited from AdvancedPdfEngine
static struct AdvancedPdfEngine::PaintEngineTypeStruct PaintEngineType = {}
 

Constructor & Destructor Documentation

◆ AdvancedPdfPrintEngine() [1/4]

QT_BEGIN_NAMESPACE AdvancedPdfPrintEngine::AdvancedPdfPrintEngine ( QPrinter::PrinterMode  m,
AdvancedPdfEngine::PdfVersion  version = AdvancedPdfEngine::Version_1_4 
)

Copyright 2015 Kai Pastor.

This file is part of OpenOrienteering.

This is a modified version of a file from the Qt Toolkit. You can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation, or any later version approved by the KDE Free Qt Foundation

OpenOrienteering is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenOrienteering. If not, see http://www.gnu.org/licenses/

◆ ~AdvancedPdfPrintEngine() [1/2]

AdvancedPdfPrintEngine::~AdvancedPdfPrintEngine ( )
override

◆ AdvancedPdfPrintEngine() [2/4]

AdvancedPdfPrintEngine::AdvancedPdfPrintEngine ( AdvancedPdfPrintEnginePrivate p)
protected

◆ AdvancedPdfPrintEngine() [3/4]

QT_BEGIN_NAMESPACE AdvancedPdfPrintEngine::AdvancedPdfPrintEngine ( QPrinter::PrinterMode  m)

This file is part of OpenOrienteering.

This is a modified version of a file from the Qt Toolkit. You can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.

OpenOrienteering is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenOrienteering. If not, see http://www.gnu.org/licenses/

Changes: 2015-10-18 Kai Pastor dg0yt.nosp@m.@dar.nosp@m.c.de

  • Adjustment of legal information
  • Modifications required for separate compilation:
    • Renaming of selected files, classes, members and macros
    • Adjustment of include statements
    • Removal of Q_XXX_EXPORT

◆ ~AdvancedPdfPrintEngine() [2/2]

AdvancedPdfPrintEngine::~AdvancedPdfPrintEngine ( )
override

◆ AdvancedPdfPrintEngine() [4/4]

AdvancedPdfPrintEngine::AdvancedPdfPrintEngine ( AdvancedPdfPrintEnginePrivate p)
protected

Member Function Documentation

◆ abort() [1/2]

bool AdvancedPdfPrintEngine::abort ( )
inlineoverridevirtual

Implements QPrintEngine.

◆ abort() [2/2]

bool AdvancedPdfPrintEngine::abort ( )
inlinevirtual

Implements QPrintEngine.

◆ begin() [1/2]

bool AdvancedPdfPrintEngine::begin ( QPaintDevice pdev)
overridevirtual

Reimplemented from AdvancedPdfEngine.

◆ begin() [2/2]

bool AdvancedPdfPrintEngine::begin ( QPaintDevice pdev)
virtual

Reimplemented from AdvancedPdfEngine.

◆ end() [1/2]

bool AdvancedPdfPrintEngine::end ( )
overridevirtual

Reimplemented from AdvancedPdfEngine.

◆ end() [2/2]

bool AdvancedPdfPrintEngine::end ( )
virtual

Reimplemented from AdvancedPdfEngine.

◆ metric() [1/2]

int AdvancedPdfPrintEngine::metric ( QPaintDevice::PaintDeviceMetric  m) const
overridevirtual

Implements QPrintEngine.

◆ metric() [2/2]

int AdvancedPdfPrintEngine::metric ( QPaintDevice::PaintDeviceMetric  ) const
virtual

Implements QPrintEngine.

◆ newPage() [1/2]

bool AdvancedPdfPrintEngine::newPage ( )
overridevirtual

Implements QPrintEngine.

◆ newPage() [2/2]

bool AdvancedPdfPrintEngine::newPage ( )
virtual

Implements QPrintEngine.

◆ printerState() [1/2]

QPrinter::PrinterState AdvancedPdfPrintEngine::printerState ( ) const
inlineoverridevirtual

Implements QPrintEngine.

◆ printerState() [2/2]

QPrinter::PrinterState AdvancedPdfPrintEngine::printerState ( ) const
inlinevirtual

Implements QPrintEngine.

◆ property() [1/2]

QVariant AdvancedPdfPrintEngine::property ( PrintEnginePropertyKey  key) const
override

◆ property() [2/2]

QVariant AdvancedPdfPrintEngine::property ( PrintEnginePropertyKey  key) const

◆ setProperty() [1/2]

void AdvancedPdfPrintEngine::setProperty ( PrintEnginePropertyKey  key,
const QVariant value 
)
override

◆ setProperty() [2/2]

void AdvancedPdfPrintEngine::setProperty ( PrintEnginePropertyKey  key,
const QVariant value 
)

Member Data Documentation

◆ state

QPrinter::PrinterState AdvancedPdfPrintEngine::state

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