| 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> | 10 #include <map> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 int32_t iImageYDpi; | 24 int32_t iImageYDpi; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 class CXFA_FFDoc { | 27 class CXFA_FFDoc { |
| 28 public: | 28 public: |
| 29 CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider); | 29 CXFA_FFDoc(CXFA_FFApp* pApp, IXFA_DocProvider* pDocProvider); |
| 30 ~CXFA_FFDoc(); | 30 ~CXFA_FFDoc(); |
| 31 IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; } | 31 IXFA_DocProvider* GetDocProvider() { return m_pDocProvider; } |
| 32 uint32_t GetDocType(); | 32 uint32_t GetDocType(); |
| 33 int32_t StartLoad(); | 33 int32_t StartLoad(); |
| 34 int32_t DoLoad(IFX_Pause* pPause = NULL); | 34 int32_t DoLoad(IFX_Pause* pPause = nullptr); |
| 35 void StopLoad(); | 35 void StopLoad(); |
| 36 CXFA_FFDocView* CreateDocView(uint32_t dwView = 0); | 36 CXFA_FFDocView* CreateDocView(uint32_t dwView = 0); |
| 37 FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile); | 37 FX_BOOL OpenDoc(IFX_FileRead* pStream, FX_BOOL bTakeOverFile); |
| 38 FX_BOOL OpenDoc(CPDF_Document* pPDFDoc); | 38 FX_BOOL OpenDoc(CPDF_Document* pPDFDoc); |
| 39 FX_BOOL CloseDoc(); | 39 FX_BOOL CloseDoc(); |
| 40 void SetDocType(uint32_t dwType); | 40 void SetDocType(uint32_t dwType); |
| 41 CXFA_Document* GetXFADoc() { return m_pDocument; } | 41 CXFA_Document* GetXFADoc() { return m_pDocument; } |
| 42 CXFA_FFApp* GetApp() { return m_pApp; } | 42 CXFA_FFApp* GetApp() { return m_pApp; } |
| 43 CXFA_FFDocView* GetDocView(CXFA_LayoutProcessor* pLayout); | 43 CXFA_FFDocView* GetDocView(CXFA_LayoutProcessor* pLayout); |
| 44 CXFA_FFDocView* GetDocView(); | 44 CXFA_FFDocView* GetDocView(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 59 CXFA_FFApp* m_pApp; | 59 CXFA_FFApp* m_pApp; |
| 60 CXFA_FFNotify* m_pNotify; | 60 CXFA_FFNotify* m_pNotify; |
| 61 CPDF_Document* m_pPDFDoc; | 61 CPDF_Document* m_pPDFDoc; |
| 62 std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap; | 62 std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap; |
| 63 std::map<uint32_t, std::unique_ptr<CXFA_FFDocView>> m_TypeToDocViewMap; | 63 std::map<uint32_t, std::unique_ptr<CXFA_FFDocView>> m_TypeToDocViewMap; |
| 64 uint32_t m_dwDocType; | 64 uint32_t m_dwDocType; |
| 65 FX_BOOL m_bOwnStream; | 65 FX_BOOL m_bOwnStream; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_ | 68 #endif // XFA_FXFA_INCLUDE_XFA_FFDOC_H_ |
| OLD | NEW |