![]() |
Qt 6.x
The Qt SDK
|
#include <qprintengine_win_p.h>
Additional Inherited Members | |
![]() | |
static QPaintEnginePrivate * | get (QPaintEngine *paintEngine) |
Definition at line 81 of file qprintengine_win_p.h.
|
inline |
Definition at line 85 of file qprintengine_win_p.h.
QWin32PrintEnginePrivate::~QWin32PrintEnginePrivate | ( | ) |
Definition at line 825 of file qprintengine_win.cpp.
References release().
void QWin32PrintEnginePrivate::composeGdiPath | ( | const QPainterPath & | path | ) |
Definition at line 644 of file qprintengine_win.cpp.
References QPainterPath::CurveToElement, hdc, i, QPainterPath::LineToElement, QPainterPath::MoveToElement, qErrnoWarning(), qFatal, qRound(), QPainterPath::Element::type, Qt::WindingFill, QPainterPath::Element::x, and QPainterPath::Element::y.
Referenced by fillPath_dev(), and strokePath_dev().
void QWin32PrintEnginePrivate::debugMetrics | ( | ) | const |
Definition at line 1696 of file qprintengine_win.cpp.
References dpi_x, dpi_y, m_pageLayout, m_paintRectPixels, m_paintSizeMM, origin_x, origin_y, qDebug, resolution, stretch_x, and stretch_y.
Referenced by initialize().
void QWin32PrintEnginePrivate::doReinit | ( | ) |
Definition at line 975 of file qprintengine_win.cpp.
References QPrinter::Active, reinit, resetDC(), and state.
void QWin32PrintEnginePrivate::fillPath | ( | const QPainterPath & | path, |
const QColor & | color | ||
) |
Definition at line 733 of file qprintengine_win.cpp.
References fillPath_dev().
void QWin32PrintEnginePrivate::fillPath_dev | ( | const QPainterPath & | path, |
const QColor & | color | ||
) |
Definition at line 692 of file qprintengine_win.cpp.
References composeGdiPath(), hdc, and qDebug.
Referenced by fillPath(), and strokePath().
void QWin32PrintEnginePrivate::initHDC | ( | ) |
Definition at line 916 of file qprintengine_win.cpp.
References dpi_display, dpi_x, dpi_y, hdc, QPrinter::HighResolution, QPrinter::PrinterResolution, Q_ASSERT, qWarning, resolution, QPrinter::ScreenResolution, stretch_x, stretch_y, and updateMetrics().
Referenced by initialize().
void QWin32PrintEnginePrivate::initialize | ( | ) |
Definition at line 830 of file qprintengine_win.cpp.
References debugMetrics(), devMode, hdc, hMem, hPrinter, QPrintDevice::id(), initHDC(), QPrintDevice::isValid(), m_printDevice, num_copies, ok, ownsDevMode, pInfo, Q_ASSERT, qDebug, qErrnoWarning(), release(), QTransform::TxNone, txop, updatePageLayout(), and QString::utf16().
void QWin32PrintEnginePrivate::release | ( | ) |
Definition at line 950 of file qprintengine_win.cpp.
References devMode, globalDevMode, hdc, hMem, hPrinter, ownsDevMode, and pInfo.
Referenced by ~QWin32PrintEnginePrivate(), and initialize().
bool QWin32PrintEnginePrivate::resetDC | ( | ) |
Definition at line 985 of file qprintengine_win.cpp.
References devMode, hdc, qErrnoWarning(), and qWarning.
Referenced by doReinit().
Definition at line 1599 of file qprintengine_win.cpp.
References devMode, DMPAPER_USER, has_custom_paper_size, QSizeF::height(), QPageSize::isValid(), m_pageLayout, m_printDevice, QPageSize::Millimeter, QPageLayout::orientation(), QPageLayout::pageSize(), QPageLayout::Point, QPrintDevice::printableMargins(), Q_ASSERT, qRound(), qt_convertMargins(), resolution, QPageLayout::setPageSize(), QPageSize::size(), QPrintDevice::supportedPageSize(), QPageLayout::units(), updateMetrics(), QSizeF::width(), and QPageSize::windowsId().
Referenced by updatePageLayout().
void QWin32PrintEnginePrivate::strokePath | ( | const QPainterPath & | path, |
const QColor & | color | ||
) |
Definition at line 738 of file qprintengine_win.cpp.
References QPen::capStyle(), QPainterPathStroker::createStroke(), Qt::CustomDashLine, QPen::dashOffset(), QPen::dashPattern(), fillPath_dev(), QPen::isCosmetic(), QPainterPath::isEmpty(), QPen::joinStyle(), QPen::miterLimit(), origin_x, origin_y, painterMatrix, pen, QPainterPathStroker::setCapStyle(), QPainterPathStroker::setDashOffset(), QPainterPathStroker::setDashPattern(), QPainterPathStroker::setJoinStyle(), QPainterPathStroker::setMiterLimit(), QPainterPathStroker::setWidth(), Qt::SolidLine, stretch_x, stretch_y, strokePath_dev(), QPen::style(), QTransform::TxScale, and QPen::widthF().
void QWin32PrintEnginePrivate::strokePath_dev | ( | const QPainterPath & | path, |
const QColor & | color, | ||
qreal | width | ||
) |
Definition at line 706 of file qprintengine_win.cpp.
References QPen::capStyle(), composeGdiPath(), Qt::FlatCap, hdc, QPen::joinStyle(), Qt::MiterJoin, pen, Qt::RoundCap, and Qt::RoundJoin.
Referenced by strokePath().
void QWin32PrintEnginePrivate::updateMetrics | ( | ) |
Definition at line 1675 of file qprintengine_win.cpp.
References dpi_x, dpi_y, QTransform::fromScale(), QPageLayout::fullRectPixels(), hdc, QRect::height(), QSizeF::height(), QMarginsF::left(), m_pageLayout, m_paintRectPixels, m_paintSizeMM, QTransform::mapRect(), QPageLayout::margins(), QPageLayout::Millimeter, origin_x, origin_y, QPageLayout::paintRect(), QPageLayout::paintRectPixels(), qRound(), resolution, QRectF::size(), QMarginsF::top(), QRect::width(), and QSizeF::width().
Referenced by initHDC(), setPageSize(), and updatePageLayout().
void QWin32PrintEnginePrivate::updatePageLayout | ( | ) |
Definition at line 1632 of file qprintengine_win.cpp.
References devMode, DMPAPER_LAST, hdc, QPageSize::id(), QPageLayout::Landscape, m_pageLayout, QPageSize::Millimeter, QPageSize::Point, QPageLayout::Portrait, Q_ASSERT, QPageLayout::setOrientation(), setPageSize(), and updateMetrics().
Referenced by initialize().
QColor QWin32PrintEnginePrivate::brush_color |
Definition at line 199 of file qprintengine_win_p.h.
uint QWin32PrintEnginePrivate::complex_xform |
Definition at line 191 of file qprintengine_win_p.h.
DEVMODE* QWin32PrintEnginePrivate::devMode |
Definition at line 148 of file qprintengine_win_p.h.
Referenced by initialize(), release(), resetDC(), setPageSize(), and updatePageLayout().
QString QWin32PrintEnginePrivate::docName |
Definition at line 163 of file qprintengine_win_p.h.
int QWin32PrintEnginePrivate::dpi_display |
Definition at line 185 of file qprintengine_win_p.h.
Referenced by initHDC().
int QWin32PrintEnginePrivate::dpi_x |
Definition at line 183 of file qprintengine_win_p.h.
Referenced by debugMetrics(), initHDC(), and updateMetrics().
int QWin32PrintEnginePrivate::dpi_y |
Definition at line 184 of file qprintengine_win_p.h.
Referenced by debugMetrics(), initHDC(), and updateMetrics().
uint QWin32PrintEnginePrivate::embed_fonts |
Definition at line 195 of file qprintengine_win_p.h.
QString QWin32PrintEnginePrivate::fileName |
Definition at line 165 of file qprintengine_win_p.h.
HGLOBAL QWin32PrintEnginePrivate::globalDevMode |
Definition at line 147 of file qprintengine_win_p.h.
Referenced by release().
uint QWin32PrintEnginePrivate::has_brush |
Definition at line 193 of file qprintengine_win_p.h.
uint QWin32PrintEnginePrivate::has_custom_paper_size |
Definition at line 194 of file qprintengine_win_p.h.
Referenced by setPageSize().
uint QWin32PrintEnginePrivate::has_pen |
Definition at line 192 of file qprintengine_win_p.h.
HDC QWin32PrintEnginePrivate::hdc |
Definition at line 152 of file qprintengine_win_p.h.
Referenced by composeGdiPath(), fillPath_dev(), initHDC(), initialize(), release(), resetDC(), strokePath_dev(), updateMetrics(), and updatePageLayout().
HGLOBAL QWin32PrintEnginePrivate::hMem |
Definition at line 150 of file qprintengine_win_p.h.
Referenced by initialize(), and release().
HANDLE QWin32PrintEnginePrivate::hPrinter |
Definition at line 145 of file qprintengine_win_p.h.
Referenced by initialize(), and release().
QString QWin32PrintEnginePrivate::m_creator |
Definition at line 164 of file qprintengine_win_p.h.
QPageLayout QWin32PrintEnginePrivate::m_pageLayout |
Definition at line 171 of file qprintengine_win_p.h.
Referenced by debugMetrics(), setPageSize(), updateMetrics(), and updatePageLayout().
QRect QWin32PrintEnginePrivate::m_paintRectPixels |
Definition at line 174 of file qprintengine_win_p.h.
Referenced by debugMetrics(), and updateMetrics().
QSize QWin32PrintEnginePrivate::m_paintSizeMM |
Definition at line 175 of file qprintengine_win_p.h.
Referenced by debugMetrics(), and updateMetrics().
QPrintDevice QWin32PrintEnginePrivate::m_printDevice |
Definition at line 160 of file qprintengine_win_p.h.
Referenced by initialize(), and setPageSize().
QTransform QWin32PrintEnginePrivate::matrix |
Definition at line 205 of file qprintengine_win_p.h.
QPrinter::PrinterMode QWin32PrintEnginePrivate::mode |
Definition at line 157 of file qprintengine_win_p.h.
int QWin32PrintEnginePrivate::num_copies |
Definition at line 186 of file qprintengine_win_p.h.
Referenced by initialize().
int QWin32PrintEnginePrivate::origin_x |
Definition at line 180 of file qprintengine_win_p.h.
Referenced by debugMetrics(), strokePath(), and updateMetrics().
int QWin32PrintEnginePrivate::origin_y |
Definition at line 181 of file qprintengine_win_p.h.
Referenced by debugMetrics(), strokePath(), and updateMetrics().
bool QWin32PrintEnginePrivate::ownsDevMode |
Definition at line 155 of file qprintengine_win_p.h.
Referenced by initialize(), and release().
QTransform QWin32PrintEnginePrivate::painterMatrix |
Definition at line 204 of file qprintengine_win_p.h.
Referenced by strokePath().
QSizeF QWin32PrintEnginePrivate::paper_size |
Definition at line 202 of file qprintengine_win_p.h.
QPen QWin32PrintEnginePrivate::pen |
Definition at line 200 of file qprintengine_win_p.h.
Referenced by strokePath(), and strokePath_dev().
QColor QWin32PrintEnginePrivate::pen_color |
Definition at line 201 of file qprintengine_win_p.h.
PRINTER_INFO_2* QWin32PrintEnginePrivate::pInfo |
Definition at line 149 of file qprintengine_win_p.h.
Referenced by initialize(), and release().
uint QWin32PrintEnginePrivate::printToFile |
Definition at line 188 of file qprintengine_win_p.h.
uint QWin32PrintEnginePrivate::reinit |
Definition at line 189 of file qprintengine_win_p.h.
Referenced by doReinit().
int QWin32PrintEnginePrivate::resolution |
Definition at line 168 of file qprintengine_win_p.h.
Referenced by debugMetrics(), initHDC(), setPageSize(), and updateMetrics().
QPrinter::PrinterState QWin32PrintEnginePrivate::state |
Definition at line 167 of file qprintengine_win_p.h.
Referenced by doReinit().
qreal QWin32PrintEnginePrivate::stretch_x |
Definition at line 178 of file qprintengine_win_p.h.
Referenced by debugMetrics(), initHDC(), and strokePath().
qreal QWin32PrintEnginePrivate::stretch_y |
Definition at line 179 of file qprintengine_win_p.h.
Referenced by debugMetrics(), initHDC(), and strokePath().
uint QWin32PrintEnginePrivate::txop |
Definition at line 197 of file qprintengine_win_p.h.
Referenced by initialize().