| 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 XFA_FXFA_INCLUDE_XFA_FFDOC_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFDOC_H_ |
| 8 #define XFA_FXFA_INCLUDE_XFA_FFDOC_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FFDOC_H_ |
| 9 | 9 |
| 10 #include <map> |
| 11 #include <memory> |
| 12 |
| 10 #include "xfa/fxfa/include/fxfa.h" | 13 #include "xfa/fxfa/include/fxfa.h" |
| 11 #include "xfa/fxfa/parser/xfa_document.h" | 14 #include "xfa/fxfa/parser/xfa_document.h" |
| 12 | 15 |
| 13 class CXFA_ChecksumContext; | 16 class CXFA_ChecksumContext; |
| 14 class CXFA_FFApp; | 17 class CXFA_FFApp; |
| 15 class CXFA_FFNotify; | 18 class CXFA_FFNotify; |
| 16 class CXFA_FFDocView; | 19 class CXFA_FFDocView; |
| 17 | 20 |
| 18 struct FX_IMAGEDIB_AND_DPI { | 21 struct FX_IMAGEDIB_AND_DPI { |
| 19 CFX_DIBSource* pDibSource; | 22 CFX_DIBSource* pDibSource; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 CXFA_ChecksumContext* pCSContext = NULL); | 52 CXFA_ChecksumContext* pCSContext = NULL); |
| 50 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); | 53 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); |
| 51 | 54 |
| 52 protected: | 55 protected: |
| 53 IXFA_DocProvider* m_pDocProvider; | 56 IXFA_DocProvider* m_pDocProvider; |
| 54 CXFA_Document* m_pDocument; | 57 CXFA_Document* m_pDocument; |
| 55 IFX_FileRead* m_pStream; | 58 IFX_FileRead* m_pStream; |
| 56 CXFA_FFApp* m_pApp; | 59 CXFA_FFApp* m_pApp; |
| 57 CXFA_FFNotify* m_pNotify; | 60 CXFA_FFNotify* m_pNotify; |
| 58 CPDF_Document* m_pPDFDoc; | 61 CPDF_Document* m_pPDFDoc; |
| 59 CFX_MapPtrToPtr m_mapNamedImages; | 62 std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap; |
| 60 CFX_MapPtrToPtr m_mapTypeToDocView; | 63 std::map<uint32_t, std::unique_ptr<CXFA_FFDocView>> m_TypeToDocViewMap; |
| 61 uint32_t m_dwDocType; | 64 uint32_t m_dwDocType; |
| 62 FX_BOOL m_bOwnStream; | 65 FX_BOOL m_bOwnStream; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_ | 68 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_ |
| OLD | NEW |