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 291 matching lines...) Loading... |
302 FX_BOOL m_bReleaseLastDict; | 302 FX_BOOL m_bReleaseLastDict; |
303 FX_BOOL m_bSameLastDict; | 303 FX_BOOL m_bSameLastDict; |
304 FX_BOOL m_bColored; | 304 FX_BOOL m_bColored; |
305 FX_FLOAT m_Type3Data[6]; | 305 FX_FLOAT m_Type3Data[6]; |
306 FX_BOOL m_bResourceMissing; | 306 FX_BOOL m_bResourceMissing; |
307 CFX_PtrArray m_StateStack; | 307 CFX_PtrArray m_StateStack; |
308 }; | 308 }; |
309 class CPDF_ContentParser | 309 class CPDF_ContentParser |
310 { | 310 { |
311 public: | 311 public: |
| 312 enum ParseStatus { |
| 313 Ready, |
| 314 ToBeContinued, |
| 315 Done |
| 316 }; |
| 317 |
312 CPDF_ContentParser(); | 318 CPDF_ContentParser(); |
313 ~CPDF_ContentParser(); | 319 ~CPDF_ContentParser(); |
314 typedef enum { Ready, ToBeContinued, Done } ParseStatus; | 320 |
315 ParseStatus GetStatus() | 321 ParseStatus GetStatus() |
316 { | 322 { |
317 return m_Status; | 323 return m_Status; |
318 } | 324 } |
319 void Start(CPDF_Page* pPage, CPDF_ParseOption
s* pOptions); | 325 void Start(CPDF_Page* pPage, CPDF_ParseOption
s* pOptions); |
320 void Start(CPDF_Form* pForm, CPDF_AllStates*
pGraphicStates, CFX_AffineMatrix* pParentMatrix, | 326 void Start(CPDF_Form* pForm, CPDF_AllStates*
pGraphicStates, CFX_AffineMatrix* pParentMatrix, |
321 CPDF_Type3Char* pType3Char, CPDF_ParseOptions* pOp
tions, int level); | 327 CPDF_Type3Char* pType3Char, CPDF_ParseOptions* pOp
tions, int level); |
322 void Continue(IFX_Pause* pPause); | 328 void Continue(IFX_Pause* pPause); |
323 int»» » » » EstimateProgress(); | 329 |
324 protected: | 330 protected: |
325 void Clear(); | 331 void Clear(); |
326 ParseStatus m_Status; | 332 ParseStatus m_Status; |
327 CPDF_PageObjects* m_pObjects; | 333 CPDF_PageObjects* m_pObjects; |
328 FX_BOOL m_bForm; | 334 FX_BOOL m_bForm; |
329 CPDF_ParseOptions m_Options; | 335 CPDF_ParseOptions m_Options; |
330 CPDF_Type3Char* m_pType3Char; | 336 CPDF_Type3Char* m_pType3Char; |
331 int m_InternalStage; | 337 int m_InternalStage; |
332 CPDF_StreamAcc* m_pSingleStream; | 338 CPDF_StreamAcc* m_pSingleStream; |
333 CPDF_StreamAcc** m_pStreamArray; | 339 CPDF_StreamAcc** m_pStreamArray; |
(...skipping 148 matching lines...) Loading... |
482 FX_FLOAT& G, | 488 FX_FLOAT& G, |
483 FX_FLOAT& B) const override; | 489 FX_FLOAT& B) const override; |
484 CPDF_ColorSpace* GetBaseCS() const override; | 490 CPDF_ColorSpace* GetBaseCS() const override; |
485 | 491 |
486 private: | 492 private: |
487 CPDF_ColorSpace* m_pBaseCS; | 493 CPDF_ColorSpace* m_pBaseCS; |
488 CPDF_CountedColorSpace* m_pCountedBaseCS; | 494 CPDF_CountedColorSpace* m_pCountedBaseCS; |
489 }; | 495 }; |
490 | 496 |
491 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 497 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |