| 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_APP_XFA_FFDOC_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFDOC_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFDOC_H_ | 8 #define XFA_FXFA_APP_XFA_FFDOC_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/parser/xfa_document.h" | 10 #include "xfa/fxfa/parser/xfa_document.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 FX_BOOL CloseDoc(); | 35 FX_BOOL CloseDoc(); |
| 36 void SetDocType(uint32_t dwType); | 36 void SetDocType(uint32_t dwType); |
| 37 CXFA_Document* GetXFADoc() { return m_pDocument; } | 37 CXFA_Document* GetXFADoc() { return m_pDocument; } |
| 38 CXFA_FFApp* GetApp() { return m_pApp; } | 38 CXFA_FFApp* GetApp() { return m_pApp; } |
| 39 CXFA_FFDocView* GetDocView(IXFA_DocLayout* pLayout); | 39 CXFA_FFDocView* GetDocView(IXFA_DocLayout* pLayout); |
| 40 CXFA_FFDocView* GetDocView(); | 40 CXFA_FFDocView* GetDocView(); |
| 41 CPDF_Document* GetPDFDoc(); | 41 CPDF_Document* GetPDFDoc(); |
| 42 CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName, | 42 CFX_DIBitmap* GetPDFNamedImage(const CFX_WideStringC& wsName, |
| 43 int32_t& iImageXDpi, | 43 int32_t& iImageXDpi, |
| 44 int32_t& iImageYDpi); | 44 int32_t& iImageYDpi); |
| 45 IFDE_XMLElement* GetPackageData(const CFX_WideStringC& wsPackage); | 45 CFDE_XMLElement* GetPackageData(const CFX_WideStringC& wsPackage); |
| 46 FX_BOOL SavePackage(const CFX_WideStringC& wsPackage, | 46 FX_BOOL SavePackage(const CFX_WideStringC& wsPackage, |
| 47 IFX_FileWrite* pFile, | 47 IFX_FileWrite* pFile, |
| 48 IXFA_ChecksumContext* pCSContext = NULL); | 48 IXFA_ChecksumContext* pCSContext = NULL); |
| 49 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); | 49 FX_BOOL ImportData(IFX_FileRead* pStream, FX_BOOL bXDP = TRUE); |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 IXFA_DocProvider* m_pDocProvider; | 52 IXFA_DocProvider* m_pDocProvider; |
| 53 CXFA_Document* m_pDocument; | 53 CXFA_Document* m_pDocument; |
| 54 IFX_FileRead* m_pStream; | 54 IFX_FileRead* m_pStream; |
| 55 CXFA_FFApp* m_pApp; | 55 CXFA_FFApp* m_pApp; |
| 56 CXFA_FFNotify* m_pNotify; | 56 CXFA_FFNotify* m_pNotify; |
| 57 CPDF_Document* m_pPDFDoc; | 57 CPDF_Document* m_pPDFDoc; |
| 58 CFX_MapPtrToPtr m_mapNamedImages; | 58 CFX_MapPtrToPtr m_mapNamedImages; |
| 59 CFX_MapPtrToPtr m_mapTypeToDocView; | 59 CFX_MapPtrToPtr m_mapTypeToDocView; |
| 60 uint32_t m_dwDocType; | 60 uint32_t m_dwDocType; |
| 61 FX_BOOL m_bOwnStream; | 61 FX_BOOL m_bOwnStream; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // XFA_FXFA_APP_XFA_FFDOC_H_ | 64 #endif // XFA_FXFA_APP_XFA_FFDOC_H_ |
| OLD | NEW |