Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CTextOnlyPrinterDriver Class Referencefinal

#include <ctext_only_printer_driver.h>

+ Inheritance diagram for CTextOnlyPrinterDriver:
+ Collaboration diagram for CTextOnlyPrinterDriver:

Public Member Functions

 CTextOnlyPrinterDriver (HDC hDC)
 
 ~CTextOnlyPrinterDriver () override
 
- Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
 
virtual void SetBaseClip (const FX_RECT &rect)
 
virtual bool FillRectWithBlend (const FX_RECT &rect, uint32_t fill_color, BlendMode blend_type)
 
virtual bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color, BlendMode blend_type)
 
virtual bool GetDIBits (const RetainPtr< CFX_DIBitmap > &pBitmap, int left, int top)
 
virtual RetainPtr< CFX_DIBitmapGetBackDrop ()
 
virtual bool ContinueDIBits (CFX_ImageRenderer *handle, PauseIndicatorIface *pPause)
 
virtual int GetDriverType () const
 
virtual bool DrawShading (const CPDF_ShadingPattern *pPattern, const CFX_Matrix *pMatrix, const FX_RECT &clip_rect, int alpha, bool bAlphaMode)
 

Private Member Functions

DeviceType GetDeviceType () const override
 
int GetDeviceCaps (int caps_id) const override
 
void SaveState () override
 
void RestoreState (bool bKeepSaved) override
 
bool SetClip_PathFill (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_FillRenderOptions &fill_options) override
 
bool SetClip_PathStroke (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState) override
 
bool DrawPath (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options, BlendMode blend_type) override
 
bool GetClipBox (FX_RECT *pRect) override
 
bool SetDIBits (const RetainPtr< const CFX_DIBBase > &pBitmap, uint32_t color, const FX_RECT &src_rect, int left, int top, BlendMode blend_type) override
 
bool StretchDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, int dest_left, int dest_top, int dest_width, int dest_height, const FX_RECT *pClipRect, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
 
bool StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, std::unique_ptr< CFX_ImageRenderer > *handle, BlendMode blend_type) override
 
bool DrawDeviceText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override
 
bool MultiplyAlpha (float alpha) override
 
bool MultiplyAlphaMask (const RetainPtr< const CFX_DIBBase > &mask) override
 

Detailed Description

Definition at line 14 of file ctext_only_printer_driver.h.

Constructor & Destructor Documentation

◆ CTextOnlyPrinterDriver()

CTextOnlyPrinterDriver::CTextOnlyPrinterDriver ( HDC hDC)
explicit

Definition at line 22 of file ctext_only_printer_driver.cpp.

References CTextOnlyPrinterDriver().

Referenced by CTextOnlyPrinterDriver().

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

◆ ~CTextOnlyPrinterDriver()

CTextOnlyPrinterDriver::~CTextOnlyPrinterDriver ( )
overridedefault

Member Function Documentation

◆ DrawDeviceText()

bool CTextOnlyPrinterDriver::DrawDeviceText ( pdfium::span< const TextCharPos > pCharPos,
CFX_Font * pFont,
const CFX_Matrix & mtObject2Device,
float font_size,
uint32_t color,
const CFX_TextRenderOptions & options )
overrideprivatevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 127 of file ctext_only_printer_driver.cpp.

References CFX_Matrix::f, FXSYS_roundf(), g_pdfium_print_mode, CFX_Font::IsEmbedded(), CFX_Font::IsTTFont(), kTextOnly, fxcrt::WideString::operator+=(), and fxcrt::WideString::ToDefANSI().

+ Here is the call graph for this function:

◆ DrawPath()

bool CTextOnlyPrinterDriver::DrawPath ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState,
uint32_t fill_color,
uint32_t stroke_color,
const CFX_FillRenderOptions & fill_options,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 76 of file ctext_only_printer_driver.cpp.

◆ GetClipBox()

bool CTextOnlyPrinterDriver::GetClipBox ( FX_RECT * pRect)
overrideprivatevirtual

◆ GetDeviceCaps()

int CTextOnlyPrinterDriver::GetDeviceCaps ( int caps_id) const
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 39 of file ctext_only_printer_driver.cpp.

◆ GetDeviceType()

DeviceType CTextOnlyPrinterDriver::GetDeviceType ( ) const
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 35 of file ctext_only_printer_driver.cpp.

References kPrinter.

◆ MultiplyAlpha()

bool CTextOnlyPrinterDriver::MultiplyAlpha ( float alpha)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 182 of file ctext_only_printer_driver.cpp.

◆ MultiplyAlphaMask()

bool CTextOnlyPrinterDriver::MultiplyAlphaMask ( const RetainPtr< const CFX_DIBBase > & mask)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 188 of file ctext_only_printer_driver.cpp.

◆ RestoreState()

void CTextOnlyPrinterDriver::RestoreState ( bool bKeepSaved)
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 60 of file ctext_only_printer_driver.cpp.

◆ SaveState()

void CTextOnlyPrinterDriver::SaveState ( )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 58 of file ctext_only_printer_driver.cpp.

◆ SetClip_PathFill()

bool CTextOnlyPrinterDriver::SetClip_PathFill ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_FillRenderOptions & fill_options )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 62 of file ctext_only_printer_driver.cpp.

◆ SetClip_PathStroke()

bool CTextOnlyPrinterDriver::SetClip_PathStroke ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState )
overrideprivatevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 69 of file ctext_only_printer_driver.cpp.

◆ SetDIBits()

bool CTextOnlyPrinterDriver::SetDIBits ( const RetainPtr< const CFX_DIBBase > & pBitmap,
uint32_t color,
const FX_RECT & src_rect,
int left,
int top,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 86 of file ctext_only_printer_driver.cpp.

◆ StartDIBits()

bool CTextOnlyPrinterDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t color,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
std::unique_ptr< CFX_ImageRenderer > * handle,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 116 of file ctext_only_printer_driver.cpp.

◆ StretchDIBits()

bool CTextOnlyPrinterDriver::StretchDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t color,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FX_RECT * pClipRect,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overrideprivatevirtual

Implements RenderDeviceDriverIface.

Definition at line 104 of file ctext_only_printer_driver.cpp.


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