| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 int m_Level; | 314 int m_Level; |
| 315 CFX_AffineMatrix m_mtContentToUser; | 315 CFX_AffineMatrix m_mtContentToUser; |
| 316 CFX_FloatRect m_BBox; | 316 CFX_FloatRect m_BBox; |
| 317 CPDF_ParseOptions m_Options; | 317 CPDF_ParseOptions m_Options; |
| 318 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; | 318 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; |
| 319 FX_DWORD m_ParamStartPos; | 319 FX_DWORD m_ParamStartPos; |
| 320 FX_DWORD m_ParamCount; | 320 FX_DWORD m_ParamCount; |
| 321 CPDF_StreamParser* m_pSyntax; | 321 CPDF_StreamParser* m_pSyntax; |
| 322 nonstd::unique_ptr<CPDF_AllStates> m_pCurStates; | 322 nonstd::unique_ptr<CPDF_AllStates> m_pCurStates; |
| 323 CPDF_ContentMark m_CurContentMark; | 323 CPDF_ContentMark m_CurContentMark; |
| 324 CFX_PtrArray m_ClipTextList; | 324 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; |
| 325 CPDF_TextObject* m_pLastTextObject; | 325 CPDF_TextObject* m_pLastTextObject; |
| 326 FX_FLOAT m_DefFontSize; | 326 FX_FLOAT m_DefFontSize; |
| 327 int m_CompatCount; | 327 int m_CompatCount; |
| 328 FX_PATHPOINT* m_pPathPoints; | 328 FX_PATHPOINT* m_pPathPoints; |
| 329 int m_PathPointCount; | 329 int m_PathPointCount; |
| 330 int m_PathAllocSize; | 330 int m_PathAllocSize; |
| 331 FX_FLOAT m_PathStartX; | 331 FX_FLOAT m_PathStartX; |
| 332 FX_FLOAT m_PathStartY; | 332 FX_FLOAT m_PathStartY; |
| 333 FX_FLOAT m_PathCurrentX; | 333 FX_FLOAT m_PathCurrentX; |
| 334 FX_FLOAT m_PathCurrentY; | 334 FX_FLOAT m_PathCurrentY; |
| 335 int m_PathClipType; | 335 int m_PathClipType; |
| 336 CFX_ByteString m_LastImageName; | 336 CFX_ByteString m_LastImageName; |
| 337 CPDF_Image* m_pLastImage; | 337 CPDF_Image* m_pLastImage; |
| 338 CFX_BinaryBuf m_LastImageDict; | 338 CFX_BinaryBuf m_LastImageDict; |
| 339 CFX_BinaryBuf m_LastImageData; | 339 CFX_BinaryBuf m_LastImageData; |
| 340 CPDF_Dictionary* m_pLastImageDict; | 340 CPDF_Dictionary* m_pLastImageDict; |
| 341 CPDF_Dictionary* m_pLastCloneImageDict; | 341 CPDF_Dictionary* m_pLastCloneImageDict; |
| 342 FX_BOOL m_bReleaseLastDict; | 342 FX_BOOL m_bReleaseLastDict; |
| 343 FX_BOOL m_bSameLastDict; | 343 FX_BOOL m_bSameLastDict; |
| 344 FX_BOOL m_bColored; | 344 FX_BOOL m_bColored; |
| 345 FX_FLOAT m_Type3Data[6]; | 345 FX_FLOAT m_Type3Data[6]; |
| 346 FX_BOOL m_bResourceMissing; | 346 FX_BOOL m_bResourceMissing; |
| 347 CFX_PtrArray m_StateStack; | 347 CFX_ArrayTemplate<CPDF_AllStates*> m_StateStack; |
| 348 }; | 348 }; |
| 349 class CPDF_ContentParser { | 349 class CPDF_ContentParser { |
| 350 public: | 350 public: |
| 351 enum ParseStatus { Ready, ToBeContinued, Done }; | 351 enum ParseStatus { Ready, ToBeContinued, Done }; |
| 352 | 352 |
| 353 CPDF_ContentParser(); | 353 CPDF_ContentParser(); |
| 354 ~CPDF_ContentParser(); | 354 ~CPDF_ContentParser(); |
| 355 | 355 |
| 356 ParseStatus GetStatus() { return m_Status; } | 356 ParseStatus GetStatus() { return m_Status; } |
| 357 void Start(CPDF_Page* pPage, CPDF_ParseOptions* pOptions); | 357 void Start(CPDF_Page* pPage, CPDF_ParseOptions* pOptions); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 FX_FLOAT& G, | 519 FX_FLOAT& G, |
| 520 FX_FLOAT& B) const override; | 520 FX_FLOAT& B) const override; |
| 521 CPDF_ColorSpace* GetBaseCS() const override; | 521 CPDF_ColorSpace* GetBaseCS() const override; |
| 522 | 522 |
| 523 private: | 523 private: |
| 524 CPDF_ColorSpace* m_pBaseCS; | 524 CPDF_ColorSpace* m_pBaseCS; |
| 525 CPDF_CountedColorSpace* m_pCountedBaseCS; | 525 CPDF_CountedColorSpace* m_pCountedBaseCS; |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
| OLD | NEW |