OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ |
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ |
9 | 9 |
10 #include "../fxge/fx_ge.h" | 10 #include "../fxge/fx_ge.h" |
11 #include "fpdf_resource.h" | 11 #include "fpdf_resource.h" |
12 | 12 |
| 13 class CPDF_ClipPath; |
| 14 class CPDF_ClipPathData; |
| 15 class CPDF_ColorState; |
| 16 class CPDF_ColorStateData; |
| 17 class CPDF_ContentMark; |
| 18 class CPDF_ContentMarkItem; |
| 19 class CPDF_FormObject; |
| 20 class CPDF_GeneralState; |
| 21 class CPDF_GeneralStateData; |
| 22 class CPDF_GraphicStates; |
| 23 class CPDF_GraphState; |
| 24 class CPDF_ImageObject; |
| 25 class CPDF_PageObject; |
13 class CPDF_Path; | 26 class CPDF_Path; |
14 class CPDF_ClipPathData; | 27 class CPDF_PathObject; |
15 class CPDF_ClipPath; | 28 class CPDF_ShadingObject; |
16 class CPDF_ColorStateData; | 29 class CPDF_TextObject; |
17 class CPDF_ColorState; | 30 class CPDF_TextState; |
18 class CPDF_GraphState; | |
19 class CPDF_TextStateData; | 31 class CPDF_TextStateData; |
20 class CPDF_TextState; | 32 class CPDF_TransferFunc; |
21 class CPDF_GeneralStateData; | 33 |
22 class CPDF_GeneralState; | |
23 class CPDF_ContentMarkItem; | |
24 class CPDF_ContentMark; | |
25 class CPDF_GraphicStates; | |
26 class CPDF_PageObject; | |
27 class CPDF_TextObject; | |
28 class CPDF_PathObject; | |
29 class CPDF_ImageObject; | |
30 class CPDF_ShadingObject; | |
31 class CPDF_FormObject; | |
32 typedef CFX_PathData CPDF_PathData; | 34 typedef CFX_PathData CPDF_PathData; |
33 | 35 |
34 class CPDF_Path : public CFX_CountRef<CFX_PathData> { | 36 class CPDF_Path : public CFX_CountRef<CFX_PathData> { |
35 public: | 37 public: |
36 int GetPointCount() { return m_pObject->m_PointCount; } | 38 int GetPointCount() { return m_pObject->m_PointCount; } |
37 | 39 |
38 int GetFlag(int index) { return m_pObject->m_pPoints[index].m_Flag; } | 40 int GetFlag(int index) { return m_pObject->m_pPoints[index].m_Flag; } |
39 | 41 |
40 FX_FLOAT GetPointX(int index) { return m_pObject->m_pPoints[index].m_PointX; } | 42 FX_FLOAT GetPointX(int index) { return m_pObject->m_pPoints[index].m_PointX; } |
41 | 43 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } | 191 FX_FLOAT* GetMatrix() const { return m_pObject->m_Matrix; } |
190 | 192 |
191 FX_FLOAT GetFontSizeV() const; | 193 FX_FLOAT GetFontSizeV() const; |
192 | 194 |
193 FX_FLOAT GetFontSizeH() const; | 195 FX_FLOAT GetFontSizeH() const; |
194 | 196 |
195 FX_FLOAT GetBaselineAngle() const; | 197 FX_FLOAT GetBaselineAngle() const; |
196 | 198 |
197 FX_FLOAT GetShearAngle() const; | 199 FX_FLOAT GetShearAngle() const; |
198 }; | 200 }; |
199 class CPDF_TransferFunc; | 201 |
200 class CPDF_GeneralStateData { | 202 class CPDF_GeneralStateData { |
201 public: | 203 public: |
202 CPDF_GeneralStateData(); | 204 CPDF_GeneralStateData(); |
203 | 205 |
204 CPDF_GeneralStateData(const CPDF_GeneralStateData& src); | 206 CPDF_GeneralStateData(const CPDF_GeneralStateData& src); |
205 ~CPDF_GeneralStateData(); | 207 ~CPDF_GeneralStateData(); |
206 | 208 |
207 void SetBlendMode(const CFX_ByteStringC& blend_mode); | 209 void SetBlendMode(const CFX_ByteStringC& blend_mode); |
208 | 210 |
209 char m_BlendMode[16]; | 211 char m_BlendMode[16]; |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 561 |
560 CFX_AffineMatrix m_FormMatrix; | 562 CFX_AffineMatrix m_FormMatrix; |
561 | 563 |
562 void CalcBoundingBox(); | 564 void CalcBoundingBox(); |
563 | 565 |
564 protected: | 566 protected: |
565 void CopyData(const CPDF_PageObject* pSrcObject) override; | 567 void CopyData(const CPDF_PageObject* pSrcObject) override; |
566 }; | 568 }; |
567 | 569 |
568 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ | 570 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGEOBJ_H_ |
OLD | NEW |