Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qpdf.cpp File Reference
#include "qpdf_p.h"
#include "qplatformdefs.h"
#include <private/qfont_p.h>
#include <private/qmath_p.h>
#include <private/qpainter_p.h>
#include <qbuffer.h>
#include <qcryptographichash.h>
#include <qdatetime.h>
#include <qdebug.h>
#include <qfile.h>
#include <qimagewriter.h>
#include <qnumeric.h>
#include <qtemporaryfile.h>
#include <quuid.h>
#include <zlib.h>
+ Include dependency graph for qpdf.cpp:

Go to the source code of this file.

Classes

struct  QGradientBound
 

Namespaces

namespace  QPdf
 

Macros

#define QT_PATH_ELEMENT(elm)
 

Functions

static void initResources ()
 
QPaintEngine::PaintEngineFeatures qt_pdf_decide_features ()
 
bool qt_isExtendedRadialGradient (const QBrush &brush)
 
static void removeTransparencyFromBrush (QBrush &brush)
 
const char * qt_real_to_string (qreal val, char *buf)
 
const char * qt_int_to_string (int val, char *buf)
 
static void moveToHook (qfixed x, qfixed y, void *data)
 
static void lineToHook (qfixed x, qfixed y, void *data)
 
static void cubicToHook (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey, void *data)
 
QPainterPath qt_regionToPath (const QRegion &region)
 
 Q_DECLARE_TYPEINFO (QGradientBound, Q_PRIMITIVE_TYPE)
 
static bool is_monochrome (const QList< QRgb > &colorTable)
 

Variables

static const bool do_compress = true
 
static const bool interpolateImages = false
 
static const char *const pattern_for_brush []
 

Macro Definition Documentation

◆ QT_PATH_ELEMENT

#define QT_PATH_ELEMENT (   elm)

Definition at line 306 of file qpdf.cpp.

Function Documentation

◆ cubicToHook()

static void cubicToHook ( qfixed  c1x,
qfixed  c1y,
qfixed  c2x,
qfixed  c2y,
qfixed  ex,
qfixed  ey,
void data 
)
static

Definition at line 588 of file qpdf.cpp.

References QTransform::map(), and QPdf::Stroker::matrix.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setCubicToHook().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initResources()

static void initResources ( )
static

Definition at line 38 of file qpdf.cpp.

References Q_INIT_RESOURCE.

Referenced by QCocoaIntegration::QCocoaIntegration(), QEglFSIntegration::QEglFSIntegration(), QPdfEnginePrivate::QPdfEnginePrivate(), QWindowsCursor::QWindowsCursor(), and QApplicationPrivate::init().

+ Here is the caller graph for this function:

◆ is_monochrome()

static bool is_monochrome ( const QList< QRgb > &  colorTable)
inlinestatic

Definition at line 2837 of file qpdf.cpp.

References QList< T >::at(), Qt::black, QColor::rgba(), QList< T >::size(), and Qt::white.

Referenced by QPdfEnginePrivate::addImage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineToHook()

static void lineToHook ( qfixed  x,
qfixed  y,
void data 
)
static

Definition at line 580 of file qpdf.cpp.

References QTransform::map(), and QPdf::Stroker::matrix.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setLineToHook().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moveToHook()

static void moveToHook ( qfixed  x,
qfixed  y,
void data 
)
static

Definition at line 569 of file qpdf.cpp.

References QPdf::ByteStream::stream(), and QPdf::Stroker::stream.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setMoveToHook().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QGradientBound  ,
Q_PRIMITIVE_TYPE   
)

◆ qt_int_to_string()

const char * qt_int_to_string ( int  val,
char *  buf 
)

Definition at line 151 of file qpdf.cpp.

References i, output, and ret.

Referenced by QPdf::ByteStream::operator<<().

+ Here is the caller graph for this function:

◆ qt_isExtendedRadialGradient()

bool qt_isExtendedRadialGradient ( const QBrush brush)

Definition at line 801 of file qbrush.cpp.

References QRadialGradient::center(), QRadialGradient::focalPoint(), QRadialGradient::focalRadius(), qFuzzyIsNull(), Qt::RadialGradientPattern, QRadialGradient::radius(), QPointF::x(), and QPointF::y().

Referenced by QBrush::isOpaque(), removeTransparencyFromBrush(), and QPainterPrivate::updateEmulationSpecifier().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_pdf_decide_features()

QPaintEngine::PaintEngineFeatures qt_pdf_decide_features ( )
inline

◆ qt_real_to_string()

const char * qt_real_to_string ( qreal  val,
char *  buf 
)

Definition at line 99 of file qpdf.cpp.

References i, output, qIsNaN(), and ret.

Referenced by QPdfEngine::drawHyperlink(), QPdf::ByteStream::operator<<(), and QPdf::ByteStream::operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_regionToPath()

QPainterPath qt_regionToPath ( const QRegion region)

Definition at line 1007 of file qregion.cpp.

◆ removeTransparencyFromBrush()

static void removeTransparencyFromBrush ( QBrush brush)
static

Definition at line 60 of file qpdf.cpp.

References Qt::black, Qt::ConicalGradientPattern, i, Qt::LinearGradientPattern, qt_isExtendedRadialGradient(), Qt::RadialGradientPattern, QList< T >::size(), Qt::SolidPattern, and Qt::TexturePattern.

Referenced by QPdfEngine::updateState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ do_compress

const bool do_compress = true
static

Definition at line 31 of file qpdf.cpp.

◆ interpolateImages

const bool interpolateImages = false
static

Definition at line 36 of file qpdf.cpp.

◆ pattern_for_brush

const char* const pattern_for_brush[]
static

Definition at line 407 of file qpdf.cpp.

Referenced by QPdf::patternForBrush().