Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: fpdfsdk/fpdfxfa/cpdfxfa_document.h

Issue 2400473002: Start proxying CPDFSDK_Document methods through CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp ('k') | fpdfsdk/fpdfxfa/cpdfxfa_document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp ('k') | fpdfsdk/fpdfxfa/cpdfxfa_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698