| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h" | 10 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h" |
| 11 #include "core/fxcrt/include/fx_coordinates.h" | 11 #include "core/fxcrt/include/fx_coordinates.h" |
| 12 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
| 13 | 13 |
| 14 class IFX_Pause; | 14 class IFX_Pause; |
| 15 class CPDF_Dictionary; | 15 class CPDF_Dictionary; |
| 16 class CPDF_Stream; | 16 class CPDF_Stream; |
| 17 class CPDF_Document; | 17 class CPDF_Document; |
| 18 class CPDF_ContentParser; | 18 class CPDF_ContentParser; |
| 19 | 19 |
| 20 #define PDFTRANS_GROUP 0x0100 | 20 #define PDFTRANS_GROUP 0x0100 |
| 21 #define PDFTRANS_ISOLATED 0x0200 | 21 #define PDFTRANS_ISOLATED 0x0200 |
| 22 #define PDFTRANS_KNOCKOUT 0x0400 | 22 #define PDFTRANS_KNOCKOUT 0x0400 |
| 23 | 23 |
| 24 class CPDF_PageObjectHolder { | 24 class CPDF_PageObjectHolder { |
| 25 public: | 25 public: |
| 26 CPDF_PageObjectHolder(); | 26 CPDF_PageObjectHolder(); |
| 27 virtual ~CPDF_PageObjectHolder(); |
| 27 | 28 |
| 28 void ContinueParse(IFX_Pause* pPause); | 29 void ContinueParse(IFX_Pause* pPause); |
| 29 bool IsParsed() const { return m_ParseState == CONTENT_PARSED; } | 30 bool IsParsed() const { return m_ParseState == CONTENT_PARSED; } |
| 30 | 31 |
| 31 CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; } | 32 CPDF_PageObjectList* GetPageObjectList() { return &m_PageObjectList; } |
| 32 const CPDF_PageObjectList* GetPageObjectList() const { | 33 const CPDF_PageObjectList* GetPageObjectList() const { |
| 33 return &m_PageObjectList; | 34 return &m_PageObjectList; |
| 34 } | 35 } |
| 35 | 36 |
| 36 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; } | 37 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 58 void LoadTransInfo(); | 59 void LoadTransInfo(); |
| 59 | 60 |
| 60 FX_BOOL m_bBackgroundAlphaNeeded; | 61 FX_BOOL m_bBackgroundAlphaNeeded; |
| 61 FX_BOOL m_bHasImageMask; | 62 FX_BOOL m_bHasImageMask; |
| 62 ParseState m_ParseState; | 63 ParseState m_ParseState; |
| 63 std::unique_ptr<CPDF_ContentParser> m_pParser; | 64 std::unique_ptr<CPDF_ContentParser> m_pParser; |
| 64 CPDF_PageObjectList m_PageObjectList; | 65 CPDF_PageObjectList m_PageObjectList; |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ | 68 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGEOBJECTHOLDER_H_ |
| OLD | NEW |