xref: /aosp_15_r20/external/pdfium/core/fpdfapi/page/cpdf_allstates.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 final : public CPDF_GraphicStates {
18  public:
19   CPDF_AllStates();
20   ~CPDF_AllStates() override;
21 
22   void Copy(const CPDF_AllStates& src);
23   void ProcessExtGS(const CPDF_Dictionary* pGS,
24                     CPDF_StreamContentParser* pParser);
25   void SetLineDash(const CPDF_Array* pArray, float phase, float scale);
26 
27 
28   CFX_Matrix m_TextMatrix;
29   CFX_Matrix m_CTM;
30   CFX_Matrix m_ParentMatrix;
31   CFX_PointF m_TextPos;
32   CFX_PointF m_TextLinePos;
33   float m_TextLeading = 0.0f;
34   float m_TextRise = 0.0f;
35   float m_TextHorzScale = 1.0f;
36 };
37 
38 #endif  // CORE_FPDFAPI_PAGE_CPDF_ALLSTATES_H_
39