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_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 uint8_t m_WordBuffer[256]; | 61 uint8_t m_WordBuffer[256]; |
62 FX_DWORD m_WordSize; | 62 FX_DWORD m_WordSize; |
63 CPDF_Object* m_pLastObj; | 63 CPDF_Object* m_pLastObj; |
64 | 64 |
65 private: | 65 private: |
66 bool PositionIsInBounds() const; | 66 bool PositionIsInBounds() const; |
67 }; | 67 }; |
68 | 68 |
69 #define PARAM_BUF_SIZE 16 | 69 #define PARAM_BUF_SIZE 16 |
70 struct ContentParam { | 70 struct ContentParam { |
71 int m_Type; | 71 enum Type { OBJECT = 0, NUMBER, NAME }; |
| 72 Type m_Type; |
72 union { | 73 union { |
73 struct { | 74 struct { |
74 FX_BOOL m_bInteger; | 75 FX_BOOL m_bInteger; |
75 union { | 76 union { |
76 int m_Integer; | 77 int m_Integer; |
77 FX_FLOAT m_Float; | 78 FX_FLOAT m_Float; |
78 }; | 79 }; |
79 } m_Number; | 80 } m_Number; |
80 CPDF_Object* m_pObject; | 81 CPDF_Object* m_pObject; |
81 struct { | 82 struct { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 CPDF_Document* const m_pDocument; | 235 CPDF_Document* const m_pDocument; |
235 CPDF_Dictionary* m_pPageResources; | 236 CPDF_Dictionary* m_pPageResources; |
236 CPDF_Dictionary* m_pParentResources; | 237 CPDF_Dictionary* m_pParentResources; |
237 CPDF_Dictionary* m_pResources; | 238 CPDF_Dictionary* m_pResources; |
238 CPDF_PageObjectList* m_pObjectList; | 239 CPDF_PageObjectList* m_pObjectList; |
239 int m_Level; | 240 int m_Level; |
240 CFX_Matrix m_mtContentToUser; | 241 CFX_Matrix m_mtContentToUser; |
241 CFX_FloatRect m_BBox; | 242 CFX_FloatRect m_BBox; |
242 CPDF_ParseOptions m_Options; | 243 CPDF_ParseOptions m_Options; |
243 ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; | 244 ContentParam m_ParamBuf[PARAM_BUF_SIZE]; |
244 FX_DWORD m_ParamStartPos; | 245 FX_DWORD m_ParamStartPos; |
245 FX_DWORD m_ParamCount; | 246 FX_DWORD m_ParamCount; |
246 CPDF_StreamParser* m_pSyntax; | 247 CPDF_StreamParser* m_pSyntax; |
247 std::unique_ptr<CPDF_AllStates> m_pCurStates; | 248 std::unique_ptr<CPDF_AllStates> m_pCurStates; |
248 CPDF_ContentMark m_CurContentMark; | 249 CPDF_ContentMark m_CurContentMark; |
249 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; | 250 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; |
250 CPDF_TextObject* m_pLastTextObject; | 251 CPDF_TextObject* m_pLastTextObject; |
251 FX_FLOAT m_DefFontSize; | 252 FX_FLOAT m_DefFontSize; |
252 int m_CompatCount; | 253 int m_CompatCount; |
253 FX_PATHPOINT* m_pPathPoints; | 254 FX_PATHPOINT* m_pPathPoints; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 453 |
453 private: | 454 private: |
454 CPDF_ColorSpace* m_pBaseCS; | 455 CPDF_ColorSpace* m_pBaseCS; |
455 CPDF_CountedColorSpace* m_pCountedBaseCS; | 456 CPDF_CountedColorSpace* m_pCountedBaseCS; |
456 }; | 457 }; |
457 | 458 |
458 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 459 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
459 bool IsPathOperator(const uint8_t* buf, size_t len); | 460 bool IsPathOperator(const uint8_t* buf, size_t len); |
460 | 461 |
461 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 462 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |