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

Side by Side Diff: fpdfsdk/cpdfsdk_document.h

Issue 2398253002: Convert fpdfformfill to use 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 | « no previous file | fpdfsdk/cpdfsdk_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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDFSDK_DOCUMENT_H_ 7 #ifndef FPDFSDK_CPDFSDK_DOCUMENT_H_
8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_ 8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "core/fpdfapi/parser/cpdf_document.h" 13 #include "core/fpdfapi/parser/cpdf_document.h"
14 #include "core/fxcrt/cfx_observable.h" 14 #include "core/fxcrt/cfx_observable.h"
15 #include "fpdfsdk/cpdfsdk_annot.h" 15 #include "fpdfsdk/cpdfsdk_annot.h"
16 #include "fpdfsdk/fsdk_define.h" 16 #include "fpdfsdk/fsdk_define.h"
17 #include "public/fpdf_formfill.h" 17 #include "public/fpdf_formfill.h"
18 18
19 class CPDFSDK_FormFillEnvironment; 19 class CPDFSDK_FormFillEnvironment;
20 class CPDFSDK_InterForm; 20 class CPDFSDK_InterForm;
21 class CPDFSDK_PageView; 21 class CPDFSDK_PageView;
22 class IJS_Runtime; 22 class IJS_Runtime;
23 23
24 class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> { 24 class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
25 public: 25 public:
26 static CPDFSDK_Document* FromFPDFFormHandle(FPDF_FORMHANDLE hHandle);
27
28 CPDFSDK_Document(UnderlyingDocumentType* pDoc, 26 CPDFSDK_Document(UnderlyingDocumentType* pDoc,
29 CPDFSDK_FormFillEnvironment* pEnv); 27 CPDFSDK_FormFillEnvironment* pEnv);
30 ~CPDFSDK_Document(); 28 ~CPDFSDK_Document();
31 29
32 CPDFSDK_InterForm* GetInterForm(); 30 CPDFSDK_InterForm* GetInterForm();
33 31
34 // Gets the document object for the next layer down; for master this is 32 // Gets the document object for the next layer down; for master this is
35 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. 33 // a CPDF_Document, but for XFA it is a CPDFXFA_Document.
36 UnderlyingDocumentType* GetUnderlyingDocument() const { 34 UnderlyingDocumentType* GetUnderlyingDocument() const {
37 #ifdef PDF_ENABLE_XFA 35 #ifdef PDF_ENABLE_XFA
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 std::map<UnderlyingPageType*, CPDFSDK_PageView*> m_pageMap; 96 std::map<UnderlyingPageType*, CPDFSDK_PageView*> m_pageMap;
99 UnderlyingDocumentType* m_pDoc; 97 UnderlyingDocumentType* m_pDoc;
100 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; 98 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm;
101 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; 99 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot;
102 CPDFSDK_FormFillEnvironment* m_pEnv; 100 CPDFSDK_FormFillEnvironment* m_pEnv;
103 FX_BOOL m_bChangeMask; 101 FX_BOOL m_bChangeMask;
104 FX_BOOL m_bBeingDestroyed; 102 FX_BOOL m_bBeingDestroyed;
105 }; 103 };
106 104
107 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_ 105 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/cpdfsdk_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698