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

Side by Side Diff: fpdfsdk/cpdfsdk_interform.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/cpdfsdk_formfillenvironment.cpp ('k') | fpdfsdk/cpdfsdk_pageview.h » ('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_INTERFORM_H_ 7 #ifndef FPDFSDK_CPDFSDK_INTERFORM_H_
8 #define FPDFSDK_CPDFSDK_INTERFORM_H_ 8 #define FPDFSDK_CPDFSDK_INTERFORM_H_
9 9
10 #include <map> 10 #include <map>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fpdfdoc/cpdf_action.h" 13 #include "core/fpdfdoc/cpdf_action.h"
14 #include "core/fpdfdoc/ipdf_formnotify.h" 14 #include "core/fpdfdoc/ipdf_formnotify.h"
15 #include "core/fxcrt/fx_basic.h" 15 #include "core/fxcrt/fx_basic.h"
16 #include "core/fxge/fx_dib.h" 16 #include "core/fxge/fx_dib.h"
17 #include "fpdfsdk/cpdfsdk_document.h"
17 18
18 class CPDF_Dictionary; 19 class CPDF_Dictionary;
19 class CPDF_FormControl; 20 class CPDF_FormControl;
20 class CPDF_FormField; 21 class CPDF_FormField;
21 class CPDF_InterForm; 22 class CPDF_InterForm;
22 class CPDF_Object; 23 class CPDF_Object;
23 class CPDFSDK_Document; 24 class CPDFSDK_FormFillEnvironment;
24 class CPDFSDK_Widget; 25 class CPDFSDK_Widget;
25 26
26 #ifdef PDF_ENABLE_XFA 27 #ifdef PDF_ENABLE_XFA
27 class CPDFSDK_XFAWidget; 28 class CPDFSDK_XFAWidget;
28 class CXFA_FFWidget; 29 class CXFA_FFWidget;
29 #endif // PDF_ENABLE_XFA 30 #endif // PDF_ENABLE_XFA
30 31
31 class CPDFSDK_InterForm : public IPDF_FormNotify { 32 class CPDFSDK_InterForm : public IPDF_FormNotify {
32 public: 33 public:
33 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); 34 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
34 ~CPDFSDK_InterForm() override; 35 ~CPDFSDK_InterForm() override;
35 36
36 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } 37 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); }
37 CPDFSDK_Document* GetDocument() const { return m_pDocument; } 38 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const {
39 return m_pDocument->GetEnv();
40 }
38 41
39 FX_BOOL HighlightWidgets(); 42 FX_BOOL HighlightWidgets();
40 43
41 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const; 44 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const;
42 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl, 45 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl,
43 bool createIfNeeded) const; 46 bool createIfNeeded) const;
44 void GetWidgets(const CFX_WideString& sFieldName, 47 void GetWidgets(const CFX_WideString& sFieldName,
45 std::vector<CPDFSDK_Widget*>* widgets) const; 48 std::vector<CPDFSDK_Widget*>* widgets) const;
46 void GetWidgets(CPDF_FormField* pField, 49 void GetWidgets(CPDF_FormField* pField,
47 std::vector<CPDFSDK_Widget*>* widgets) const; 50 std::vector<CPDFSDK_Widget*>* widgets) const;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 #endif // PDF_ENABLE_XFA 138 #endif // PDF_ENABLE_XFA
136 FX_BOOL m_bCalculate; 139 FX_BOOL m_bCalculate;
137 FX_BOOL m_bBusy; 140 FX_BOOL m_bBusy;
138 141
139 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; 142 FX_COLORREF m_aHighlightColor[kNumFieldTypes];
140 uint8_t m_iHighlightAlpha; 143 uint8_t m_iHighlightAlpha;
141 FX_BOOL m_bNeedHightlight[kNumFieldTypes]; 144 FX_BOOL m_bNeedHightlight[kNumFieldTypes];
142 }; 145 };
143 146
144 #endif // FPDFSDK_CPDFSDK_INTERFORM_H_ 147 #endif // FPDFSDK_CPDFSDK_INTERFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_formfillenvironment.cpp ('k') | fpdfsdk/cpdfsdk_pageview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698