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 FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ | 7 #ifndef FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ |
8 #define FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ | 8 #define FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 22 matching lines...) Expand all Loading... |
33 CPDFXFA_Document(std::unique_ptr<CPDF_Document> pPDFDoc, | 33 CPDFXFA_Document(std::unique_ptr<CPDF_Document> pPDFDoc, |
34 CPDFXFA_App* pProvider); | 34 CPDFXFA_App* pProvider); |
35 ~CPDFXFA_Document(); | 35 ~CPDFXFA_Document(); |
36 | 36 |
37 FX_BOOL LoadXFADoc(); | 37 FX_BOOL LoadXFADoc(); |
38 CPDF_Document* GetPDFDoc() { return m_pPDFDoc.get(); } | 38 CPDF_Document* GetPDFDoc() { return m_pPDFDoc.get(); } |
39 CXFA_FFDoc* GetXFADoc() { return m_pXFADoc.get(); } | 39 CXFA_FFDoc* GetXFADoc() { return m_pXFADoc.get(); } |
40 CXFA_FFDocView* GetXFADocView() { return m_pXFADocView; } | 40 CXFA_FFDocView* GetXFADocView() { return m_pXFADocView; } |
41 int GetDocType() const { return m_iDocType; } | 41 int GetDocType() const { return m_iDocType; } |
42 | 42 |
43 CPDFSDK_Document* GetSDKDoc() const { return m_pSDKDoc; } | 43 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const; |
44 void SetSDKDoc(CPDFSDK_Document* pSDKDoc) { m_pSDKDoc = pSDKDoc; } | 44 void SetSDKDoc(CPDFSDK_Document* pSDKDoc) { m_pSDKDoc = pSDKDoc; } |
45 | 45 |
46 void DeletePage(int page_index); | 46 void DeletePage(int page_index); |
47 int GetPageCount() const; | 47 int GetPageCount() const; |
48 | 48 |
49 CPDFXFA_Page* GetXFAPage(int page_index); | 49 CPDFXFA_Page* GetXFAPage(int page_index); |
50 CPDFXFA_Page* GetXFAPage(CXFA_FFPageView* pPage) const; | 50 CPDFXFA_Page* GetXFAPage(CXFA_FFPageView* pPage) const; |
51 | 51 |
52 void RemovePage(CPDFXFA_Page* page); | 52 void RemovePage(CPDFXFA_Page* page); |
53 | 53 |
(...skipping 30 matching lines...) Expand all Loading... |
84 CPDFXFA_App* const m_pApp; | 84 CPDFXFA_App* const m_pApp; |
85 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; | 85 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; |
86 LoadStatus m_nLoadStatus; | 86 LoadStatus m_nLoadStatus; |
87 int m_nPageCount; | 87 int m_nPageCount; |
88 | 88 |
89 // Must be destroy before |m_pSDKDoc|. | 89 // Must be destroy before |m_pSDKDoc|. |
90 CPDFXFA_DocEnvironment m_DocEnv; | 90 CPDFXFA_DocEnvironment m_DocEnv; |
91 }; | 91 }; |
92 | 92 |
93 #endif // FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ | 93 #endif // FPDFSDK_FPDFXFA_CPDFXFA_DOCUMENT_H_ |
OLD | NEW |