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_FPDFAPI_PAGE_PAGEINT_H_ | 7 #ifndef CORE_FPDFAPI_PAGE_PAGEINT_H_ |
8 #define CORE_FPDFAPI_PAGE_PAGEINT_H_ | 8 #define CORE_FPDFAPI_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const CFX_Matrix* pmtContentToUser, | 113 const CFX_Matrix* pmtContentToUser, |
114 CPDF_PageObjectHolder* pObjectHolder, | 114 CPDF_PageObjectHolder* pObjectHolder, |
115 CPDF_Dictionary* pResources, | 115 CPDF_Dictionary* pResources, |
116 CFX_FloatRect* pBBox, | 116 CFX_FloatRect* pBBox, |
117 CPDF_AllStates* pAllStates, | 117 CPDF_AllStates* pAllStates, |
118 int level); | 118 int level); |
119 ~CPDF_StreamContentParser(); | 119 ~CPDF_StreamContentParser(); |
120 | 120 |
121 CPDF_PageObjectHolder* GetPageObjectHolder() const { return m_pObjectHolder; } | 121 CPDF_PageObjectHolder* GetPageObjectHolder() const { return m_pObjectHolder; } |
122 CPDF_AllStates* GetCurStates() const { return m_pCurStates.get(); } | 122 CPDF_AllStates* GetCurStates() const { return m_pCurStates.get(); } |
123 FX_BOOL IsColored() const { return m_bColored; } | 123 bool IsColored() const { return m_bColored; } |
124 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } | 124 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } |
125 | 125 |
126 void AddNumberParam(const FX_CHAR* str, int len); | 126 void AddNumberParam(const FX_CHAR* str, int len); |
127 void AddObjectParam(CPDF_Object* pObj); | 127 void AddObjectParam(CPDF_Object* pObj); |
128 void AddNameParam(const FX_CHAR* name, int size); | 128 void AddNameParam(const FX_CHAR* name, int size); |
129 int GetNextParamPos(); | 129 int GetNextParamPos(); |
130 void ClearAllParams(); | 130 void ClearAllParams(); |
131 CPDF_Object* GetObject(uint32_t index); | 131 CPDF_Object* GetObject(uint32_t index); |
132 CFX_ByteString GetString(uint32_t index); | 132 CFX_ByteString GetString(uint32_t index); |
133 FX_FLOAT GetNumber(uint32_t index); | 133 FX_FLOAT GetNumber(uint32_t index); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 FX_FLOAT m_PathCurrentY; | 269 FX_FLOAT m_PathCurrentY; |
270 uint8_t m_PathClipType; | 270 uint8_t m_PathClipType; |
271 CFX_ByteString m_LastImageName; | 271 CFX_ByteString m_LastImageName; |
272 CPDF_Image* m_pLastImage; | 272 CPDF_Image* m_pLastImage; |
273 CFX_BinaryBuf m_LastImageDict; | 273 CFX_BinaryBuf m_LastImageDict; |
274 CFX_BinaryBuf m_LastImageData; | 274 CFX_BinaryBuf m_LastImageData; |
275 CPDF_Dictionary* m_pLastImageDict; | 275 CPDF_Dictionary* m_pLastImageDict; |
276 CPDF_Dictionary* m_pLastCloneImageDict; | 276 CPDF_Dictionary* m_pLastCloneImageDict; |
277 FX_BOOL m_bReleaseLastDict; | 277 FX_BOOL m_bReleaseLastDict; |
278 FX_BOOL m_bSameLastDict; | 278 FX_BOOL m_bSameLastDict; |
279 FX_BOOL m_bColored; | 279 bool m_bColored; |
280 FX_FLOAT m_Type3Data[6]; | 280 FX_FLOAT m_Type3Data[6]; |
281 FX_BOOL m_bResourceMissing; | 281 FX_BOOL m_bResourceMissing; |
282 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack; | 282 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack; |
283 }; | 283 }; |
284 class CPDF_ContentParser { | 284 class CPDF_ContentParser { |
285 public: | 285 public: |
286 enum ParseStatus { Ready, ToBeContinued, Done }; | 286 enum ParseStatus { Ready, ToBeContinued, Done }; |
287 | 287 |
288 CPDF_ContentParser(); | 288 CPDF_ContentParser(); |
289 ~CPDF_ContentParser(); | 289 ~CPDF_ContentParser(); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 }; | 557 }; |
558 | 558 |
559 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); | 559 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); |
560 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( | 560 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( |
561 const CFX_ByteStringC& abbr); | 561 const CFX_ByteStringC& abbr); |
562 | 562 |
563 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 563 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
564 bool IsPathOperator(const uint8_t* buf, size_t len); | 564 bool IsPathOperator(const uint8_t* buf, size_t len); |
565 | 565 |
566 #endif // CORE_FPDFAPI_PAGE_PAGEINT_H_ | 566 #endif // CORE_FPDFAPI_PAGE_PAGEINT_H_ |
OLD | NEW |