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
cpdf_allstates.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_FPDFAPI_PAGE_CPDF_ALLSTATES_H_
8
#
define
CORE_FPDFAPI_PAGE_CPDF_ALLSTATES_H_
9
10
#
include
"core/fpdfapi/page/cpdf_graphicstates.h"
11
#
include
"core/fxcrt/fx_coordinates.h"
12
13
class
CPDF_Array
;
14
class
CPDF_Dictionary
;
15
class
CPDF_StreamContentParser
;
16
17
class
CPDF_AllStates
{
18
public
:
19
CPDF_AllStates
();
20
CPDF_AllStates
(
const
CPDF_AllStates
& that);
21
CPDF_AllStates
&
operator
=(
const
CPDF_AllStates
& that);
22
~
CPDF_AllStates
();
23
24
void
SetDefaultStates
();
25
26
void
ProcessExtGS
(
const
CPDF_Dictionary
* pGS,
27
CPDF_StreamContentParser
* pParser);
28
void
SetLineDash
(
const
CPDF_Array
* pArray,
float
phase,
float
scale);
29
30
CFX_PointF
GetTransformedTextPosition
()
const
;
31
void
ResetTextPosition
();
32
void
MoveTextPoint
(
const
CFX_PointF
& point);
33
void
MoveTextToNextLine
();
34
void
IncrementTextPositionX
(
float
value);
35
void
IncrementTextPositionY
(
float
value);
36
37
const
CFX_Matrix
&
text_matrix
()
const
{
return
m_TextMatrix; }
38
void
set_text_matrix
(
const
CFX_Matrix
& matrix) { m_TextMatrix
=
matrix; }
39
40
const
CFX_Matrix
&
current_transformation_matrix
()
const
{
return
m_CTM; }
41
void
set_current_transformation_matrix
(
const
CFX_Matrix
& matrix) {
42
m_CTM
=
matrix;
43
}
44
void
prepend_to_current_transformation_matrix
(
const
CFX_Matrix
& matrix) {
45
m_CTM
=
matrix
*
m_CTM;
46
}
47
48
const
CFX_Matrix
&
parent_matrix
()
const
{
return
m_ParentMatrix; }
49
void
set_parent_matrix
(
const
CFX_Matrix
& matrix) { m_ParentMatrix
=
matrix; }
50
51
void
set_text_leading
(
float
value) { m_TextLeading = value; }
52
53
void
set_text_rise
(
float
value) { m_TextRise = value; }
54
55
float
text_horz_scale
()
const
{
return
m_TextHorzScale; }
56
void
set_text_horz_scale
(
float
value) { m_TextHorzScale = value; }
57
58
const
CPDF_ClipPath
&
clip_path
()
const
{
return
m_GraphicStates.clip_path(); }
59
CPDF_ClipPath
&
mutable_clip_path
() {
60
return
m_GraphicStates.mutable_clip_path();
61
}
62
63
const
CFX_GraphState
&
graph_state
()
const
{
64
return
m_GraphicStates.graph_state();
65
}
66
CFX_GraphState
&
mutable_graph_state
() {
67
return
m_GraphicStates.mutable_graph_state();
68
}
69
70
const
CPDF_ColorState
&
color_state
()
const
{
71
return
m_GraphicStates.color_state();
72
}
73
CPDF_ColorState
&
mutable_color_state
() {
74
return
m_GraphicStates.mutable_color_state();
75
}
76
77
const
CPDF_TextState
&
text_state
()
const
{
78
return
m_GraphicStates.text_state();
79
}
80
CPDF_TextState
&
mutable_text_state
() {
81
return
m_GraphicStates.mutable_text_state();
82
}
83
84
const
CPDF_GeneralState
&
general_state
()
const
{
85
return
m_GraphicStates.general_state();
86
}
87
CPDF_GeneralState
&
mutable_general_state
() {
88
return
m_GraphicStates.mutable_general_state();
89
}
90
91
const
CPDF_GraphicStates
&
graphic_states
()
const
{
return
m_GraphicStates; }
92
93
private
:
94
CPDF_GraphicStates
m_GraphicStates;
95
CFX_Matrix
m_TextMatrix;
96
CFX_Matrix
m_CTM;
97
CFX_Matrix
m_ParentMatrix;
98
CFX_PointF
m_TextPos;
99
CFX_PointF
m_TextLinePos;
100
float
m_TextLeading = 0.0f;
101
float
m_TextRise = 0.0f;
102
float
m_TextHorzScale = 1.0f;
103
};
104
105
#
endif
// CORE_FPDFAPI_PAGE_CPDF_ALLSTATES_H_
CFX_GraphState
Definition
cfx_graphstate.h:17
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Matrix::operator=
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_Matrix::operator*
CFX_Matrix operator*(const CFX_Matrix &right) const
Definition
fx_coordinates.h:462
CFX_Matrix::Transform
CFX_PointF Transform(const CFX_PointF &point) const
Definition
fx_coordinates.cpp:464
CPDF_AllStates
Definition
cpdf_allstates.h:17
CPDF_AllStates::mutable_text_state
CPDF_TextState & mutable_text_state()
Definition
cpdf_allstates.h:80
CPDF_AllStates::SetDefaultStates
void SetDefaultStates()
Definition
cpdf_allstates.cpp:30
CPDF_AllStates::IncrementTextPositionX
void IncrementTextPositionX(float value)
Definition
cpdf_allstates.cpp:193
CPDF_AllStates::set_current_transformation_matrix
void set_current_transformation_matrix(const CFX_Matrix &matrix)
Definition
cpdf_allstates.h:41
CPDF_AllStates::mutable_graph_state
CFX_GraphState & mutable_graph_state()
Definition
cpdf_allstates.h:66
CPDF_AllStates::set_text_leading
void set_text_leading(float value)
Definition
cpdf_allstates.h:51
CPDF_AllStates::text_matrix
const CFX_Matrix & text_matrix() const
Definition
cpdf_allstates.h:37
CPDF_AllStates::set_text_horz_scale
void set_text_horz_scale(float value)
Definition
cpdf_allstates.h:56
CPDF_AllStates::mutable_color_state
CPDF_ColorState & mutable_color_state()
Definition
cpdf_allstates.h:73
CPDF_AllStates::prepend_to_current_transformation_matrix
void prepend_to_current_transformation_matrix(const CFX_Matrix &matrix)
Definition
cpdf_allstates.h:44
CPDF_AllStates::set_text_rise
void set_text_rise(float value)
Definition
cpdf_allstates.h:53
CPDF_AllStates::MoveTextPoint
void MoveTextPoint(const CFX_PointF &point)
Definition
cpdf_allstates.cpp:183
CPDF_AllStates::IncrementTextPositionY
void IncrementTextPositionY(float value)
Definition
cpdf_allstates.cpp:197
CPDF_AllStates::set_text_matrix
void set_text_matrix(const CFX_Matrix &matrix)
Definition
cpdf_allstates.h:38
CPDF_AllStates::CPDF_AllStates
CPDF_AllStates()
CPDF_AllStates::text_horz_scale
float text_horz_scale() const
Definition
cpdf_allstates.h:55
CPDF_AllStates::GetTransformedTextPosition
CFX_PointF GetTransformedTextPosition() const
Definition
cpdf_allstates.cpp:178
CPDF_AllStates::general_state
const CPDF_GeneralState & general_state() const
Definition
cpdf_allstates.h:84
CPDF_AllStates::mutable_general_state
CPDF_GeneralState & mutable_general_state()
Definition
cpdf_allstates.h:87
CPDF_AllStates::operator=
CPDF_AllStates & operator=(const CPDF_AllStates &that)
CPDF_AllStates::MoveTextToNextLine
void MoveTextToNextLine()
Definition
cpdf_allstates.cpp:188
CPDF_AllStates::parent_matrix
const CFX_Matrix & parent_matrix() const
Definition
cpdf_allstates.h:48
CPDF_AllStates::clip_path
const CPDF_ClipPath & clip_path() const
Definition
cpdf_allstates.h:58
CPDF_AllStates::SetLineDash
void SetLineDash(const CPDF_Array *pArray, float phase, float scale)
Definition
cpdf_allstates.cpp:34
CPDF_AllStates::mutable_clip_path
CPDF_ClipPath & mutable_clip_path()
Definition
cpdf_allstates.h:59
CPDF_AllStates::set_parent_matrix
void set_parent_matrix(const CFX_Matrix &matrix)
Definition
cpdf_allstates.h:49
CPDF_AllStates::color_state
const CPDF_ColorState & color_state() const
Definition
cpdf_allstates.h:70
CPDF_AllStates::ProcessExtGS
void ProcessExtGS(const CPDF_Dictionary *pGS, CPDF_StreamContentParser *pParser)
Definition
cpdf_allstates.cpp:41
CPDF_AllStates::graph_state
const CFX_GraphState & graph_state() const
Definition
cpdf_allstates.h:63
CPDF_AllStates::text_state
const CPDF_TextState & text_state() const
Definition
cpdf_allstates.h:77
CPDF_AllStates::~CPDF_AllStates
~CPDF_AllStates()
CPDF_AllStates::ResetTextPosition
void ResetTextPosition()
Definition
cpdf_allstates.cpp:173
CPDF_AllStates::graphic_states
const CPDF_GraphicStates & graphic_states() const
Definition
cpdf_allstates.h:91
CPDF_AllStates::CPDF_AllStates
CPDF_AllStates(const CPDF_AllStates &that)
CPDF_AllStates::current_transformation_matrix
const CFX_Matrix & current_transformation_matrix() const
Definition
cpdf_allstates.h:40
CPDF_Array::const_iterator
std::vector< RetainPtr< CPDF_Object > >::const_iterator const_iterator
Definition
cpdf_array.h:29
CPDF_ClipPath
Definition
cpdf_clippath.h:22
CPDF_ColorState
Definition
cpdf_colorstate.h:22
CPDF_DictionaryLocker
Definition
cpdf_dictionary.h:157
CPDF_DictionaryLocker::CPDF_DictionaryLocker
CPDF_DictionaryLocker(const CPDF_Dictionary *pDictionary)
Definition
cpdf_dictionary.cpp:372
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
CPDF_GeneralState
Definition
cpdf_generalstate.h:24
CPDF_GraphicStates
Definition
cpdf_graphicstates.h:16
CPDF_StreamContentParser
Definition
cpdf_streamcontentparser.h:42
CPDF_TextState
Definition
cpdf_textstate.h:34
CFX_PointF
CFX_PTemplate< float > CFX_PointF
Definition
fx_coordinates.h:51
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
page
cpdf_allstates.h
Generated on
for Qt by
1.18.0