Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cpsoutput.h
Go to the documentation of this file.
1
// Copyright 2016 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
CORE_FXGE_WIN32_CPSOUTPUT_H_
8
#
define
CORE_FXGE_WIN32_CPSOUTPUT_H_
9
10
#
include
<
stddef
.
h
>
11
#
include
<
windows
.
h
>
12
13
#
include
"core/fxcrt/fx_stream.h"
14
15
class
CPSOutput
final
:
public
IFX_RetainableWriteStream
{
16
public
:
17
enum
class
OutputMode
{
kExtEscape
,
kGdiComment
};
18
19
CPSOutput
(HDC hDC,
OutputMode
mode);
20
~
CPSOutput
()
override
;
21
22
// IFX_Writestream:
23
bool
WriteBlock
(pdfium::span<
const
uint8_t> input)
override
;
24
25
private
:
26
const
HDC m_hDC;
27
const
OutputMode
m_mode;
28
};
29
30
#
endif
// CORE_FXGE_WIN32_CPSOUTPUT_H_
WindowsPrintMode
WindowsPrintMode
Definition
cfx_windowsrenderdevice.h:14
WindowsPrintMode::kPostScript3Type42PassThrough
@ kPostScript3Type42PassThrough
Definition
cfx_windowsrenderdevice.h:23
WindowsPrintMode::kPostScript3PassThrough
@ kPostScript3PassThrough
Definition
cfx_windowsrenderdevice.h:20
WindowsPrintMode::kPostScript2
@ kPostScript2
Definition
cfx_windowsrenderdevice.h:17
WindowsPrintMode::kPostScript3
@ kPostScript3
Definition
cfx_windowsrenderdevice.h:18
WindowsPrintMode::kPostScript3Type42
@ kPostScript3Type42
Definition
cfx_windowsrenderdevice.h:22
WindowsPrintMode::kPostScript2PassThrough
@ kPostScript2PassThrough
Definition
cfx_windowsrenderdevice.h:19
CFX_DIBBase
Definition
cfx_dibbase.h:35
CFX_Font
Definition
cfx_font.h:38
CFX_GraphStateData
Definition
cfx_graphstatedata.h:16
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_PSFontTracker
Definition
cfx_psfonttracker.h:17
CFX_PSRenderer
Definition
cfx_psrenderer.h:48
CFX_PSRenderer::RenderingLevel
RenderingLevel
Definition
cfx_psrenderer.h:50
CFX_PSRenderer::RenderingLevel::kLevel3Type42
@ kLevel3Type42
Definition
cfx_psrenderer.h:53
CFX_PSRenderer::RenderingLevel::kLevel3
@ kLevel3
Definition
cfx_psrenderer.h:52
CFX_PSRenderer::RenderingLevel::kLevel2
@ kLevel2
Definition
cfx_psrenderer.h:51
CFX_Path
Definition
cfx_path.h:18
CFX_Path::AppendRect
void AppendRect(float left, float bottom, float right, float top)
Definition
cfx_path.cpp:310
CPSOutput::WriteBlock
bool WriteBlock(pdfium::span< const uint8_t > input) override
Definition
cpsoutput.cpp:20
CPSOutput::~CPSOutput
~CPSOutput() override
CPSOutput::CPSOutput
CPSOutput(HDC hDC, OutputMode mode)
Definition
cpsoutput.cpp:16
CPSOutput::OutputMode
OutputMode
Definition
cpsoutput.h:17
CPSOutput::OutputMode::kExtEscape
@ kExtEscape
Definition
cpsoutput.h:17
CPSOutput::OutputMode::kGdiComment
@ kGdiComment
Definition
cpsoutput.h:17
CPSPrinterDriver::SetClip_PathFill
bool SetClip_PathFill(const CFX_Path &paath, const CFX_Matrix *pObject2Device, const CFX_FillRenderOptions &fill_options) override
Definition
cps_printer_driver.cpp:128
CPSPrinterDriver::StretchDIBits
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
Definition
cps_printer_driver.cpp:169
CPSPrinterDriver::CPSPrinterDriver
CPSPrinterDriver(HDC hDC, WindowsPrintMode mode, CFX_PSFontTracker *ps_font_tracker, const EncoderIface *encoder_iface)
Definition
cps_printer_driver.cpp:49
CPSPrinterDriver::~CPSPrinterDriver
~CPSPrinterDriver() override
CPSPrinterDriver::GetDeviceCaps
int GetDeviceCaps(int caps_id) const override
Definition
cps_printer_driver.cpp:101
CPSPrinterDriver::DrawDeviceText
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
Definition
cps_printer_driver.cpp:199
CPSPrinterDriver::MultiplyAlpha
bool MultiplyAlpha(float alpha) override
Definition
cps_printer_driver.cpp:210
CPSPrinterDriver::SaveState
void SaveState() override
Definition
cps_printer_driver.cpp:120
CPSPrinterDriver::SetClip_PathStroke
bool SetClip_PathStroke(const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState) override
Definition
cps_printer_driver.cpp:136
CPSPrinterDriver::MultiplyAlphaMask
bool MultiplyAlphaMask(RetainPtr< const CFX_DIBitmap > mask) override
Definition
cps_printer_driver.cpp:216
CPSPrinterDriver::SetDIBits
bool SetDIBits(RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, const FX_RECT &src_rect, int left, int top, BlendMode blend_type) override
Definition
cps_printer_driver.cpp:158
CPSPrinterDriver::StartDIBits
StartResult StartDIBits(RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
Definition
cps_printer_driver.cpp:183
CPSPrinterDriver::GetDeviceType
DeviceType GetDeviceType() const override
Definition
cps_printer_driver.cpp:97
CPSPrinterDriver::RestoreState
void RestoreState(bool bKeepSaved) override
Definition
cps_printer_driver.cpp:124
CPSPrinterDriver::GetClipBox
FX_RECT GetClipBox() const override
Definition
cps_printer_driver.cpp:154
CPSPrinterDriver::DrawPath
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) override
Definition
cps_printer_driver.cpp:144
IFX_RetainableWriteStream
Definition
fx_stream.h:43
RenderDeviceDriverIface
Definition
renderdevicedriver_iface.h:41
RenderDeviceDriverIface::Result
Result
Definition
renderdevicedriver_iface.h:43
RenderDeviceDriverIface::Result::kFailure
@ kFailure
Definition
renderdevicedriver_iface.h:44
RenderDeviceDriverIface::Result::kSuccess
@ kSuccess
Definition
renderdevicedriver_iface.h:45
fxcrt::RetainPtr
Definition
retain_ptr.h:28
UNSAFE_TODO
#define UNSAFE_TODO(...)
Definition
compiler_specific.h:102
FX_ARGB
uint32_t FX_ARGB
Definition
fx_dib.h:36
BlendMode
BlendMode
Definition
fx_dib.h:119
BlendMode::kNormal
@ kNormal
Definition
fx_dib.h:120
NOTREACHED_NORETURN
#define NOTREACHED_NORETURN()
Definition
notreached.h:22
FXDC_BITS_PIXEL
#define FXDC_BITS_PIXEL
Definition
render_defines.h:12
FXDC_RENDER_CAPS
#define FXDC_RENDER_CAPS
Definition
render_defines.h:15
FXDC_PIXEL_WIDTH
#define FXDC_PIXEL_WIDTH
Definition
render_defines.h:10
FXDC_VERT_SIZE
#define FXDC_VERT_SIZE
Definition
render_defines.h:14
FXDC_PIXEL_HEIGHT
#define FXDC_PIXEL_HEIGHT
Definition
render_defines.h:11
FXDC_HORZ_SIZE
#define FXDC_HORZ_SIZE
Definition
render_defines.h:13
DeviceType
DeviceType
Definition
renderdevicedriver_iface.h:34
CFX_FillRenderOptions
Definition
cfx_fillrenderoptions.h:11
CFX_TextRenderOptions
Definition
cfx_textrenderoptions.h:8
EncoderIface
Definition
cfx_psrenderer.h:37
FXDIB_ResampleOptions
Definition
fx_dib.h:106
FX_RECT
Definition
fx_coordinates.h:144
RenderDeviceDriverIface::StartResult
Definition
renderdevicedriver_iface.h:51
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxge
win32
cpsoutput.h
Generated on
for Qt by
1.18.0